paySuccess.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <view class="box">
  3. <view class="imgBox">
  4. <image class="duihao" src="http://dmsphoto.66km.com.cn/thFiles/3488A63B-237D-4E73-96BC-C51D79AE01A3.png" mode=""></image>
  5. </view>
  6. <!-- <view class="txt" v-if="type==1">下单成功</view>
  7. <view class="txt" v-if="type==2">付款失败</view> -->
  8. <view class="txt" >下单成功</view>
  9. <view class="txt2">赶快查看商品详细订单</view>
  10. <view class="seeBox">
  11. <view class="seeBtn" @click="seeFn">查看订单</view>
  12. </view>
  13. <view class="goBack" @click="goBack">返回首页</view>
  14. </view>
  15. </template>
  16. <script>
  17. export default {
  18. components: {
  19. },
  20. data() {
  21. return {
  22. type:'',
  23. orderType:'',
  24. id:'',
  25. SheetType:'',
  26. sx:'',
  27. opt:'',
  28. }
  29. },
  30. onLoad(opt) {
  31. this.opt=opt
  32. this.type=opt.type
  33. this.orderType=opt.orderType
  34. /* if(this.type==2){
  35. uni.setNavigationBarTitle({
  36. title: '下单失败' //页面标题为"新标题"
  37. });
  38. } */
  39. },
  40. onShow() {
  41. },
  42. methods: {
  43. seeFn(){
  44. if(this.orderType==1){
  45. uni.navigateTo({
  46. url:'../user/myOrder/myOrder'
  47. })
  48. }else if(this.orderType=='jike'){
  49. uni.redirectTo({
  50. url: "../user/myOrder/activityOrderDetail?id=" + this.opt.id +"&SheetType=" + this.opt.sheetType+'&sx=1'
  51. })
  52. }else if(this.orderType=='shop'){
  53. uni.redirectTo({
  54. url: "../user/myOrder/mallOrderDetail?id=" + this.opt.id +"&SheetType=" + this.opt.sheetType+'&sx=1'
  55. })
  56. }
  57. else if(this.orderType=='paint'){
  58. uni.redirectTo({
  59. url: "../user/myOrder/paintOrderDetail?id=" + this.opt.id +'&sx=1'
  60. })
  61. }
  62. },
  63. goBack(){
  64. uni.switchTab({
  65. url:'/pages/index/index'
  66. })
  67. }
  68. }
  69. }
  70. </script>
  71. <style scoped lang="less">
  72. .box {
  73. width: 100vw;
  74. min-height: 100vh;
  75. background: #F4F4F4;
  76. }
  77. .duihao{
  78. width: 110rpx;height: 110rpx;
  79. }
  80. .imgBox{
  81. text-align: center;padding-top: 190rpx;
  82. }
  83. .txt{
  84. text-align: center;padding-top: 30rpx;
  85. font-weight: 500;
  86. font-size: 36rpx;
  87. color: #222222;
  88. line-height: 50rpx;
  89. }
  90. .goBack{
  91. font-weight: 400;
  92. font-size: 26rpx;
  93. color: #EC0F0A;
  94. line-height: 37rpx;
  95. text-align: center;
  96. padding-top: 30rpx;
  97. }
  98. .txt2{
  99. font-weight: 400;
  100. font-size: 22rpx;
  101. color: #666E80;
  102. line-height: 30rpx;
  103. text-align: center;
  104. padding-top: 20rpx;
  105. }
  106. .seeBtn{
  107. width: 282rpx;
  108. height: 70rpx;
  109. background: #FCD903;
  110. border-radius: 43rpx;
  111. text-align: center;
  112. line-height: 70rpx;
  113. font-weight: 400;
  114. font-size: 26rpx;
  115. color: #110B01;
  116. margin: 0 auto;
  117. margin-top: 44rpx;
  118. }
  119. </style>