paysource.vue 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <template>
  2. <view class="main">
  3. <image class="topbg" :src="imgHost+'/static/index/top.png'"></image>
  4. <view class=" padding-xs flex align-center">
  5. <view class="flex-sub text-center">
  6. <view class=" text-xsl padding-top">
  7. <text class=" cuIcon-roundcheckfill text-green"></text>
  8. </view>
  9. <view class="margin-sm text-xxl">支付成功</view>
  10. <view class="margin-sm">您已经成功支付订单</view>
  11. <view class="margin-sm">可前往个人中心查看订单</view>
  12. <view class="btns">
  13. <view class="btn" @click="callback" style="border:1px solid #f5cc57;" data-target="cancel">返回首页</view>
  14. <view class="btn" style="background-color:#f5cc57;color: #fff;border: none;" @click="gotoinfo">
  15. 前往查看
  16. </view>
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </template>
  22. <script>
  23. export default {
  24. data() {
  25. return {
  26. imgHost: '',
  27. id: "",
  28. payment_status: ""
  29. }
  30. },
  31. onLoad(option) {
  32. this.imgHost = this.$imgHost
  33. this.id = option.id
  34. this.payment_status = option.payment_status
  35. },
  36. mounted() {
  37. },
  38. methods: {
  39. callback() {
  40. uni.switchTab({
  41. url: "../index/index"
  42. })
  43. },
  44. gotoinfo() {
  45. uni.redirectTo({
  46. url: '/pages/mine/detail?id=' + this.id + '&payment_status=' + this.payment_status
  47. })
  48. }
  49. }
  50. }
  51. </script>
  52. <style>
  53. page {
  54. margin: 0;
  55. padding: 0;
  56. background: #f5f5f5;
  57. }
  58. .main {
  59. width: 100vw;
  60. height: auto;
  61. position: relative;
  62. overflow: hidden;
  63. /* margin-bottom: 55px; */
  64. }
  65. .main .topbg {
  66. width: 100%;
  67. /* position: absolute; */
  68. /* top: 0; */
  69. /* left: 0; */
  70. height: 36vw;
  71. /* z-index: -1; */
  72. }
  73. .btns {
  74. width: 100%;
  75. height: 40px;
  76. display: flex;
  77. align-items: center;
  78. justify-content: center;
  79. }
  80. .btns .btn {
  81. width: auto;
  82. height: 30px;
  83. line-height: 30px;
  84. padding: 0 15px;
  85. border: 1px solid #979797;
  86. color: #979797;
  87. margin: 5px;
  88. border-radius: 5px;
  89. }
  90. </style>