paySuccess.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <template>
  2. <view class="content" :class="[AppTheme]">
  3. <view class="success">
  4. <u-icon name="checkmark-circle-fill" :color="primary" size="45"></u-icon>
  5. <text class="tit">支付成功</text>
  6. </view>
  7. <view class="btn-group">
  8. <view v-if="n_type==0">
  9. <navigator url="/pagesD/pages/order/order?state=0" open-type="redirect"
  10. class="mix-btn bg-linear-gradient">查看订单</navigator>
  11. </view>
  12. <view v-else>
  13. <navigator url="/pagesA/pages/subrecord/subrecord" open-type="redirect"
  14. class="mix-btn bg-linear-gradient">查看订单</navigator>
  15. </view>
  16. <navigator url="/pages/index/index" open-type="switchTab" class="mix-btn hollow">返回首页</navigator>
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. primary:this.$theme.primary,
  25. settingFile: getApp().globalData.siteinfo,
  26. n_type: 0
  27. }
  28. },
  29. methods: {
  30. },
  31. onLoad(options) {
  32. this.n_type = options.type ? options.type : 0
  33. },
  34. }
  35. </script>
  36. <style lang='scss'>
  37. .content {
  38. display: flex;
  39. flex-direction: column;
  40. justify-content: center;
  41. align-items: center;
  42. }
  43. .success-icon {
  44. font-size: 160upx;
  45. color: limegreen;
  46. margin-top: 100upx;
  47. }
  48. .success {
  49. display: flex;
  50. justify-content: center;
  51. align-items: center;
  52. padding-top: 100upx;
  53. .tit {
  54. font-size: 38upx;
  55. color: #303133;
  56. }
  57. }
  58. .btn-group {
  59. padding-top: 100upx;
  60. }
  61. .mix-btn {
  62. margin-top: 30upx;
  63. display: flex;
  64. align-items: center;
  65. justify-content: center;
  66. width: 600upx;
  67. height: 80upx;
  68. font-size: $font-lg;
  69. color: #fff;
  70. border-radius: 10upx;
  71. &.hollow {
  72. background: #fff;
  73. color: #303133;
  74. border: 1px solid #ccc;
  75. }
  76. }
  77. </style>