hallpay.vue 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415
  1. <template>
  2. <view class="center">
  3. <view class="top">
  4. <view class="top-main">
  5. <view class="num">
  6. <text>1299.00</text>
  7. </view>
  8. <image class="top-image" src="../../static/img/copy.png" mode=""></image>
  9. </view>
  10. <view class="downtime">
  11. <uni-countdowns
  12. color="#FFFFFF"
  13. splitor-color="#FD3B39"
  14. background-color="#FD3B39"
  15. border-color="#FD3B39"
  16. :show-day="false"
  17. :hour="stopTime.stopTimeH"
  18. :minute="stopTime.stopTimeM"
  19. :second="stopTime.stopTimeS"
  20. ></uni-countdowns>
  21. </view>
  22. </view>
  23. <view class="product flex">
  24. <image class="product-image" src="../../static/img/evening.png" mode=""></image>
  25. <view class="product-info">
  26. <view class="title">趣豆商城挂售礼盒</view>
  27. <view class="title buyId">
  28. <text>卖家ID:</text>
  29. 123456
  30. </view>
  31. <view class="title buyName">
  32. <text>卖家昵称:</text>
  33. 李丹丹
  34. </view>
  35. <view class="title buyPhone">
  36. <text>卖家手机号:</text>
  37. 123456897
  38. </view>
  39. </view>
  40. </view>
  41. <view class="main">
  42. <view class="main-tip">请向以下账号自行转账(任选一种方式)</view>
  43. <view class="main-title flex">
  44. <view class="mt-item" @click="change('0')" :class="{ current: tabCurrentIndex === 0 }">
  45. <image class="mt-image" :src="tabCurrentIndex == 0 ? '../../static/img/aliD.png' : '../../static/img/ali.png'" mode=""></image>
  46. <view class="mt-font" :class="{ current: tabCurrentIndex === 0 }">支付宝</view>
  47. </view>
  48. <view class="mt-item" @click="change('1')" :class="{ current: tabCurrentIndex === 1 }">
  49. <image class="mt-image1" :src="tabCurrentIndex == 1 ? '../../static/img/bankD.png' : '../../static/img/bank.png'" mode=""></image>
  50. <view class="mt-font" :class="{ current: tabCurrentIndex === 1 }">银行卡</view>
  51. </view>
  52. <view class="mt-item" @click="change('2')" :class="{ current: tabCurrentIndex === 2 }">
  53. <image class="mt-image2" :src="tabCurrentIndex == 2 ? '../../static/img/yueD.png' : '../../static/img/yue.png'" mode=""></image>
  54. <view class="mt-font" :class="{ current: tabCurrentIndex === 2 }">余额</view>
  55. </view>
  56. </view>
  57. <swiper class="swiper-box" :current="tabCurrentIndex" :duration="500" @change="changeTab" :style="{ height: tabCurrentIndex == 1 ? '450rpx' : '280rpx' }">
  58. <swiper-item class="tab-content">
  59. <view class="tc-item flex">
  60. <view class="tcitem-name">支付宝号</view>
  61. <view class="ali-name">152****4123</view>
  62. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  63. </view>
  64. <view class="tc-item flex">
  65. <view class="tcitem-name">姓名</view>
  66. <view class="ali-name">李丹丹</view>
  67. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  68. </view>
  69. <view class="tc-item flex">
  70. <view class="tcitem-name">备注</view>
  71. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  72. </view>
  73. </swiper-item>
  74. <swiper-item class="tab-content">
  75. <view class="tc-item flex">
  76. <view class="tcitem-name">姓名</view>
  77. <view class="ali-name">李丹丹</view>
  78. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  79. </view>
  80. <view class="tc-item flex">
  81. <view class="tcitem-name">银行</view>
  82. <view class="ali-name">中国建设银行</view>
  83. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  84. </view>
  85. <view class="tc-item flex">
  86. <view class="tcitem-name">开户行</view>
  87. <view class="ali-name">椒江支行</view>
  88. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  89. </view>
  90. <view class="tc-item flex">
  91. <view class="tcitem-name">账号</view>
  92. <view class="ali-name">5123456798231564894561894</view>
  93. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  94. </view>
  95. <view class="tc-item flex">
  96. <view class="tcitem-name">说明</view>
  97. <view class="ali-name" style="color: #fd5452">请使用本人银行卡,否则无效</view>
  98. <image class="tcitem-image" src="" mode=""></image>
  99. </view>
  100. </swiper-item>
  101. <swiper-item class="tab-content">
  102. <view class="tc-item flex">
  103. <view class="tcitem-name">账号</view>
  104. <view class="ali-name">152****4123</view>
  105. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  106. </view>
  107. <view class="tc-item flex">
  108. <view class="tcitem-name">姓名</view>
  109. <view class="ali-name">李丹丹</view>
  110. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  111. </view>
  112. <view class="tc-item flex">
  113. <view class="tcitem-name">备注</view>
  114. <image class="tcitem-image" src="../../static/img/copy.png" mode=""></image>
  115. </view>
  116. </swiper-item>
  117. </swiper>
  118. </view>
  119. <view class="upload">
  120. <view class="upload-title">上传支付截图</view>
  121. <view class="upload-main">
  122. <image class="upload-image" src="../../static/img/add.png" mode=""></image>
  123. <view class="upload-font">点击上传支付截图</view>
  124. </view>
  125. </view>
  126. <view class="bottom flex">
  127. <view class="bottom-item">
  128. <image class="bi-image" src="../../static/img/call.png" mode=""></image>
  129. <view class="bottom-font">联系卖家
  130. </view>
  131. </view>
  132. <view class="shu"></view>
  133. <view class="bottom-item">
  134. <image class="bi-image" src="../../static/img/kf.png" mode=""></image>
  135. <view class="bottom-font">联系客服</view>
  136. </view>
  137. <view class="btn" @click="nav('/pages/hall/hallpay')">立即购买</view>
  138. </view>
  139. </view>
  140. </template>
  141. <script>
  142. import uniCountdowns from '@/components/uni-countdown/uni-countdowns.vue';
  143. export default {
  144. components: {
  145. uniCountdowns
  146. },
  147. data() {
  148. return {
  149. // 倒计时
  150. stopTime: {
  151. stopTimeH: 1,
  152. stopTimeM: 1,
  153. stopTimeS: 1
  154. },
  155. tabCurrentIndex: 0
  156. };
  157. },
  158. methods: {
  159. open() {
  160. this.$refs.popup.open();
  161. },
  162. close() {
  163. this.$refs.popup.close();
  164. },
  165. nav(url) {
  166. uni.navigateTo({
  167. url
  168. });
  169. },
  170. //swiper 切换
  171. changeTab(e) {
  172. this.tabCurrentIndex = e.target.current;
  173. },
  174. toBack() {
  175. uni.navigateBack({});
  176. },
  177. change(num) {
  178. this.tabCurrentIndex = num * 1;
  179. }
  180. }
  181. };
  182. </script>
  183. <style lang="less">
  184. .center {
  185. background: #f8f6f6;
  186. min-height: 100%;
  187. height: auto;
  188. }
  189. .top {
  190. margin-top: 10rpx;
  191. background-color: #ffffff;
  192. padding: 56rpx 0;
  193. display: flex;
  194. flex-direction: column;
  195. justify-content: center;
  196. align-items: center;
  197. .top-main {
  198. display: flex;
  199. justify-content: center;
  200. align-items: center;
  201. line-height: 1;
  202. .num {
  203. font-size: 28rpx;
  204. font-family: PingFang SC;
  205. font-weight: bold;
  206. color: #fd3b39;
  207. text {
  208. font-size: 50rpx;
  209. }
  210. }
  211. .top-image {
  212. margin-left: 10rpx;
  213. width: 26rpx;
  214. height: 28rpx;
  215. }
  216. }
  217. .downtime {
  218. margin-top: 20rpx;
  219. }
  220. }
  221. .product {
  222. margin-top: 20rpx;
  223. padding: 35rpx 35rpx 40rpx 35rpx;
  224. background-color: #ffffff;
  225. justify-content: flex-start;
  226. align-items: flex-start;
  227. .product-image {
  228. width: 210rpx;
  229. height: 210rpx;
  230. border-radius: 10rpx;
  231. }
  232. .product-info {
  233. margin-left: 26rpx;
  234. padding-top: 10rpx;
  235. line-height: 1;
  236. .title {
  237. line-height: 1;
  238. font-size: 30rpx;
  239. font-family: PingFang SC;
  240. font-weight: bold;
  241. color: #333333;
  242. text {
  243. color: #999999;
  244. }
  245. }
  246. .buyId {
  247. margin-top: 30rpx;
  248. }
  249. .buyName {
  250. margin-top: 24rpx;
  251. }
  252. .buyPhone {
  253. margin-top: 24rpx;
  254. }
  255. }
  256. }
  257. .main {
  258. margin-top: 20rpx;
  259. padding: 30rpx 0 40rpx;
  260. background: #ffffff;
  261. .main-tip {
  262. padding: 0 30rpx;
  263. font-size: 30rpx;
  264. font-family: PingFang SC;
  265. font-weight: 500;
  266. color: #999999;
  267. }
  268. .main-title {
  269. padding: 0 30rpx;
  270. margin-top: 34rpx;
  271. .current {
  272. background: #4166fc !important;
  273. color: #ffffff !important;
  274. }
  275. .mt-item {
  276. width: 160rpx;
  277. height: 60rpx;
  278. background: #f8f8f8;
  279. border-radius: 10rpx;
  280. display: flex;
  281. justify-content: center;
  282. align-items: center;
  283. .mt-image {
  284. width: 32rpx;
  285. height: 32rpx;
  286. }
  287. .mt-image1 {
  288. width: 38rpx;
  289. height: 32rpx;
  290. }
  291. .mt-image2 {
  292. width: 36rpx;
  293. height: 32rpx;
  294. }
  295. .mt-font {
  296. margin-left: 10rpx;
  297. font-size: 30rpx;
  298. font-family: PingFang SC;
  299. font-weight: bold;
  300. color: #333333;
  301. }
  302. }
  303. }
  304. .swiper-box {
  305. width: 100%;
  306. padding: 14rpx 30rpx 0;
  307. .tc-item {
  308. padding: 50rpx 2rpx 0;
  309. line-height: 1;
  310. .tcitem-name {
  311. width: 118rpx;
  312. font-size: 30rpx;
  313. font-family: PingFang SC;
  314. font-weight: 500;
  315. color: #999999;
  316. }
  317. .ali-name {
  318. width: 380rpx;
  319. font-size: 30rpx;
  320. font-family: PingFang SC;
  321. font-weight: 500;
  322. color: #333333;
  323. }
  324. .tcitem-image {
  325. width: 26rpx;
  326. height: 28rpx;
  327. }
  328. }
  329. }
  330. }
  331. .upload {
  332. margin-top: 20rpx;
  333. padding: 34rpx 30rpx 40rpx 30rpx;
  334. background: #ffffff;
  335. .upload-title {
  336. font-size: 30rpx;
  337. font-family: PingFang SC;
  338. font-weight: bold;
  339. color: #333333;
  340. }
  341. .upload-main {
  342. padding-top: 32rpx;
  343. display: flex;
  344. justify-content: center;
  345. align-items: center;
  346. flex-direction: column;
  347. .upload-image {
  348. width: 160rpx;
  349. height: 160rpx;
  350. border-radius: 10rpx;
  351. }
  352. .upload-font {
  353. margin-top: 24rpx;
  354. font-size: 30rpx;
  355. font-family: PingFang SC;
  356. font-weight: bold;
  357. color: #333333;
  358. }
  359. }
  360. }
  361. .bottom {
  362. position: fixed;
  363. bottom: 0;
  364. background: #ffffff;
  365. width: 750rpx;
  366. height: 146rpx;
  367. justify-content: flex-start;
  368. .bottom-item {
  369. margin-left: 30rpx;
  370. display: flex;
  371. flex-direction: column;
  372. align-items: center;
  373. .bi-image {
  374. width: 38rpx;
  375. height: 34rpx;
  376. }
  377. .bottom-font {
  378. margin-top: 14rpx;
  379. font-size: 24rpx;
  380. font-family: PingFang SC;
  381. font-weight: bold;
  382. color: #333333;
  383. }
  384. .bottom-num {
  385. line-height: 1;
  386. font-size: 24rpx;
  387. font-family: PingFang SC;
  388. font-weight: bold;
  389. color: #333333;
  390. }
  391. }
  392. .shu {
  393. margin-left: 20rpx;
  394. width: 2px;
  395. height: 74rpx;
  396. background: #c0bfc0;
  397. }
  398. .btn {
  399. margin-left: 40rpx;
  400. width: 430rpx;
  401. height: 80rpx;
  402. background: #fd3b39;
  403. border-radius: 20rpx;
  404. text-align: center;
  405. font-size: 34rpx;
  406. font-family: PingFang SC;
  407. font-weight: bold;
  408. color: #ffffff;
  409. line-height: 80rpx;
  410. }
  411. }
  412. </style>