paintOrderDetail.vue 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263
  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. </view>
  10. <view class="zdyNavTitle">订单详情</view>
  11. <view style="width: 50px;"></view>
  12. </view>
  13. </view>
  14. <view class="status_bar" :style="{height: iStatusBarHeight + 'px'}"></view>
  15. <view style="height: 44px;"></view>
  16. <view class="top">
  17. <view class="orderState">
  18. <image src="../../static/img/icon_order_def.png" mode="" style="width: 44rpx;height: 44rpx;"></image>
  19. <view class="SheetState" v-if="orderData.data.sheetState == 1">待付款</view>
  20. <view class="SheetState" v-if="orderData.data.sheetState == 2">待服务</view>
  21. <view class="SheetState" v-if="orderData.data.sheetState == 3">已完成</view>
  22. <view class="SheetState" v-if="orderData.data.sheetState == 4">已取消</view>
  23. </view>
  24. </view>
  25. <!-- 店铺信息 -->
  26. <view class="shopBox">
  27. <image src="../../static/img/icon_store.png" mode="" class="shopBoximg"></image>
  28. <view class="shopCont">
  29. <view class="shopName">{{orderData.shopInfo.shopName}}</view>
  30. <view class="Address">
  31. {{orderData.shopInfo.provinceName}}{{orderData.shopInfo.cityName}}{{orderData.shopInfo.areaName}}{{orderData.shopInfo.address}}
  32. </view>
  33. </view>
  34. <!-- <view class="shopRightBox" @click="map"> -->
  35. <view class="shopRightBox">
  36. <image src="../../static/img/icon_ditu.png" mode="" class="shopRightImg"></image>
  37. <view class="shopRihgtTxt">地图</view>
  38. </view>
  39. <view class="shopsx"></view>
  40. <view class="shopRightBox" @click="call">
  41. <image src="../../static/img/icon_phone.png" mode="" class="shopRightImg"></image>
  42. <view class="shopRihgtTxt">电话</view>
  43. </view>
  44. </view>
  45. <!-- 订单内容 -->
  46. <view class="information">
  47. <view class="detailedTitle">订单内容</view>
  48. <view v-if="orderData.openSheetDetail.length>0" v-for="(item,index) in orderData.openSheetDetail" :key="index">
  49. <view class="informationLine2">
  50. <view class="goodsName">{{item.itemName}}</view>
  51. <view class="salePrice"><span class="informationNum">¥</span>{{item.salePrice}}</view>
  52. </view>
  53. </view>
  54. <view v-if="orderData.data.sheetState != 1 && orderData.data.sheetState != 4" class="line"></view>
  55. <view v-if="orderData.data.sheetState != 1 && orderData.data.sheetState != 4">
  56. <view class="goodsName2">
  57. 券码信息({{quanMaList.length?quanMaList.length:0}}张可用)
  58. </view>
  59. <view class="detailedLine" v-for="(v,index) in orderData.OpenSheetQRCode">
  60. <view v-if="v.writeoffState==1" class="detailedName">
  61. <view class="redPoint"></view>
  62. <view class="code">{{v.qrCode}}</view>
  63. <view class="quanState">待使用</view>
  64. </view>
  65. <view v-if="v.writeoffState==3" class="detailedName">
  66. <view class="redPoint"></view>
  67. <view class="code old" >{{v.qrCode}}</view>
  68. <view class="quanState2">已使用</view>
  69. </view>
  70. <image src="../../static/img/icon_erweima.png" mode="" style="width: 36rpx;height: 36rpx;"
  71. v-if="v.writeoffState==1" @click="isShowMa=true"></image>
  72. </view>
  73. </view>
  74. </view>
  75. <!-- 实付款 -->
  76. <view class="money">
  77. <view class="informationNum">实付款:</view>
  78. <view class="informationNum" style="color: #FF0000;font-weight: bold;">¥{{orderData.data.realMoney}}</view>
  79. </view>
  80. <!-- 订单信息 -->
  81. <view class="information">
  82. <view class="detailedTitle">订单信息</view>
  83. <view class="informationLine">
  84. <view class="informationTxt">车牌号:</view>
  85. <view class="informationNum">{{orderData.data.plateNumber}}</view>
  86. </view>
  87. <view class="informationLine">
  88. <view class="informationTxt">车型:</view>
  89. <view class="informationNum" style="width: 480rpx;">{{orderData.data.carModel}}</view>
  90. </view>
  91. <view class="informationLine">
  92. <view class="informationTxt">联系人:</view>
  93. <view class="informationNum">{{orderData.data.customerName}}</view>
  94. </view>
  95. <view class="informationLine">
  96. <view class="informationTxt">手机号:</view>
  97. <view class="informationNum">{{orderData.data.mobilePhone}}</view>
  98. </view>
  99. <view class="informationLine">
  100. <view class="informationTxt">预约时间:</view>
  101. <view class="informationNum">{{orderData.data.hTime}}</view>
  102. </view>
  103. <view class="informationLine">
  104. <view class="informationTxt">订单单号:</view>
  105. <view class="informationNum">{{orderData.data.code}}<span class="codeCopy"
  106. @click="copy(orderData.data.code)">复制</span></view>
  107. </view>
  108. <view class="informationLine">
  109. <view class="informationTxt">下单人:</view>
  110. <view class="informationNum">{{orderData.data.userMobilePhone}}</view>
  111. </view>
  112. <view class="informationLine">
  113. <view class="informationTxt">下单时间:</view>
  114. <view class="informationNum">{{orderData.data.createTime}}</view>
  115. </view>
  116. <view class="informationLine">
  117. <view class="informationTxt">订单类型:</view>
  118. <view class="informationNum" style="width: 480rpx;">钣喷</view>
  119. </view>
  120. </view>
  121. <!-- 支付信息 -->
  122. <view class="information">
  123. <view class="detailedTitle">支付信息</view>
  124. <view class="informationLine">
  125. <view class="informationTxt">支付状态:</view>
  126. <view class="informationNum" v-if="orderData.data.payState==1">未支付</view>
  127. <view class="informationNum" v-if="orderData.data.payState==2">已支付</view>
  128. </view>
  129. <view class="informationLine">
  130. <view class="informationTxt">支付方式:</view>
  131. <view class="informationNum" v-if="orderData.data.payType==1">在线支付</view>
  132. <view class="informationNum" v-if="orderData.data.payType==2">线下支付</view>
  133. </view>
  134. <view class="informationLine">
  135. <view class="informationTxt">支付时间:</view>
  136. <view class="informationNum">{{orderData.data.payTime?orderData.data.payTime:'-'}}</view>
  137. </view>
  138. </view>
  139. <view style="height: 50rpx;background-color: #F4F5F7;"></view>
  140. <!-- 待付款 -->
  141. <view class="bottom" v-if="orderData.data.sheetState == 1">
  142. <view v-if="iOSInfo.indexOf('Q030')!=-1||!iOSInfo" class="cancel" @click="cancelBespeak">取消订单</view>
  143. </view>
  144. <!-- 待服务 -->
  145. <view class="bottom" v-if="orderData.data.sheetState == 2">
  146. <view v-if="(iOSInfo.indexOf('Q030')!=-1||!iOSInfo) && orderData.data.payType==2" class="cancel" @click="cancelBespeak">取消订单</view>
  147. <view v-if="(iOSInfo.indexOf('Q031')!=-1||!iOSInfo) && orderData.data.payType==1" class="defer" @click="isShowTui=true">退款</view>
  148. <view v-if="(iOSInfo.indexOf('Q035')!=-1||!iOSInfo) && (orderData.data.payType==2) && (orderData.data.payState==1)" class="defer" @click="payDone">支付完成</view>
  149. <!-- 在线支付 -->
  150. <view v-if="(iOSInfo.indexOf('Q032')!=-1||!iOSInfo) && (orderData.data.payType==1)" class="defer" @click="goHeXiao">核销</view>
  151. <!-- 线下支付 -->
  152. <view v-if="(iOSInfo.indexOf('Q032')!=-1||!iOSInfo) && (orderData.data.payType==2) && (orderData.data.payState==2)" class="defer" @click="goHeXiao">核销</view>
  153. <!-- <view v-if="iOSInfo.indexOf('Q033')!=-1||!iOSInfo" class="defer" @click="">开单</view> -->
  154. <!-- <view v-if="iOSInfo.indexOf('Q034')!=-1||!iOSInfo" class="defer" @click="">开卡</view> -->
  155. </view>
  156. <!-- 券码 -->
  157. <view class="maBox" v-if="isShowMa==true" @click="isShowMa=false">
  158. <view class="querenMa">
  159. <view class="maTop">
  160. <view class="maTitle">请到店出示券码即可开始服务</view>
  161. <image @click="isShowMa=false" src="../../static/img/icon_delete.png" mode=""
  162. style="width: 26rpx;height: 26rpx;margin-left: 10rpx;"></image>
  163. </view>
  164. <swiper class="swiper" circular :autoplay="false" :indicator-dots="true" indicator-color="#CCCCCC" indicator-active-color="#D53533">
  165. <swiper-item v-for="(item,index) in quanMaList">
  166. <view class="swiper-item">
  167. <view class="maCode">{{item}}</view>
  168. <view class="maBoximg">
  169. <tki-qrcode cid="qrcode1" ref="qrcode" :val="item" :size="400" :unit="unit"
  170. :pdground="pdground" :icon="icon" :iconSize="iconsize" :lv="lv" :onval="onval"
  171. :loadMake="loadMake" :usingComponents="true" @result="qrR" />
  172. </view>
  173. </view>
  174. </swiper-item>
  175. </swiper>
  176. </view>
  177. </view>
  178. <!-- 退款原因 -->
  179. <view class="tuikuanBox" v-if="isShowTui==true">
  180. <view class="tuikuan">
  181. <view class="tuiTop">
  182. <view class="tuiTitle">退款</view>
  183. <image @click="isShowTui=false" src="../../static/img/icon_close.png" mode="" style="width: 26rpx; height: 26rpx;"></image>
  184. </view>
  185. <view class="contLine">
  186. <view class="contlineLeft">
  187. <image src="../../static/img/icon_star.png" mode="" class="star"></image>
  188. 退款原因
  189. </view>
  190. <view class="contlineRight carModelRight" @click="">
  191. <picker class="carModel" @change="bindChange" mode="selector" :value="index" :range="tuicauseList" range-key="contents">
  192. <view class="uni-input">{{tuicauseList[index].contents}}</view>
  193. </picker>
  194. <image src="../../static/img/little_rightArrow.png" mode="" class="contlineRightJt"></image>
  195. </view>
  196. </view>
  197. <view class="contLine">
  198. <view class="contlineLeft">
  199. <image src="../../static/img/icon_star.png" mode="" class="star"></image>
  200. 退款金额
  201. </view>
  202. <view class="contlineRight carModelRight" @click="cktime">
  203. <span class="carModel">{{orderData.data.realMoney}}</span>
  204. </view>
  205. </view>
  206. <view class="contLine">
  207. <view class="contlineLeft">
  208. <image src="" mode="" class="star"></image>
  209. 补充描述
  210. </view>
  211. <view class="contlineRight">
  212. <textarea placeholder-style="color:#999999" placeholder="请输入" v-model="tuikuanContent"
  213. class="contlineRightInput" maxlength="-1" auto-height="true" @confirm="feedDone" />
  214. </view>
  215. </view>
  216. <view class="tuiBtns">
  217. <view class="btn" @click="isShowTui=false">取消</view>
  218. <view class="btn2" @click="goTui">确认退款</view>
  219. </view>
  220. </view>
  221. </view>
  222. </view>
  223. </template>
  224. <script>
  225. import tkiQrcode from "@/components/tki-qrcode/tki-qrcode.vue"
  226. export default {
  227. components: {
  228. tkiQrcode
  229. },
  230. data() {
  231. return {
  232. id: '',
  233. iStatusBarHeight:'',
  234. orderData: '',
  235. onval: true, // val值变化时自动重新生成二维码
  236. loadMake: true, // 组件加载完成后自动生成二维码
  237. size: 500,
  238. qrcodeShow: false,
  239. qrcodeTop: '-100vh',
  240. qrcodeTopVal: '',
  241. ifShow: false,
  242. val: '二维码', // 要生成的二维码值
  243. unit: 'upx', // 单位
  244. background: '#b4e9e2', // 背景色
  245. foreground: '#309286', // 前景色
  246. pdground: '#262637', // 角标色
  247. icon: '', // 二维码图标
  248. iconsize: 40, // 二维码图标大小
  249. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  250. src: '', // 二维码生成后的图片地址或base64
  251. isShowMa: false,
  252. quanMaList:[],
  253. isShowTui: false,
  254. tuicauseList:[],
  255. tuikuanContent:'',
  256. index: 0,
  257. iOSInfo:'',
  258. }
  259. },
  260. onLoad(opt) {
  261. this.iStatusBarHeight = uni.getSystemInfoSync().statusBarHeight;
  262. this.id = opt.id
  263. if (this.id) {
  264. this.getData()
  265. }
  266. this.getTuiKuanData()
  267. var qxnum = uni.getStorageSync("quanxian");
  268. if (qxnum == 1) {
  269. this.iOSInfo = JSON.parse(JSON.stringify(window.iOSInfo));
  270. }else if(qxnum==2){
  271. window.getAndroid=this.getAndroid;
  272. }
  273. },
  274. methods: {
  275. getAndroid(e){
  276. this.iOSInfo=e
  277. },
  278. payDone(){
  279. var that = this
  280. uni.showModal({
  281. title: '提示',
  282. content: '确认已支付完成吗',
  283. success: function (res) {
  284. if (res.confirm) {
  285. uni.showLoading({
  286. title: '加载中'
  287. })
  288. that.$http('openH5Indent/complete', {
  289. id: that.id,
  290. }, 'POST').then(res => {
  291. uni.hideLoading();
  292. // var list = res.data.Items
  293. setTimeout(function() {
  294. that.getData();
  295. }, 1000);
  296. })
  297. } else if (res.cancel) {
  298. }
  299. }
  300. });
  301. },
  302. goTui(){
  303. let yuanyin = this.tuicauseList[this.index].contents
  304. if (!yuanyin) {
  305. uni.showToast({
  306. title: '请选择退款原因',
  307. icon: 'none',
  308. duration: 3000
  309. });
  310. return false;
  311. }
  312. uni.showLoading({
  313. title: '加载中'
  314. })
  315. var that = this
  316. this.$http('openH5Indent/reimburse', {
  317. id: this.id,
  318. refundReason: yuanyin,
  319. refundComment: this.tuikuanContent,
  320. realMoney:this.orderData.data.realMoney
  321. }, 'GET').then(res => {
  322. uni.hideLoading();
  323. // var list = res.data.Items
  324. // var list = res.data
  325. console.log("result+=", res);
  326. if (res.code == 1) {
  327. that.isShowTui = false
  328. uni.showToast({
  329. title: '退款成功',
  330. icon: 'none',
  331. duration: 2000
  332. });
  333. setTimeout(function() {
  334. that.getData();
  335. }, 1000);
  336. }
  337. })
  338. },
  339. bindChange(e) {
  340. console.log(e);
  341. this.index = e.detail.value
  342. },
  343. feedDone(e) {
  344. this.tuikuanContent = e.target.value
  345. },
  346. // 核销
  347. goHeXiao(){
  348. //app交互
  349. var standalone = window.navigator.standalone
  350. var userAgent = window.navigator.userAgent.toLowerCase()
  351. var safari = /safari/.test(userAgent)
  352. var ios = /iphone|ipod|ipad|mac/.test(userAgent)
  353. var android = /android/.test(userAgent)
  354. if (ios) {
  355. if ( true) {//!standalone&& !safari
  356. window.webkit.messageHandlers.goHeXiao.postMessage({"id":this.id?this.id:''})
  357. }
  358. } else if (android) {
  359. window.android.postMessage()
  360. }
  361. },
  362. getTuiKuanData() {
  363. uni.showLoading({
  364. title: '加载中'
  365. });
  366. this.$http('openH5Indent/getOpenReason', {
  367. // id: this.id,
  368. }, 'GET').then(res => {
  369. uni.hideLoading();
  370. this.tuicauseList = res.data;
  371. })
  372. },
  373. pay(){
  374. this.$http('openMallOrder/unifiedPay', {
  375. sheetId:this.id
  376. },'POST').then(res => {
  377. if(res.code==0){
  378. this.requestPayment(res.data)
  379. }else{
  380. uni.showToast({
  381. title: res.msg,
  382. icon: 'none',
  383. duration: 3000
  384. });
  385. }
  386. })
  387. },
  388. requestPayment(res){
  389. var payInfo=res;
  390. //console.log(payInfo)
  391. //console.log(String(Date.now()))
  392. var that=this;
  393. uni.requestPayment({
  394. provider: 'wxpay',
  395. //timeStamp: String(Date.now()),
  396. timeStamp: payInfo.timeStamp,
  397. nonceStr: payInfo.nonceStr,
  398. package:payInfo.package,
  399. signType: payInfo.signType,
  400. paySign: payInfo.paySign,
  401. appid:payInfo.appId,
  402. success: function (res) {
  403. console.log('success:' + JSON.stringify(res));
  404. uni.showToast({
  405. title: '支付成功',
  406. icon:'none',
  407. duration: 2000
  408. });
  409. that.getData()
  410. },
  411. fail: function (err) {
  412. console.log(err)
  413. uni.showToast({
  414. title: '支付失败',
  415. icon:'none',
  416. duration: 2000
  417. });
  418. }
  419. });
  420. },
  421. copy(txt) {
  422. uni.setClipboardData({
  423. data: txt,
  424. success: function() {
  425. uni.showToast({
  426. title: '复制成功',
  427. icon: 'none',
  428. duration: 2000
  429. });
  430. }
  431. });
  432. },
  433. upTime() {
  434. uni.showLoading({
  435. title: '加载中'
  436. })
  437. var that = this
  438. this.$http('openH5Indent/carOwner/updateTimeOfAppointment', {
  439. id: this.id,
  440. shopId: this.orderData.shopInfo.id,
  441. billDate: this.billDate
  442. }, 'POST').then(res => {
  443. uni.hideLoading();
  444. // var list = res.data.Items
  445. var list = res.data
  446. console.log("result+=", res.data);
  447. uni.showToast({
  448. title: '延期成功',
  449. icon: 'none',
  450. duration: 2000
  451. });
  452. setTimeout(function() {
  453. that.getData();
  454. }, 1000);
  455. })
  456. },
  457. cancelBespeak(){
  458. var that = this
  459. uni.showModal({
  460. title: '提示',
  461. content: '是否取消该订单',
  462. cancelText:'否',
  463. confirmText:'是',
  464. success: function (res) {
  465. if (res.confirm) {
  466. uni.showLoading({
  467. title: '加载中'
  468. })
  469. that.$http('openH5Indent/updateSheetState', {
  470. id: that.id,
  471. }, 'POST').then(res => {
  472. uni.hideLoading();
  473. // var list = res.data.Items
  474. uni.showToast({
  475. title: '取消成功',
  476. icon: 'none',
  477. duration: 2000
  478. });
  479. setTimeout(function() {
  480. that.getData();
  481. }, 1000);
  482. })
  483. } else if (res.cancel) {
  484. }
  485. }
  486. });
  487. },
  488. map() {
  489. console.log("打开地图")
  490. var that = this;
  491. if (!that.orderData.shopInfo.lat || !that.orderData.shopInfo.lng) {
  492. uni.showToast({
  493. title: '该店铺未设置定位',
  494. icon: 'none',
  495. duration: 3000
  496. });
  497. } else {
  498. uni.openLocation({
  499. latitude: Number(that.orderData.shopInfo.lat),
  500. longitude: Number(that.orderData.shopInfo.lng),
  501. name: that.orderData.shopInfo.shopName,
  502. address: that.orderData.shopInfo.provinceName + that.orderData.shopInfo.cityName + that
  503. .orderData.shopInfo.areaName + that.orderData.shopInfo.address,
  504. success: function() {
  505. console.log('success');
  506. },
  507. fail(err) {
  508. console.log(err)
  509. }
  510. });
  511. }
  512. },
  513. call() {
  514. uni.makePhoneCall({
  515. phoneNumber: this.orderData.shopInfo.mobilePhone
  516. });
  517. },
  518. getData() {
  519. uni.showLoading({
  520. title: '加载中'
  521. });
  522. this.$http('openH5Indent/queryOpenSheet', {
  523. id: this.id,
  524. }, 'GET').then(res => {
  525. uni.hideLoading();
  526. this.orderData = res.data;
  527. if (this.quanMaList) {
  528. this.quanMaList = [];
  529. }
  530. let maList = this.orderData.OpenSheetQRCode;
  531. if (maList) {
  532. maList.forEach(item =>{
  533. if (item.writeoffState==1) {
  534. this.quanMaList.push(item.qrCode);
  535. }
  536. })
  537. }
  538. console.log('可用券码--',this.quanMaList);
  539. })
  540. },
  541. goback() {
  542. uni.navigateBack({
  543. delta: 1
  544. })
  545. },
  546. gohome(){
  547. uni.switchTab({
  548. url:'../../index/index'
  549. })
  550. },
  551. },
  552. onPullDownRefresh() {
  553. this.getData()
  554. setTimeout(function() {
  555. uni.stopPullDownRefresh();
  556. }, 1000);
  557. },
  558. }
  559. </script>
  560. <style scoped>
  561. .box {
  562. min-height: 100vh;
  563. background: #F4F5F7;
  564. padding-bottom: 135rpx;
  565. }
  566. .zdyNavBox{
  567. width: 100vw;
  568. background: #FFFFFF;
  569. position: fixed;
  570. top: 0;
  571. left: 0;
  572. z-index: 9999999;
  573. }
  574. .zdyNav{
  575. height: 44px;
  576. display: flex;
  577. justify-content: space-between;
  578. align-items: center;
  579. }
  580. .backImg{
  581. width: 44rpx;
  582. height: 44rpx;
  583. margin-left: 10rpx;
  584. margin-right: 20rpx;
  585. }
  586. .homeImg{
  587. width: 44rpx;
  588. height: 44rpx;
  589. }
  590. .zdyNavLeft{
  591. display: flex;
  592. align-items: center;
  593. }
  594. .zdyNavTitle{
  595. height: 44px;
  596. background: #FFFFFF;
  597. text-align: center;
  598. font-size: 34rpx;
  599. line-height: 44px;
  600. }
  601. .top {
  602. height: 190rpx;
  603. background-color: #FF0000;
  604. }
  605. .orderState {
  606. display: flex;
  607. justify-content: center;
  608. align-items: center;
  609. padding-top: 40rpx;
  610. }
  611. .SheetState {
  612. display: flex;
  613. justify-content: center;
  614. font-size: 36rpx;
  615. font-weight: 500;
  616. color: #FFFFFF;
  617. margin-left: 15rpx;
  618. }
  619. .timeEditImg {
  620. width: 25rpx;
  621. height: 25rpx;
  622. padding-left: 20rpx;
  623. }
  624. .shopBoximg {
  625. width: 40rpx;
  626. height: 40rpx;
  627. }
  628. .shopRightImg {
  629. width: 44rpx;
  630. height: 45rpx;
  631. }
  632. .shopsx {
  633. width: 1px;
  634. height: 50rpx;
  635. background: #EEEEEE;
  636. margin-top: 30rpx;
  637. margin-left: 28rpx;
  638. }
  639. .shopBox {
  640. display: flex;
  641. padding: 30rpx 20rpx;
  642. margin: 0rpx 24rpx;
  643. margin-top: -60rpx;
  644. background-color: #FFFFFF;
  645. border-radius: 10rpx;
  646. }
  647. .shopCont {
  648. width: 405rpx;
  649. padding-left: 20rpx;
  650. }
  651. .shopName {
  652. font-size: 30rpx;
  653. font-weight: bold;
  654. color: #3C3C3C;
  655. line-height: 42rpx;
  656. }
  657. .Address {
  658. color: #999999;
  659. font-size: 24rpx;
  660. margin-top: 10rpx;
  661. }
  662. .shopRihgtTxt {
  663. color: #999999;
  664. font-size: 24rpx;
  665. }
  666. .shopRightBox {
  667. padding-left: 28rpx;
  668. }
  669. .detailedTitle {
  670. padding: 23rpx 20rpx;
  671. display: flex;
  672. text-align: center;
  673. align-content: flex-start;
  674. border-bottom: 1rpx solid #EEEEEE;
  675. font-size: 30rpx;
  676. font-weight: bold;
  677. color: #3C3C3C;
  678. }
  679. .detailedLine {
  680. display: flex;
  681. padding: 16rpx 20rpx;
  682. justify-content: space-between;
  683. align-items: center;
  684. }
  685. .detailedImg {
  686. width: 120rpx;
  687. height: 120rpx;
  688. border-radius: 10rpx;
  689. }
  690. .detailedName {
  691. display: flex;
  692. align-items: center;
  693. }
  694. .code {
  695. font-size: 26rpx;
  696. color: #333333;
  697. font-weight: bold;
  698. width: 180rpx
  699. }
  700. .old {
  701. color: #999999;
  702. font-weight: 400;
  703. text-decoration: line-through;
  704. }
  705. .redPoint {
  706. width: 10rpx;
  707. height: 10rpx;
  708. background: #FF0000;
  709. border-radius: 10rpx;
  710. margin-right: 10rpx;
  711. }
  712. .quanState {
  713. font-size: 22rpx;
  714. color: #F19D01;
  715. padding: 0 10rpx;
  716. border: 1rpx solid #F19D01;
  717. border-radius: 4rpx;
  718. margin-left: 20rpx;
  719. }
  720. .quanState2{
  721. font-size: 22rpx;
  722. color: #999999;
  723. padding: 0 10rpx;
  724. border: 1rpx solid #DDDDDD;
  725. border-radius: 4rpx;
  726. margin-left: 20rpx;
  727. }
  728. .information {
  729. background: #FFFFFF;
  730. border-radius: 10rpx;
  731. margin: 20rpx 24rpx;
  732. padding-bottom: 15rpx;
  733. }
  734. .informationLine {
  735. display: flex;
  736. padding: 15rpx 20rpx;
  737. }
  738. .informationLine2 {
  739. display: flex;
  740. justify-content: space-between;
  741. font-size: 26rpx;
  742. padding: 20rpx;
  743. align-items: center;
  744. padding-bottom: 0;
  745. }
  746. .salePrice {
  747. font-size: 26rpx;
  748. font-weight: 500;
  749. color: #333333;
  750. line-height: 45rpx;
  751. }
  752. .money {
  753. background: #FFFFFF;
  754. border-radius: 10rpx;
  755. margin: 20rpx 24rpx;
  756. display: flex;
  757. justify-content: space-between;
  758. font-size: 26rpx;
  759. padding: 30rpx 20rpx;
  760. }
  761. .informationTxt {
  762. width: 190rpx;
  763. font-size: 26rpx;
  764. color: #999999;
  765. }
  766. .line {
  767. height: 20rpx;
  768. background-color: #FFFFFF;
  769. border-bottom: 1rpx solid #EEEEEE;
  770. }
  771. .goodsName {
  772. width: 80%;
  773. color: #333333;
  774. font-size: 26rpx;
  775. }
  776. .goodsName2{
  777. padding: 20rpx 20rpx 15rpx;
  778. color: #333333;
  779. font-size: 26rpx;
  780. }
  781. .informationNum {
  782. color: #333333;
  783. font-size: 26rpx;
  784. }
  785. .codeCopy {
  786. width: 77rpx;
  787. height: 36rpx;
  788. background: #F4F5F7;
  789. border-radius: 22rpx;
  790. font-size: 24rpx;
  791. color: #333333;
  792. text-align: center;
  793. line-height: 33rpx;
  794. padding: 0 15rpx;
  795. margin-left: 20rpx;
  796. }
  797. .bottom {
  798. display: flex;
  799. justify-content: flex-end;
  800. padding: 20rpx;
  801. background-color: #FFFFFF;
  802. align-items: center;
  803. height: 98rpx;
  804. width: 100vw;
  805. position: fixed;
  806. bottom: 0rpx;
  807. padding-bottom: constant(safe-area-inset-bottom);
  808. padding-bottom: env(safe-area-inset-bottom);
  809. }
  810. .cancel {
  811. color: #3C3C3C;
  812. font-size: 28rpx;
  813. width: 150rpx;
  814. height: 56rpx;
  815. border-radius: 36rpx;
  816. border: 1rpx solid #DDDDDD;
  817. text-align: center;
  818. line-height: 56rpx;
  819. margin-right: 40rpx;
  820. }
  821. .defer {
  822. color: #D53533;
  823. font-size: 28rpx;
  824. width: 150rpx;
  825. height: 56rpx;
  826. border-radius: 36rpx;
  827. border: 1rpx solid #D53533;
  828. text-align: center;
  829. line-height: 56rpx;
  830. margin-right: 40rpx;
  831. }
  832. .itemBox {
  833. margin: 20rpx;
  834. border-radius: 10rpx;
  835. border: 2rpx solid #EEEEEE;
  836. }
  837. .itemTop {
  838. padding: 18rpx 20rpx;
  839. padding-right: 0;
  840. background-color: #FFEFD5;
  841. display: flex;
  842. justify-content: space-between;
  843. align-content: center;
  844. }
  845. .topTitle {
  846. width: 104rpx;
  847. font-size: 26rpx;
  848. color: #333333;
  849. margin-right: 20rpx;
  850. text-align: right;
  851. }
  852. .leftItem {
  853. font-size: 26rpx;
  854. color: #333333;
  855. margin-right: 20rpx;
  856. flex-grow: 1;
  857. /* 隐藏文字显示 ...不换行 */
  858. overflow: hidden;
  859. text-overflow: ellipsis;
  860. white-space: nowrap;
  861. }
  862. .itemContent {
  863. padding: 20rpx;
  864. padding-right: 0;
  865. background-color: #FFFFFF;
  866. display: flex;
  867. justify-content: space-between;
  868. align-content: center;
  869. }
  870. .maBox {
  871. width: 100%;
  872. height: 100vh;
  873. background: rgba(0, 0, 0, 0.4);
  874. position: fixed;
  875. left: 0;
  876. top: 0;
  877. z-index: 9999;
  878. }
  879. .querenMa {
  880. width: 578;
  881. height: 640rpx;
  882. background: #ffffff;
  883. margin: 0 86rpx;
  884. margin-top: 50%;
  885. border-radius: 24rpx;
  886. }
  887. .maTop {
  888. display: flex;
  889. justify-content: space-between;
  890. align-items: center;
  891. padding: 30rpx 20rpx 15rpx;
  892. }
  893. .maTitle {
  894. color: #666666;
  895. font-size: 26rpx;
  896. text-align: center;
  897. padding-left: 100rpx;
  898. }
  899. .swiper{
  900. width: 100%;
  901. height: 85%;
  902. background: #FFFFFF;
  903. }
  904. .swiper-item{
  905. width: 100%;
  906. height: 100%;
  907. }
  908. .maCode {
  909. font-size: 30rpx;
  910. font-weight: 500;
  911. color: #333333;
  912. line-height: 42rpx;
  913. margin-bottom: 40rpx;
  914. text-align: center;
  915. }
  916. .maBoximg {
  917. width: 400rpx;
  918. height: 400rpx;
  919. margin-left: 86rpx;
  920. }
  921. .tuikuanBox {
  922. width: 100%;
  923. height: 100vh;
  924. background: rgba(0, 0, 0, 0.4);
  925. position: fixed;
  926. left: 0;
  927. top: 0;
  928. z-index: 999;
  929. }
  930. .tuikuan {
  931. width: 638rpx;
  932. height: 664rpx;
  933. background: #ffffff;
  934. margin: 0 36rpx;
  935. margin-top: 50%;
  936. border-radius: 24rpx;
  937. padding: 30rpx 20rpx;
  938. }
  939. .tuiTop {
  940. display: flex;
  941. justify-content: space-between;
  942. margin-bottom: 36rpx;
  943. }
  944. .tuiTitle {
  945. width: 56rpx;
  946. height: 40rpx;
  947. font-size: 28rpx;
  948. font-weight: 500;
  949. color: #3C3C3C;
  950. line-height: 40rpx;
  951. }
  952. .contLine {
  953. display: flex;
  954. justify-content: space-between;
  955. font-size: 28rpx;
  956. padding: 30rpx 0;
  957. border-bottom: 1px solid #EEEEEE;
  958. }
  959. .contlineLeft {
  960. color: #666666;
  961. line-height: 40rpx;
  962. align-items: center;
  963. }
  964. .star {
  965. width: 14rpx;
  966. height: 14rpx;
  967. padding-bottom: 5rpx;
  968. }
  969. .carModel {
  970. width: 350rpx;
  971. text-align: left;
  972. }
  973. .noColor {
  974. color: #CCCCCC;
  975. }
  976. .carModelRight {
  977. display: flex;
  978. justify-content: flex-start;
  979. align-items: center;
  980. }
  981. .contlineRight {
  982. color: #333333;
  983. line-height: 40rpx;
  984. width: 400rpx;
  985. text-align: right;
  986. }
  987. .contlineRightInput {
  988. color: #333333;
  989. text-align: left;
  990. font-size: 28rpx;
  991. min-height: 182rpx;
  992. width: 400rpx;
  993. }
  994. .contlineRightJt {
  995. width: 30rpx;
  996. height: 30rpx;
  997. }
  998. .tuiBtns {
  999. display: flex;
  1000. padding: 40rpx 20rpx 10rpx;
  1001. }
  1002. .btn {
  1003. width: 288rpx;
  1004. height: 98rpx;
  1005. background: #F4F5F7;
  1006. border-radius: 10rpx;
  1007. margin-right: 22rpx;
  1008. font-size: 30rpx;
  1009. font-weight: 500;
  1010. color: #3C3C3C;
  1011. line-height: 98rpx;
  1012. text-align: center;
  1013. }
  1014. .btn2 {
  1015. width: 288rpx;
  1016. height: 98rpx;
  1017. background: #3F90F7;
  1018. border-radius: 10rpx;
  1019. font-size: 30rpx;
  1020. font-weight: 500;
  1021. color: #FFFFFF;
  1022. line-height: 98rpx;
  1023. text-align: center;
  1024. }
  1025. </style>