bookticket.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  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. flex: 1;
  606. font-size: 22rpx;
  607. font-weight: 400;
  608. color: #606060;
  609. line-height: 1;
  610. }
  611. .text-item {
  612. margin-bottom: 18rpx;
  613. }
  614. .name {
  615. font-size: 32rpx;
  616. line-height: 1.5;
  617. font-weight: bold;
  618. color: #2D2D2D;
  619. }
  620. .addr {
  621. font-size: 24rpx;
  622. font-weight: 500;
  623. color: #2D2D2D;
  624. }
  625. }
  626. .down {
  627. position: relative;
  628. &:before {
  629. content: '';
  630. width: calc(100% + 26rpx);
  631. height: 1px;
  632. position: absolute;
  633. left: -13rpx;
  634. top: -2rpx;
  635. border-top: 4rpx dashed #F39FA0;
  636. }
  637. .num-wrap {
  638. padding-top: 36rpx;
  639. .title {
  640. font-size: 14px;
  641. color: #4E4E4E;
  642. }
  643. }
  644. }
  645. }
  646. .block-wrap {
  647. background: #FFFFFF;
  648. box-shadow: 0rpx 0rpx 20rpx 2rpx rgba(221, 221, 221, 0.5);
  649. border-radius: 20rpx;
  650. margin-bottom: 28rpx;
  651. padding: 32rpx 30rpx 34rpx;
  652. .block-title {
  653. // padding-left: 16rpx;
  654. position: relative;
  655. margin-bottom: 22rpx;
  656. font-size: 24rpx;
  657. font-weight: 500;
  658. color: #CACACA;
  659. // &:before{
  660. // content: '';
  661. // width: 6rpx;
  662. // height: 32rpx;
  663. // background: #1677FF;
  664. // border-radius: 4rpx;
  665. // position: absolute;
  666. // left: 0;
  667. // top: 50%;
  668. // margin-top: -16rpx;
  669. // }
  670. .name {
  671. font-size: 32rpx;
  672. font-weight: bold;
  673. color: #2D2D2D;
  674. margin-right: 20rpx;
  675. }
  676. }
  677. .no-people {
  678. font-size: 28rpx;
  679. font-weight: 400;
  680. color: #7F7F7F;
  681. .right {
  682. margin-left: 20rpx;
  683. color: #1677FF;
  684. }
  685. }
  686. .peoples {
  687. font-size: 28rpx;
  688. font-weight: 400;
  689. color: #7F7F7F;
  690. margin-bottom: 24rpx;
  691. .peoples-item {
  692. margin-bottom: 10rpx;
  693. }
  694. .name {
  695. margin-left: 20rpx;
  696. margin-right: 28rpx;
  697. font-size: 28rpx;
  698. font-weight: bold;
  699. color: #363636;
  700. }
  701. .people-id {
  702. font-size: 20rpx;
  703. font-weight: 400;
  704. color: #606060;
  705. }
  706. .right {
  707. font-size: 28rpx;
  708. font-weight: 400;
  709. color: #ED0303;
  710. }
  711. }
  712. }
  713. .people-list {
  714. margin-bottom: 20rpx;
  715. .btn {
  716. width: 185rpx;
  717. height: 60rpx;
  718. line-height: 60rpx;
  719. font-size: 24rpx;
  720. font-weight: 500;
  721. color: #2D2D2D;
  722. background-color: #F1F1F1;
  723. border: 1px solid #F1F1F1;
  724. border-radius: 8rpx;
  725. margin-bottom: 12rpx;
  726. .text {
  727. margin-left: 16rpx;
  728. }
  729. &.people {
  730. margin-right: 16rpx;
  731. text-align: center;
  732. background-color: #FFF2F2;
  733. border-color: #ED0303;
  734. }
  735. }
  736. }
  737. .visitors {
  738. margin-bottom: 20rpx;
  739. }
  740. .people-show-content {
  741. background: #FFFFFF;
  742. border-radius: 40rpx 40rpx 0rpx 0rpx;
  743. padding: 30rpx 40rpx;
  744. .title {
  745. position: relative;
  746. font-size: 32rpx;
  747. font-weight: 500;
  748. color: #606060;
  749. margin-bottom: 46rpx;
  750. text-align: center;
  751. .cancel {
  752. position: absolute;
  753. left: 0;
  754. top: 0;
  755. }
  756. }
  757. .add-btn {
  758. margin-bottom: 28rpx;
  759. background: #ffdee1;
  760. border-radius: 44rpx;
  761. padding: 26rpx;
  762. font-size: 24rpx;
  763. font-weight: 400;
  764. color: #ff1616;
  765. .img {
  766. width: 28rpx;
  767. height: 36rpx;
  768. margin-right: 36rpx;
  769. }
  770. }
  771. .list {
  772. /deep/ .u-radio-group {
  773. flex-wrap: wrap;
  774. }
  775. /deep/ .u-checkbox-group {
  776. flex-wrap: wrap;
  777. }
  778. overflow-y: auto;
  779. height: 40vh;
  780. .people {
  781. width: 100%;
  782. margin-bottom: 24rpx;
  783. }
  784. }
  785. .btn {}
  786. }
  787. .coupon {
  788. background: #FFFFFF;
  789. box-shadow: 0rpx 0rpx 16rpx 2rpx rgba(232, 232, 232, 0.5);
  790. border-radius: 16rpx;
  791. padding: 44rpx 36rpx;
  792. margin-bottom: 24rpx;
  793. .title {
  794. font-size: 28rpx;
  795. font-weight: bold;
  796. color: #2D2D2D;
  797. padding-bottom: 20rpx;
  798. margin-bottom: 26rpx;
  799. border-bottom-style: dashed;
  800. }
  801. .single-til {
  802. margin-bottom: 28rpx;
  803. .text {
  804. font-weight: 400;
  805. }
  806. }
  807. .no-coupon {
  808. height: 116rpx;
  809. line-height: 116rpx;
  810. text-align: center;
  811. background: #F9FAFD;
  812. border-radius: 8rpx;
  813. font-size: 24rpx;
  814. font-weight: 400;
  815. color: #C0C0C0;
  816. }
  817. }
  818. .notice {
  819. background: #FFFFFF;
  820. box-shadow: 0rpx 0rpx 16rpx 2rpx rgba(232, 232, 232, 0.5);
  821. border-radius: 16rpx;
  822. padding: 44rpx 36rpx;
  823. margin-bottom: 24rpx;
  824. .title {
  825. font-size: 28rpx;
  826. font-weight: bold;
  827. color: #2D2D2D;
  828. padding-bottom: 20rpx;
  829. margin-bottom: 26rpx;
  830. border-bottom-style: dashed;
  831. }
  832. .notice-item {
  833. font-size: 24rpx;
  834. font-weight: 400;
  835. color: #7F7F7F;
  836. line-height: 36rpx;
  837. margin-bottom: 8rpx;
  838. }
  839. }
  840. .page-bottom {
  841. position: relative;
  842. z-index: 1001;
  843. height: 98rpx;
  844. padding: 24rpx 20rpx 50rpx;
  845. .inner {
  846. position: fixed;
  847. background-color: #fff;
  848. height: 98rpx;
  849. left: 0;
  850. right: 0;
  851. bottom: 0;
  852. padding: 24rpx 20rpx 50rpx;
  853. box-shadow: 0rpx -4rpx 12rpx 0rpx rgba(215, 215, 215, 0.5);
  854. .total-price {
  855. font-size: 40rpx;
  856. font-weight: bold;
  857. color: #ED0000;
  858. }
  859. .btn {
  860. font-size: 28rpx;
  861. height: 80rpx;
  862. line-height: 80rpx;
  863. border-radius: 50rpx;
  864. padding: 0 50rpx;
  865. background-color: #eee;
  866. color: #333;
  867. text-align: center;
  868. &.active {
  869. background: linear-gradient(90deg, #FF7979 0%, #ED0000 100%);
  870. color: #fff;
  871. }
  872. }
  873. }
  874. }
  875. .purchaser {
  876. .item {
  877. margin-bottom: 10rpx;
  878. font-size: 26rpx;
  879. color: #333;
  880. }
  881. .un-auth {
  882. padding: 26rpx;
  883. background-color: #eee;
  884. color: #333;
  885. text-align: center;
  886. border-radius: 8rpx;
  887. }
  888. }
  889. </style>