bookticket.vue 25 KB

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