mallOrderDetail.vue 29 KB

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