pingOrder.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795
  1. <template>
  2. <view>
  3. <navigator url="/pages/address/address?source=1" class="address-section">
  4. <view class="order-content" v-if="addressData.real_name">
  5. <text class="iconfont iconlocation"></text>
  6. <view class="cen">
  7. <view class="top">
  8. <text class="name">{{ addressData.real_name }}</text>
  9. <text class="mobile">{{ addressData.phone }}</text>
  10. </view>
  11. <text class="address">{{ addressData.province + addressData.city + addressData.district }} {{ addressData.detail }}</text>
  12. </view>
  13. <text class="iconfont iconenter"></text>
  14. </view>
  15. <view class="order-content" v-if="!addressData.real_name">
  16. <view class="addAddress">
  17. <text class="iconfont iconaddition"></text>
  18. <text>添加收货地址</text>
  19. </view>
  20. </view>
  21. <image class="a-bg" :src="addressImg"></image>
  22. </navigator>
  23. <view class="goods-section">
  24. <!-- 商品列表 -->
  25. <view class="g-item" v-if="shopList.data">
  26. <image :src="shopList.data.background_image"></image>
  27. <view class="right">
  28. <text class="title clamp">{{ shopList.data.name }}</text>
  29. <view class="price-box">
  30. <text class="price">{{
  31. shopList.data.cost_money_type === shopList.data.cost_2_money_type
  32. ? shopList.data.cost * 1 + shopList.data.cost_money_type_name
  33. : shopList.data.cost * 1 + shopList.data.cost_money_type_name + '/' + shopList.data.cost_2 * 1 + shopList.data.cost_2_money_type_name
  34. }}</text>
  35. <text class="number">{{ 'x ' + 1 }}</text>
  36. </view>
  37. </view>
  38. </view>
  39. </view>
  40. <!-- 金额明细 -->
  41. <view class="yt-list" v-if="shopList.data">
  42. <view class="yt-list-cell b-b">
  43. <text class="cell-tit clamp">门票</text>
  44. <text class="cell-tip">{{ shopList.data.ticket * 1 }}{{ shopList.data.ticket_money_type_name }}</text>
  45. </view>
  46. </view>
  47. <view class="yt-list" v-if="shopList.data">
  48. <view class="yt-list-cell b-b">
  49. <text class="cell-tit clamp">商品金额</text>
  50. <text class="cell-tip">
  51. {{
  52. shopList.data.cost_money_type === shopList.data.cost_2_money_type
  53. ? shopList.data.cost * 1 + shopList.data.cost_money_type_name
  54. : shopList.data.cost * 1 + shopList.data.cost_money_type_name + '/' + shopList.data.cost_2 * 1 + shopList.data.cost_2_money_type_name
  55. }}
  56. </text>
  57. </view>
  58. </view>
  59. <!-- 底部 -->
  60. <view class="footer">
  61. <view class="price-content clamp"></view>
  62. <text class="submit" :class="{ submitNo: !payType }" @click="payType ? submit(shopList) : ''">提交订单</text>
  63. </view>
  64. <u-popup v-model="numshow" mode="bottom" border-radius="40" height="868rpx" :closeable="true">
  65. <view class="yugo">
  66. <view class="Type flex">
  67. <view class="moneyName clamp" @click="moneyshow = true">{{ moneyType[index].text }}</view>
  68. <u-icon name="arrow-down-fill" color="#0F253A" size="10"></u-icon>
  69. </view>
  70. <view class="zhu">
  71. 注:每轮限购1组,每组限购1份
  72. <span class="zhu-right">
  73. 最多可预约:
  74. <span class="zhu-num">1份</span>
  75. </span>
  76. </view>
  77. <view class="info-main">
  78. <view class="info-box">
  79. <view class="info-left">预约份数:</view>
  80. <view class="info-right"><u-number-box :max="max" v-model="value" @change="valChange"></u-number-box></view>
  81. </view>
  82. <view class="info-box">
  83. <view class="info-left">预约金额:</view>
  84. <view class="info-right">{{ moneyType[index].money * 1 }}{{ moneyType[index].text }}</view>
  85. </view>
  86. <view class="info-box">
  87. <view class="info-left">预约门票:</view>
  88. <view class="info-right">{{ souxu }}</view>
  89. </view>
  90. </view>
  91. <view class="btn" @click="buy()">确定</view>
  92. </view>
  93. </u-popup>
  94. <u-popup v-model="show1" mode="center" width="548rpx" border-radius="14">
  95. <view class="psw-wrapper">
  96. <view class="psw-title">请输入支付密码</view>
  97. <input type="password" v-model="password" class="psw-ipt" />
  98. <view class="psw-btn">
  99. <text @click="cancel">取消</text>
  100. <text class="psw-qd" @click="pswQd">确定</text>
  101. </view>
  102. </view>
  103. </u-popup>
  104. <u-action-sheet :list="moneyType" v-model="moneyshow" @click="changeIndex"></u-action-sheet>
  105. </view>
  106. </template>
  107. <script>
  108. import { lalaDetial, buylala } from '@/api/product.js';
  109. export default {
  110. data() {
  111. return {
  112. addressImg:
  113. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAu4AAAAFCAYAAAAaAWmiAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS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nz6B/u4t9I+U9cYCH81hddoFuBG4bxNq7v9xSfh+G/H9wKkIwF5JkR38fF3VLb73dDXhpsYS8P0Vxve7MZ14E04EkX2SumDj40Lkjz2LS9x1nZVqcK1rh1L/GaiZDB1GYwGPRi9+sA4r63odGEjAoKTZS0mTwUtoS2sTPioc1jd64KJqNZXRP9EtLFrLT5KQOd6H1JtvQ/SUQ1CUC1Z/tjp5MgXn51bAfc1VpAUVb6pqi+bsqRlrOB0ITSI0kUa1IvF7JcribPbxZnt9BYIeBZm0ap1BO2yHLMOIxjH111chmDocXg9XzZFR4fD74e5cA9GtQEulbLGbfaNMvv4+BfG3hiet9wxlUeDGdDPn68uqXVgVKKezbiBN/HHYoTnrqlORkDx0BHr/ABzVVbknbZysZ3wnRVyda6HU1UIjvpt28p2C+T+GEtYeeEh3jqcdKjl2BcWY65q9UAQb+c6+k3iePnaS+P5Pq8spOJ38fJ09RVI1OFuWo6xtJXSD+J6xh++OHN8PEt8HxtNY4pbAczC+m2Rnh8V3J9Q0Fa4LeG97YQdehj4aoSL9NZiZNMTKStp6g5/x5NsW37vWQaS1WXzPHvjihzYS/lgshbeJ75WySHm7wNXXk8SbK/xutOX4ntHtYRxE0eJn6uARaGf6ie++7GPNxVkf/78AAwCn1+RYqusbZQAAAABJRU5ErkJggg==',
  114. // 收货地址
  115. addressData: {},
  116. // 商品列表
  117. shopList: [],
  118. index: 0, //判断支付方式是那个
  119. payType: true, //是否可支付
  120. id: '',
  121. numshow: false, //支付数量
  122. show1: false, //支付密码
  123. moneyType: [{ text: '' }], //支付方式选择
  124. moneyshow: false, //支付方式开关
  125. money: '',
  126. souxu: '',
  127. value: 1,
  128. password: '',
  129. max: 1
  130. };
  131. },
  132. onLoad(option) {
  133. this.id = option.id;
  134. this.loadData();
  135. },
  136. methods: {
  137. async loadData() {
  138. let obj = this;
  139. lalaDetial({}, obj.id).then(({ data }) => {
  140. obj.shopList = data;
  141. obj.moneyType = [];
  142. if (data.data.cost_money_type != data.data.cost_2_money_type) {
  143. let type1 = {};
  144. let type2 = {};
  145. type1.code = data.data.cost_money_type
  146. type1.text = data.data.cost_money_type_name;
  147. type1.money = data.data.cost;
  148. obj.moneyType[0] = type1;
  149. type2.code = data.data.cost_2_money_type
  150. type2.text = data.data.cost_2_money_type_name;
  151. type2.money = data.data.cost_2;
  152. obj.moneyType[1] = type2;
  153. } else {
  154. let type1 = '';
  155. type1.code = data.data.cost_money_type
  156. type1.text = data.data.cost_money_type_name;
  157. type1.money = data.data.cost;
  158. obj.moneyType[0] = type1;
  159. }
  160. console.log(obj.moneyType);
  161. });
  162. },
  163. submit(item) {
  164. console.log(item,'123456');
  165. this.money = 1 * item.data.cost + item.data.cost_money_type;
  166. this.souxu = 1 * item.data.ticket + item.data.ticket_money_type_name;
  167. this.index = 1;
  168. this.numshow = true;
  169. },
  170. changeIndex(e) {
  171. console.log(e);
  172. this.index = e;
  173. },
  174. cancel() {
  175. this.password = '';
  176. this.show1 = false;
  177. },
  178. valChange(e) {
  179. console.log(e);
  180. if (this.value > 1) {
  181. e.value = 1;
  182. this.value = 1;
  183. console.log(this.value);
  184. this.$api.msg('每组限购一份');
  185. }
  186. },
  187. pswQd() {
  188. const obj = this;
  189. buylala(
  190. {
  191. trade_psw: this.password,
  192. cost_type: this.moneyType[this.index].code
  193. },
  194. this.id
  195. )
  196. .then(e => {
  197. this.password = '';
  198. this.show1 = false;
  199. this.$api.msg('参与拼购成功');
  200. })
  201. .catch(e => {
  202. this.password = '';
  203. this.show1 = false;
  204. console.log(e);
  205. });
  206. },
  207. buy() {
  208. if (this.value == 0) {
  209. this.$api.msg('预约份数不能为0');
  210. } else {
  211. this.numshow = false;
  212. this.show1 = true;
  213. }
  214. }
  215. }
  216. };
  217. </script>
  218. <style lang="scss">
  219. page {
  220. background: $page-color-base;
  221. padding-bottom: 100rpx;
  222. }
  223. .navbar {
  224. display: flex;
  225. height: 80rpx;
  226. padding: 0 5px;
  227. background: #fff;
  228. box-shadow: 0 2rpx 10rpx rgba(0, 0, 0, 0.06);
  229. position: relative;
  230. z-index: 10;
  231. .nav-item {
  232. flex: 1;
  233. display: flex;
  234. justify-content: center;
  235. align-items: center;
  236. height: 100%;
  237. font-size: $font-lg + 4rpx;
  238. color: $font-color-dark;
  239. position: relative;
  240. &.current {
  241. color: $base-color;
  242. &:after {
  243. content: '';
  244. position: absolute;
  245. left: 50%;
  246. bottom: 0;
  247. transform: translateX(-50%);
  248. width: 140rpx;
  249. height: 0;
  250. border-bottom: 2px solid $base-color;
  251. }
  252. }
  253. }
  254. }
  255. .address-section {
  256. padding: 30rpx 0;
  257. background: #fff;
  258. position: relative;
  259. border-top: 1px solid $border-color-light;
  260. .order-content {
  261. min-height: 100rpx;
  262. display: flex;
  263. align-items: center;
  264. .addAddress {
  265. text-align: center;
  266. width: 100%;
  267. display: flex;
  268. justify-content: center;
  269. align-items: center;
  270. .iconaddition {
  271. font-size: 55rpx;
  272. line-height: 1;
  273. border-radius: 100rpx;
  274. margin-right: 20rpx;
  275. }
  276. }
  277. }
  278. .iconlocation {
  279. flex-shrink: 0;
  280. display: flex;
  281. align-items: center;
  282. justify-content: center;
  283. width: 90rpx;
  284. color: #888;
  285. font-size: 44rpx;
  286. }
  287. .cen {
  288. display: flex;
  289. flex-direction: column;
  290. flex: 1;
  291. font-size: 28rpx;
  292. color: $font-color-dark;
  293. }
  294. .name {
  295. font-size: 34rpx;
  296. margin-right: 24rpx;
  297. }
  298. .address {
  299. margin-top: 16rpx;
  300. margin-right: 20rpx;
  301. color: $font-color-light;
  302. }
  303. .icon-you {
  304. font-size: 32rpx;
  305. color: $font-color-light;
  306. margin-right: 30rpx;
  307. }
  308. .a-bg {
  309. position: absolute;
  310. left: 0;
  311. bottom: 0;
  312. display: block;
  313. width: 100%;
  314. height: 5rpx;
  315. }
  316. }
  317. .goods-section {
  318. margin-top: 16rpx;
  319. background: #fff;
  320. padding-bottom: 1px;
  321. .g-header {
  322. display: flex;
  323. align-items: center;
  324. height: 84rpx;
  325. padding: 0 30rpx;
  326. position: relative;
  327. }
  328. .logo {
  329. display: block;
  330. width: 50rpx;
  331. height: 50rpx;
  332. border-radius: 100px;
  333. }
  334. .name {
  335. font-size: 30rpx;
  336. color: $font-color-base;
  337. margin-left: 24rpx;
  338. }
  339. .g-item {
  340. display: flex;
  341. margin: 20rpx 30rpx;
  342. image {
  343. flex-shrink: 0;
  344. display: block;
  345. width: 140rpx;
  346. height: 140rpx;
  347. border-radius: 4rpx;
  348. }
  349. .right {
  350. flex: 1;
  351. padding-left: 24rpx;
  352. overflow: hidden;
  353. }
  354. .title {
  355. font-size: 30rpx;
  356. color: $font-color-dark;
  357. }
  358. .spec {
  359. font-size: 26rpx;
  360. color: $font-color-light;
  361. }
  362. .price-box {
  363. display: flex;
  364. align-items: center;
  365. font-size: 32rpx;
  366. color: $font-color-dark;
  367. padding-top: 10rpx;
  368. .price {
  369. margin-bottom: 4rpx;
  370. color: $color-red;
  371. }
  372. .number {
  373. font-size: 26rpx;
  374. color: $font-color-base;
  375. margin-left: 20rpx;
  376. }
  377. }
  378. .step-box {
  379. position: relative;
  380. }
  381. }
  382. }
  383. .yt-list {
  384. margin-top: 16rpx;
  385. background: #fff;
  386. }
  387. .yt-list-cell {
  388. display: flex;
  389. align-items: center;
  390. padding: 10rpx 30rpx 10rpx 40rpx;
  391. line-height: 70rpx;
  392. position: relative;
  393. &.cell-hover {
  394. background: #fafafa;
  395. }
  396. &.b-b:after {
  397. left: 30rpx;
  398. }
  399. .cell-icon {
  400. height: 32rpx;
  401. width: 32rpx;
  402. font-size: 22rpx;
  403. color: #fff;
  404. text-align: center;
  405. line-height: 32rpx;
  406. background: #f85e52;
  407. border-radius: 4rpx;
  408. margin-right: 12rpx;
  409. &.hb {
  410. background: #ffaa0e;
  411. }
  412. &.lpk {
  413. background: #3ab54a;
  414. }
  415. }
  416. .cell-more {
  417. align-self: center;
  418. font-size: 24rpx;
  419. color: $font-color-light;
  420. margin-left: 8rpx;
  421. margin-right: -10rpx;
  422. }
  423. .cell-tit {
  424. flex: 1;
  425. font-size: 26rpx;
  426. color: $font-color-light;
  427. margin-right: 10rpx;
  428. }
  429. .cell-tip {
  430. font-size: 26rpx;
  431. color: $font-color-dark;
  432. &.disabled {
  433. color: $font-color-light;
  434. }
  435. &.active {
  436. color: $base-color;
  437. }
  438. &.red {
  439. color: $base-color;
  440. }
  441. }
  442. &.desc-cell {
  443. .cell-tit {
  444. max-width: 90rpx;
  445. }
  446. }
  447. .desc {
  448. flex: 1;
  449. text-align: right;
  450. font-size: $font-base;
  451. color: $font-color-dark;
  452. }
  453. }
  454. /* 支付列表 */
  455. .pay-list {
  456. padding-left: 40rpx;
  457. margin-top: 16rpx;
  458. background: #fff;
  459. .pay-item {
  460. display: flex;
  461. align-items: center;
  462. padding-right: 20rpx;
  463. line-height: 1;
  464. height: 110rpx;
  465. position: relative;
  466. }
  467. .icon-weixinzhifu {
  468. width: 80rpx;
  469. font-size: 40rpx;
  470. color: #6bcc03;
  471. }
  472. .icon-alipay {
  473. width: 80rpx;
  474. font-size: 40rpx;
  475. color: #06b4fd;
  476. }
  477. .icon-xuanzhong2 {
  478. display: flex;
  479. align-items: center;
  480. justify-content: center;
  481. width: 60rpx;
  482. height: 60rpx;
  483. font-size: 40rpx;
  484. color: $base-color;
  485. }
  486. .tit {
  487. font-size: 32rpx;
  488. color: $font-color-dark;
  489. flex: 1;
  490. }
  491. }
  492. .footer {
  493. position: fixed;
  494. left: 0;
  495. bottom: 0;
  496. z-index: 995;
  497. display: flex;
  498. align-items: center;
  499. width: 100%;
  500. height: 90rpx;
  501. justify-content: space-between;
  502. font-size: 30rpx;
  503. background-color: #fff;
  504. z-index: 998;
  505. color: $font-color-base;
  506. box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.1);
  507. .price-content {
  508. padding-left: 30rpx;
  509. }
  510. .price-tip {
  511. color: $font-color-base;
  512. margin-left: 8rpx;
  513. }
  514. .price {
  515. font-size: 36rpx;
  516. color: $font-color-base;
  517. }
  518. .submit {
  519. display: flex;
  520. align-items: center;
  521. justify-content: center;
  522. width: 280rpx;
  523. height: 100%;
  524. color: #fff;
  525. font-size: 32rpx;
  526. background-color: $base-color;
  527. &.submitNo {
  528. background-color: $font-color-disabled;
  529. }
  530. }
  531. }
  532. /* 优惠券面板 */
  533. .mask {
  534. display: flex;
  535. align-items: flex-end;
  536. position: fixed;
  537. left: 0;
  538. top: var(--window-top);
  539. bottom: 0;
  540. width: 100%;
  541. background: rgba(0, 0, 0, 0);
  542. z-index: 9995;
  543. transition: 0.3s;
  544. .mask-content {
  545. width: 100%;
  546. max-height: 70vh;
  547. background: #f3f3f3;
  548. transform: translateY(100%);
  549. transition: 0.3s;
  550. overflow-y: scroll;
  551. }
  552. &.none {
  553. display: none;
  554. }
  555. &.show {
  556. background: rgba(0, 0, 0, 0.4);
  557. .mask-content {
  558. transform: translateY(0);
  559. }
  560. }
  561. }
  562. /* 优惠券列表 */
  563. .coupon-item {
  564. display: flex;
  565. flex-direction: column;
  566. margin: 20rpx 24rpx;
  567. background: #fff;
  568. .con {
  569. display: flex;
  570. align-items: center;
  571. position: relative;
  572. height: 120rpx;
  573. padding: 0 30rpx;
  574. &:after {
  575. position: absolute;
  576. left: 0;
  577. bottom: 0;
  578. content: '';
  579. width: 100%;
  580. height: 0;
  581. border-bottom: 1px dashed #f3f3f3;
  582. transform: scaleY(50%);
  583. }
  584. }
  585. .left {
  586. display: flex;
  587. flex-direction: column;
  588. justify-content: center;
  589. flex: 1;
  590. overflow: hidden;
  591. height: 100rpx;
  592. }
  593. .title {
  594. font-size: 32rpx;
  595. color: $font-color-dark;
  596. margin-bottom: 10rpx;
  597. }
  598. .time {
  599. font-size: 24rpx;
  600. color: $font-color-light;
  601. }
  602. .right {
  603. display: flex;
  604. flex-direction: column;
  605. justify-content: center;
  606. align-items: center;
  607. font-size: 26rpx;
  608. color: $font-color-base;
  609. height: 100rpx;
  610. }
  611. .price {
  612. font-size: 44rpx;
  613. color: $base-color;
  614. &:before {
  615. content: '¥';
  616. font-size: 34rpx;
  617. }
  618. }
  619. .tips {
  620. font-size: 24rpx;
  621. color: $font-color-light;
  622. line-height: 60rpx;
  623. padding-left: 30rpx;
  624. }
  625. .circle {
  626. position: absolute;
  627. left: -6rpx;
  628. bottom: -10rpx;
  629. z-index: 10;
  630. width: 20rpx;
  631. height: 20rpx;
  632. background: #f3f3f3;
  633. border-radius: 100px;
  634. &.r {
  635. left: auto;
  636. right: -6rpx;
  637. }
  638. }
  639. }
  640. .yugo {
  641. padding-top: 80rpx;
  642. position: relative;
  643. height: 100%;
  644. .Type {
  645. border-top: 1px solid #eeeeee;
  646. padding: 20rpx $page-row-spacing;
  647. justify-content: start;
  648. .moneyName {
  649. font-size: 30rpx;
  650. font-weight: 500;
  651. color: $font-color-dark;
  652. margin: 0 20rpx;
  653. }
  654. .input {
  655. flex-grow: 1;
  656. height: 45rpx;
  657. line-height: 45rpx;
  658. margin-left: 40rpx;
  659. color: $font-color-light;
  660. border-bottom: 1px solid $border-color-light;
  661. }
  662. .line {
  663. width: 2rpx;
  664. background-color: $font-color-dark;
  665. margin: 0 10rpx;
  666. height: 30rpx;
  667. }
  668. }
  669. .zhu {
  670. height: 112rpx;
  671. border-top: 1px #eeeeee solid;
  672. border-bottom: 1px #eeeeee solid;
  673. line-height: 112rpx;
  674. padding: 0 32rpx;
  675. font-size: 28rpx;
  676. font-family: PingFang SC;
  677. font-weight: 500;
  678. color: #6d7c88;
  679. .zhu-right {
  680. display: inline-block;
  681. padding-left: 60rpx;
  682. }
  683. .zhu-num {
  684. color: #000000;
  685. }
  686. }
  687. .info-main {
  688. padding: 0 32rpx;
  689. .info-box {
  690. padding-top: 22rpx;
  691. display: flex;
  692. justify-content: space-between;
  693. align-items: center;
  694. .info-left {
  695. font-size: 28rpx;
  696. font-family: PingFang SC;
  697. font-weight: 500;
  698. color: #6d7c88;
  699. }
  700. .info-right {
  701. font-size: 28rpx;
  702. font-family: PingFang SC;
  703. font-weight: 500;
  704. color: #0f253a;
  705. }
  706. }
  707. }
  708. .btn {
  709. position: absolute;
  710. bottom: 50rpx;
  711. left: 50%;
  712. margin-left: -342rpx;
  713. width: 684rpx;
  714. height: 86rpx;
  715. background: linear-gradient(0deg, #2e58ff, #32c6ff);
  716. border-radius: 10rpx;
  717. text-align: center;
  718. line-height: 86rpx;
  719. font-size: 36rpx;
  720. font-family: PingFang SC;
  721. font-weight: 500;
  722. color: #ffffff;
  723. }
  724. }
  725. .psw-wrapper {
  726. width: 548rpx;
  727. height: 344rpx;
  728. background-color: #ffffff;
  729. .psw-title {
  730. width: 100%;
  731. font-size: 35rpx;
  732. padding: 43rpx 0 49rpx;
  733. text-align: center;
  734. font-weight: 800;
  735. }
  736. .psw-ipt {
  737. display: block;
  738. background-color: #dce3ed;
  739. height: 90rpx;
  740. width: 464rpx;
  741. padding-left: 30rpx;
  742. margin: 0 auto;
  743. font-size: 80rpx;
  744. }
  745. .psw-btn text {
  746. display: inline-block;
  747. text-align: center;
  748. width: 50%;
  749. padding-top: 29rpx;
  750. font-size: 35rpx;
  751. }
  752. .psw-qd {
  753. color: $base-color;
  754. }
  755. }
  756. </style>