mallOrderDetail.vue 24 KB

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