order_confirm.vue 20 KB

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