success.vue 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <!-- 支付成功 -->
  2. <template>
  3. <view class="success" :style="{ background: 'url(' + bgImg + ') #F4F5F9' }">
  4. <view class="success_status">
  5. <view class="status flex aic">
  6. <image class="pay_img" :src="payImg"></image>
  7. <view class="status_text">支付成功</view>
  8. </view>
  9. <view class="status_tip">套餐购买成功 请查看账单明细</view>
  10. </view>
  11. <view class="success_content">
  12. <view class="success_info">
  13. <view class="">
  14. <view class="success_item flex jcsb aic">
  15. <view class="flex aic">
  16. <view class="label">收件地址</view>
  17. <text class="bold">123</text>
  18. </view>
  19. <view class="success_btn" @click="copyText()">复制</view>
  20. </view>
  21. <view class="success_item flex aic">
  22. <view class="label">收件人</view>
  23. <text>234</text>
  24. </view>
  25. </view>
  26. </view>
  27. <view class="line" :style="{ background: `url(${successImg}) no-repeat` }">
  28. <view class="line-circle"></view>
  29. </view>
  30. <view class="detail">
  31. <view class="detail_item flex aic jcsb">
  32. <text>订单金额</text>
  33. <view class="datas flex">
  34. <text>2500元</text>
  35. </view>
  36. </view>
  37. <view class="detail_item flex aic jcsb">
  38. <text>套餐名称</text>
  39. <view class="datas flex">
  40. <text>A类套餐</text>
  41. <view class="copy">详情</view>
  42. </view>
  43. </view>
  44. <view class="detail_item flex aic jcsb">
  45. <text>套餐内容</text>
  46. <view class="datas flex">
  47. <text>50条 (每条15-20s)</text>
  48. </view>
  49. </view>
  50. <view class="detail_item flex aic jcsb">
  51. <text>支付方式</text>
  52. <view class="datas flex">
  53. <text>微信支付</text>
  54. </view>
  55. </view>
  56. <view class="detail_item flex aic jcsb">
  57. <text>订单编号</text>
  58. <view class="datas flex">
  59. <text>12346789</text><view class="copy" @click="copyText()">复制</view>
  60. </view>
  61. </view>
  62. <view class="detail_item flex aic jcsb">
  63. <text>订单时间</text>
  64. <view class="datas flex">
  65. <text>123</text>
  66. </view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="btns">
  71. <view class="bind" @click="bindCard">查看详情</view>
  72. <view class="back" @click="toHome">返回首页</view>
  73. </view>
  74. </view>
  75. </template>
  76. <script>
  77. import { copy } from "@/utils/utils";
  78. export default {
  79. components: {},
  80. data() {
  81. return {
  82. bgImg: "https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/bg_top%403x.png",
  83. payImg: "https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_paysuccess.png",
  84. successImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/img_quekou.png'
  85. };
  86. },
  87. computed: {},
  88. watch: {},
  89. methods: {
  90. // 复制
  91. copyText(num){
  92. copy(num)
  93. }
  94. },
  95. created() {
  96. },
  97. mounted() {
  98. },
  99. }
  100. </script>
  101. <style lang='scss' scoped>
  102. .success{
  103. width: 100%;
  104. position: absolute;
  105. top: 0;
  106. bottom: 0;
  107. display: flex;
  108. flex-direction: column;
  109. background-size: contain !important;
  110. background-repeat: no-repeat !important;
  111. background-position: top;
  112. padding: 0 24rpx;
  113. .success_status{
  114. margin-top: 64rpx;
  115. display: flex;
  116. flex-direction: column;
  117. align-items: center;
  118. .pay_img{
  119. width: 48rpx;
  120. height: 48rpx;
  121. margin-left: 16rpx;
  122. }
  123. .status_text{
  124. font-weight: 500;
  125. font-size: 40rpx;
  126. color: #0D121A;
  127. }
  128. .status_tip{
  129. font-weight: 400;
  130. font-size: 28rpx;
  131. color: #9EA3B1;
  132. margin-top: 20rpx;
  133. }
  134. }
  135. .success_content{
  136. border-radius: 32rpx;
  137. overflow: hidden;
  138. margin-top: 64rpx;
  139. .success_info{
  140. background-color: #fff;
  141. padding: 36rpx 32rpx 8rpx;
  142. .success_item{
  143. margin-bottom: 20rpx;
  144. .label{
  145. min-width: 120rpx;
  146. font-weight: 400;
  147. font-size: 28rpx;
  148. color: #9EA3B1;
  149. margin-right: 16rpx;
  150. }
  151. text{
  152. font-size: 32rpx;
  153. color: #0D121A;
  154. }
  155. }
  156. }
  157. .success_btn{
  158. width: 80rpx;
  159. height: 40rpx;
  160. font-weight: 500;
  161. background: #F4F5F9;
  162. border-radius: 48rpx;
  163. font-size: 24rpx;
  164. color: #0D121A;
  165. text-align: center;
  166. line-height: 40rpx;
  167. }
  168. .line{
  169. width: 100%;
  170. height: 40rpx;
  171. background-size: cover !important;
  172. padding: 0 32rpx;
  173. display: flex;
  174. justify-content: center;
  175. align-items: center;
  176. .line-circle{
  177. width: 100%;
  178. border: 2rpx dashed #EDEDED;
  179. height: 2rpx;
  180. }
  181. }
  182. .detail{
  183. background-color: #fff;
  184. padding: 32rpx 32rpx 40rpx;
  185. .detail_item {
  186. margin-bottom: 36rpx;
  187. text{
  188. white-space: nowrap;
  189. font-weight: 400;
  190. font-size: 28rpx;
  191. color: #0D121A;
  192. }
  193. .datas{
  194. .copy{
  195. width: 80rpx;
  196. height: 40rpx;
  197. background: #F4F5F9;
  198. border-radius: 48rpx;
  199. font-weight: 500;
  200. font-size: 24rpx;
  201. color: #061714;
  202. text-align: center;
  203. line-height: 40rpx;
  204. margin-left: 16rpx;
  205. }
  206. }
  207. }
  208. .detail_item:nth-last-child(1){
  209. margin-bottom: 0;
  210. }
  211. }
  212. .success_title{
  213. color: #9DA3A2;
  214. }
  215. }
  216. .btns{
  217. padding: 96rpx 32rpx;
  218. view{
  219. width: 100%;
  220. height: 84rpx;
  221. // border-radius: 48rpx;
  222. display: flex;
  223. justify-content: center;
  224. align-items: center;
  225. font-size: 32rpx;
  226. }
  227. .bind{
  228. color: #061714;
  229. margin-bottom: 32rpx;
  230. font-weight: 500rpx;
  231. background: linear-gradient( 140deg, #246AF1 0%, #2F98EF 100%);
  232. }
  233. .back{
  234. font-weight: bold;
  235. background: #FFFFFF;
  236. // border: 4rpx solid #E7EAEA;
  237. color: #061714;
  238. }
  239. }
  240. .ml16{
  241. margin-left: 16rpx;
  242. }
  243. }
  244. </style>