bookticket.vue 23 KB

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