mallOrderDetail.vue 24 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075
  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="isShowMa=true"></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="isShowMa=false">
  166. <view class="querenMa">
  167. <view class="maTop">
  168. <view class="maTitle">请到店出示券码即可开始服务</view>
  169. <image @click="isShowMa=false" 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. decryptPhoneNumber: function(e) {
  263. console.log(e);
  264. this.code=e.detail.code
  265. this.wxPhoneLogin()
  266. this.authorizShow=false;
  267. },
  268. wxPhoneLogin(){
  269. var that=this;
  270. this.$http('miniApp2/sys/wxPhoneLogin', {
  271. appId:this.ext.appId,
  272. unionId:this.ext.unionId,
  273. code:this.code,
  274. openId:this.wxOpenData.openid
  275. },'POST').then(res => {
  276. var data = res.data;
  277. if(data.loginInfo){
  278. this.userInfo=data.loginInfo.openUser;
  279. this.wxOpenData=data.loginInfo;
  280. this.$store.commit('mutationswxOpenData', data)
  281. this.$store.commit('mutationsuserInfo', this.userInfo)
  282. this.getData()
  283. }
  284. })
  285. },
  286. pay(){
  287. this.$http('openMallOrder/unifiedPay', {
  288. sheetId:this.id
  289. },'POST').then(res => {
  290. if(res.code==0){
  291. this.requestPayment(res.data)
  292. }else{
  293. uni.showToast({
  294. title: res.msg,
  295. icon: 'none',
  296. duration: 3000
  297. });
  298. }
  299. })
  300. },
  301. requestPayment(res){
  302. var payInfo=res;
  303. //console.log(payInfo)
  304. //console.log(String(Date.now()))
  305. var that=this;
  306. uni.requestPayment({
  307. provider: 'wxpay',
  308. //timeStamp: String(Date.now()),
  309. timeStamp: payInfo.timeStamp,
  310. nonceStr: payInfo.nonceStr,
  311. package:payInfo.package,
  312. signType: payInfo.signType,
  313. paySign: payInfo.paySign,
  314. appid:payInfo.appId,
  315. success: function (res) {
  316. console.log('success:' + JSON.stringify(res));
  317. uni.showToast({
  318. title: '支付成功',
  319. icon:'none',
  320. duration: 2000
  321. });
  322. that.getData()
  323. },
  324. fail: function (err) {
  325. console.log(err)
  326. uni.showToast({
  327. title: '支付失败',
  328. icon:'none',
  329. duration: 2000
  330. });
  331. }
  332. });
  333. },
  334. copy(txt) {
  335. uni.setClipboardData({
  336. data: txt,
  337. success: function() {
  338. uni.showToast({
  339. title: '复制成功',
  340. icon: 'none',
  341. duration: 2000
  342. });
  343. }
  344. });
  345. },
  346. upTime() {
  347. uni.showLoading({
  348. title: '加载中'
  349. })
  350. var that = this
  351. this.$http('openreservation/carOwner/updateTimeOfAppointment', {
  352. id: this.id,
  353. shopId: this.orderData.shopInfo.id,
  354. billDate: this.billDate
  355. }, 'POST').then(res => {
  356. uni.hideLoading();
  357. // var list = res.data.Items
  358. var list = res.data
  359. console.log("result+=", res.data);
  360. uni.showToast({
  361. title: '延期成功',
  362. icon: 'none',
  363. duration: 2000
  364. });
  365. setTimeout(function() {
  366. that.getData();
  367. }, 1000);
  368. })
  369. },
  370. cancelBespeak(){
  371. var that = this
  372. uni.showModal({
  373. title: '提示',
  374. content: '是否取消该订单',
  375. cancelText:'否',
  376. confirmText:'是',
  377. success: function (res) {
  378. if (res.confirm) {
  379. uni.showLoading({
  380. title: '加载中'
  381. })
  382. that.$http('openOrderManagement/updateSheetState', {
  383. id: that.id,
  384. }, 'POST').then(res => {
  385. uni.hideLoading();
  386. // var list = res.data.Items
  387. uni.showToast({
  388. title: '取消成功',
  389. icon: 'none',
  390. duration: 2000
  391. });
  392. setTimeout(function() {
  393. that.getData();
  394. }, 1000);
  395. })
  396. } else if (res.cancel) {
  397. }
  398. }
  399. });
  400. },
  401. map() {
  402. console.log("打开地图")
  403. var that = this;
  404. if (!that.orderData.shopInfo.lat || !that.orderData.shopInfo.lng) {
  405. uni.showToast({
  406. title: '该店铺未设置定位',
  407. icon: 'none',
  408. duration: 3000
  409. });
  410. } else {
  411. uni.openLocation({
  412. latitude: Number(that.orderData.shopInfo.lat),
  413. longitude: Number(that.orderData.shopInfo.lng),
  414. name: that.orderData.shopInfo.shopName,
  415. address: that.orderData.shopInfo.provinceName + that.orderData.shopInfo.cityName + that
  416. .orderData.shopInfo.areaName + that.orderData.shopInfo.address,
  417. success: function() {
  418. console.log('success');
  419. },
  420. fail(err) {
  421. console.log(err)
  422. }
  423. });
  424. }
  425. },
  426. call() {
  427. uni.makePhoneCall({
  428. phoneNumber: this.orderData.shopInfo.mobilePhone
  429. });
  430. },
  431. getData() {
  432. uni.showLoading({
  433. title: '加载中'
  434. });
  435. this.$http('openOrderManagement/queryOpenSheet', {
  436. id: this.id,
  437. }, 'GET').then(res => {
  438. uni.hideLoading();
  439. this.orderData = res.data;
  440. if (this.quanMaList) {
  441. this.quanMaList = [];
  442. }
  443. let maList = this.orderData.OpenSheetQRCode;
  444. if (maList) {
  445. maList.forEach(item =>{
  446. if (item.writeoffState==1) {
  447. this.quanMaList.push(item.qrCode);
  448. }
  449. })
  450. }
  451. console.log('可用券码--',this.quanMaList);
  452. })
  453. },
  454. goback() {
  455. uni.navigateBack({
  456. delta: 1
  457. })
  458. },
  459. gohome(){
  460. uni.switchTab({
  461. url:'../../index/index'
  462. })
  463. },
  464. },
  465. onPullDownRefresh() {
  466. this.getData()
  467. setTimeout(function() {
  468. uni.stopPullDownRefresh();
  469. }, 1000);
  470. },
  471. }
  472. </script>
  473. <style scoped>
  474. .box {
  475. min-height: 100vh;
  476. background: #F4F5F7;
  477. padding-bottom: 135rpx;
  478. }
  479. .zdyNavBox{
  480. width: 100vw;
  481. background: #FFFFFF;
  482. position: fixed;
  483. top: 0;
  484. left: 0;
  485. z-index: 9999999;
  486. }
  487. .zdyNav{
  488. height: 44px;
  489. display: flex;
  490. justify-content: space-between;
  491. align-items: center;
  492. }
  493. .backImg{
  494. width: 44rpx;
  495. height: 44rpx;
  496. margin-left: 10rpx;
  497. margin-right: 20rpx;
  498. }
  499. .homeImg{
  500. width: 44rpx;
  501. height: 44rpx;
  502. }
  503. .zdyNavLeft{
  504. display: flex;
  505. align-items: center;
  506. }
  507. .zdyNavTitle{
  508. width: 100vw;
  509. height: 44px;
  510. background: #FFFFFF;
  511. text-align: center;
  512. font-size: 34rpx;
  513. line-height: 44px;
  514. }
  515. .top {
  516. height: 190rpx;
  517. background: #FF0000;
  518. }
  519. .orderState {
  520. display: flex;
  521. justify-content: center;
  522. align-items: center;
  523. padding-top: 40rpx;
  524. }
  525. .SheetState {
  526. display: flex;
  527. justify-content: center;
  528. font-size: 36rpx;
  529. font-weight: 500;
  530. color: #FFFFFF;
  531. margin-left: 15rpx;
  532. }
  533. .timeEditImg {
  534. width: 25rpx;
  535. height: 25rpx;
  536. padding-left: 20rpx;
  537. }
  538. .shopBoximg {
  539. width: 40rpx;
  540. height: 40rpx;
  541. }
  542. .shopRightImg {
  543. width: 44rpx;
  544. height: 45rpx;
  545. }
  546. .shopsx {
  547. width: 1px;
  548. height: 50rpx;
  549. background: #EEEEEE;
  550. margin-top: 30rpx;
  551. margin-left: 28rpx;
  552. }
  553. .shopBox {
  554. display: flex;
  555. padding: 30rpx 20rpx;
  556. margin: 0rpx 24rpx;
  557. margin-top: -60rpx;
  558. background-color: #FFFFFF;
  559. border-radius: 10rpx;
  560. }
  561. .shopCont {
  562. width: 405rpx;
  563. padding-left: 20rpx;
  564. }
  565. .shopName {
  566. font-size: 30rpx;
  567. font-weight: bold;
  568. color: #3C3C3C;
  569. line-height: 42rpx;
  570. }
  571. .Address {
  572. color: #999999;
  573. font-size: 24rpx;
  574. margin-top: 10rpx;
  575. }
  576. .shopRihgtTxt {
  577. color: #999999;
  578. font-size: 24rpx;
  579. }
  580. .shopRightBox {
  581. padding-left: 28rpx;
  582. }
  583. .detailedTitle {
  584. padding: 23rpx 20rpx;
  585. display: flex;
  586. text-align: center;
  587. align-content: flex-start;
  588. border-bottom: 1rpx solid #EEEEEE;
  589. font-size: 30rpx;
  590. font-weight: bold;
  591. color: #3C3C3C;
  592. }
  593. .detailedLine {
  594. display: flex;
  595. padding: 16rpx 20rpx;
  596. justify-content: space-between;
  597. align-items: center;
  598. }
  599. .detailedImg {
  600. width: 120rpx;
  601. height: 120rpx;
  602. border-radius: 10rpx;
  603. }
  604. .detailedName {
  605. display: flex;
  606. align-items: center;
  607. }
  608. .code {
  609. font-size: 26rpx;
  610. color: #333333;
  611. font-weight: bold;
  612. width: 180rpx
  613. }
  614. .old {
  615. color: #999999;
  616. font-weight: 400;
  617. text-decoration: line-through;
  618. }
  619. .redPoint {
  620. width: 10rpx;
  621. height: 10rpx;
  622. background: #FF0000;
  623. border-radius: 10rpx;
  624. margin-right: 10rpx;
  625. }
  626. .quanState {
  627. font-size: 22rpx;
  628. color: #F19D01;
  629. padding: 0 10rpx;
  630. border: 1rpx solid #F19D01;
  631. border-radius: 4rpx;
  632. margin-left: 20rpx;
  633. }
  634. .quanState2{
  635. font-size: 22rpx;
  636. color: #999999;
  637. padding: 0 10rpx;
  638. border: 1rpx solid #DDDDDD;
  639. border-radius: 4rpx;
  640. margin-left: 20rpx;
  641. }
  642. .information {
  643. background: #FFFFFF;
  644. border-radius: 10rpx;
  645. margin: 20rpx 24rpx;
  646. padding-bottom: 15rpx;
  647. }
  648. .informationLine {
  649. display: flex;
  650. padding: 15rpx 20rpx;
  651. }
  652. .informationLine2 {
  653. display: flex;
  654. justify-content: space-between;
  655. font-size: 26rpx;
  656. padding: 0 20rpx;
  657. }
  658. .salePrice {
  659. font-size: 26rpx;
  660. font-weight: 500;
  661. color: #333333;
  662. line-height: 45rpx;
  663. }
  664. .money {
  665. background: #FFFFFF;
  666. border-radius: 10rpx;
  667. margin: 20rpx 24rpx;
  668. display: flex;
  669. justify-content: space-between;
  670. font-size: 26rpx;
  671. padding: 30rpx 20rpx;
  672. }
  673. .informationTxt {
  674. width: 190rpx;
  675. font-size: 26rpx;
  676. color: #999999;
  677. }
  678. .line {
  679. height: 20rpx;
  680. background-color: #FFFFFF;
  681. border-bottom: 1rpx solid #EEEEEE;
  682. }
  683. .goodsName {
  684. padding: 20rpx 20rpx 15rpx;
  685. color: #333333;
  686. font-size: 26rpx;
  687. }
  688. .informationNum {
  689. color: #333333;
  690. font-size: 26rpx;
  691. }
  692. .codeCopy {
  693. width: 77rpx;
  694. height: 36rpx;
  695. background: #F4F5F7;
  696. border-radius: 22rpx;
  697. font-size: 24rpx;
  698. color: #333333;
  699. text-align: center;
  700. line-height: 33rpx;
  701. padding: 0 15rpx;
  702. margin-left: 20rpx;
  703. }
  704. .orderBottom {
  705. width: 750rpx;
  706. height: 98rpx;
  707. background: #FFFFFF;
  708. position: fixed;
  709. left: 0;
  710. bottom: 0;
  711. display: flex;
  712. justify-content: flex-end;
  713. }
  714. .bottom {
  715. display: flex;
  716. justify-content: flex-end;
  717. padding: 20rpx;
  718. background-color: #FFFFFF;
  719. align-items: center;
  720. height: 98rpx;
  721. width: 100vw;
  722. position: fixed;
  723. bottom: 0rpx;
  724. padding-bottom: constant(safe-area-inset-bottom);
  725. padding-bottom: env(safe-area-inset-bottom);
  726. }
  727. .cancel {
  728. color: #3C3C3C;
  729. font-size: 28rpx;
  730. width: 150rpx;
  731. height: 56rpx;
  732. border-radius: 36rpx;
  733. border: 1rpx solid #DDDDDD;
  734. text-align: center;
  735. line-height: 56rpx;
  736. margin-right: 40rpx;
  737. }
  738. .defer {
  739. color: #D53533;
  740. font-size: 28rpx;
  741. width: 150rpx;
  742. height: 56rpx;
  743. border-radius: 36rpx;
  744. border: 1rpx solid #D53533;
  745. text-align: center;
  746. line-height: 56rpx;
  747. margin-right: 40rpx;
  748. }
  749. .itemBox {
  750. margin: 20rpx;
  751. border-radius: 10rpx;
  752. border: 2rpx solid #EEEEEE;
  753. }
  754. .itemTop {
  755. padding: 18rpx 20rpx;
  756. padding-right: 0;
  757. background-color: #FFEFD5;
  758. display: flex;
  759. justify-content: space-between;
  760. align-content: center;
  761. }
  762. .topTitle {
  763. width: 104rpx;
  764. font-size: 26rpx;
  765. color: #333333;
  766. margin-right: 20rpx;
  767. text-align: right;
  768. }
  769. .leftItem {
  770. font-size: 26rpx;
  771. color: #333333;
  772. margin-right: 20rpx;
  773. flex-grow: 1;
  774. /* 隐藏文字显示 ...不换行 */
  775. overflow: hidden;
  776. text-overflow: ellipsis;
  777. white-space: nowrap;
  778. }
  779. .itemContent {
  780. padding: 20rpx;
  781. padding-right: 0;
  782. background-color: #FFFFFF;
  783. display: flex;
  784. justify-content: space-between;
  785. align-content: center;
  786. }
  787. .maBox {
  788. width: 100%;
  789. height: 100vh;
  790. background: rgba(0, 0, 0, 0.4);
  791. position: fixed;
  792. left: 0;
  793. top: 0;
  794. z-index: 9999;
  795. }
  796. .querenMa {
  797. width: 578;
  798. height: 640rpx;
  799. background: #ffffff;
  800. margin: 0 86rpx;
  801. margin-top: 50%;
  802. border-radius: 24rpx;
  803. }
  804. .maTop {
  805. display: flex;
  806. justify-content: space-between;
  807. align-items: center;
  808. padding: 30rpx 20rpx 15rpx;
  809. }
  810. .maTitle {
  811. color: #666666;
  812. font-size: 26rpx;
  813. text-align: center;
  814. padding-left: 100rpx;
  815. }
  816. .swiper{
  817. width: 100%;
  818. height: 85%;
  819. background: #FFFFFF;
  820. }
  821. .swiper-item{
  822. width: 100%;
  823. height: 100%;
  824. }
  825. .maCode {
  826. font-size: 30rpx;
  827. font-weight: 500;
  828. color: #333333;
  829. line-height: 42rpx;
  830. margin-bottom: 40rpx;
  831. text-align: center;
  832. }
  833. .maBoximg {
  834. width: 400rpx;
  835. height: 400rpx;
  836. margin-left: 86rpx;
  837. }
  838. .authorizBox{
  839. width: 100vw;
  840. height: 100vh;
  841. background: rgba(0, 0, 0, 0.5);
  842. position: fixed;
  843. top: 0;
  844. left: 0;
  845. }
  846. .authorizCont{
  847. margin-top: 30vh;
  848. width: 564rpx;
  849. height: 408rpx;
  850. background: #FFFFFF;
  851. border-radius: 24rpx;
  852. margin-left: 93rpx;
  853. position: relative;
  854. }
  855. .authorizCloseImg{
  856. width: 62rpx;
  857. height: 62rpx;
  858. }
  859. .sqLogoBox{
  860. width: 180rpx;
  861. height: 180rpx;
  862. background: #FFFFFF;
  863. border-radius: 90rpx;
  864. text-align: center;
  865. position: absolute;
  866. top: -50rpx;
  867. left: 192rpx;
  868. }
  869. .authorizName{
  870. color: #333333;
  871. line-height: 42rpx;
  872. font-size: 30rpx;
  873. text-align: center;
  874. padding-top: 58rpx;
  875. }
  876. .authorizMs{
  877. color: #999999;
  878. line-height: 36rpx;
  879. font-size: 26rpx;
  880. width: 452rpx;
  881. padding-top: 24rpx;
  882. text-align: center;
  883. margin-left: 56rpx;
  884. }
  885. .authorizContbutton{
  886. width: 422rpx;
  887. height: 88rpx;
  888. background: #D53533;
  889. border-radius: 44rpx;
  890. line-height: 88rpx;
  891. text-align: center;
  892. font-size:30rpx;
  893. color: #FFFFFF;
  894. margin-top: 62rpx;
  895. margin-left:71rpx;
  896. }
  897. </style>