success.vue 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <template>
  2. <div class="app-content" :class="[contentClass]">
  3. <div class="callback-wrap">
  4. <div class="callback-blo">
  5. <div class="status-text app-size-36 app-bold" style="margin-top:30upx;">支付成功</div>
  6. <block></block>
  7. </div>
  8. </div>
  9. </div>
  10. </template>
  11. <script>
  12. export default {
  13. name: "callback",
  14. components: {},
  15. data() {
  16. return {
  17. constant: this.$constant,
  18. pageTit: "",
  19. pageStatus: 1,
  20. contentClass: "",
  21. payDiscountPrice: null,
  22. payDiscountType: 0,
  23. passwordModal: false,
  24. form: {
  25. payPassword: ""
  26. },
  27. payCallData: {},
  28. merchantInfo: {}
  29. };
  30. },
  31. computed: {},
  32. onLoad() {},
  33. methods: {
  34. init() {
  35. this.pageStatus = this.option.pageStatus;
  36. this.payDiscountPrice = this.option.payDiscountPrice;
  37. this.payDiscountType = this.option.payDiscountType;
  38. this.initClass(this.pageStatus);
  39. },
  40. //初始样式
  41. initClass(val) {
  42. switch (val) {
  43. case "1":
  44. this.pageTit = "待支付";
  45. this.contentClass = "awaitPayYe";
  46. break;
  47. case "2":
  48. this.pageTit = "待支付";
  49. this.contentClass = "awaitPayWx";
  50. break;
  51. case "3":
  52. this.pageTit = "支付成功";
  53. this.contentClass = "successPay";
  54. break;
  55. case "4":
  56. this.pageTit = "评价成功";
  57. this.contentClass = "successEval";
  58. break;
  59. case "5":
  60. this.pageTit = "支付成功";
  61. this.contentClass = "successPayCode";
  62. break;
  63. case "6":
  64. this.pageTit = "提交成功";
  65. this.contentClass = "registerMember";
  66. break;
  67. default:
  68. this.pageTit = "支付成功";
  69. this.contentClass = "awaitPayYe";
  70. break;
  71. }
  72. uni.setNavigationBarTitle({
  73. title: this.pageTit
  74. });
  75. }
  76. }
  77. };
  78. </script>
  79. <style lang="scss" scoped>
  80. .app-content {
  81. .callback-wrap {
  82. padding-top: 50upx;
  83. background-image: url("../../static/images/callback/bg.png");
  84. background-repeat: no-repeat;
  85. background-size: 100% auto;
  86. .callback-blo {
  87. width: 90%;
  88. margin: 0 auto;
  89. padding: 100upx 0;
  90. background-color: #fff;
  91. box-shadow: 2upx 2upx 16upx 0upx rgba(181, 181, 181, 0.29);
  92. border-radius: 10upx;
  93. text-align: center;
  94. // 使用icon
  95. .icon {
  96. .iconfont {
  97. font-size: 170upx;
  98. }
  99. }
  100. // 使用状态图片
  101. .status-img {
  102. width: 294upx;
  103. margin: 0 auto;
  104. }
  105. .call-btn-com {
  106. margin-top: 56upx;
  107. @include disFlex(center, space-evenly);
  108. }
  109. // 一个按钮
  110. .call-one-btn {
  111. .button-com {
  112. width: 80%;
  113. padding-top: 22upx;
  114. padding-bottom: 22upx;
  115. font-size: 32upx;
  116. margin-top: 40upx;
  117. }
  118. }
  119. // 两个按钮
  120. .call-two-btn {
  121. .button-com {
  122. width: 40%;
  123. padding-top: 22upx;
  124. padding-bottom: 22upx;
  125. font-size: 32upx;
  126. }
  127. .default {
  128. margin-right: 20upx;
  129. }
  130. }
  131. }
  132. // 优惠券
  133. .coupon-wrap {
  134. width: 96%;
  135. margin: 52upx auto 0;
  136. position: relative;
  137. .qrcode-img {
  138. width: 170upx;
  139. height: 170upx;
  140. position: absolute;
  141. top: 40upx;
  142. right: 108upx;
  143. }
  144. }
  145. }
  146. }
  147. // 待支付 - 公共
  148. .awaitPayWx,
  149. .awaitPayYe {
  150. .status-text {
  151. margin-top: 22upx;
  152. margin-bottom: 52upx;
  153. color: #ffa92e;
  154. }
  155. .surplus {
  156. margin-top: 22upx;
  157. margin-bottom: 38upx;
  158. }
  159. .icon {
  160. .iconfont {
  161. color: #ffa92e;
  162. }
  163. }
  164. }
  165. // 待支付 - 余额
  166. .registerMember,
  167. .successPay,
  168. .successPayCode,
  169. .successEval {
  170. .status-text {
  171. color: #333;
  172. margin-top: 22upx;
  173. margin-bottom: 52upx;
  174. }
  175. }
  176. // 提交成功
  177. .registerMember {
  178. .call-back-wrap {
  179. .qr-code-img {
  180. width: 300upx;
  181. height: 300upx;
  182. margin: 20upx auto;
  183. img {
  184. height: 100%;
  185. }
  186. }
  187. .app-color-2 {
  188. font-size: 30upx;
  189. margin-bottom: 20upx;
  190. }
  191. }
  192. }
  193. </style>