index.vue 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461
  1. <template>
  2. <!-- 充值套餐 -->
  3. <view class="mall-recharge">
  4. <view class="white-box">
  5. <view class="account-text">充值账号</view>
  6. <u-input class="account-name" v-model="phone" type="text" placeholder="请输入手机号" :customStyle="{ padding: '0'}" clearable></u-input>
  7. </view>
  8. <view class="list-title flex aic">
  9. <span class="title-line"></span>
  10. 您选择的游戏币套餐
  11. </view>
  12. <view class="order-info">
  13. <view class="info-top">
  14. <view class="top-nums flex jcsb aic">
  15. <view>
  16. <span class="yxb-num">888</span>
  17. <span class="yxb-text">游戏币</span>
  18. </view>
  19. <view>
  20. <span class="price-text">¥</span>
  21. <span class="price-num"></span>
  22. </view>
  23. </view>
  24. <view class="info-msg flex jcsb aic">
  25. <view class="msg-left">
  26. <span class="zeng ${additionalGameCurrency || grabTimes || trafficSize ? 'show' : 'hide'}">赠</span>
  27. <span class="${additionalGameCurrency ? 'show' : 'hide'}">
  28. <span class="game-num">1000</span>游戏币
  29. </span>
  30. <!-- <span class="og">
  31. <span class="${additionalGameCurrency && trafficSize ? 'show' : 'hide'}">+</span>
  32. <span class="bold ${trafficSize ? 'show' : 'hide'}">2M</span>
  33. </span> -->
  34. <span class="og red ${grabTimes? '' : 'hide'}">
  35. <span class="${additionalGameCurrency && grabTimes? 'show' : 'hide'}"
  36. style="margin-left:2px">+</span>
  37. <view class="red-box">
  38. <!-- <image class="red_img"/> -->
  39. <span>红包机会x2</span>
  40. </view>
  41. </span>
  42. </view>
  43. <span class="time-text">30天有效</span>
  44. </view>
  45. </view>
  46. <view class="info-btm">
  47. <view class="date-wrapper flex jcsb aic">
  48. <view>立即生效</view>
  49. <view class="date-box">2023年10月23</view>
  50. </view>
  51. <!-- <view class="jubaopen-ctrl margin-top-20 flex jcsb aic jbp">
  52. <view class="jubaop">
  53. <view class="juntop">
  54. <image class="img-4" src="" alt="" />
  55. <span>聚宝盆余额抵扣</span>
  56. <i class="fx-icon icon-wenhao-xianxingyuankuang"></i>
  57. </view>
  58. <view class="dikou">
  59. <span class="gongyou dikoujine"></span>
  60. <span class="kedi kedikoujine"></span>
  61. </view>
  62. <view class="desc">聚宝盆余额整数部分可参与抵扣</view>
  63. </view>
  64. <image class="img-2 check-icon3-i" src="" alt="" />
  65. <span class="check-icon check-icon3"></span>
  66. </view> -->
  67. <!-- <view class="margin-top-30 flex jcsb aic" id="zfbCtrl">
  68. <view class="flex aic">
  69. <image class="img-3" src="" alt="" />
  70. <span>支付宝支付</span>
  71. </view>
  72. <image class="img-2 check-icon2-i" src="" alt="" />
  73. <span class="check-icon check-icon2"></span>
  74. </view> -->
  75. <view class="wx-ctrl flex jcsb aic">
  76. <view class="flex aic">
  77. <re-image width="48" height="48" imgSrc="/retail/mall/weixin-icon.png" alt="" />
  78. <span style="margin-left:16rpx">微信支付</span>
  79. </view>
  80. <re-image width="48" height="48" imgSrc="/retail/mall/yigou.png" alt="" />
  81. <span class="check-icon check-icon1"></span>
  82. </view>
  83. </view>
  84. </view>
  85. <!-- 支付按钮 -->
  86. <view class="btn-wrapper">
  87. <view id="checkBox" class="margin-bottom-17">
  88. <view class="check-text text-center">点击“确认支付”,即代表您已阅读并同意<span id="agreeEl" class="red">《用户购买协议》</span></view>
  89. </view>
  90. <view class="btns flex jcsb aic safe-area-inset-bottom">
  91. <view>
  92. <span class="btn-price-text1">应付款:</span>
  93. <span class="btn-price-text2">¥</span>
  94. <span class="price-num btn-price-num"></span>
  95. </view>
  96. <u-button class="primary-btn" id="buyBtn">确认支付</u-button>
  97. </view>
  98. </view>
  99. </view>
  100. </template>
  101. <script>
  102. export default{
  103. // components:{
  104. // 'u-input': () => import('@/plugins/uview-ui/components/u-input')
  105. // }
  106. data(){
  107. return{
  108. phone:''
  109. }
  110. }
  111. }
  112. // const data = reactive({
  113. // })
  114. </script>
  115. <style lang="scss">
  116. .mall-recharge {
  117. padding: 32rpx;
  118. .white-box {
  119. padding: 48rpx 48rpx 56rpx;
  120. background-color: #fff;
  121. border-radius: 32rpx;
  122. .account-text {
  123. font-size: 32rpx;
  124. font-weight: 500;
  125. color: #2C2B28;
  126. line-height: 14rpx;
  127. margin-bottom: 40rpx;
  128. }
  129. .account-name {
  130. // color: #2C2B28;
  131. // font-weight: bold;
  132. // font-size: 28rpx;
  133. // line-height: 32rpx;
  134. }
  135. }
  136. .list-title {
  137. color: #363531;
  138. font-weight: bold;
  139. font-size: 36rpx;
  140. line-height: 36rpx;
  141. margin: 48rpx 0 32rpx;
  142. .title-line {
  143. width: 8rpx;
  144. height: 32rpx;
  145. background-color: #FF8800;
  146. margin-right: 10rpx;
  147. }
  148. }
  149. .order-info {
  150. background-color: #fff;
  151. border-radius: 32rpx;
  152. .info-top {
  153. padding: 40rpx;
  154. border-bottom: 1rpx solid #E8E8E8;
  155. }
  156. .top-nums {
  157. font-weight: bold;
  158. color: #2C2B28;
  159. .yxb-num {
  160. font-size: 48rpx;
  161. }
  162. .yxb-text {
  163. font-size: 24rpx;
  164. color: #564C47;
  165. }
  166. .price-num {
  167. font-size: 48rpx;
  168. }
  169. .price-text {
  170. font-size: 28rpx;
  171. }
  172. }
  173. .info-msg {
  174. margin-top: 32rpx;
  175. font-size: 32rpx;
  176. color: #2C2B28;
  177. font-weight: bold;
  178. white-space: nowrap;
  179. .msg-left {
  180. width: calc(100% - 142rpx);
  181. display: flex;
  182. align-items: center;
  183. font-weight: normal;
  184. font-size: 32rpx;
  185. .game-num{
  186. font-weight: bold;
  187. }
  188. }
  189. .red {
  190. display: flex;
  191. align-items: center;
  192. .red-box {
  193. display: flex;
  194. align-items: center;
  195. }
  196. }
  197. .og {
  198. color: #FF7C00;
  199. }
  200. .time-text {
  201. font-size: 24rpx;
  202. color: #564C47;
  203. font-weight: normal;
  204. }
  205. .zeng {
  206. flex-shrink: 0;
  207. display: inline-block;
  208. background-color: #5CB020;
  209. width: 40rpx;
  210. height: 32rpx;
  211. line-height: 32rpx;
  212. color: #fff;
  213. font-size: 24rpx;
  214. border-radius: 8rpx;
  215. text-align: center;
  216. font-weight: normal;
  217. margin-right: 6rpx;
  218. }
  219. .show {
  220. display: inline-block;
  221. vertical-align: middle;
  222. }
  223. .hide {
  224. display: none;
  225. }
  226. }
  227. }
  228. // .info-msg {
  229. // margin-top: 16rpx;
  230. // font-size: 16rpx;
  231. // color: #2C2B28;
  232. // font-weight: bold;
  233. // .msg-left {
  234. // width: calc(100% - 150rpx);
  235. // display: flex;
  236. // align-items: center;
  237. // font-weight: normal;
  238. // font-size: 12rpx;
  239. // }
  240. // .red {
  241. // display: flex;
  242. // align-items: center;
  243. // .red-box {
  244. // display: flex;
  245. // align-items: center;
  246. // }
  247. // }
  248. // .og {
  249. // color: #FF7C00;
  250. // }
  251. // .time-text {
  252. // font-size: 12rpx;
  253. // color: #564C47;
  254. // font-weight: normal;
  255. // }
  256. // .zeng {
  257. // display: inline-block;
  258. // background-color: #5CB020;
  259. // width: 20rpx;
  260. // height: 16rpx;
  261. // line-height: 16rpx;
  262. // color: #fff;
  263. // font-size: 12rpx;
  264. // border-radius: 4rpx;
  265. // text-align: center;
  266. // font-weight: normal;
  267. // margin-right: 3rpx;
  268. // }
  269. // .show {
  270. // display: inline-block;
  271. // vertical-align: middle;
  272. // }
  273. // .hide {
  274. // display: none;
  275. // }
  276. // }
  277. .info-btm {
  278. padding: 40rpx;
  279. font-size: 32rpx;
  280. color: #2C2B28;
  281. font-weight: 500;
  282. .date-wrapper{
  283. }
  284. .wx-ctrl{
  285. margin-top: 78rpx;
  286. .check-icon1-i{
  287. width: 48rpx;
  288. height: 48rpx;
  289. }
  290. }
  291. .margin-top-40 {
  292. margin-top: 40rpx;
  293. }
  294. .margin-top-30 {
  295. margin-top: 30rpx;
  296. }
  297. .margin-top-20 {
  298. margin-top: 20rpx;
  299. }
  300. img {
  301. width: 24rpx;
  302. height: 24rpx;
  303. }
  304. .img-1 {
  305. margin-right: 16rpx;
  306. }
  307. .img-4 {
  308. margin-right: 16rpx;
  309. }
  310. .img-3 {
  311. margin-right: 16rpx;
  312. transform: scale(0.9);
  313. }
  314. .check-icon {
  315. width: 40rpx;
  316. height: 40rpx;
  317. border: 1rpx solid #bbb;
  318. border-radius: 100%;
  319. margin-right: 2rpx;
  320. }
  321. .jbp {
  322. padding: 10rpx 0rpx 10rpx 0rpx;
  323. border-bottom: 1rpx solid #E8E8E8;
  324. }
  325. .dikou {
  326. // height: 42rpx;
  327. // float:left;
  328. // position:absolute;
  329. // margin-top: 70rpx;
  330. margin-left: 30rpx;
  331. .gongyou {
  332. font-weight: normal;
  333. font-size: 28px;
  334. color: #8B8B8B;
  335. }
  336. .kedi {
  337. font-weight: normal;
  338. font-size: 28px;
  339. color: #FF7C00;
  340. }
  341. }
  342. }
  343. .btn-wrapper {
  344. position: fixed;
  345. left: 0;
  346. bottom: 0;
  347. right: 0;
  348. padding: 24rpx 32rpx 0;
  349. z-index: 200;
  350. background-color: rgb(252, 252, 252);
  351. border-top: 1rpx solid #eee;
  352. box-shadow: 0rpx -4rpx 8rpx 0rpx rgba(109,84,52,0.19);
  353. .btn-price-text1 {
  354. color: #2C2B28;
  355. font-size: 32rpx;
  356. font-weight: bold;
  357. }
  358. .btn-price-text2 {
  359. color: #FF6400;
  360. font-size: 32rpx;
  361. font-weight: bold;
  362. }
  363. .btn-price-num {
  364. font-size: 48rpx;
  365. color: #FF6400;
  366. font-weight: bold;
  367. }
  368. .fx-icon {
  369. font-size: 32rpx;
  370. margin-right: 12rpx;
  371. &.check-icon1 {
  372. color: #281A13;
  373. }
  374. &.check-icon2 {
  375. color: #0087fb;
  376. }
  377. &.check-icon3 {
  378. color: #0087fb;
  379. }
  380. }
  381. .check-text {
  382. color: #281A13;
  383. font-size: 24rpx;
  384. .red {
  385. color: #FF6400;
  386. }
  387. }
  388. .btns{
  389. margin-top: 24rpx;
  390. }
  391. .primary-btn {
  392. width: 296rpx;
  393. height: 96rpx;
  394. font-size: 36rpx;
  395. color: #FFFFFF;
  396. background: linear-gradient(140deg, #FF8500 0%, #FFA600 100%);
  397. border-radius: 48rpx;
  398. font-weight: bold;
  399. margin: 0;
  400. }
  401. }
  402. }
  403. </style>