order_confirm.vue 19 KB

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