makeOut.vue 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871
  1. <template>
  2. <view class="scenic-makeOut">
  3. <u--form
  4. labelPosition="left"
  5. :model="form"
  6. ref="uForm"
  7. labelWidth="150rpx"
  8. >
  9. <view class="content info">
  10. <view class="title">
  11. {{ticketInfo.productName}}
  12. </view>
  13. <view class="notice" @click="showNotice = true">
  14. <view class="text">
  15. 预定须知
  16. </view>
  17. <image class="jiantou" src="../static/right.png" mode=""></image>
  18. </view>
  19. <u-form-item
  20. label="出游日期"
  21. borderBottom
  22. ref="startTime"
  23. required
  24. prop="startTime"
  25. >
  26. <view class="time-box" @click="chooseTime">
  27. {{form.startTime}}
  28. <image class="right-icon" src="../static/right.png" mode=""></image>
  29. </view>
  30. </u-form-item>
  31. <view class="signUp-box">
  32. <view class="label-box">
  33. <view class="label">
  34. 报名人数
  35. </view>
  36. <view class="desc">
  37. (最多10张)
  38. </view>
  39. </view>
  40. <view class="num-box">
  41. <view class="btn" :class="[form.bookNumber == 1?'disabled':'']" @click="add(-1)">
  42. -
  43. </view>
  44. <view class="num">
  45. {{form.bookNumber}}
  46. </view>
  47. <view class="btn" :class="[form.bookNumber == 10?'disabled':'']" @click="add(1)">
  48. +
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. <view class="content ">
  54. <view class="sub-title">
  55. 取票人信息
  56. </view>
  57. <u-form-item
  58. label="姓名"
  59. borderBottom
  60. ref="item1"
  61. prop="contact.contactName"
  62. required
  63. >
  64. <u--input
  65. v-model="form.contact.contactName"
  66. border="none"
  67. placeholder="请输入姓名"
  68. ></u--input>
  69. </u-form-item>
  70. <u-form-item
  71. label="手机号"
  72. borderBottom
  73. ref="item1"
  74. prop="contact.contactTel"
  75. required
  76. >
  77. <u--input
  78. v-model="form.contact.contactTel"
  79. border="none"
  80. :maxlength="11"
  81. placeholder="请输入手机号"
  82. ></u--input>
  83. </u-form-item>
  84. <u-form-item
  85. label="邮箱"
  86. borderBottom
  87. ref="item1"
  88. prop="contact.contactEmail"
  89. required
  90. v-if="ticketInfo.admissionVoucher.admissionVoucherCode == 205 || ticketInfo.admissionVoucher.admissionVoucherCode == 302"
  91. >
  92. <u--input
  93. v-model="form.contact.contactEmail"
  94. border="none"
  95. placeholder="请输入邮箱号"
  96. ></u--input>
  97. </u-form-item>
  98. <u-form-item
  99. label="证件类型"
  100. borderBottom
  101. ref="item1"
  102. :required="showContact"
  103. v-if="showContact"
  104. >
  105. <view class="time-box" @click="chooseType('取票')">
  106. {{form.contact.psptType | filterType(that)}}
  107. <image class="right-icon" src="../static/right.png" mode=""></image>
  108. </view>
  109. </u-form-item>
  110. <u-form-item
  111. label="证件号"
  112. ref="item1"
  113. prop="contact.psptId"
  114. :required="showContact"
  115. v-if="showContact"
  116. >
  117. <u--input
  118. v-model="form.contact.psptId"
  119. border="none"
  120. placeholder="请输入证件号"
  121. :maxlength="18"
  122. ></u--input>
  123. </u-form-item>
  124. </view>
  125. <view class="content" v-for="(item,index) in form.touristList" :key="item">
  126. <view class="sub-title">
  127. 出游人信息
  128. </view>
  129. <view class="no">
  130. 第{{index+1}}位
  131. </view>
  132. <u-form-item
  133. label="姓名"
  134. borderBottom
  135. :ref="'touristList'+index+'name'"
  136. :prop="`touristList.${index}.name`"
  137. :required="required"
  138. >
  139. <u--input
  140. v-model="item.name"
  141. border="none"
  142. placeholder="请输入姓名"
  143. ></u--input>
  144. </u-form-item>
  145. <u-form-item
  146. label="手机号"
  147. borderBottom
  148. :ref="'touristList'+index+'tel'"
  149. :prop="'touristList.'+index+'.tel'"
  150. :required="required"
  151. >
  152. <u--input
  153. v-model="item.tel"
  154. border="none"
  155. :maxlength="11"
  156. placeholder="请输入手机号"
  157. ></u--input>
  158. </u-form-item>
  159. <u-form-item
  160. label="证件类型"
  161. borderBottom
  162. ref="item13"
  163. prop="name"
  164. :required="required"
  165. v-if="required"
  166. >
  167. <view class="time-box" @click="chooseType(index)">
  168. {{item.psptType | filterType(that)}}
  169. <image class="right-icon" src="../static/right.png" mode=""></image>
  170. </view>
  171. </u-form-item>
  172. <u-form-item
  173. label="证件号"
  174. ref="item14"
  175. :ref="'touristList'+index+'psptId'"
  176. :prop="'touristList.'+index+'.psptId'"
  177. :required="required"
  178. v-if="required"
  179. >
  180. <u--input
  181. v-model="item.psptId"
  182. border="none"
  183. placeholder="请输入证件号"
  184. :maxlength="18"
  185. ></u--input>
  186. </u-form-item>
  187. </view>
  188. </u--form>
  189. <view class="btn-box">
  190. <view class="left">
  191. <view class="num">
  192. 共{{form.touristList.length}}件
  193. </view>
  194. <view class="total">
  195. 合计 <view class="price-box">
  196. <view class="unit">
  197. </view>
  198. <view class="price">
  199. {{total}}
  200. </view>
  201. </view>
  202. </view>
  203. </view>
  204. <button class="btn" @click="handleBuy" :loading="loading">
  205. 提交订单
  206. </button>
  207. </view>
  208. <u-calendar
  209. confirmDisabledText="请选择日期"
  210. :show="show"
  211. @confirm="confirmTime"
  212. @close="show = false"
  213. ref="calendar"
  214. :rowHeight="120"
  215. closeOnClickOverlay
  216. color="#EE4320"
  217. :customList="ticketInfo.priceCalendar"
  218. :monthNum="12"
  219. >
  220. </u-calendar>
  221. <u-picker :show="show1" :columns="columns" closeOnClickOverlay keyName="label" @close="show = false" @confirm="confirm"></u-picker>
  222. <!-- 预定须知 -->
  223. <u-popup :show="showNotice" round="16rpx" mode="bottom" @close="showNotice = false">
  224. <view class="popup-title">
  225. {{ticketInfo.shopName}}
  226. </view>
  227. <view class="box">
  228. <template v-if="ticketInfo.drawAddress">
  229. <view class="sub-title">
  230. 取票地点
  231. </view>
  232. <view class="intro">
  233. {{ticketInfo.drawAddress}}
  234. </view>
  235. </template>
  236. <view class="sub-title">
  237. 入园方式
  238. </view>
  239. <view class="intro">
  240. {{ticketInfo.admissionVoucher.admissionVoucherCode | filterVoucherType}}
  241. </view>
  242. <view class="sub-title">
  243. 有效期
  244. </view>
  245. <view class="intro">
  246. {{ticketInfo.indate || '-'}}
  247. </view>
  248. <view class="sub-title">
  249. 预定截止
  250. </view>
  251. <view class="intro">
  252. {{ticketInfo.advanceDay}}天 {{ticketInfo.advanceHour}}小时
  253. </view>
  254. <view class="sub-title">
  255. 退改规则
  256. </view>
  257. <rich-text class="intro" :nodes="ticketInfo.mpLossInfo"></rich-text>
  258. <view class="sub-title">
  259. 预定须知
  260. </view>
  261. <rich-text class="intro" :nodes="ticketInfo.bookNotice"></rich-text>
  262. <view class="sub-title">
  263. 其他说明
  264. </view>
  265. <rich-text class="intro" :nodes="ticketInfo.info"></rich-text>
  266. </view>
  267. </u-popup>
  268. </view>
  269. </template>
  270. <script>
  271. import {createOrderNew} from '@/api/scenic.js'
  272. import {
  273. creatPayOrder,
  274. queryPayOrder,
  275. } from '@/api/payment.js'
  276. export default {
  277. data() {
  278. return {
  279. that:this,
  280. show:false,
  281. show1:false,
  282. showNotice:false,
  283. loading:false,
  284. form:{
  285. "scenicId":0,
  286. "epId":0,
  287. "channel":'ZhongShu',
  288. "bookNumber": 1,
  289. "contact": {
  290. "contactEmail": "",
  291. "contactName": "",
  292. "contactTel": "",
  293. "psptId": "",
  294. "psptType": 1
  295. },
  296. "couponValue": 0,
  297. "delivery": {
  298. "deliveryEndAddress": "",
  299. "deliveryType": 0,
  300. "receiverName": "",
  301. "telNum": "",
  302. "zipCode": ""
  303. },
  304. "productId": 0,
  305. "startTime": "",
  306. "touristList": [
  307. {
  308. "email": "",
  309. "name": "",
  310. "psptId": "",
  311. "psptType": 1,
  312. "tel": ""
  313. }
  314. ]
  315. },
  316. required:false,//游客信息是否必填
  317. showContact:false,//取票人信息是否必填
  318. rules: {
  319. 'startTime':[
  320. {
  321. required: true,
  322. message: '请选择出游日期',
  323. trigger: ['blur', 'change']
  324. },
  325. ],
  326. contact:{
  327. contactName:[
  328. {
  329. required: true,
  330. message: '请输入姓名',
  331. trigger: ['blur', 'change']
  332. },
  333. ],
  334. contactTel:[
  335. {
  336. required: true,
  337. message: '请输入手机号',
  338. trigger: ['blur', 'change']
  339. },
  340. {
  341. // 自定义验证函数,见上说明
  342. validator: (rule, value, callback) => {
  343. // 上面有说,返回true表示校验通过,返回false表示不通过
  344. // uni.$u.test.mobile()就是返回true或者false的
  345. return uni.$u.test.mobile(value);
  346. },
  347. message: '手机号码不正确',
  348. // 触发器可以同时用blur和change
  349. trigger: ['change','blur'],
  350. }
  351. ],
  352. contactEmail:[
  353. {
  354. required: true,
  355. message: '请输入取票人邮箱',
  356. trigger: ['blur', 'change']
  357. },
  358. {
  359. // 自定义验证函数,见上说明
  360. validator: (rule, value, callback) => {
  361. // 上面有说,返回true表示校验通过,返回false表示不通过
  362. // uni.$u.test.mobile()就是返回true或者false的
  363. return uni.$u.test.email(value);
  364. },
  365. message: '邮箱号不正确',
  366. // 触发器可以同时用blur和change
  367. trigger: ['change','blur'],
  368. }
  369. ],
  370. psptId:[
  371. {
  372. required: true,
  373. message: '请输入证件号码',
  374. trigger: ['blur', 'change']
  375. }
  376. ],
  377. },
  378. touristList:[]
  379. },
  380. ticketInfo:{salePrice:0},
  381. columns: [
  382. [
  383. {
  384. label: '身份证',
  385. id: 1
  386. },
  387. {
  388. label: '护照',
  389. id: 2
  390. },
  391. {
  392. label: '军官证',
  393. id: 3
  394. },
  395. {
  396. label: '港澳通行证',
  397. id: 4
  398. },
  399. {
  400. label: '台胞证',
  401. id: 7
  402. },
  403. ]
  404. ],
  405. active:0,
  406. query: {
  407. "msgType": "wx.unifiedOrder",
  408. "orderDesc": "",
  409. "orderNo": "",
  410. "channel":'ZhongShu',
  411. "subOpenId": "",
  412. "userId": ""
  413. },
  414. payData:null
  415. }
  416. },
  417. filters: {
  418. filterType: function(value,that) {
  419. let msg
  420. that.columns[0].map(item=>{
  421. if(value == item.id){
  422. msg = item.label
  423. }
  424. })
  425. return msg;
  426. },
  427. filterVoucherType: function(val) {
  428. if(val == 1){
  429. return '实体票入园'
  430. }else if(val == 201){
  431. return '换票入园短信'
  432. }else if(val == 202){
  433. return '换票入园二维码'
  434. }else if(val == 203){
  435. return '换票入园数字码'
  436. }else if(val == 204){
  437. return '换票入园换票证'
  438. }else if(val == 205){
  439. return '换票入园邮件'
  440. }else if(val == 206){
  441. return '换票入园身份证'
  442. }else if(val == 207){
  443. return '换票入园护照'
  444. }else if(val == 208){
  445. return '换票入园港澳通行证'
  446. }else if(val == 209){
  447. return '换票入园军官证'
  448. }else if(val == 210){
  449. return '换票入园台胞证'
  450. }else if(val == 301){
  451. return '直接验证入园二维码'
  452. }else if(val == 302){
  453. return '直接验证入园邮件'
  454. }else if(val == 303){
  455. return '直接验证入园身份证'
  456. }else if(val == 304){
  457. return '直接验证入园护照'
  458. }else if(val == 305){
  459. return '直接验证入园港澳通行证'
  460. }else if(val == 306){
  461. return '直接验证入园军官证'
  462. }else if(val == 307){
  463. return '直接验证入园台胞证'
  464. }
  465. }
  466. },
  467. computed: {
  468. total() {
  469. return this.ticketInfo.salePrice*this.form.bookNumber
  470. }
  471. },
  472. methods: {
  473. confirmTime(val){
  474. console.log(11111111,val);
  475. if(!val.length) return uni.showToast({
  476. title:'请选择日期',
  477. icon:'none'
  478. })
  479. this.show = false
  480. this.form.startTime = val[0]
  481. this.$refs.uForm.validateField('startTime')
  482. },
  483. confirm(val){
  484. console.log(val);
  485. this.show1 = false
  486. if(this.active == '取票'){
  487. this.form.contact.psptType = val.value[0].id
  488. }else{
  489. this.form.touristList[this.active].psptType = val.value[0].id
  490. }
  491. },
  492. chooseTime() {
  493. this.show = true
  494. },
  495. chooseType(index){
  496. this.show1 = true
  497. this.active = index
  498. },
  499. add(val){
  500. if((val==-1&&this.form.bookNumber == 1)||(val==1&&this.form.bookNumber == 10)) return
  501. if(val){
  502. this.form.touristList.push({
  503. "email": "",
  504. "name": "",
  505. "psptId": "",
  506. "psptType": 1,
  507. "tel": ""
  508. })
  509. }else{
  510. this.form.touristList.pop()
  511. }
  512. this.form.bookNumber+=val
  513. this.setRules()
  514. },
  515. handleBuy(){
  516. this.$refs.uForm.validate().then(res => {
  517. this.createOrderNew(this.form)
  518. })
  519. },
  520. createOrderNew(query){
  521. if (this.loading) return
  522. this.loading = true
  523. uni.showLoading({
  524. title: '支付中'
  525. })
  526. let that = this
  527. createOrderNew(query).then(res=>{
  528. if(res.state == 'Success'){
  529. this.query.orderNo = res.content.orderNo
  530. this.query.subOpenId = JSON.parse(uni.getStorageSync('userInfo')).openId
  531. this.query.orderDesc = this.ticketInfo.productName
  532. creatPayOrder(this.query).then(data => {
  533. that.payData = JSON.parse(data.content.miniPayRequest)
  534. if (data.content.miniPayRequest == null) return uni.hideLoading()
  535. console.log(666,that.payData);
  536. uni.requestPayment({
  537. "provider": "wxpay",
  538. "orderInfo": that.payData,
  539. "appid": that.payData
  540. .appId, // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
  541. "paySign": that.payData.paySign,
  542. "nonceStr": that.payData.nonceStr, // 随机字符串
  543. "package": that.payData.package, // 固定值
  544. // "prepayid": that.payData.package, // 统一下单订单号
  545. "timeStamp": that.payData.timeStamp, // 时间戳(单位:秒)
  546. "signType": that.payData.signType, //签名算法
  547. success(msg) {
  548. console.log('msg', that.query.orderNo);
  549. queryPayOrder(that.query.orderNo).then(res1 => {
  550. uni.hideLoading()
  551. that.loading = false
  552. if (res1.state == 'Success') {
  553. uni.reLaunch({
  554. url: '/my/order/index'
  555. })
  556. }
  557. })
  558. },
  559. fail(e) {
  560. console.log('err', e);
  561. that.loading = false
  562. uni.hideLoading()
  563. uni.showToast({
  564. title: '取消支付',
  565. icon: 'fail'
  566. })
  567. // 取消支付后
  568. uni.reLaunch({
  569. url:'/my/order/scenic/detail?id='+that.query.orderNo
  570. })
  571. }
  572. })
  573. })
  574. }
  575. })
  576. },
  577. setRules() {
  578. //custInfoLimit=2,3,6,7这几种类型 游客信息必填 否则直接不填
  579. if(this.required){
  580. this.form.touristList.forEach((ele, index) => {
  581. this.$set(this.rules, `touristList.${index}.name`, [
  582. {
  583. required: true,
  584. message: '请填写姓名',
  585. trigger: ['blur', 'change']
  586. }
  587. ])
  588. this.$set(this.rules, `touristList.${index}.tel`, [
  589. {
  590. required: true,
  591. message: '请填写手机号',
  592. trigger: ['blur', 'change']
  593. },
  594. {
  595. validator: (rule, value, callback) => {
  596. // 上面有说,返回true表示校验通过,返回false表示不通过
  597. return uni.$u.test.mobile(value);
  598. },
  599. message: '手机号码不正确',
  600. // 触发器可以同时用blur和change
  601. trigger: ['change','blur'],
  602. }
  603. ])
  604. this.$set(this.rules, `touristList.${index}.psptId`, [
  605. {
  606. required: true,
  607. message: '请填写证件号码',
  608. trigger: ['blur', 'change']
  609. }
  610. ])
  611. })
  612. }
  613. console.log('rule',this.rules);
  614. this.$nextTick(() => {
  615. this.$refs.uForm.setRules(this.rules)
  616. })
  617. },
  618. },
  619. onReady() {
  620. //如果需要兼容微信小程序,并且校验规则中含有方法等,只能通过setRules方法设置规则。
  621. // this.$refs.uForm.setRules(this.rules)
  622. this.setRules()
  623. },
  624. mounted() {
  625. // this.setRules()
  626. },
  627. onLoad(options) {
  628. let userInfo = JSON.parse(uni.getStorageSync('userInfo'))
  629. this.query.userId = userInfo.userId
  630. this.form.scenicId = options.id
  631. let that = this
  632. const eventChannel = this.getOpenerEventChannel();
  633. eventChannel.on('pay', function(data) {
  634. that.form.epId = data.epId
  635. that.ticketInfo = data
  636. that.ticketInfo.priceCalendar.map(i=>{i.bottomInfo = i.salePrice})
  637. that.form.productId = data.productId
  638. // 这几种类型 才需要填写游客信息
  639. if([2,3,6,7].includes(that.ticketInfo.custInfoLimit)){
  640. that.required = true
  641. }else{
  642. that.required = false
  643. that.form.touristList = []
  644. }
  645. // 这几种类型 才需要填写取票人证件信息
  646. if([4,6,7].includes(that.ticketInfo.custInfoLimit)){
  647. that.showContact = true
  648. }else{
  649. that.showContact = false
  650. delete that.form.contact.psptType
  651. delete that.form.contact.psptId
  652. }
  653. console.log('数据:',data,that.form);
  654. })
  655. }
  656. }
  657. </script>
  658. <style lang="scss" >
  659. .scenic-makeOut{
  660. background: #F9F9F9;
  661. border-radius: 0rpx 0rpx 0rpx 0rpx;
  662. padding: 20rpx 24rpx 120rpx;
  663. min-height: 100vh;
  664. .content{
  665. background: #FFFFFF;
  666. border-radius: 16rpx 16rpx 16rpx 16rpx;
  667. margin-bottom: 20rpx;
  668. padding: 24rpx;
  669. }
  670. .sub-title{
  671. font-weight: 600;
  672. font-size: 28rpx;
  673. color: #222222;
  674. padding-bottom: 24rpx;
  675. border-bottom: 1rpx solid #F0F0F0;
  676. }
  677. .no{
  678. padding: 24rpx 0;
  679. font-size: 28rpx;
  680. color: #222222;
  681. }
  682. .time-box{
  683. display: flex;
  684. justify-content: flex-end;
  685. text-align: center;
  686. .right-icon{
  687. width: 48rpx;
  688. height: 48rpx;
  689. }
  690. }
  691. .info{
  692. .title{
  693. font-weight: 600;
  694. font-size: 36rpx;
  695. color: #222222;
  696. width: 100%;
  697. white-space: nowrap;
  698. overflow: hidden;
  699. text-overflow: ellipsis;
  700. margin-top: 10rpx;
  701. }
  702. .notice{
  703. display: flex;
  704. align-items: center;
  705. font-size: 24rpx;
  706. color: #AAAAAA;
  707. margin-top: 20rpx;
  708. .jiantou{
  709. width: 48rpx;
  710. height: 48rpx;
  711. }
  712. }
  713. .signUp-box{
  714. display: flex;
  715. justify-content: space-between;
  716. align-items: center;
  717. padding-top: 20rpx;
  718. .label-box{
  719. display: flex;
  720. align-items: center;
  721. .label{
  722. font-weight: 300;
  723. font-size: 24rpx;
  724. color: #181818;
  725. }
  726. .desc{
  727. font-weight: 300;
  728. font-size: 24rpx;
  729. color: #AAAAAA;
  730. }
  731. }
  732. .num-box{
  733. display: flex;
  734. align-items: center;
  735. .btn.disabled{
  736. background: #F0F0F0;
  737. color: #AAAAAA;
  738. }
  739. .btn{
  740. width: 36rpx;
  741. height: 36rpx;
  742. line-height: 36rpx;
  743. border-radius: 50%;
  744. background: #E2ECFF;
  745. color: #3879F9;
  746. font-size: 30rpx;
  747. text-align: center;
  748. vertical-align: top;
  749. }
  750. .num{
  751. font-weight: 400;
  752. font-size: 24rpx;
  753. color: #222222;
  754. width: 50rpx;
  755. text-align: center;
  756. }
  757. }
  758. }
  759. }
  760. .btn-box {
  761. position: fixed;
  762. bottom: 0%;
  763. left: 0%;
  764. z-index: 2;
  765. width: 100%;
  766. display: flex;
  767. align-items: center;
  768. justify-content: space-between;
  769. box-sizing: border-box;
  770. padding: 10rpx 24rpx env(safe-area-inset-bottom);
  771. background: #fff;
  772. border-top: 1rpx solid #EEEEEE;
  773. .left{
  774. display: flex;
  775. align-items: flex-end;
  776. .num{
  777. font-weight: 300;
  778. font-size: 24rpx;
  779. color: #AAAAAA;
  780. }
  781. .total{
  782. font-weight: 300;
  783. font-size: 24rpx;
  784. color: #222222;
  785. display: flex;
  786. align-items: flex-end;
  787. margin-left: 6rpx;
  788. .price-box{
  789. display: flex;
  790. align-items: flex-end;
  791. font-weight: 400;
  792. font-size: 32rpx;
  793. color: #222222;
  794. .unit{
  795. font-size: 20rpx;
  796. }
  797. }
  798. }
  799. }
  800. .btn {
  801. width: 280rpx;
  802. height: 80rpx;
  803. line-height: 80rpx;
  804. text-align: center;
  805. background: $uni-color-primary;
  806. border-radius: 40rpx;
  807. font-weight: 600;
  808. font-size: 28rpx;
  809. color: #FFFFFF;
  810. margin: 0;
  811. }
  812. }
  813. .u-popup__content{
  814. padding: 0 24rpx 28rpx;
  815. position: relative;
  816. .popup-title{
  817. font-weight: 600;
  818. font-size: 32rpx;
  819. color: #222222;
  820. padding: 28rpx 0;
  821. border-bottom: 1rpx solid #F0F0F0;
  822. }
  823. .box{
  824. max-height: 70vh;
  825. overflow: auto;
  826. .sub-title{
  827. font-weight: 600;
  828. font-size: 28rpx;
  829. color: #222222;
  830. margin: 20rpx 0;
  831. border: none;
  832. }
  833. .intro{
  834. font-weight: 300;
  835. font-size: 24rpx;
  836. color: #AAAAAA;
  837. line-height: 40rpx;
  838. padding-bottom: 24rpx;
  839. }
  840. .border-bottom{
  841. border-bottom: 1rpx solid #F0F0F0!important;
  842. }
  843. }
  844. }
  845. }
  846. </style>