activityOrderDetail.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994
  1. <template>
  2. <view class="box">
  3. <!-- 自定义导航 -->
  4. <view class="zdyNavBox">
  5. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  6. <view class="zdyNav">
  7. <view class="zdyNavLeft">
  8. <image src="../../static/img/nav_icon_back.png" mode="aspectFit" class="backImg" @click="goback">
  9. </image>
  10. </view>
  11. <view class="zdyNavTitle">订单详情</view>
  12. <view style="width: 50px;"></view>
  13. </view>
  14. </view>
  15. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  16. <view style="height: 44px;"></view>
  17. <view class="top">
  18. <view class="orderState">
  19. <image src="../../static/img/icon_order_def.png" mode="" style="width: 44rpx;height: 44rpx;"></image>
  20. <view class="SheetState" v-if="orderData.data.sheetState == 1">待付款</view>
  21. <view class="SheetState" v-if="orderData.data.sheetState == 2">待服务</view>
  22. <view class="SheetState" v-if="orderData.data.sheetState == 3">已完成</view>
  23. <view class="SheetState" v-if="orderData.data.sheetState == 4">已取消</view>
  24. </view>
  25. </view>
  26. <!-- 店铺信息 -->
  27. <view class="shopBox">
  28. <image src="../../static/img/icon_store.png" mode="" class="shopBoximg"></image>
  29. <view class="shopCont">
  30. <view class="shopName">{{orderData.shopInfo.shopName}}</view>
  31. <view class="Address">
  32. {{orderData.shopInfo.provinceName}}{{orderData.shopInfo.cityName}}{{orderData.shopInfo.areaName}}{{orderData.shopInfo.address}}
  33. </view>
  34. </view>
  35. <!-- <view class="shopRightBox" @click="map"> -->
  36. <view class="shopRightBox">
  37. <image src="../../static/img/icon_ditu.png" mode="" class="shopRightImg"></image>
  38. <view class="shopRihgtTxt">地图</view>
  39. </view>
  40. <view class="shopsx"></view>
  41. <view class="shopRightBox" @click="call">
  42. <image src="../../static/img/icon_phone.png" mode="" class="shopRightImg"></image>
  43. <view class="shopRihgtTxt">电话</view>
  44. </view>
  45. </view>
  46. <!-- 订单内容 -->
  47. <view class="information">
  48. <view class="detailedTitle">订单内容</view>
  49. <view v-if="orderData.openSheetDetail.length>0" v-for="(item,index) in orderData.openSheetDetail"
  50. :key="index">
  51. <view class="informationLine2">
  52. <view class="goodsName">{{item.itemName}}</view>
  53. <view class="huodong" @click="goDetail(item.itemId)">
  54. <view class="goodsName3">活动详情</view>
  55. <image src="../../static/img/little_rightArrow.png" mode="" style="width: 30rpx;height: 30rpx;">
  56. </image>
  57. </view>
  58. </view>
  59. <view class="salePrice"><span class="informationNum">¥</span>{{item.salePrice}}</view>
  60. </view>
  61. <view v-if="orderData.data.sheetState != 1 && orderData.data.sheetState != 4" class="line"></view>
  62. <view v-if="orderData.data.sheetState != 1 && orderData.data.sheetState != 4">
  63. <view class="goodsName2">
  64. 券码信息({{quanMaList.length?quanMaList.length:0}}张可用)
  65. </view>
  66. <view class="detailedLine" v-for="(v,index) in orderData.OpenSheetQRCode">
  67. <view v-if="v.writeoffState==1" class="detailedName">
  68. <view class="redPoint"></view>
  69. <view class="code">{{v.qrCode}}</view>
  70. <view class="quanState">待使用</view>
  71. </view>
  72. <view v-if="v.writeoffState==3" class="detailedName">
  73. <view class="redPoint"></view>
  74. <view class="code old">{{v.qrCode}}</view>
  75. <view class="quanState2">已使用</view>
  76. </view>
  77. <image src="../../static/img/icon_erweima.png" mode="" style="width: 36rpx;height: 36rpx;"
  78. v-if="v.writeoffState==1" @click="isShowMa=true"></image>
  79. </view>
  80. </view>
  81. </view>
  82. <!-- 实付款 -->
  83. <view class="money">
  84. <view class="informationNum">实付款:</view>
  85. <view class="informationNum" style="color: #FF0000;font-weight: bold;">¥{{orderData.data.realMoney}}</view>
  86. </view>
  87. <!-- 订单信息 -->
  88. <view class="information">
  89. <view class="detailedTitle">订单信息</view>
  90. <view class="informationLine" v-if="orderData.data.plateNumber">
  91. <view class="informationTxt">车牌号:</view>
  92. <view class="informationNum">{{orderData.data.plateNumber}}</view>
  93. </view>
  94. <view class="informationLine" v-if="orderData.data.customerName">
  95. <view class="informationTxt">联系人:</view>
  96. <view class="informationNum">{{orderData.data.customerName}}</view>
  97. </view>
  98. <view class="informationLine" v-if="orderData.data.mobilePhone">
  99. <view class="informationTxt">手机号:</view>
  100. <view class="informationNum">{{orderData.data.mobilePhone}}</view>
  101. </view>
  102. <view class="informationLine" v-if="orderData.data.unit">
  103. <view class="informationTxt">单位:</view>
  104. <view class="informationNum">{{orderData.data.unit}}</view>
  105. </view>
  106. <view class="informationLine">
  107. <view class="informationTxt">报名时间:</view>
  108. <view class="informationNum">{{orderData.data.createTime}}</view>
  109. </view>
  110. <view class="informationLine">
  111. <view class="informationTxt">订单单号:</view>
  112. <view class="informationNum">{{orderData.data.code}}<span class="codeCopy"
  113. @click="copy(orderData.data.code)">复制</span></view>
  114. </view>
  115. </view>
  116. <!-- 支付信息 -->
  117. <view class="information">
  118. <view class="detailedTitle">支付信息</view>
  119. <view class="informationLine">
  120. <view class="informationTxt">支付状态:</view>
  121. <view class="informationNum" v-if="orderData.data.payState==1">未支付</view>
  122. <view class="informationNum" v-if="orderData.data.payState==2">已支付</view>
  123. </view>
  124. <view class="informationLine">
  125. <view class="informationTxt">支付方式:</view>
  126. <view class="informationNum" v-if="orderData.data.payType==1">在线支付</view>
  127. <view class="informationNum" v-if="orderData.data.payType==2">-</view>
  128. </view>
  129. <view class="informationLine">
  130. <view class="informationTxt">支付时间:</view>
  131. <view class="informationNum">{{orderData.data.payTime?orderData.data.payTime:'-'}}</view>
  132. </view>
  133. </view>
  134. <view style="height: 50rpx;background-color: #F4F5F7;"></view>
  135. <!-- 待付款 -->
  136. <view class="bottom" v-if="orderData.data.sheetState == 1">
  137. <view class="cancel" @click="cancelBespeak">取消订单</view>
  138. </view>
  139. <!-- 待服务 -->
  140. <view class="bottom" v-if="orderData.data.sheetState == 2">
  141. <view class="defer" @click="goHeXiao">核销</view>
  142. </view>
  143. <!-- 券码 -->
  144. <view class="maBox" v-if="isShowMa==true" @click="isShowMa=false">
  145. <view class="querenMa">
  146. <view class="maTop">
  147. <view class="maTitle">请到店出示券码即可开始服务</view>
  148. <image @click="isShowMa=false" src="../../static/img/icon_delete.png" mode=""
  149. style="width: 26rpx;height: 26rpx;margin-left: 10rpx;"></image>
  150. </view>
  151. <swiper class="swiper" circular :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC"
  152. indicator-active-color="#D53533">
  153. <swiper-item v-for="(item,index) in quanMaList">
  154. <view class="swiper-item">
  155. <view class="maCode">{{item}}</view>
  156. <view class="maBoximg">
  157. <tki-qrcode cid="qrcode1" ref="qrcode" :val="item" :size="400" :unit="unit"
  158. :pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
  159. :loadMake="loadMake" :usingComponents="true" @result="qrR" />
  160. </view>
  161. </view>
  162. </swiper-item>
  163. </swiper>
  164. </view>
  165. </view>
  166. </view>
  167. </template>
  168. <script>
  169. import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue"
  170. export default {
  171. components: {
  172. tkiQrcode
  173. },
  174. data() {
  175. return {
  176. id: '',
  177. iStatusBarHeight: '',
  178. orderData: '',
  179. onval: true, // val值变化时自动重新生成二维码
  180. loadMake: true, // 组件加载完成后自动生成二维码
  181. size: 500,
  182. qrcodeShow: false,
  183. qrcodeTop: '-100vh',
  184. qrcodeTopVal: '',
  185. ifShow: false,
  186. val: '二维码', // 要生成的二维码值
  187. unit: 'upx', // 单位
  188. background: '#b4e9e2', // 背景色
  189. foreground: '#309286', // 前景色
  190. pdground: '#262637', // 角标色
  191. icon: '', // 二维码图标
  192. iconsize: 40, // 二维码图标大小
  193. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  194. src: '', // 二维码生成后的图片地址或base64
  195. isShowMa: false,
  196. quanMaList: [],
  197. }
  198. },
  199. onLoad(opt) {
  200. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  201. this.id = opt.id
  202. if (this.id) {
  203. this.getData()
  204. }
  205. },
  206. methods: {
  207. // 核销
  208. goHeXiao() {
  209. //app交互
  210. var standalone = window.navigator.standalone
  211. var userAgent = window.navigator.userAgent.toLowerCase()
  212. var safari = /safari/.test(userAgent)
  213. var ios = /iphone|ipod|ipad|mac/.test(userAgent)
  214. var android = /android/.test(userAgent)
  215. if (ios) {
  216. if (true) { //!standalone&& !safari
  217. window.webkit.messageHandlers.goHeXiao.postMessage({"id":this.id?this.id:''})
  218. }
  219. } else if (android) {
  220. window.android.postMessage()
  221. }
  222. },
  223. goDetail(id) {
  224. console.log('id--', id);
  225. uni.navigateTo({
  226. url: '../addjk/activityDetail?id=' + id
  227. })
  228. },
  229. pay() {
  230. this.$http('openMallOrder/unifiedPay', {
  231. sheetId: this.id
  232. }, 'POST').then(res => {
  233. if (res.code == 0) {
  234. this.requestPayment(res.data)
  235. } else {
  236. uni.showToast({
  237. title: res.msg,
  238. icon: 'none',
  239. duration: 3000
  240. });
  241. }
  242. })
  243. },
  244. requestPayment(res) {
  245. var payInfo = res;
  246. //console.log(payInfo)
  247. //console.log(String(Date.now()))
  248. var that = this;
  249. uni.requestPayment({
  250. provider: 'wxpay',
  251. //timeStamp: String(Date.now()),
  252. timeStamp: payInfo.timeStamp,
  253. nonceStr: payInfo.nonceStr,
  254. package: payInfo.package,
  255. signType: payInfo.signType,
  256. paySign: payInfo.paySign,
  257. appid: payInfo.appId,
  258. success: function(res) {
  259. console.log('success:' + JSON.stringify(res));
  260. uni.showToast({
  261. title: '支付成功',
  262. icon: 'none',
  263. duration: 2000
  264. });
  265. that.getData()
  266. },
  267. fail: function(err) {
  268. console.log(err)
  269. uni.showToast({
  270. title: '支付失败',
  271. icon: 'none',
  272. duration: 2000
  273. });
  274. }
  275. });
  276. },
  277. copy(txt) {
  278. uni.setClipboardData({
  279. data: txt,
  280. success: function() {
  281. uni.showToast({
  282. title: '复制成功',
  283. icon: 'none',
  284. duration: 2000
  285. });
  286. }
  287. });
  288. },
  289. upTime() {
  290. uni.showLoading({
  291. title: '加载中'
  292. })
  293. var that = this
  294. this.$http('openH5Indent/carOwner/updateTimeOfAppointment', {
  295. id: this.id,
  296. shopId: this.orderData.shopInfo.id,
  297. billDate: this.billDate
  298. }, 'POST').then(res => {
  299. uni.hideLoading();
  300. // var list = res.data.Items
  301. var list = res.data
  302. console.log("result+=", res.data);
  303. uni.showToast({
  304. title: '延期成功',
  305. icon: 'none',
  306. duration: 2000
  307. });
  308. setTimeout(function() {
  309. that.getData();
  310. }, 1000);
  311. })
  312. },
  313. cancelBespeak() {
  314. var that = this
  315. uni.showModal({
  316. title: '提示',
  317. content: '是否取消该订单',
  318. cancelText: '否',
  319. confirmText: '是',
  320. success: function(res) {
  321. if (res.confirm) {
  322. uni.showLoading({
  323. title: '加载中'
  324. })
  325. that.$http('openH5Indent/updateSheetState', {
  326. id: that.id,
  327. }, 'POST').then(res => {
  328. uni.hideLoading();
  329. // var list = res.data.Items
  330. uni.showToast({
  331. title: '取消成功',
  332. icon: 'none',
  333. duration: 2000
  334. });
  335. setTimeout(function() {
  336. that.getData();
  337. }, 1000);
  338. })
  339. } else if (res.cancel) {
  340. }
  341. }
  342. });
  343. },
  344. map() {
  345. console.log("打开地图")
  346. var that = this;
  347. if (!that.orderData.shopInfo.lat || !that.orderData.shopInfo.lng) {
  348. uni.showToast({
  349. title: '该店铺未设置定位',
  350. icon: 'none',
  351. duration: 3000
  352. });
  353. } else {
  354. uni.openLocation({
  355. latitude: Number(that.orderData.shopInfo.lat),
  356. longitude: Number(that.orderData.shopInfo.lng),
  357. name: that.orderData.shopInfo.shopName,
  358. address: that.orderData.shopInfo.provinceName + that.orderData.shopInfo.cityName + that
  359. .orderData.shopInfo.areaName + that.orderData.shopInfo.address,
  360. success: function() {
  361. console.log('success');
  362. },
  363. fail(err) {
  364. console.log(err)
  365. }
  366. });
  367. }
  368. },
  369. call() {
  370. uni.makePhoneCall({
  371. phoneNumber: this.orderData.shopInfo.mobilePhone
  372. });
  373. },
  374. getData() {
  375. uni.showLoading({
  376. title: '加载中'
  377. });
  378. this.$http('openH5Indent/queryOpenSheet', {
  379. id: this.id,
  380. }, 'GET').then(res => {
  381. uni.hideLoading();
  382. this.orderData = res.data;
  383. if (this.quanMaList) {
  384. this.quanMaList = [];
  385. }
  386. let maList = this.orderData.OpenSheetQRCode;
  387. if (maList) {
  388. maList.forEach(item => {
  389. if (item.writeoffState == 1) {
  390. this.quanMaList.push(item.qrCode);
  391. }
  392. })
  393. }
  394. console.log('可用券码--', this.quanMaList);
  395. })
  396. },
  397. goback() {
  398. uni.navigateBack({
  399. delta: 1
  400. })
  401. },
  402. gohome() {
  403. uni.switchTab({
  404. url: '../../index/index'
  405. })
  406. },
  407. },
  408. onPullDownRefresh() {
  409. this.getData()
  410. setTimeout(function() {
  411. uni.stopPullDownRefresh();
  412. }, 1000);
  413. },
  414. }
  415. </script>
  416. <style scoped>
  417. .box {
  418. min-height: 100vh;
  419. background: #F4F5F7;
  420. padding-bottom: 135rpx;
  421. }
  422. .zdyNavBox {
  423. width: 100vw;
  424. background: #FFFFFF;
  425. position: fixed;
  426. top: 0;
  427. left: 0;
  428. z-index: 9999999;
  429. }
  430. .zdyNav {
  431. height: 44px;
  432. display: flex;
  433. justify-content: space-between;
  434. align-items: center;
  435. }
  436. .backImg {
  437. width: 44rpx;
  438. height: 44rpx;
  439. margin-left: 10rpx;
  440. margin-right: 20rpx;
  441. }
  442. .homeImg {
  443. width: 44rpx;
  444. height: 44rpx;
  445. }
  446. .zdyNavLeft {
  447. display: flex;
  448. align-items: center;
  449. }
  450. .zdyNavTitle {
  451. height: 44px;
  452. background: #FFFFFF;
  453. text-align: center;
  454. font-size: 34rpx;
  455. line-height: 44px;
  456. }
  457. .top {
  458. height: 190rpx;
  459. background-color: #FF0000;
  460. }
  461. .orderState {
  462. display: flex;
  463. justify-content: center;
  464. align-items: center;
  465. padding-top: 40rpx;
  466. }
  467. .SheetState {
  468. display: flex;
  469. justify-content: center;
  470. font-size: 36rpx;
  471. font-weight: 500;
  472. color: #FFFFFF;
  473. margin-left: 15rpx;
  474. }
  475. .timeEditImg {
  476. width: 25rpx;
  477. height: 25rpx;
  478. padding-left: 20rpx;
  479. }
  480. .shopBoximg {
  481. width: 40rpx;
  482. height: 40rpx;
  483. }
  484. .shopRightImg {
  485. width: 44rpx;
  486. height: 45rpx;
  487. }
  488. .shopsx {
  489. width: 1px;
  490. height: 50rpx;
  491. background: #EEEEEE;
  492. margin-top: 30rpx;
  493. margin-left: 28rpx;
  494. }
  495. .shopBox {
  496. display: flex;
  497. padding: 30rpx 20rpx;
  498. margin: 0rpx 24rpx;
  499. margin-top: -60rpx;
  500. background-color: #FFFFFF;
  501. border-radius: 10rpx;
  502. }
  503. .shopCont {
  504. width: 405rpx;
  505. padding-left: 20rpx;
  506. }
  507. .shopName {
  508. font-size: 30rpx;
  509. font-weight: bold;
  510. color: #3C3C3C;
  511. line-height: 42rpx;
  512. }
  513. .Address {
  514. color: #999999;
  515. font-size: 24rpx;
  516. margin-top: 10rpx;
  517. }
  518. .shopRihgtTxt {
  519. color: #999999;
  520. font-size: 24rpx;
  521. }
  522. .shopRightBox {
  523. padding-left: 28rpx;
  524. }
  525. .detailedTitle {
  526. padding: 23rpx 20rpx;
  527. display: flex;
  528. text-align: center;
  529. align-content: flex-start;
  530. border-bottom: 1rpx solid #EEEEEE;
  531. font-size: 30rpx;
  532. font-weight: bold;
  533. color: #3C3C3C;
  534. }
  535. .detailedLine {
  536. display: flex;
  537. padding: 16rpx 20rpx;
  538. justify-content: space-between;
  539. align-items: center;
  540. }
  541. .detailedImg {
  542. width: 120rpx;
  543. height: 120rpx;
  544. border-radius: 10rpx;
  545. }
  546. .detailedName {
  547. display: flex;
  548. align-items: center;
  549. }
  550. .code {
  551. font-size: 26rpx;
  552. color: #333333;
  553. font-weight: bold;
  554. width: 180rpx
  555. }
  556. .old {
  557. color: #999999;
  558. font-weight: 400;
  559. text-decoration: line-through;
  560. }
  561. .redPoint {
  562. width: 10rpx;
  563. height: 10rpx;
  564. background: #FF0000;
  565. border-radius: 10rpx;
  566. margin-right: 10rpx;
  567. }
  568. .quanState {
  569. font-size: 22rpx;
  570. color: #F19D01;
  571. padding: 0 10rpx;
  572. border: 1rpx solid #F19D01;
  573. border-radius: 4rpx;
  574. margin-left: 20rpx;
  575. }
  576. .quanState2 {
  577. font-size: 22rpx;
  578. color: #999999;
  579. padding: 0 10rpx;
  580. border: 1rpx solid #DDDDDD;
  581. border-radius: 4rpx;
  582. margin-left: 20rpx;
  583. }
  584. .information {
  585. background: #FFFFFF;
  586. border-radius: 10rpx;
  587. margin: 20rpx 24rpx;
  588. padding-bottom: 15rpx;
  589. }
  590. .informationLine {
  591. display: flex;
  592. padding: 15rpx 20rpx;
  593. }
  594. .informationLine2 {
  595. display: flex;
  596. justify-content: space-between;
  597. font-size: 26rpx;
  598. padding: 20rpx;
  599. align-items: center;
  600. padding-bottom: 0;
  601. }
  602. .salePrice {
  603. padding-left: 20rpx;
  604. padding-top: 15rpx;
  605. font-size: 26rpx;
  606. font-weight: 500;
  607. color: #333333;
  608. line-height: 45rpx;
  609. }
  610. .money {
  611. background: #FFFFFF;
  612. border-radius: 10rpx;
  613. margin: 20rpx 24rpx;
  614. display: flex;
  615. justify-content: space-between;
  616. font-size: 26rpx;
  617. padding: 30rpx 20rpx;
  618. }
  619. .informationTxt {
  620. width: 190rpx;
  621. font-size: 26rpx;
  622. color: #999999;
  623. }
  624. .line {
  625. height: 20rpx;
  626. background-color: #FFFFFF;
  627. border-bottom: 1rpx solid #EEEEEE;
  628. }
  629. .goodsName {
  630. width: 70%;
  631. color: #333333;
  632. font-size: 26rpx;
  633. }
  634. .huodong {
  635. display: flex;
  636. align-items: center;
  637. }
  638. .goodsName3 {
  639. color: #333333;
  640. font-size: 26rpx;
  641. }
  642. .goodsName2 {
  643. padding: 20rpx 20rpx 15rpx;
  644. color: #333333;
  645. font-size: 26rpx;
  646. }
  647. .informationNum {
  648. color: #333333;
  649. font-size: 26rpx;
  650. }
  651. .codeCopy {
  652. width: 77rpx;
  653. height: 36rpx;
  654. background: #F4F5F7;
  655. border-radius: 22rpx;
  656. font-size: 24rpx;
  657. color: #333333;
  658. text-align: center;
  659. line-height: 33rpx;
  660. padding: 0 15rpx;
  661. margin-left: 20rpx;
  662. }
  663. .orderBottom {
  664. width: 750rpx;
  665. height: 98rpx;
  666. background: #FFFFFF;
  667. position: fixed;
  668. left: 0;
  669. bottom: 0;
  670. display: flex;
  671. justify-content: flex-end;
  672. }
  673. .bottom {
  674. display: flex;
  675. justify-content: flex-end;
  676. padding: 20rpx;
  677. background-color: #FFFFFF;
  678. align-items: center;
  679. height: 98rpx;
  680. width: 100vw;
  681. position: fixed;
  682. bottom: 0rpx;
  683. padding-bottom: constant(safe-area-inset-bottom);
  684. padding-bottom: env(safe-area-inset-bottom);
  685. }
  686. .cancel {
  687. color: #3C3C3C;
  688. font-size: 28rpx;
  689. width: 150rpx;
  690. height: 56rpx;
  691. border-radius: 36rpx;
  692. border: 1rpx solid #DDDDDD;
  693. text-align: center;
  694. line-height: 56rpx;
  695. margin-right: 40rpx;
  696. }
  697. .defer {
  698. color: #D53533;
  699. font-size: 28rpx;
  700. width: 150rpx;
  701. height: 56rpx;
  702. border-radius: 36rpx;
  703. border: 1rpx solid #D53533;
  704. text-align: center;
  705. line-height: 56rpx;
  706. margin-right: 40rpx;
  707. }
  708. .itemBox {
  709. margin: 20rpx;
  710. border-radius: 10rpx;
  711. border: 2rpx solid #EEEEEE;
  712. }
  713. .itemTop {
  714. padding: 18rpx 20rpx;
  715. padding-right: 0;
  716. background-color: #FFEFD5;
  717. display: flex;
  718. justify-content: space-between;
  719. align-content: center;
  720. }
  721. .topTitle {
  722. width: 104rpx;
  723. font-size: 26rpx;
  724. color: #333333;
  725. margin-right: 20rpx;
  726. text-align: right;
  727. }
  728. .leftItem {
  729. font-size: 26rpx;
  730. color: #333333;
  731. margin-right: 20rpx;
  732. flex-grow: 1;
  733. /* 隐藏文字显示 ...不换行 */
  734. overflow: hidden;
  735. text-overflow: ellipsis;
  736. white-space: nowrap;
  737. }
  738. .itemContent {
  739. padding: 20rpx;
  740. padding-right: 0;
  741. background-color: #FFFFFF;
  742. display: flex;
  743. justify-content: space-between;
  744. align-content: center;
  745. }
  746. .maBox {
  747. width: 100%;
  748. height: 100vh;
  749. background: rgba(0, 0, 0, 0.4);
  750. position: fixed;
  751. left: 0;
  752. top: 0;
  753. z-index: 9999;
  754. }
  755. .querenMa {
  756. width: 578;
  757. height: 640rpx;
  758. background: #ffffff;
  759. margin: 0 86rpx;
  760. margin-top: 50%;
  761. border-radius: 24rpx;
  762. }
  763. .maTop {
  764. display: flex;
  765. justify-content: space-between;
  766. align-items: center;
  767. padding: 30rpx 20rpx 15rpx;
  768. }
  769. .maTitle {
  770. color: #666666;
  771. font-size: 26rpx;
  772. text-align: center;
  773. padding-left: 100rpx;
  774. }
  775. .swiper {
  776. width: 100%;
  777. height: 85%;
  778. background: #FFFFFF;
  779. }
  780. .swiper-item {
  781. width: 100%;
  782. height: 100%;
  783. }
  784. .maCode {
  785. font-size: 30rpx;
  786. font-weight: 500;
  787. color: #333333;
  788. line-height: 42rpx;
  789. margin-bottom: 40rpx;
  790. text-align: center;
  791. }
  792. .maBoximg {
  793. width: 400rpx;
  794. height: 400rpx;
  795. margin-left: 86rpx;
  796. }
  797. </style>