PaySuccess.vue 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <template>
  2. <view class="PayFail">
  3. <view class="main-view">
  4. <view class="flex-view">
  5. <image class="icon" src="../../static/img/image44.png" />
  6. <view class="text1">支付失败,请重新支付</view>
  7. </view>
  8. <view class="text2">因网络等原因可能导致订单状态未及时更新</view>
  9. <view class="button1" @click="show()">查询订单最新状态</view>
  10. <view class="text-view">
  11. <view class="icon-view" />
  12. <view>客服电话:</view>
  13. <view class="phone">
  14. <a :href="'tel:' + configAll.service_mobile"
  15. >{{ configAll.service_mobile }}(点击拨打)</a
  16. ></view
  17. >
  18. </view>
  19. <view class="text-view">
  20. <view class="icon-view" />
  21. <view>客服工作时间:</view>
  22. <view>({{configAll.service_work_time}})</view>
  23. </view>
  24. <view class="text-view">
  25. <view class="icon-view" />
  26. <view
  27. >如有疑问,可关注微信公众号:{{ configAll.wxp_name }}与我们联系</view
  28. >
  29. </view>
  30. <view class="flex-view">
  31. <view class="wx-name">微信公众号:{{ configAll.wxp_name }}</view>
  32. <view class="button" @tap="copyNumHandle()">复制</view>
  33. </view>
  34. <img class="wx-image" :src="configAll.wxp_qrcode" />
  35. <view class="wx-text">长按上方二维码关注公众号,以便查询快递信息</view>
  36. <view class="button-view">
  37. <view class="button-1" @click="index()">继续选号</view>
  38. <view class="button-2" @click="payment()">查询订单</view>
  39. <view class="button-2" @click="payment()">继续支付</view>
  40. </view>
  41. </view>
  42. </view>
  43. </template>
  44. <script>
  45. export default {
  46. data() {
  47. return {
  48. id: '',
  49. showData: {},
  50. };
  51. },
  52. onLoad(option) {
  53. if (option.id) {
  54. this.id = option.id;
  55. this.show();
  56. }
  57. },
  58. methods: {
  59. // 号码详情界面
  60. show() {
  61. this.$http.order_detail({ id: this.id }).then((res) => {
  62. if (res.data.code == 1) {
  63. console.log(res.data.data);
  64. this.showData = res.data.data;
  65. if (this.showData.status != 0) {
  66. uni.navigateTo({
  67. url: '/pageA/orderSuccess/orderSuccess?id=' + this.id,
  68. });
  69. }
  70. }
  71. });
  72. },
  73. // 复制
  74. copyNumHandle() {
  75. let this_ = this;
  76. uni.setClipboardData({
  77. data: this.configAll.wxp_name, // data的值为你要复制的内容
  78. success: (res) => {
  79. uni.showToast({
  80. title: '复制成功',
  81. duration: 1000,
  82. icon: 'none',
  83. });
  84. },
  85. });
  86. },
  87. index(){
  88. uni.reLaunch({
  89. url: '/pages/index/index',
  90. })
  91. },
  92. payment(){
  93. uni.navigateTo({
  94. url: '/pages/payment/payment?id='+ this.id,
  95. })
  96. }
  97. },
  98. };
  99. </script>
  100. <style lang="scss">
  101. .PayFail {
  102. .main-view {
  103. display: flex;
  104. flex-direction: column;
  105. align-items: center;
  106. .flex-view {
  107. display: flex;
  108. align-items: center;
  109. margin-top: 70rpx;
  110. .icon {
  111. width: 40rpx;
  112. height: 40rpx;
  113. margin-right: 20rpx;
  114. }
  115. .text1 {
  116. font-size: 36rpx;
  117. color: #333333;
  118. font-weight: 500;
  119. }
  120. .button {
  121. width: 100rpx;
  122. height: 44rpx;
  123. background: #d52e4c;
  124. border-radius: 22rpx;
  125. margin-left: 20rpx;
  126. font-size: 24rpx;
  127. color: #ffffff;
  128. display: flex;
  129. align-items: center;
  130. justify-content: center;
  131. }
  132. }
  133. .text2 {
  134. font-size: 26rpx;
  135. color: #333333;
  136. margin-top: 50rpx;
  137. letter-spacing: 3rpx;
  138. }
  139. .button1 {
  140. height: 60rpx;
  141. background-color: #d1665d;
  142. border-radius: 12rpx;
  143. margin-top: 70rpx;
  144. margin-bottom: 70rpx;
  145. padding: 0rpx 25rpx;
  146. line-height: 60rpx;
  147. font-size: 28rpx;
  148. color: #ffffff;
  149. }
  150. .text-view {
  151. display: flex;
  152. font-size: 26rpx;
  153. color: #333333;
  154. width: 600rpx;
  155. margin-top: 15rpx;
  156. .icon-view {
  157. width: 30rpx;
  158. height: 30rpx;
  159. background-color: #333333;
  160. border-radius: 15rpx;
  161. margin-right: 15rpx;
  162. }
  163. .phone {
  164. a {
  165. color: #2c2bc2;
  166. }
  167. }
  168. }
  169. .wx-name {
  170. font-size: 32rpx;
  171. color: #d4504e;
  172. letter-spacing: 3rpx;
  173. }
  174. .wx-image {
  175. width: 300rpx;
  176. height: 300rpx;
  177. margin-top: 30rpx;
  178. }
  179. .wx-text {
  180. font-size: 26rpx;
  181. color: #333333;
  182. margin-top: 30rpx;
  183. }
  184. .button-view {
  185. width: 600rpx;
  186. margin-top: 70rpx;
  187. display: flex;
  188. align-items: center;
  189. justify-content: space-between;
  190. .button-1 {
  191. width: 150rpx;
  192. height: 50rpx;
  193. border-radius: 8rpx;
  194. border: 1px solid #d4504e;
  195. display: flex;
  196. align-items: center;
  197. justify-content: center;
  198. font-size: 26rpx;
  199. color: #d4504e;
  200. }
  201. .button-2 {
  202. width: 150rpx;
  203. height: 50rpx;
  204. background-color: #d4504e;
  205. border-radius: 8rpx;
  206. border: 1px solid #d4504e;
  207. display: flex;
  208. align-items: center;
  209. justify-content: center;
  210. font-size: 26rpx;
  211. color: #ffffff;
  212. }
  213. }
  214. }
  215. }
  216. </style>