bookticket.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947
  1. <template>
  2. <view class="pages">
  3. <view class="" :style="{height: navHeight+'px' }"></view>
  4. <view class="navbar-box">
  5. <u-navbar title="订单详情" :safeAreaInsetTop="true" @leftClick="leftClick" :titleStyle="{color:'#fff'}"
  6. leftIconColor="#fff" bgColor="transparent"></u-navbar>
  7. </view>
  8. <view class="page-wrap">
  9. <view class="base-info">
  10. <view class="up u-flex">
  11. <image class="img" :src="pageContent.performImg" mode="aspectFill" alt="">
  12. <view class="text">
  13. <view class="name text-item">{{pageContent.performName}}-{{pageContent.goodsName}}</view>
  14. <view class="time text-item">日期 {{pageContent.timeDate}}({{pageContent.timeWeek}})</view>
  15. <view class="time text-item">场次 {{pageContent.performTimeStart}} -
  16. {{pageContent.performTimeEnd}}</view>
  17. <view class="num text-item">{{pageContent.goodsName}} / {{pageContent.seatTypeName}}</view>
  18. <view class=" text-item">{{pageContent.auditoriumName}}</view>
  19. <!-- <view class="position text-item">{{performInfo.name}}</view> -->
  20. <!-- <view class="addr u-flex u-row-between">
  21. <view class="u-line-1">地址:遵义市《伟大转折》演艺中心</view>
  22. <u-icon name="arrow-right" color="#2D2D2D" size="36rpx"></u-icon>
  23. </view> -->
  24. </view>
  25. </view>
  26. <view class="down">
  27. <view class="num-wrap u-flex u-row-between">
  28. <view class="title">选购数量</view>
  29. <view class="num">{{totalVisitor}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="block-wrap purchaser">
  34. <view class="block-title u-flex">
  35. <view class="name">购票人信息</view>
  36. <!-- <text>用于入园身份验证</text> -->
  37. </view>
  38. <view class="" v-if="vuex_member_info.isAuth">
  39. <view class="item">姓名:{{pageContent.purchaser.name}}</view>
  40. <view class="item">手机号:{{pageContent.purchaser.mobile|hidePhoneNumber}}</view>
  41. <view class="item">身份证:{{pageContent.purchaser.idcard|maskID}}</view>
  42. </view>
  43. <view class="un-auth" v-else @click="$u.route('center/factorauth',{from:'bookticket'})">
  44. 请先<text style="color: #ED0000;">实名认证</text>
  45. </view>
  46. </view>
  47. <view class="block-wrap visitors">
  48. <view class="block-title u-flex">
  49. <view class="name">观影人信息</view>
  50. <!-- <text>用于入园身份验证</text> -->
  51. </view>
  52. <view class="people-list u-flex u-flex-wrap">
  53. <view class="people btn" v-if="visitors.length>0" v-for="(visitor,index) in visitors" :key="index">
  54. {{visitor.name}}
  55. </view>
  56. <view class="btn u-flex u-row-center" @click="visitorShow = true">
  57. <u-icon name="plus-circle" color="#2D2D2D" size="32rpx"></u-icon>
  58. <text class="text">新增/更换</text>
  59. </view>
  60. </view>
  61. <!-- <view class="no-people u-flex" v-if="!visitors.length>0">
  62. <text>游客</text>
  63. <text class="right" @click="visitorShow = true">点击选择游客</text>
  64. </view> -->
  65. <view class="peoples" v-if="visitors.length>0">
  66. <view class="peoples-item u-flex u-row-between" v-for="(visitor,index) in visitors" :key="index">
  67. <view class="left u-flex">
  68. <u-icon @click="delVisitor(visitor)" name="close-circle" color="#2D2D2D"
  69. size="32rpx"></u-icon>
  70. <text style="margin-left: 8rpx;">观影人{{ index + 1 }}</text>
  71. <text class="name">{{visitor.name}}</text>
  72. <!-- <text class="people-id">{{ visitor.idcard | maskID }}</text> -->
  73. </view>
  74. <view class="right" @click="editVisitor(visitor)">编辑</view>
  75. </view>
  76. </view>
  77. </view>
  78. <view class="coupon">
  79. <view class="title u-flex u-row-between u-border-bottom">
  80. <text>本单可享优惠</text>
  81. </view>
  82. <view class="single-til u-flex u-row-between">
  83. <view class="text">优惠券</view>
  84. <view class="more-text u-flex">
  85. <text>未使用</text>
  86. <u-icon name="arrow-right" color="#E6E6E6" size="24rpx"></u-icon>
  87. </view>
  88. </view>
  89. <view class="no-coupon">
  90. 您暂无可使用优惠券~
  91. </view>
  92. </view>
  93. <view class="notice">
  94. <view class="title u-flex u-row-between u-border-bottom">
  95. <text>购票须知</text>
  96. </view>
  97. <view class="notice-item parse-content">
  98. <u-parse :content="pageContent.ticketNotice"></u-parse>
  99. </view>
  100. <!-- <view class="notice-item">
  101. 1.由于设备故障等不可抗力因素,存在少量场次取消的情况,会
  102. 进行退票退款
  103. </view>
  104. <view class="notice-item">
  105. 2.由于影院系统不稳定等因素,存在出票失败的情况,会进行退款
  106. </view>
  107. <view class="notice-item">
  108. 3.取票码可以在“我的-订单页”中查看
  109. </view> -->
  110. </view>
  111. </view>
  112. <u-popup :show="visitorShow">
  113. <view class="people-show-content">
  114. <view class="title">
  115. <view class="cancel" @click="visitorShow=false">取消</view>
  116. 选择观影人
  117. </view>
  118. <view class="add-btn u-flex u-row-center" @click="addVisitor">
  119. <!-- <image class="img" :src="staticUrl+'/img/car.png'" ></image> -->
  120. 添加观影人信息
  121. </view>
  122. <view class="list">
  123. <u-checkbox-group v-model="selectedVisitor" iconPlacement="left">
  124. <view class="people u-flex u-row-between" v-for="(item,index) in visitorList" :key="index">
  125. <u-checkbox activeColor="#ED0303" :label="item.name" :name="item.idcard"></u-checkbox>
  126. <u-icon name="edit-pen-fill" color="#7F7F7F" size="32rpx"
  127. @click="editVisitor(item)"></u-icon>
  128. </view>
  129. </u-checkbox-group>
  130. </view>
  131. <view class="full-btn" @click="confirmVisitor">确定</view>
  132. </view>
  133. </u-popup>
  134. <view class="page-bottom">
  135. <view class="inner u-flex u-row-between">
  136. <view class="left u-flex">
  137. <text>应付金额:</text>
  138. <view class="total-price">
  139. {{totalPrice}}
  140. </view>
  141. </view>
  142. <view class="right">
  143. <view class="btn active" v-if="totalPrice>0&&cansubmit&&vuex_member_info.isAuth"
  144. @click="submitorder">立即支付</view>
  145. <view class="btn" v-else>立即支付</view>
  146. </view>
  147. </view>
  148. </view>
  149. <u-modal
  150. :show="umodal.show"
  151. :title="umodal.title"
  152. :content='umodal.content'
  153. confirmColor="#ED0303"
  154. @confirm="modalConfirm"
  155. ></u-modal>
  156. </view>
  157. </template>
  158. <script>
  159. import {
  160. systemInfo
  161. } from "@/mixin.js";
  162. // #ifdef H5
  163. import wxH5 from "weixin-jsapi";
  164. // #endif
  165. export default {
  166. mixins: [systemInfo],
  167. data() {
  168. return {
  169. performId: '',
  170. performInfo: {},
  171. pageData: {}, //上个页面传过来的数据
  172. pageContent: {
  173. performName: '',
  174. goodsName: '',
  175. timeDate: '',
  176. timeWeek: '',
  177. seatTypeName: '',
  178. auditoriumName: '',
  179. performTimeEnd: '',
  180. performTimeStart: '',
  181. purchaser: {
  182. mobile: '',
  183. idcard: ''
  184. },
  185. ticketNotice: '',
  186. viewerList: [],
  187. }, //页面信息
  188. ticketNotice: '',
  189. cansubmit: true,
  190. staticUrl: this.$commonConfig.staticUrl,
  191. visitors: [], //确认的游客
  192. visitorShow: false, //游客弹层
  193. visitorList: [], //游客列表
  194. selectedVisitor: [], //选中的游客(id)
  195. params: {}, //要提交的数据
  196. orderId: '', //订单提交获取
  197. payResult: {}, //gotoPay结果
  198. paysuccess: false, //支付结果
  199. templateIdList: [], //微信小程序订阅消息
  200. umodal:{
  201. show:false,
  202. title:'温馨提示',
  203. content:''
  204. }
  205. }
  206. },
  207. computed: {
  208. totalPrice() {
  209. let that = this;
  210. return this.visitors.reduce((total, item) => {
  211. let price = null;
  212. price = Number(that.pageData.salePrice);
  213. total += price;
  214. return total;
  215. }, 0).toFixed(2);
  216. },
  217. totalVisitor() {
  218. let that = this;
  219. return this.visitors.reduce((total, item) => {
  220. total += 1;
  221. return total;
  222. }, 0);
  223. },
  224. },
  225. onShow() {
  226. this.getSettlement();
  227. },
  228. onLoad(page) {
  229. console.log('page', page);
  230. this.pageData = page;
  231. this.performId = page.performId;
  232. this.pageData.performTimeId = page.performTimeId;
  233. this.pageData.seatTypeId = page.seatTypeId
  234. this.getSystemInfo();
  235. this.getSettlement();
  236. this.getTemplateIdList(); //获取模板列表
  237. },
  238. methods: {
  239. leftClick(e) {
  240. let pages = getCurrentPages();
  241. if (pages.length == 1) {
  242. uni.$u.route('/pages/index/index')
  243. } else {
  244. uni.navigateBack()
  245. };
  246. },
  247. getSettlement() {
  248. this.$u.api.getSettlement(this.pageData).then(res => {
  249. // console.log('getSettlement',res.data);
  250. this.pageContent = res.data;
  251. this.getMemberAll();
  252. }).catch(err => {
  253. console.log('getSettlement', err);
  254. })
  255. },
  256. getMemberAll() {
  257. let that = this;
  258. // const userId = this.vuex_member_info.id;
  259. const userId = this.pageContent.viewerList[0]?.id;
  260. this.$u.api.selectMemberAll({
  261. userid: userId
  262. }).then(res => {
  263. // console.log('getMemberAll',res.data);
  264. this.visitorList = res.data.list;
  265. // this.visitors = this.visitorList.filter(obj => obj.memberId==userId);
  266. this.visitors = this.visitorList.filter(obj => that.selectedVisitor.includes(obj.idcard));
  267. console.log('this.visitorList',this.visitorList);
  268. // console.log('this.selectedVisitor',this.selectedVisitor);
  269. console.log('this.visitors',this.visitors);
  270. }).catch(err => {
  271. console.log('getMemberAll', err);
  272. })
  273. },
  274. confirmVisitor() {
  275. let that = this;
  276. console.log('selectedVisitor',this.selectedVisitor);
  277. this.visitorShow = false;
  278. this.visitors = this.visitorList.filter(obj => that.selectedVisitor.includes(obj.idcard)).map(item => {
  279. return {
  280. name: item.name,
  281. mobile: item.mobile,
  282. idcard: item.idcard
  283. }
  284. });
  285. console.log('this.visitors',this.visitors);
  286. },
  287. delVisitor(visitor) {
  288. // console.log('delVisitor',visitor);
  289. // console.log('this.visitors',this.visitors);
  290. this.visitors = this.visitors.filter(obj => obj.idcard != visitor.idcard);
  291. this.selectedVisitor = this.selectedVisitor.filter(item => item != visitor.idcard);
  292. // console.log('this.visitors',this.visitors);
  293. // console.log('this.selectedVisitor',this.selectedVisitor);
  294. },
  295. addVisitor() {
  296. uni.$u.route('/center/people', {
  297. type: 'addVisitor',
  298. fromPage: 'bookticket'
  299. });
  300. },
  301. editVisitor(item) {
  302. uni.$u.route('/center/people', {
  303. type: 'editVisitor',
  304. fromPage: 'bookticket',
  305. id: item.id,
  306. name: item.name,
  307. mobile: item.mobile,
  308. idcard: item.idcard,
  309. });
  310. },
  311. getTemplateIdList() {
  312. this.$u.api.templateIdList({
  313. templateLabel: 'order_pay'
  314. }).then(res => {
  315. console.log('getTemplateIdList', res.data);
  316. this.templateIdList = res.data.list.map(item => {
  317. return item.templateId
  318. });
  319. // if(this.templateIdList.length>0){
  320. // this.templateEven();
  321. // }
  322. }).catch(err => {
  323. console.log('getTemplateIdList', err);
  324. })
  325. },
  326. submitorder() {
  327. let params = {
  328. performId: this.pageContent.performId,
  329. goodsList: [{
  330. goodsId: this.pageContent.goodsId,
  331. salePeice: this.pageContent.salePrice,
  332. saleNum: 1
  333. }],
  334. auditoriumId: this.pageContent.auditoriumId,
  335. performTimeId: this.pageContent.performTimeId,
  336. seatTypeId: this.pageContent.seatTypeId,
  337. purchaser: {
  338. name: this.pageContent.purchaser.name,
  339. mobile: this.pageContent.purchaser.mobile,
  340. idcard: this.pageContent.purchaser.idcard
  341. },
  342. viewerList: this.visitors
  343. }
  344. // #ifdef MP
  345. params['source'] = 1
  346. // #endif
  347. // #ifdef H5
  348. params['source'] = 4
  349. // #endif
  350. this.cansubmit = false;
  351. // console.log('pageData',this.pageData);
  352. // console.log('visitors',this.visitors);
  353. // console.log('params',params);
  354. this.$u.api.submitOrder(params,{custom:{toast:false}}).then(res => {
  355. // console.log('submitOrder',res.data);
  356. this.orderId = res.data.orderId;
  357. // this.templateEven()
  358. this.setTemplate();
  359. }).catch(err => {
  360. this.cansubmit = true;
  361. uni.hideLoading();
  362. // uni.$u.toast(err.msg);
  363. // if (err.msg.includes('限购')) {
  364. this.umodal.title = '';
  365. this.umodal.content = err.msg;
  366. this.umodal.show = true;
  367. // setTimeout(() => {
  368. // uni.$u.route('/center/order', {
  369. // status: 0
  370. // });
  371. // }, 2000)
  372. // }
  373. console.log('submitOrder', err);
  374. })
  375. },
  376. modalConfirm(){
  377. this.umodal.show = false;
  378. },
  379. // 订阅消息
  380. templateEven() {
  381. let that = this
  382. wx.showModal({
  383. title: '温馨提示',
  384. content: '为更好的促进与您的交流,服务号需要实时向您发送消息',
  385. confirmText: "同意",
  386. cancelText: "拒绝",
  387. success: function(res) {
  388. if (res.confirm) {
  389. //调用订阅消息
  390. console.log('用户点击确定');
  391. //调用订阅
  392. that.setTemplate();
  393. } else if (res.cancel) {
  394. console.log('用户点击取消');
  395. ///显示第二个弹说明一下
  396. wx.showModal({
  397. title: '温馨提示',
  398. content: '拒绝后您将无法获取实时的消息',
  399. confirmText: "知道了",
  400. showCancel: false,
  401. success: function(res) {
  402. that.gotoPay();
  403. ///点击知道了的后续操作
  404. ///如跳转首页面
  405. }
  406. });
  407. }
  408. }
  409. });
  410. },
  411. // 设置小程序订阅消息
  412. setTemplate() {
  413. let that = this;
  414. console.log('templateIdList', this.templateIdList);
  415. // #ifdef MP
  416. uni.requestSubscribeMessage({
  417. tmplIds: that.templateIdList,
  418. success(res) {
  419. // that.gotoPay();
  420. console.log("success:", res);
  421. },
  422. fail(res) {
  423. console.log("fail:", res);
  424. },
  425. complete(res) {
  426. that.gotoPay();
  427. console.log("complete:", res);
  428. }
  429. })
  430. // #endif
  431. // #ifdef H5
  432. that.gotoPay()
  433. // #endif
  434. },
  435. gotoPay() {
  436. this.$u.api.gotoPay({
  437. orderId: this.orderId,
  438. openid: ''
  439. }).then(res => {
  440. this.payResult = res.data.payInfo;
  441. this.payResult.package = res.data.payInfo.packageValue;
  442. // #ifdef H5
  443. this.initConfig(this.payResult)
  444. // #endif
  445. // #ifdef MP
  446. this.wxPay()
  447. // #endif
  448. // if(this.params.paymentMode==1||this.params.paymentMode==4){
  449. // this.wxPay()
  450. // }else{
  451. // uni.$u.route('/shopping/paysuccess');
  452. // }
  453. console.log('gotoPayres', res.data);
  454. }).catch(err => {
  455. this.cansubmit = true;
  456. // this.paypass = '';
  457. // this.checkPassShow = false;
  458. console.log('gotoPay', err);
  459. })
  460. },
  461. wxPay() {
  462. let that = this;
  463. uni.requestPayment({
  464. ...this.payResult,
  465. "provider": "wxpay",
  466. "orderInfo": {
  467. // "appid": "wx499********7c70e", // 微信开放平台 - 应用 - AppId,注意和微信小程序、公众号 AppId 可能不一致
  468. // "noncestr": "c5sEwbaNPiXAF3iv", // 随机字符串
  469. // "package": "Sign=WXPay", // 固定值
  470. // "partnerid": "148*****52", // 微信支付商户号
  471. // "prepayid": "wx202254********************fbe90000", // 统一下单订单号
  472. // "timestamp": 1597935292, // 时间戳(单位:秒)
  473. // "sign": "A842B45937F6EFF60DEC7A2EAA52D5A0" // 签名,这里用的 MD5/RSA 签名
  474. },
  475. success(res) {
  476. that.payQuery();
  477. },
  478. fail(e) {
  479. uni.$u.route('/center/order', {
  480. status: 0
  481. });
  482. console.log('wxPayfail', e);
  483. },
  484. complete() {
  485. this.cansubmit = true;
  486. }
  487. })
  488. },
  489. payQuery() {
  490. let that = this;
  491. let retryCount = 0;
  492. let maxRetryCount = 5; // 设置最大重试次数
  493. let interval = 2000; // 设置间隔时间为2秒
  494. let timeout = 10000; // 设置超时时间为10秒
  495. let timer;
  496. uni.showLoading({
  497. title: '支付结果查询中'
  498. })
  499. timer = setInterval(() => {
  500. retryCount++;
  501. if (retryCount > maxRetryCount || retryCount * interval > timeout) {
  502. clearInterval(timer);
  503. uni.hideLoading();
  504. console.log("支付查询超时或达到最大重试次数");
  505. // 在这里添加超时或达到最大重试次数的处理逻辑
  506. uni.$u.route('/center/order');
  507. } else {
  508. console.log("第" + retryCount + "次查询");
  509. // 调用查询支付状态的方法
  510. // 如果支付状态为成功,则清除定时器并处理成功的逻辑
  511. // 如果支付状态为失败,则清除定时器并处理失败的逻辑
  512. this.$u.api.payQuery({
  513. orderId: this.orderId
  514. }).then(res => {
  515. // 0-未支付 1-已支付 2-支付中 3-支付失败 4-支付退款
  516. let payStatus = res.data.payStatus;
  517. if (payStatus === 1) {
  518. uni.$u.route('/center/order', {
  519. status: 3
  520. });
  521. // uni.$u.route('/center/paysuccess');
  522. } else if (payStatus === 0 || payStatus === 2) {
  523. this.payQuery()
  524. } else if (payStatus === 3) {
  525. uni.toast('支付失败')
  526. }
  527. clearInterval(timer);
  528. }).catch(err => {
  529. console.log('payQuery', err);
  530. }).finally(() => {
  531. uni.hideLoading()
  532. })
  533. }
  534. }, interval);
  535. },
  536. /**
  537. * 公众号微信支付
  538. */
  539. initConfig() {
  540. // #ifdef H5
  541. let that = this
  542. wxH5.config({
  543. debug: false, // 这里一般在测试阶段先用ture,等打包给后台的时候就改回false,
  544. appId: that.payResult.appId, // 必填,公众号的唯一标识
  545. timestamp: that.payResult.timeStamp, // 必填,生成签名的时间戳
  546. nonceStr: that.payResult.nonceStr, // 必填,生成签名的随机串
  547. signature: that.payResult.paySign, // 必填,签名
  548. jsApiList: ['chooseWXPay', 'checkJsApi'] // 必填,需要使用的JS接口列表
  549. })
  550. wxH5.ready(() => {
  551. wxH5.chooseWXPay({
  552. timestamp: that.payResult.timeStamp, // 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
  553. nonceStr: that.payResult.nonceStr, // 支付签名随机串,不长于 32 位
  554. package: that.payResult.packageValue, // 统一支付接口返回的prepay_id参数值,提交格式如:prepay_id=\*\*\*)
  555. signType: 'SHA1', // 签名方式,默认为'SHA1',使用新版支付需传入'MD5'
  556. paySign: that.payResult.paySign, // 支付签名
  557. success: () => {
  558. that.payQuery();
  559. },
  560. fail: (e) => {
  561. uni.$u.route('/center/order', {
  562. status: 0
  563. });
  564. console.log('wxPayfail', e);
  565. },
  566. cancel: () => {
  567. uni.$u.route('/center/order', {
  568. status: 0
  569. });
  570. that.cansubmit = true;
  571. }
  572. })
  573. })
  574. // #endif
  575. }
  576. }
  577. }
  578. </script>
  579. <style>
  580. page {
  581. background: linear-gradient(180deg, #ED0000 0%, #F9FBFD 50%, #fff 100%);
  582. background-repeat: no-repeat;
  583. }
  584. </style>
  585. <style lang="scss" scoped>
  586. .base-info {
  587. border-radius: 30rpx;
  588. overflow: hidden;
  589. background: radial-gradient(circle at -26rpx 294rpx, transparent 8%, #fff 4%) left, radial-gradient(circle at calc(100% + 26rpx) 294rpx, transparent 8%, #fff 4%) right;
  590. background-size: 50% 100%;
  591. background-repeat: no-repeat;
  592. padding: 34rpx 36rpx;
  593. box-sizing: border-box;
  594. margin: 30rpx 0 40rpx;
  595. .up {
  596. margin-bottom: 36rpx;
  597. .img {
  598. display: block;
  599. width: 172rpx;
  600. height: 230rpx;
  601. border-radius: 20rpx;
  602. margin-right: 32rpx;
  603. }
  604. .text {
  605. font-size: 22rpx;
  606. font-weight: 400;
  607. color: #606060;
  608. line-height: 1;
  609. }
  610. .text-item {
  611. margin-bottom: 18rpx;
  612. }
  613. .name {
  614. font-size: 32rpx;
  615. font-weight: bold;
  616. color: #2D2D2D;
  617. }
  618. .addr {
  619. font-size: 24rpx;
  620. font-weight: 500;
  621. color: #2D2D2D;
  622. }
  623. }
  624. .down {
  625. position: relative;
  626. &:before {
  627. content: '';
  628. width: calc(100% + 26rpx);
  629. height: 1px;
  630. position: absolute;
  631. left: -13rpx;
  632. top: -2rpx;
  633. border-top: 4rpx dashed #F39FA0;
  634. }
  635. .num-wrap {
  636. padding-top: 36rpx;
  637. .title {
  638. font-size: 14px;
  639. color: #4E4E4E;
  640. }
  641. }
  642. }
  643. }
  644. .block-wrap {
  645. background: #FFFFFF;
  646. box-shadow: 0rpx 0rpx 20rpx 2rpx rgba(221, 221, 221, 0.5);
  647. border-radius: 20rpx;
  648. margin-bottom: 28rpx;
  649. padding: 32rpx 30rpx 34rpx;
  650. .block-title {
  651. // padding-left: 16rpx;
  652. position: relative;
  653. margin-bottom: 22rpx;
  654. font-size: 24rpx;
  655. font-weight: 500;
  656. color: #CACACA;
  657. // &:before{
  658. // content: '';
  659. // width: 6rpx;
  660. // height: 32rpx;
  661. // background: #1677FF;
  662. // border-radius: 4rpx;
  663. // position: absolute;
  664. // left: 0;
  665. // top: 50%;
  666. // margin-top: -16rpx;
  667. // }
  668. .name {
  669. font-size: 32rpx;
  670. font-weight: bold;
  671. color: #2D2D2D;
  672. margin-right: 20rpx;
  673. }
  674. }
  675. .no-people {
  676. font-size: 28rpx;
  677. font-weight: 400;
  678. color: #7F7F7F;
  679. .right {
  680. margin-left: 20rpx;
  681. color: #1677FF;
  682. }
  683. }
  684. .peoples {
  685. font-size: 28rpx;
  686. font-weight: 400;
  687. color: #7F7F7F;
  688. margin-bottom: 24rpx;
  689. .peoples-item {
  690. margin-bottom: 10rpx;
  691. }
  692. .name {
  693. margin-left: 20rpx;
  694. margin-right: 28rpx;
  695. font-size: 28rpx;
  696. font-weight: bold;
  697. color: #363636;
  698. }
  699. .people-id {
  700. font-size: 20rpx;
  701. font-weight: 400;
  702. color: #606060;
  703. }
  704. .right {
  705. font-size: 28rpx;
  706. font-weight: 400;
  707. color: #ED0303;
  708. }
  709. }
  710. }
  711. .people-list {
  712. margin-bottom: 20rpx;
  713. .btn {
  714. width: 185rpx;
  715. height: 60rpx;
  716. line-height: 60rpx;
  717. font-size: 24rpx;
  718. font-weight: 500;
  719. color: #2D2D2D;
  720. background-color: #F1F1F1;
  721. border: 1px solid #F1F1F1;
  722. border-radius: 8rpx;
  723. margin-bottom: 12rpx;
  724. .text {
  725. margin-left: 16rpx;
  726. }
  727. &.people {
  728. margin-right: 16rpx;
  729. text-align: center;
  730. background-color: #FFF2F2;
  731. border-color: #ED0303;
  732. }
  733. }
  734. }
  735. .visitors {
  736. margin-bottom: 20rpx;
  737. }
  738. .people-show-content {
  739. background: #FFFFFF;
  740. border-radius: 40rpx 40rpx 0rpx 0rpx;
  741. padding: 30rpx 40rpx;
  742. .title {
  743. position: relative;
  744. font-size: 32rpx;
  745. font-weight: 500;
  746. color: #606060;
  747. margin-bottom: 46rpx;
  748. text-align: center;
  749. .cancel {
  750. position: absolute;
  751. left: 0;
  752. top: 0;
  753. }
  754. }
  755. .add-btn {
  756. margin-bottom: 28rpx;
  757. background: #ffdee1;
  758. border-radius: 44rpx;
  759. padding: 26rpx;
  760. font-size: 24rpx;
  761. font-weight: 400;
  762. color: #ff1616;
  763. .img {
  764. width: 28rpx;
  765. height: 36rpx;
  766. margin-right: 36rpx;
  767. }
  768. }
  769. .list {
  770. /deep/ .u-radio-group {
  771. flex-wrap: wrap;
  772. }
  773. /deep/ .u-checkbox-group {
  774. flex-wrap: wrap;
  775. }
  776. overflow-y: auto;
  777. height: 40vh;
  778. .people {
  779. width: 100%;
  780. margin-bottom: 24rpx;
  781. }
  782. }
  783. .btn {}
  784. }
  785. .coupon {
  786. background: #FFFFFF;
  787. box-shadow: 0rpx 0rpx 16rpx 2rpx rgba(232, 232, 232, 0.5);
  788. border-radius: 16rpx;
  789. padding: 44rpx 36rpx;
  790. margin-bottom: 24rpx;
  791. .title {
  792. font-size: 28rpx;
  793. font-weight: bold;
  794. color: #2D2D2D;
  795. padding-bottom: 20rpx;
  796. margin-bottom: 26rpx;
  797. border-bottom-style: dashed;
  798. }
  799. .single-til {
  800. margin-bottom: 28rpx;
  801. .text {
  802. font-weight: 400;
  803. }
  804. }
  805. .no-coupon {
  806. height: 116rpx;
  807. line-height: 116rpx;
  808. text-align: center;
  809. background: #F9FAFD;
  810. border-radius: 8rpx;
  811. font-size: 24rpx;
  812. font-weight: 400;
  813. color: #C0C0C0;
  814. }
  815. }
  816. .notice {
  817. background: #FFFFFF;
  818. box-shadow: 0rpx 0rpx 16rpx 2rpx rgba(232, 232, 232, 0.5);
  819. border-radius: 16rpx;
  820. padding: 44rpx 36rpx;
  821. margin-bottom: 24rpx;
  822. .title {
  823. font-size: 28rpx;
  824. font-weight: bold;
  825. color: #2D2D2D;
  826. padding-bottom: 20rpx;
  827. margin-bottom: 26rpx;
  828. border-bottom-style: dashed;
  829. }
  830. .notice-item {
  831. font-size: 24rpx;
  832. font-weight: 400;
  833. color: #7F7F7F;
  834. line-height: 36rpx;
  835. margin-bottom: 8rpx;
  836. }
  837. }
  838. .page-bottom {
  839. position: relative;
  840. z-index: 1001;
  841. height: 98rpx;
  842. padding: 24rpx 20rpx 50rpx;
  843. .inner {
  844. position: fixed;
  845. background-color: #fff;
  846. height: 98rpx;
  847. left: 0;
  848. right: 0;
  849. bottom: 0;
  850. padding: 24rpx 20rpx 50rpx;
  851. box-shadow: 0rpx -4rpx 12rpx 0rpx rgba(215, 215, 215, 0.5);
  852. .total-price {
  853. font-size: 40rpx;
  854. font-weight: bold;
  855. color: #ED0000;
  856. }
  857. .btn {
  858. font-size: 28rpx;
  859. height: 80rpx;
  860. line-height: 80rpx;
  861. border-radius: 50rpx;
  862. padding: 0 50rpx;
  863. background-color: #eee;
  864. color: #333;
  865. text-align: center;
  866. &.active {
  867. background: linear-gradient(90deg, #FF7979 0%, #ED0000 100%);
  868. color: #fff;
  869. }
  870. }
  871. }
  872. }
  873. .purchaser {
  874. .item {
  875. margin-bottom: 10rpx;
  876. font-size: 26rpx;
  877. color: #333;
  878. }
  879. .un-auth {
  880. padding: 26rpx;
  881. background-color: #eee;
  882. color: #333;
  883. text-align: center;
  884. border-radius: 8rpx;
  885. }
  886. }
  887. </style>