order_confirm.vue 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794
  1. <!-- 订单确认页 -->
  2. <template>
  3. <view class="order_confirm" :style="{ background: 'url(' + bgImg + ') #F4F5F9' }">
  4. <view class="all">
  5. <view class="title">您选择的{{ setData.packageName }}</view>
  6. <view class="menu">
  7. <view class="amounts flex jcsb">
  8. <view class="amontl">
  9. <view class="now flex aife">
  10. <text class="dw fs40">¥</text>
  11. <text class="num">{{ setData.currentPrice }}</text>
  12. <text class="unit">/条</text>
  13. </view>
  14. <view class="past flex aic">
  15. <text class="past_text fs28">原价</text>
  16. <text class="past_num fs32">¥{{ setData.originalPrice }}/条</text>
  17. </view>
  18. </view>
  19. <view class="amontr">
  20. <text class="num">{{ strip }}</text>
  21. <text class="unit">条</text>
  22. </view>
  23. </view>
  24. <view class="choose">
  25. <view v-for="(item, index) in setData.selectContents" :key="index"
  26. class="choose_item-box flex aic jcsb">
  27. <view class="choose_item flex aic">
  28. <image :src="guoxuanImg"></image>
  29. <text>{{ item.configKey }}可选 {{ item.count || 0 }} 个</text>
  30. </view>
  31. <view v-if="index == 0" class="choose_item-more flex aic" @click="toDetail">
  32. <text>查看更多</text>
  33. <image :src="moreBImg"></image>
  34. </view>
  35. </view>
  36. </view>
  37. </view>
  38. <view class="choosion">
  39. <view class="name">选择内容</view>
  40. <view class="content">
  41. <view v-for="(item, index) in orderContents" :key="index" class="content_item flex aic jcsb"
  42. @click="chooseScene(item, index)">
  43. <view class="aic flex">
  44. <view class="item_label">{{ item.name }}</view>
  45. <view v-if="item.scenes.length > 0" class="item_num">{{ item.scenes.join('; ') }}</view>
  46. <view v-else class="item_text">{{ setData.packageName }}可选 {{ item.count || 0 }} 个{{
  47. item.name
  48. }}
  49. </view>
  50. </view>
  51. <image class="more_img" :src="moreImg"></image>
  52. </view>
  53. </view>
  54. </view>
  55. <view class="choosion">
  56. <view class="name">支付方式</view>
  57. <view class="content">
  58. <view class="content_item flex aic jcsb">
  59. <view class="aic flex">
  60. <image class="icon_img" :src="weixinImg"></image>
  61. <view class="item_name">微信支付</view>
  62. </view>
  63. <image class="icon_img" :src="guoyuanImg"></image>
  64. </view>
  65. </view>
  66. </view>
  67. <view class="choosion">
  68. <view class="name">收件方式</view>
  69. <view class="content">
  70. <view class="content_item flex aic jcsb">
  71. <view class="aic flex">
  72. <view class="item_label">收件人</view>
  73. <u--input v-model="formData.recipientName" placeholder="输入收件人姓名" fontSize="14"
  74. :customStyle="{ 'margin-left': '48rpx', 'padding': 0 }"></u--input>
  75. </view>
  76. </view>
  77. <view class="content_item flex aic jcsb">
  78. <view class="aic flex">
  79. <view class="item_label">联系电话</view>
  80. <u--input v-model="formData.contactPhone" placeholder="输入手机号码" fontSize="14"
  81. :customStyle="{ 'margin-left': '48rpx', 'padding': 0 }"></u--input>
  82. </view>
  83. </view>
  84. <view class="content_item flex aic jcsb">
  85. <view class="aic flex">
  86. <view class="item_label">收件地址</view>
  87. <u--input v-model="formData.email" placeholder="输入电子邮箱或网盘" fontSize="14"
  88. :customStyle="{ 'margin-left': '48rpx', 'padding': 0 }"></u--input>
  89. </view>
  90. </view>
  91. </view>
  92. </view>
  93. <view class="choosion">
  94. <view class="name">需求相关</view>
  95. <view class="content">
  96. <view class="content_item flex aic jcsb">
  97. <view class="flex">
  98. <view class="item_label">以往案例</view>
  99. <u-upload :fileList="fileList1" @afterRead="afterRead" @delete="deletePic" name="1" multiple
  100. :maxCount="5">
  101. <view class="item_updata">
  102. <image :src="upImg"></image>
  103. <text>上传案例</text>
  104. </view>
  105. </u-upload>
  106. </view>
  107. </view>
  108. <view class="content_item flex aic jcsb">
  109. <view class="flex w100">
  110. <view class="item_label pt18">拍摄需求</view>
  111. <u--textarea v-model="formData.shootingRequirements" placeholder="简单描述您的拍摄需求" count
  112. maxlength="200"></u--textarea>
  113. </view>
  114. </view>
  115. </view>
  116. </view>
  117. <view class="agree">
  118. <text>点击“确认支付”,即代表您已阅读并同意</text>
  119. <text class="agree_text">《用户购买协议》</text>
  120. </view>
  121. </view>
  122. <view class="btom">
  123. <view class="sum">
  124. <text>应付款:</text>
  125. <text class="money">
  126. <text class="unit">¥</text>
  127. {{ numMultiR }}
  128. </text>
  129. </view>
  130. <view class="btn" :style="{ background: 'url(' + buybtnBg + ')' }" @click="submitOrder">立即购买</view>
  131. </view>
  132. <u-popup ref="uPicker" mode="bottom" :loading="loading" :show="isSelect" round="12" @close="close" @open="open"
  133. :customStyle="{ height: '100px' }">
  134. <view class="popup_content safe-area-inset-bottom">
  135. <view class="checkbox">
  136. <u-checkbox-group v-model="checked" placement="column" iconPlacement="right"
  137. @change="checkboxChange">
  138. <u-checkbox v-for="(item, index) in configData" :key="index" :label="item" :name="item"
  139. :customStyle="{ marginBottom: '24px' }" :disabled="isDisabled(item)"></u-checkbox>
  140. </u-checkbox-group>
  141. </view>
  142. <view class="btns flex aic jcsb">
  143. <view class="cancel" @click="close">取消</view>
  144. <view class="confirm" @click="confirm">确认</view>
  145. </view>
  146. </view>
  147. </u-popup>
  148. </view>
  149. </template>
  150. <script>
  151. import {getPackageById, getConfigById, upload, save} from '@/apis/index';
  152. import {baseUrl} from "@/config"
  153. import {numMulti} from '@/utils/calculate'
  154. import wx from 'jweixin-module';
  155. import {getWxBuyConfig} from "../../apis";
  156. export default {
  157. components: {},
  158. data() {
  159. return {
  160. type: '',
  161. fileList1: [],
  162. count: '', //可选数量
  163. strip: '',//条数
  164. packageId: '', //套餐id
  165. setData: {}, // 套餐数据
  166. configData: [], //选择内容数据
  167. loading: false,
  168. isSelect: false,
  169. name: '',
  170. phone: '',
  171. checked: [], //多选
  172. orderContents: [], //选中后的内容
  173. configKey: '',//内容标题
  174. bgImg: "https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/bg_top%403x.png",
  175. guoxuanImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_guoxuan.png',
  176. guoyuanImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_guoxuanyuan.png',
  177. moreBImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_more_black.png',
  178. moreImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_more%403x.png',
  179. weixinImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_weixinzhifu.png',
  180. upImg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_up.png',
  181. buybtnBg: 'https://ovp-shop.oss-cn-hangzhou.aliyuncs.com/static/9dshop/ic_buy.png',
  182. formData: {
  183. recipientName: '',
  184. contactPhone: '',
  185. email: '',
  186. shootingRequirements: '',
  187. }
  188. };
  189. },
  190. computed: {
  191. numMultiR() {
  192. return numMulti(Number(this.setData.currentPrice), Number(this.strip))
  193. }
  194. },
  195. watch: {},
  196. onLoad(options) {
  197. if (options.id) this.packageId = options.id
  198. if (options.strip) this.strip = options.strip
  199. if (options.type) this.type = options.type
  200. this.getPackage()
  201. },
  202. methods: {
  203. toDetail() {
  204. uni.navigateTo({
  205. url: '/pages/index/detail?type=' + this.type
  206. })
  207. },
  208. // 判断当前选项是否应该禁用
  209. isDisabled(value) {
  210. // 已选中6个且当前选项未被选中时禁用
  211. return this.checked.length >= this.count &&
  212. !this.checked.includes(value)
  213. },
  214. // 选择变化时的处理
  215. checkboxChange(values) {
  216. if (values.length > this.count) {
  217. // 如果超过6个,自动截断并提示
  218. this.checked = values.slice(0, thsi.count);
  219. uni.showToast({
  220. title: '最多只能选择6个选项',
  221. icon: 'none'
  222. });
  223. }
  224. },
  225. // 获取套餐内容
  226. getPackage() {
  227. getPackageById({packageId: this.packageId}).then(res => {
  228. this.setData = res
  229. this.orderContents = res.selectContents.map(item => {
  230. return {
  231. name: item.configKey,
  232. configId: item.configId,
  233. count: item.count,
  234. scenes: []
  235. }
  236. })
  237. console.log('orderContents', this.orderContents);
  238. })
  239. },
  240. open() {
  241. console.log('打开');
  242. },
  243. // 选择内容
  244. chooseScene(item, index) {
  245. if (!item.count) {
  246. uni.showToast({
  247. title: '无可选内容',
  248. icon: 'none'
  249. });
  250. return
  251. }
  252. this.loading = true
  253. getConfigById({
  254. packageId: this.packageId,
  255. configId: item.configId
  256. }).then(res => {
  257. this.loading = false
  258. this.count = item.count
  259. console.log(this.checked, this.count, '数量');
  260. this.configData = res
  261. this.configKey = item.name
  262. this.orderContents.map(itm => {
  263. if (itm.name === this.configKey && itm.scenes.length !== 0) {
  264. this.checked = itm.scenes
  265. }
  266. })
  267. this.isSelect = true
  268. })
  269. },
  270. confirm() {
  271. if (this.checked.length < this.count) {
  272. uni.showToast({
  273. title: '至少选择' + this.count + '个选项',
  274. icon: 'none',
  275. });
  276. return
  277. }
  278. this.orderContents.map(item => {
  279. if (item.name === this.configKey) {
  280. item.scenes = this.checked
  281. }
  282. })
  283. this.checked = []
  284. this.isSelect = false
  285. },
  286. close() {
  287. this.isSelect = false
  288. this.checked = []
  289. },
  290. // 删除图片
  291. deletePic(event) {
  292. this[`fileList${event.name}`].splice(event.index, 1);
  293. },
  294. // 新增图片
  295. async afterRead(event) {
  296. // 当设置 multiple 为 true 时, file 为数组格式,否则为对象格式
  297. let lists = [].concat(event.file);
  298. let fileListLen = this[`fileList${event.name}`].length;
  299. lists.map((item) => {
  300. this[`fileList${event.name}`].push({
  301. ...item,
  302. status: "uploading",
  303. message: "上传中",
  304. });
  305. });
  306. for (let i = 0; i < lists.length; i++) {
  307. const result = await this.uploadFilePromise(lists[i].url);
  308. let item = this[`fileList${event.name}`][fileListLen];
  309. this[`fileList${event.name}`].splice(
  310. fileListLen,
  311. 1,
  312. Object.assign({
  313. // status: "success",
  314. // message: "",
  315. url: result,
  316. })
  317. );
  318. fileListLen++;
  319. }
  320. console.log(this.fileList1, 'fileList1');
  321. },
  322. uploadFilePromise(url) {
  323. console.log(url, upload, 'url');
  324. return new Promise((resolve, reject) => {
  325. let a = uni.uploadFile({
  326. url: baseUrl + '/sys/oss/upload', // 仅为示例,非真实的接口地址
  327. filePath: url,
  328. name: "file",
  329. formData: {
  330. user: "test",
  331. },
  332. success: (res) => {
  333. let data = JSON.parse(res.data);
  334. setTimeout(() => {
  335. resolve(data.data.src);
  336. }, 1000);
  337. },
  338. fail: (err) => {
  339. console.log(err, 'err');
  340. reject(err);
  341. },
  342. });
  343. });
  344. },
  345. // 校验选择内容
  346. checkContents() {
  347. // for (const item of this.orderContents){
  348. // if (item.scenes.length === 0) {
  349. // uni.showToast({
  350. // title: '请选择' + item.name,
  351. // icon: 'none',
  352. // });
  353. // return false
  354. // }
  355. // }
  356. // // this.orderContents.map(item => {
  357. // // if (item.scenes.length === 0) {
  358. // // uni.showToast({
  359. // // title: '请选择' + item.name,
  360. // // icon: 'none',
  361. // // });
  362. // // return false
  363. // // }
  364. // // })
  365. // return true
  366. for (const item of this.orderContents) {
  367. if (!item.scenes || item.scenes.length === 0) {
  368. uni.showToast({
  369. title: `请选择${item.name}`,
  370. icon: 'none',
  371. duration: 2000
  372. });
  373. return false; // 校验失败
  374. }
  375. }
  376. return true; // 校验成功
  377. },
  378. // 校验表单
  379. checkForm() {
  380. if (this.formData.recipientName === '' || this.formData.contactPhone === '' || this.formData.email === '') {
  381. uni.showToast({
  382. title: '请填写完整收件方式',
  383. icon: 'none',
  384. });
  385. return false
  386. }
  387. return true; // 校验成功
  388. },
  389. submitOrder() {
  390. getWxBuyConfig({}).then((res) => {
  391. // 检查是否在微信浏览器中
  392. if (typeof WeixinJSBridge === 'undefined') {
  393. if (document.addEventListener) {
  394. document.addEventListener('WeixinJSBridgeReady', () => {
  395. this.invokePayment(res);
  396. }, false);
  397. } else if (document.attachEvent) {
  398. document.attachEvent('WeixinJSBridgeReady', () => {
  399. this.invokePayment(res);
  400. });
  401. document.attachEvent('onWeixinJSBridgeReady', () => {
  402. this.invokePayment(res);
  403. });
  404. }
  405. } else {
  406. this.invokePayment(res);
  407. }
  408. })
  409. },
  410. invokePayment(res) {
  411. WeixinJSBridge.invoke(
  412. 'getBrandWCPayRequest',
  413. {
  414. appId: res.appid,
  415. timeStamp: res.timeStamp,
  416. nonceStr: res.nonceStr,
  417. package: res.packages,
  418. signType: res.signType,
  419. paySign: res.sign
  420. },
  421. (res) => {
  422. if (res.err_msg === 'get_brand_wcpay_request:ok') {
  423. console.log('支付成功');
  424. // 处理支付成功的逻辑,例如跳转到订单完成页面
  425. } else if (res.err_msg === 'get_brand_wcpay_request:cancel') {
  426. console.log('用户取消支付');
  427. // 处理用户取消支付的逻辑
  428. } else {
  429. console.error('支付失败', res.err_msg);
  430. // 处理支付失败的逻辑
  431. }
  432. }
  433. );
  434. },
  435. // 提交订单
  436. submitOrder2() {
  437. return
  438. if (!this.checkContents()) {
  439. return; // 如果校验失败,停止提交
  440. }
  441. // this.checkForm()
  442. if (!this.checkForm()) {
  443. return; // 如果校验失败,停止提交
  444. }
  445. let params = {
  446. packageId: this.packageId,
  447. quantity: this.strip,
  448. unitPrice: this.setData.currentPrice,
  449. totalAmount: this.numMultiR,
  450. packageName: this.setData.packageName,
  451. ...this.formData,
  452. caseFileUrls: this.fileList1.map(item => {
  453. return item.url
  454. }),
  455. orderContents: JSON.stringify(this.orderContents),
  456. }
  457. save(params).then(res => {
  458. console.log(res, 'res');
  459. })
  460. }
  461. },
  462. created() {
  463. },
  464. mounted() {
  465. },
  466. }
  467. </script>
  468. <style lang="scss">
  469. uni-toast {
  470. z-index: 99999 !important;
  471. }
  472. </style>
  473. <style lang='scss' scoped>
  474. .order_confirm {
  475. width: 100%;
  476. position: absolute;
  477. top: 0;
  478. bottom: 0;
  479. display: flex;
  480. flex-direction: column;
  481. background-size: contain !important;
  482. background-repeat: no-repeat !important;
  483. background-position: top;
  484. .all {
  485. padding: 0 24 rpx;
  486. flex: 1;
  487. overflow: auto;
  488. .title {
  489. font-weight: 500;
  490. font-size: 36 rpx;
  491. color: #0D121A;
  492. margin: 48 rpx 0 40 rpx;
  493. text-align: center;
  494. }
  495. .menu {
  496. width: 100%;
  497. background: linear-gradient(180deg, #E4F8FF 0%, #FFFFFF 100%);
  498. border-radius: 24 rpx;
  499. border: 2 rpx solid #FFFFFF;
  500. padding: 64 rpx 48 rpx;
  501. .amounts {
  502. .now {
  503. font-size: 32 rpx;
  504. color: #0D121A;
  505. .dw {
  506. line-height: 40 rpx;
  507. }
  508. .limit {
  509. margin-left: 24 rpx;
  510. width: 72 rpx;
  511. height: 40 rpx;
  512. background: linear-gradient(144deg, #00C1FF 0%, #2FFFFC 100%);
  513. border-radius: 8 rpx;
  514. font-weight: 500;
  515. font-size: 24 rpx;
  516. color: #0D121A;
  517. text-align: center;
  518. line-height: 40 rpx;
  519. }
  520. }
  521. .num {
  522. font-size: 72 rpx;
  523. line-height: 56 rpx;
  524. font-weight: bold;
  525. }
  526. .unit {
  527. margin-left: 8px;
  528. }
  529. .past {
  530. color: #0D121A;
  531. margin-top: 34 rpx;
  532. .past_text {
  533. margin-right: 8 rpx;
  534. }
  535. }
  536. }
  537. .choose {
  538. margin-top: 64 rpx;
  539. .choose_item-box {
  540. margin-top: 16 rpx;
  541. image {
  542. width: 48 rpx;
  543. height: 48 rpx;
  544. margin-right: 24 rpx;
  545. }
  546. text {
  547. color: #0D121A;
  548. font-size: 28 rpx;
  549. }
  550. }
  551. .choose_item-more {
  552. text {
  553. font-size: 28 rpx;
  554. color: #0D121A;
  555. }
  556. image {
  557. width: 32 rpx;
  558. height: 32 rpx;
  559. margin-left: 12 rpx;
  560. }
  561. }
  562. .choose_item-box:nth-child(1) {
  563. margin-top: 0;
  564. }
  565. }
  566. }
  567. .choosion {
  568. .name {
  569. font-weight: 400;
  570. font-size: 28 rpx;
  571. color: #9EA3B1;
  572. margin: 32 rpx 0 20 rpx 32 rpx;
  573. }
  574. .content {
  575. background-color: #FFFFFF;
  576. border-radius: 24 rpx;
  577. .content_item {
  578. padding: 36 rpx 32 rpx;
  579. .item_updata {
  580. width: 168 rpx;
  581. height: 168 rpx;
  582. background: #F4F5F9;
  583. border-radius: 16 rpx;
  584. display: flex;
  585. flex-direction: column;
  586. align-items: center;
  587. justify-content: center;
  588. // margin-left: 48rpx;
  589. image {
  590. width: 56 rpx;
  591. height: 56 rpx;
  592. }
  593. text {
  594. color: #9EA3B1;
  595. font-weight: 400;
  596. font-size: 24 rpx;
  597. }
  598. }
  599. .item_label {
  600. font-weight: 500;
  601. font-size: 28 rpx;
  602. color: #0D121A;
  603. min-width: 150 rpx;
  604. white-space: nowrap;
  605. }
  606. .item_num {
  607. font-size: 28 rpx;
  608. margin-left: 48 rpx;
  609. }
  610. .item_text {
  611. font-size: 28 rpx;
  612. color: #9EA3B1;
  613. margin-left: 48 rpx;
  614. }
  615. .item_name {
  616. font-size: 28 rpx;
  617. color: #0D121A;
  618. margin-left: 16 rpx;
  619. }
  620. .more_img {
  621. width: 32 rpx;
  622. height: 32 rpx;
  623. flex-shrink: 0;
  624. }
  625. .icon_img {
  626. width: 48 rpx;
  627. height: 48 rpx;
  628. }
  629. input {
  630. height: 0;
  631. }
  632. }
  633. .content_item_input {
  634. }
  635. }
  636. }
  637. .agree {
  638. display: flex;
  639. justify-content: center;
  640. align-items: center;
  641. font-size: 24 rpx;
  642. color: #9EA3B1;
  643. padding: 48 rpx 0 32 rpx;
  644. .agree_text {
  645. color: #0D121A;
  646. }
  647. }
  648. }
  649. .btom {
  650. background: #FFFFFF;
  651. flex-shrink: 1;
  652. display: flex;
  653. justify-content: space-between;
  654. align-items: center;
  655. padding: 16 rpx 24 rpx;
  656. padding-bottom: calc(16rpx + constant(safe-area-inset-bottom)) !important;
  657. padding-bottom: calc(16rpx + env(safe-area-inset-bottom)) !important;
  658. .sum {
  659. font-weight: 400;
  660. font-size: 30 rpx;
  661. color: #0D121A;
  662. .money {
  663. font-size: 56 rpx;
  664. color: #0D121A;
  665. }
  666. .unit {
  667. font-size: 40 rpx;
  668. }
  669. }
  670. .btn {
  671. width: 312 rpx;
  672. height: 84 rpx;
  673. display: flex;
  674. justify-content: center;
  675. align-items: center;
  676. font-weight: bold;
  677. font-size: 32 rpx;
  678. color: #0D121A;
  679. background-size: 100% 100% !important;
  680. }
  681. }
  682. .pt18 {
  683. padding-top: 18 rpx;
  684. }
  685. .popup_content {
  686. padding: 32 rpx;
  687. max-height: 1000 rpx;
  688. display: flex;
  689. flex-direction: column;
  690. .checkbox {
  691. flex: 1;
  692. overflow: auto;
  693. }
  694. .btns {
  695. flex-shrink: 1;
  696. }
  697. }
  698. .btns {
  699. padding: 0 0 16 rpx;
  700. color: #0D121A;
  701. .cancel {
  702. width: 45%;
  703. height: 84 rpx;
  704. background: #FFFFFF;
  705. border-radius: 16 rpx;
  706. display: flex;
  707. justify-content: center;
  708. align-items: center;
  709. border: #9EA3B1 1px solid;
  710. }
  711. .confirm {
  712. width: 45%;
  713. height: 84 rpx;
  714. border-radius: 16 rpx;
  715. display: flex;
  716. justify-content: center;
  717. align-items: center;
  718. background: linear-gradient(144deg, #00C1FF 0%, #2FFFFC 100%);
  719. }
  720. }
  721. .u-popup {
  722. flex: 0;
  723. z-index: 999;
  724. }
  725. }
  726. </style>