index.vue 39 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853
  1. <template>
  2. <view :style="colorStyle">
  3. <view class='order-details'>
  4. <view v-if="isGoodsReturn == false">
  5. <view v-if="orderInfo.userAddress != ''">
  6. <view class='address' v-if="orderInfo.userAddress">
  7. <u-row customStyle="margin-bottom: 10px">
  8. <u-col span="1">
  9. <view class="demo-layout bg-purple-light">
  10. <u-icon name="map-fill" color="#2979ff" size="25"></u-icon>
  11. </view>
  12. </u-col>
  13. <u-col span="11">
  14. <view class='name'>{{ orderInfo.userName }}<text class='phone'>{{ orderInfo.telPhone
  15. }}</text>
  16. </view>
  17. <view>{{ orderInfo.userAddress }}</view>
  18. </u-col>
  19. </u-row>
  20. </view>
  21. <view class='address' v-else>
  22. <view class='name' @tap="makePhone">{{ orderInfo.system_store.name }}<text class='phone'>{{
  23. orderInfo.system_store.phone
  24. }}</text><text class="iconfont icon-tonghua font-num"></text></view>
  25. <view>{{ orderInfo.system_store.detailed_address }}</view>
  26. </view>
  27. <view class='line'>
  28. <image src='@/static/images/line.jpg'></image>
  29. </view>
  30. </view>
  31. <view v-if="orderInfo.virtual_type != 0" style="paddingTop: 6px;"></view>
  32. </view>
  33. <view v-else>
  34. <!-- 拒绝退款 -->
  35. <view class="refund" v-if="orderInfo.refund_type == 3">
  36. <view class="title">
  37. <image src="../static/shuoming.png" mode=""></image>
  38. {{ $t(`拒绝退款`) }}
  39. </view>
  40. <view class="con">{{ $t(`拒绝原因`) }}:{{ orderInfo.refuse_reason }}</view>
  41. </view>
  42. </view>
  43. <orderGoods :evaluate='evaluate' :deliveryType="orderInfo.shipping_type" :statusType="status.type"
  44. :sendType="orderInfo.delivery_type" :orderId="order_id" :oid="orderInfo.id" :cartInfo="cartInfo"
  45. :pid="pid" :jump="true" :refund_status="orderInfo.refund_status" :paid="orderInfo.paid"
  46. @openSubcribe="openSubcribe">
  47. </orderGoods>
  48. <view class='wrapper'>
  49. <view class='item acea-row row-between'>
  50. <view>{{ $t(`订单号`) }}:</view>
  51. <view class='conter acea-row row-middle row-right'>
  52. <text>{{ orderInfo.id }}</text>
  53. <!-- #ifndef H5 -->
  54. <text class='copy' @tap='copy'>{{ $t(`复制`) }}</text>
  55. <!-- #endif -->
  56. <!-- #ifdef H5 -->
  57. <text class='copy copy-data' :data-clipboard-text="orderInfo.order_id">{{ $t(`复制`) }}</text>
  58. <!-- #endif -->
  59. </view>
  60. </view>
  61. <view class='item acea-row row-between'>
  62. <view>{{ $t(`下单时间`) }}:</view>
  63. <view class='conter'>{{ (orderInfo.createTime || '') }}</view>
  64. </view>
  65. <view class='item acea-row row-between'>
  66. <view>{{ $t(`支付状态`) }}:</view>
  67. <view class='conter'>{{ orderInfo.payFlagDisplayName }}</view>
  68. </view>
  69. <view class='item acea-row row-between' v-if="orderInfo.payTime">
  70. <view>{{ $t(`支付时间`) }}:</view>
  71. <view class='conter'>{{ orderInfo.payTime }}</view>
  72. </view>
  73. <view class='item acea-row row-between' v-if="orderInfo.remark">
  74. <view>{{ $t(`发货时间`) }}:</view>
  75. <view class='conter'>{{ $t(orderInfo._status._payType) }}</view>
  76. </view>
  77. <view class='item acea-row row-between' v-if="orderInfo.remark">
  78. <view>{{ $t(`完成时间`) }}:</view>
  79. <view class='conter'>{{ $t(orderInfo._status._payType) }}</view>
  80. </view>
  81. <view class='item acea-row row-between' v-if="orderInfo.remark">
  82. <view v-if="orderInfo.pid">{{ $t(`买家备注`) }}:</view>
  83. <view v-else>买家备注:</view>
  84. <view class='conter'>{{ orderInfo.remark }}</view>
  85. </view>
  86. <!-- <view class='item acea-row row-between' v-if="orderInfo.remark">
  87. <view>{{$t(`商家备注`)}}:</view>
  88. <view class='conter'>{{orderInfo.remark}}</view>
  89. </view> -->
  90. </view>
  91. <view class='wrapper' v-if="customForm && customForm.length">
  92. <view class='item acea-row row-between' v-for="(item, index) in customForm" :key="index">
  93. <view class='upload' v-if="item.label == 'img'">
  94. <view>{{ item.title }}:</view>
  95. <view class='pictrue' v-for="(img, index) in item.value" :key="index">
  96. <image :src='img'></image>
  97. </view>
  98. </view>
  99. <view v-if="item.label !== 'img'">{{ item.title }}:</view>
  100. <view v-if="item.label !== 'img'" class='conter'>{{ item.value }}</view>
  101. </view>
  102. </view>
  103. <!-- 退款订单详情 -->
  104. <view class='wrapper' v-if="isGoodsReturn && orderInfo.cartInfo[0].productInfo.virtual_type != 3">
  105. <view class='item acea-row row-between'>
  106. <view>{{ $t(`收货人`) }}:</view>
  107. <view class='conter'>{{ orderInfo.real_name }}</view>
  108. </view>
  109. <view class='item acea-row row-between'>
  110. <view>{{ $t(`联系电话`) }}:</view>
  111. <view class='conter'>{{ orderInfo.user_phone }}</view>
  112. </view>
  113. <view class='item acea-row row-between'>
  114. <view>{{ $t(`收货地址`) }}:</view>
  115. <view class='conter'>{{ orderInfo.user_address }}</view>
  116. </view>
  117. </view>
  118. <view v-if="orderInfo.status != 0">
  119. <view class='wrapper' v-if='orderInfo.delivery_type == "express"'>
  120. <view class='item acea-row row-between'>
  121. <view>{{ $t(`配送方式`) }}:</view>
  122. <view class='conter'>{{ $t(`发货`) }}</view>
  123. </view>
  124. <view class='item acea-row row-between'>
  125. <view>{{ $t(`快递公司`) }}:</view>
  126. <view class='conter'>{{ orderInfo.delivery_name || '' }}</view>
  127. </view>
  128. <view class='item acea-row row-between'>
  129. <view>{{ $t(`快递单号`) }}:</view>
  130. <view class='conter'>{{ orderInfo.delivery_id || '' }}</view>
  131. </view>
  132. </view>
  133. <view class='wrapper' v-else-if='orderInfo.delivery_type == "send"'>
  134. <view class='item acea-row row-between'>
  135. <view>{{ $t(`配送方式`) }}:</view>
  136. <view class='conter'>{{ $t(`送货`) }}</view>
  137. </view>
  138. <view class='item acea-row row-between'>
  139. <view>{{ $t(`配送人姓名`) }}:</view>
  140. <view class='conter'>{{ orderInfo.delivery_name || '' }}</view>
  141. </view>
  142. <view class='item acea-row row-between'>
  143. <view>{{ $t(`送货人电话`) }}:</view>
  144. <view class='conter acea-row row-middle row-right'>{{ orderInfo.delivery_id || '' }}<text
  145. class='copy' @tap='goTel'>{{ $t(`拨打`) }}</text></view>
  146. </view>
  147. </view>
  148. <view class='wrapper' v-else-if='orderInfo.delivery_type == "fictitious"'>
  149. <view class='item acea-row row-between'>
  150. <view>{{ $t(`虚拟发货`) }}:</view>
  151. <view class='conter'>{{ $t(`已发货,请注意查收`) }}</view>
  152. </view>
  153. <view class='item acea-row row-between' v-if="orderInfo.fictitious_content">
  154. <view>{{ $t(`虚拟备注`) }}:</view>
  155. <view class='conter'>{{ orderInfo.fictitious_content }}</view>
  156. </view>
  157. </view>
  158. </view>
  159. <view class='wrapper'>
  160. <view class='item acea-row row-between'>
  161. <view>{{ $t(`商品总价`) }}:</view>
  162. <view class='conter'>
  163. {{ $t(`¥`) }}{{ orderInfo.totalFee }}</view>
  164. </view>
  165. <view class='item acea-row row-between'>
  166. <view>{{ $t(`运费`) }}:</view>
  167. <view class='conter'>{{ $t(`¥`) }}{{ orderInfo.wlPrice }}</view>
  168. </view>
  169. <view class='item acea-row row-between'>
  170. <view>{{ $t(`积分到账方式`) }}:</view>
  171. <view class='conter'>{{ orderInfo.settleTypeDisplayName }}</view>
  172. </view>
  173. <view v-if="orderInfo.vip_true_price > 0" class='item acea-row row-between'>
  174. <view>{{ $t(`会员商品优惠`) }}:</view>
  175. <view class='conter'>-{{ $t(`¥`) }}{{ parseFloat(orderInfo.vip_true_price).toFixed(2) }}</view>
  176. </view>
  177. <view class='item acea-row row-between' v-if='orderInfo.coupon_price > 0'>
  178. <view>{{ $t(`优惠券抵扣`) }}:</view>
  179. <view class='conter'>-{{ $t(`¥`) }}{{ parseFloat(orderInfo.coupon_price).toFixed(2) }}</view>
  180. </view>
  181. <view class='item acea-row row-between' v-if="orderInfo.use_integral > 0">
  182. <view>{{ $t(`积分抵扣`) }}:</view>
  183. <view class='conter'>-{{ $t(`¥`) }}{{ parseFloat(orderInfo.deduction_price).toFixed(2) }}</view>
  184. </view>
  185. <view class='actualPay acea-row row-right' v-if="orderInfo.payFee">{{ $t(`应付金额`) }}:<text
  186. class='money font-color'>{{ $t(`¥`) }}{{ orderInfo.payFee }}</text></view>
  187. </view>
  188. <view class='wrapper'>
  189. <u--text text="物流信息:"></u--text>
  190. <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png">
  191. </u-empty>
  192. </view>
  193. </view>
  194. </view>
  195. </template>
  196. <script>
  197. import {
  198. getOrderDetailById,
  199. } from '@/api/home.js';
  200. import {
  201. getOrderDetail,
  202. refundOrderDetail,
  203. orderAgain,
  204. orderTake,
  205. orderDel,
  206. refundOrderDel,
  207. orderCancel,
  208. refundExpress,
  209. cancelRefundOrder
  210. } from '@/api/order.js';
  211. import {
  212. openOrderRefundSubscribe
  213. } from '@/utils/SubscribeMessage.js';
  214. import {
  215. getCustomerType
  216. } from '@/api/api.js';
  217. import {
  218. getCustomer
  219. } from '@/utils/index.js'
  220. import {
  221. getUserInfo,
  222. invoiceList,
  223. makeUpinvoice
  224. } from '@/api/user.js';
  225. import home from '@/components/home';
  226. import payment from '@/components/payment';
  227. import orderGoods from "@/pages/goods/orderGoods/index_details_mall";
  228. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  229. import {
  230. toLogin
  231. } from '@/libs/login.js';
  232. import {
  233. mapGetters
  234. } from "vuex";
  235. // #ifdef MP
  236. import authorize from '@/components/Authorize';
  237. // #endif
  238. import colors from "@/mixins/color";
  239. import invoicePicker from '../components/invoicePicker/index.vue';
  240. // import invoiceModal from '../components/invoiceModal/index.vue'
  241. import zbCode from '@/components/zb-code/zb-code.vue'
  242. export default {
  243. components: {
  244. payment,
  245. home,
  246. invoicePicker,
  247. // invoiceModal,
  248. orderGoods,
  249. zbCode,
  250. // #ifdef MP
  251. authorize
  252. // #endif
  253. },
  254. mixins: [colors],
  255. data() {
  256. return {
  257. customForm: '', //自定义留言
  258. //二维码参数
  259. codeShow: false,
  260. cid: '1',
  261. ifShow: true,
  262. val: "", // 要生成的二维码值
  263. size: 200, // 二维码大小
  264. unit: 'upx', // 单位
  265. background: '#FFF', // 背景色
  266. foreground: '#000', // 前景色
  267. pdground: '#000', // 角标色
  268. icon: '', // 二维码图标
  269. iconsize: 40, // 二维码图标大小
  270. lv: 3, // 二维码容错级别 , 一般不用设置,默认就行
  271. onval: true, // val值变化时自动重新生成二维码
  272. loadMake: true, // 组件加载完成后自动生成二维码
  273. src: '', // 二维码生成后的图片地址或base64
  274. codeSrc: "",
  275. wd: 0,
  276. hg: 0,
  277. mpUrl: "",
  278. order: {},
  279. order_id: '',
  280. evaluate: 0,
  281. cartInfo: [], //购物车产品
  282. pid: 0, //上级订单ID
  283. split: [], //分单商品
  284. orderInfo: {
  285. help_info: {},
  286. system_store: {},
  287. _status: {},
  288. cartInfo: []
  289. }, //订单详情
  290. system_store: {},
  291. isGoodsReturn: false, //是否为退款订单
  292. status: {}, //订单底部按钮状态
  293. refund_close: false,
  294. isClose: false,
  295. payMode: [{
  296. name: this.$t(`微信支付`),
  297. icon: "icon-weixinzhifu",
  298. value: 'weixin',
  299. title: this.$t(`使用微信快捷支付`),
  300. payStatus: true,
  301. },
  302. // #ifdef H5 || APP-PLUS
  303. {
  304. name: this.$t(`支付宝支付`),
  305. icon: 'icon-zhifubao',
  306. value: 'alipay',
  307. title: this.$t(`使用支付宝支付`),
  308. payStatus: true
  309. },
  310. // #endif
  311. {
  312. name: this.$t(`余额支付`),
  313. icon: "icon-yuezhifu",
  314. value: 'yue',
  315. title: this.$t(`可用余额`),
  316. number: 0,
  317. payStatus: true
  318. }, {
  319. "name": this.$t(`好友代付`),
  320. "icon": "icon-haoyoudaizhifu",
  321. value: 'friend',
  322. title: this.$t(`找微信好友支付`),
  323. payStatus: 1,
  324. }
  325. ],
  326. pay_close: false,
  327. pay_order_id: '',
  328. totalPrice: '0',
  329. isAuto: false, //没有授权的不会自动授权
  330. isShowAuth: false, //是否隐藏授权
  331. routineContact: 0,
  332. express_num: '',
  333. invoice_func: false,
  334. invoiceData: {},
  335. invoice_id: 0,
  336. invChecked: '',
  337. moreBtn: false,
  338. invShow: false,
  339. aleartStatus: false, //发票弹窗
  340. special_invoice: false,
  341. invList: [],
  342. customerInfo: {},
  343. userInfo: {},
  344. isReturen: '',
  345. urlQuery: ''
  346. };
  347. },
  348. computed: mapGetters(['isLogin']),
  349. onLoad: function (options) {
  350. if (options.order_id) {
  351. this.$set(this, 'order_id', options.order_id);
  352. this.isReturen = options.isReturen;
  353. } else {
  354. this.$util.Tips({
  355. title: this.$t(`订单信息不存在`)
  356. }, '/pages/goods/order_list/index');
  357. }
  358. },
  359. onShow() {
  360. if (this.isLogin) {
  361. this.getOrderInfo();
  362. // this.getUserInfo();
  363. // this.getCustomerType();
  364. } else {
  365. toLogin();
  366. }
  367. },
  368. onHide: function () {
  369. this.isClose = true;
  370. },
  371. onReady: function () {
  372. // #ifdef H5
  373. this.$nextTick(function () {
  374. const clipboard = new ClipboardJS(".copy-data");
  375. clipboard.on("success", () => {
  376. this.$util.Tips({
  377. title: this.$t(`复制成功`)
  378. });
  379. });
  380. const address = new ClipboardJS(".copy-refund-msg");
  381. address.on("success", () => {
  382. this.$util.Tips({
  383. title: this.$t(`复制成功`)
  384. });
  385. });
  386. });
  387. // #endif
  388. },
  389. methods: {
  390. qrR(res) {
  391. this.codeSrc = res
  392. },
  393. cancelRefundOrder(orderId) {
  394. let that = this;
  395. uni.showModal({
  396. title: that.$t(`取消申请`),
  397. content: that.$t(`您确认放弃此次申请吗`),
  398. success: (res) => {
  399. if (res.confirm) {
  400. cancelRefundOrder(that.order_id).then(res => {
  401. return that.$util.Tips({
  402. title: that.$t(`操作成功`),
  403. icon: 'success'
  404. }, {
  405. tab: 4,
  406. url: '/pages/users/user_return_list/index'
  407. });
  408. }).catch(err => {
  409. return that.$util.Tips({
  410. title: err
  411. });
  412. })
  413. }
  414. }
  415. })
  416. },
  417. refundInput() {
  418. uni.navigateTo({
  419. url: `/pages/goods/order_refund_goods/index?orderId=` + this.order_id
  420. })
  421. },
  422. getCustomerType() {
  423. getCustomerType().then(res => {
  424. this.customerInfo = res.data;
  425. }).catch(err => {
  426. this.$util.Tips({
  427. title: err
  428. });
  429. })
  430. },
  431. goGoodCall() {
  432. getCustomer(`/pages/extension/customer_list/chat?orderId=${this.order_id}&isReturen=${this.isReturen}`)
  433. },
  434. openSubcribe(e) {
  435. let page = e;
  436. console.log(page)
  437. // #ifndef MP
  438. uni.navigateTo({
  439. url: page,
  440. });
  441. // #endif
  442. // #ifdef MP
  443. uni.showLoading({
  444. title: this.$t(`正在加载中`),
  445. })
  446. openOrderRefundSubscribe().then(res => {
  447. uni.hideLoading();
  448. uni.navigateTo({
  449. url: page,
  450. });
  451. }).catch((err) => {
  452. uni.hideLoading();
  453. });
  454. // #endif
  455. },
  456. goReturnGoods() {
  457. },
  458. /**
  459. * 事件回调
  460. *
  461. */
  462. onChangeFun: function (e) {
  463. let opt = e;
  464. let action = opt.action || null;
  465. let value = opt.value != undefined ? opt.value : null;
  466. (action && this[action]) && this[action](value);
  467. },
  468. /**
  469. * 拨打电话
  470. */
  471. makePhone: function () {
  472. uni.makePhoneCall({
  473. phoneNumber: this.system_store.phone
  474. })
  475. },
  476. /**
  477. * 打开地图
  478. *
  479. */
  480. showMaoLocation: function () {
  481. if (!this.system_store.latitude || !this.system_store.longitude) return this.$util.Tips({
  482. title: this.$t(`缺少经纬度信息无法查看地图`)
  483. });
  484. uni.openLocation({
  485. latitude: parseFloat(this.system_store.latitude),
  486. longitude: parseFloat(this.system_store.longitude),
  487. scale: 8,
  488. name: this.system_store.name,
  489. address: this.system_store.address + this.system_store.detailed_address,
  490. success: function () {
  491. },
  492. });
  493. },
  494. /**
  495. * 关闭支付组件
  496. *
  497. */
  498. payClose: function () {
  499. this.pay_close = false;
  500. },
  501. /**
  502. * 打开支付组件
  503. *
  504. */
  505. pay_open: function () {
  506. this.pay_close = true;
  507. this.pay_order_id = this.orderInfo.order_id;
  508. this.totalPrice = this.orderInfo.pay_price;
  509. },
  510. /**
  511. * 支付成功回调
  512. *
  513. */
  514. pay_complete: function () {
  515. this.pay_close = false;
  516. this.pay_order_id = '';
  517. uni.navigateTo({
  518. url: '/pages/goods/order_pay_status/index?order_id=' + this.orderInfo.order_id + '&msg=' +
  519. this.$t(`支付成功`) +
  520. '&type=3' + '&totalPrice=' + this.totalPrice
  521. })
  522. this.getOrderInfo();
  523. },
  524. /**
  525. * 支付失败回调
  526. *
  527. */
  528. pay_fail: function () {
  529. this.pay_close = false;
  530. this.pay_order_id = '';
  531. },
  532. /**
  533. * 登录授权回调
  534. *
  535. */
  536. onLoadFun: function () {
  537. this.getOrderInfo();
  538. this.getUserInfo();
  539. },
  540. /**
  541. * 获取用户信息
  542. *
  543. */
  544. getUserInfo: function () {
  545. let that = this;
  546. getUserInfo().then(res => {
  547. that.userInfo = res.data
  548. // #ifdef H5
  549. that.payMode[2].number = res.data.now_money;
  550. // #endif
  551. // #ifdef APP-PLUS
  552. that.payMode[2].number = res.data.now_money;
  553. // #endif
  554. // #ifdef MP
  555. that.payMode[1].number = res.data.now_money;
  556. // #endif
  557. that.$set(that, 'payMode', that.payMode);
  558. })
  559. },
  560. /**
  561. * 获取订单详细信息
  562. *
  563. */
  564. getOrderInfo: function () {
  565. let that = this;
  566. uni.showLoading({
  567. title: this.$t(`正在加载中`)
  568. });
  569. let obj = '';
  570. if (that.isReturen) {
  571. obj = refundOrderDetail(this.order_id);
  572. } else {
  573. obj = getOrderDetailById({ orderId: this.order_id });
  574. }
  575. obj.then(res => {
  576. if (!res.data || !res.data.id) {
  577. that.$util.Tips({
  578. title: this.$t(`订单信息不存在`)
  579. }, '/pages/goods/order_list/index');
  580. }
  581. const item = res.data;
  582. if (item) {
  583. this.$set(this, 'order', item);
  584. this.orderInfo = item
  585. this.$set(this, 'cartInfo', item.orderGoods);
  586. }
  587. uni.hideLoading();
  588. }).catch(err => {
  589. uni.hideLoading();
  590. that.$util.Tips({
  591. title: err
  592. }, '/pages/goods/order_list/index');
  593. });
  594. },
  595. // 不开发票
  596. invCancel() {
  597. this.invChecked = '';
  598. this.invTitle = this.$t(`不开发票`);
  599. this.invShow = false;
  600. },
  601. // 选择发票
  602. invSub(id) {
  603. this.invChecked = id;
  604. let data = {
  605. order_id: this.order_id,
  606. invoice_id: this.invChecked
  607. }
  608. makeUpinvoice(data).then(res => {
  609. uni.showToast({
  610. title: this.$t(`申请成功`),
  611. icon: 'success'
  612. });
  613. this.invShow = false;
  614. this.aleartStatus = true;
  615. this.getOrderInfo()
  616. }).catch(err => {
  617. uni.showToast({
  618. title: err,
  619. icon: 'none'
  620. });
  621. });
  622. },
  623. // 关闭发票
  624. invClose() {
  625. this.invShow = false;
  626. this.getInvoiceList()
  627. },
  628. //申请开票
  629. invoiceApply() {
  630. this.urlQuery = `&specialInvoice=${this.userInfo.special_invoice}`;
  631. this.getInvoiceList()
  632. this.moreBtn = false;
  633. this.invShow = true;
  634. },
  635. aleartStatusChange() {
  636. this.moreBtn = false;
  637. this.aleartStatus = true
  638. },
  639. getInvoiceList() {
  640. uni.showLoading({
  641. title: this.$t(`正在加载中`)
  642. })
  643. invoiceList().then(res => {
  644. uni.hideLoading();
  645. this.invList = res.data.map(item => {
  646. item.id = item.id.toString();
  647. return item;
  648. });
  649. const result = this.invList.find(item => item.id == this.invChecked);
  650. if (result) {
  651. let name = '';
  652. name += result.header_type === 1 ? this.$t(`个人`) : this.$t(`企业`);
  653. name += result.type === 1 ? this.$t(`普通`) : this.$t(`专用`);
  654. name += this.$t(`发票`);
  655. this.invTitle = name;
  656. }
  657. }).catch(err => {
  658. uni.showToast({
  659. title: err,
  660. icon: 'none'
  661. });
  662. });
  663. },
  664. more() {
  665. this.moreBtn = !this.moreBtn
  666. },
  667. /**
  668. *
  669. * 剪切订单号
  670. */
  671. // #ifndef H5
  672. copy: function () {
  673. let that = this;
  674. uni.setClipboardData({
  675. data: this.orderInfo.order_id
  676. });
  677. },
  678. // #endif
  679. // #ifndef H5
  680. copyAddress() {
  681. uni.setClipboardData({
  682. data: this.orderInfo._status.refund_name + this.orderInfo._status.refund_phone + this.orderInfo
  683. ._status
  684. .refund_address,
  685. success() {
  686. uni.Tips({
  687. title: this.$t(`复制成功`),
  688. icon: 'success'
  689. })
  690. }
  691. });
  692. },
  693. // #endif
  694. // #ifdef H5
  695. copyAddress() {
  696. // console.log('1111111111111')
  697. // let msg =
  698. // console.log(msg)
  699. // return msg
  700. },
  701. // #endif
  702. /**
  703. * 打电话
  704. */
  705. goTel: function () {
  706. uni.makePhoneCall({
  707. phoneNumber: this.orderInfo.delivery_id
  708. })
  709. },
  710. /**
  711. * 设置底部按钮
  712. *
  713. */
  714. getOrderStatus: function () {
  715. let orderInfo = this.orderInfo || {},
  716. _status = orderInfo._status || {
  717. _type: 0
  718. },
  719. status = {};
  720. let type = parseInt(_status._type),
  721. delivery_type = orderInfo.delivery_type,
  722. seckill_id = orderInfo.seckill_id ? parseInt(orderInfo.seckill_id) : 0,
  723. bargain_id = orderInfo.bargain_id ? parseInt(orderInfo.bargain_id) : 0,
  724. discount_id = orderInfo.discount_id ? parseInt(orderInfo.discount_id) : 0,
  725. combination_id = orderInfo.combination_id ? parseInt(orderInfo.combination_id) : 0;
  726. status = {
  727. type: type == 9 ? -9 : type,
  728. class_status: 0
  729. };
  730. if (type == 1 && combination_id > 0) status.class_status = 1; //查看拼团
  731. if (type == 2 && delivery_type == 'express') status.class_status = 2; //查看物流
  732. if (type == 2) status.class_status = 3; //确认收货
  733. if (type == 4 || type == 0) status.class_status = 4; //删除订单
  734. if (!seckill_id && !bargain_id && !combination_id && !discount_id && !orderInfo.type && (type == 3 ||
  735. type == 4)) status
  736. .class_status =
  737. 5; //再次购买
  738. this.$set(this, 'status', status);
  739. },
  740. /**
  741. * 去拼团详情
  742. *
  743. */
  744. goJoinPink: function () {
  745. uni.navigateTo({
  746. url: '/pages/activity/goods_combination_status/index?id=' + this.orderInfo.pink_id,
  747. });
  748. },
  749. /**
  750. * 再此购买
  751. *
  752. */
  753. goOrderConfirm: function () {
  754. let that = this;
  755. orderAgain(that.orderInfo.order_id).then(res => {
  756. return uni.navigateTo({
  757. url: '/pages/goods/order_confirm/index?new=1&cartId=' + res.data.cateId
  758. });
  759. }).catch(err => {
  760. return that.$util.Tips({
  761. title: err
  762. });
  763. })
  764. },
  765. confirmOrder(orderId) {
  766. let that = this;
  767. uni.showModal({
  768. title: that.$t(`确认收货`),
  769. content: that.$t(`为保障权益,请收到货确认无误后,再确认收货`),
  770. success: function (res) {
  771. if (res.confirm) {
  772. orderTake(orderId ? orderId : that.order_id).then(res => {
  773. return that.$util.Tips({
  774. title: that.$t(`操作成功`),
  775. icon: 'success'
  776. }, function () {
  777. that.getOrderInfo();
  778. });
  779. }).catch(err => {
  780. return that.$util.Tips({
  781. title: err
  782. });
  783. })
  784. }
  785. }
  786. })
  787. },
  788. /**
  789. *
  790. * 删除订单
  791. */
  792. delOrder() {
  793. let that = this;
  794. uni.showModal({
  795. title: this.$t(`删除订单`),
  796. content: this.$t(`确定删除该订单`),
  797. success: (res) => {
  798. if (res.confirm) {
  799. (that.isReturen ? refundOrderDel : orderDel)(that.order_id).then(res => {
  800. if (that.status.type == -2) {
  801. return that.$util.Tips({
  802. title: that.$t(`删除成功`),
  803. icon: 'success'
  804. }, {
  805. tab: 5,
  806. url: '/pages/users/user_return_list/index'
  807. });
  808. } else {
  809. return that.$util.Tips({
  810. title: that.$t(`删除成功`),
  811. icon: 'success'
  812. }, {
  813. tab: 5,
  814. url: '/pages/goods/order_list/index'
  815. });
  816. }
  817. }).catch(err => {
  818. return that.$util.Tips({
  819. title: err
  820. });
  821. });
  822. } else if (res.cancel) {
  823. return that.$util.Tips({
  824. title: that.$t(`已取消`)
  825. });
  826. }
  827. }
  828. });
  829. },
  830. cancelOrder() {
  831. let self = this
  832. uni.showModal({
  833. title: this.$t(`提示`),
  834. content: this.$t(`确认取消该订单`),
  835. success: function (res) {
  836. if (res.confirm) {
  837. orderCancel(self.orderInfo.order_id)
  838. .then((data) => {
  839. // #ifndef MP
  840. self.$util.Tips({
  841. title: data.msg
  842. }, {
  843. tab: 3
  844. })
  845. // #endif
  846. // #ifdef MP
  847. self.$util.Tips({
  848. title: data.msg
  849. }, '/pages/goods/order_list/index');
  850. // #endif
  851. })
  852. .catch(() => {
  853. self.getOrderInfo();
  854. });
  855. } else if (res.cancel) {
  856. }
  857. }
  858. });
  859. },
  860. }
  861. }
  862. </script>
  863. <style scoped lang="scss">
  864. .refund-tip {
  865. font-size: 24rpx;
  866. margin-top: 10rpx;
  867. color: var(--view-theme);
  868. .iconfont {
  869. font-size: 24rpx;
  870. margin-right: 6rpx;
  871. }
  872. }
  873. .refund-tip1 {
  874. font-size: 24rpx;
  875. color: var(--view-theme);
  876. .iconfont {
  877. font-size: 24rpx;
  878. margin-right: 6rpx;
  879. }
  880. }
  881. .qs-btn {
  882. width: auto;
  883. height: 60rpx;
  884. text-align: center;
  885. line-height: 60rpx;
  886. border-radius: 50rpx;
  887. font-size: 27rpx;
  888. padding: 0 3%;
  889. color: #666;
  890. border: 1px solid #ccc;
  891. margin-right: 20rpx;
  892. }
  893. .refund-input {
  894. position: fixed;
  895. bottom: 0;
  896. left: 0;
  897. width: 100%;
  898. border-radius: 16rpx 16rpx 0 0;
  899. background-color: #fff;
  900. z-index: 99;
  901. padding: 40rpx 0 70rpx 0;
  902. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  903. transform: translate3d(0, 100%, 0);
  904. .refund-input-title {
  905. font-size: 32rpx;
  906. margin-bottom: 60rpx;
  907. color: #282828;
  908. }
  909. .refund-input-sty {
  910. border: 1px solid #ddd;
  911. padding: 20rpx 20rpx;
  912. border-radius: 40rpx;
  913. width: 100%;
  914. margin: 20rpx 65rpx;
  915. }
  916. .input-msg {
  917. display: flex;
  918. flex-direction: column;
  919. justify-content: center;
  920. align-items: center;
  921. position: relative;
  922. margin: 0 65rpx;
  923. .iconfont {
  924. position: absolute;
  925. font-size: 32rpx;
  926. color: #282828;
  927. top: 8rpx;
  928. right: -30rpx;
  929. }
  930. }
  931. .refund-bth {
  932. display: flex;
  933. margin: 0 65rpx;
  934. margin-top: 20rpx;
  935. justify-content: space-around;
  936. width: 100%;
  937. .close-refund {
  938. padding: 24rpx 80rpx;
  939. border-radius: 80rpx;
  940. color: #fff;
  941. background-color: #ccc;
  942. }
  943. .submit-refund {
  944. width: 100%;
  945. padding: 24rpx 0rpx;
  946. text-align: center;
  947. border-radius: 80rpx;
  948. color: #fff;
  949. background-color: var(--view-theme);
  950. }
  951. }
  952. }
  953. .refund-input.on {
  954. transform: translate3d(0, 0, 0);
  955. }
  956. .goodCall {
  957. color: var(--view-theme);
  958. text-align: center;
  959. width: 100%;
  960. height: 86rpx;
  961. padding: 0 30rpx;
  962. border-top: 1rpx solid #eee;
  963. font-size: 30rpx;
  964. line-height: 86rpx;
  965. background: #fff;
  966. .icon-kefu {
  967. font-size: 36rpx;
  968. margin-right: 15rpx;
  969. }
  970. /* #ifdef MP */
  971. button {
  972. display: flex;
  973. align-items: center;
  974. justify-content: center;
  975. height: 86rpx;
  976. font-size: 30rpx;
  977. color: var(--view-theme);
  978. }
  979. /* #endif */
  980. }
  981. .order-details .header {
  982. padding: 0 30rpx;
  983. height: 150rpx;
  984. display: flex;
  985. align-items: center;
  986. flex-wrap: nowrap;
  987. }
  988. .order-details .header.on {
  989. background-color: #666 !important;
  990. }
  991. .order-details .header .pictrue {
  992. width: 110rpx;
  993. height: 110rpx;
  994. }
  995. .order-details .header .pictrue image {
  996. width: 100%;
  997. height: 100%;
  998. }
  999. .order-details .header .data {
  1000. color: rgba(255, 255, 255, 0.8);
  1001. font-size: 24rpx;
  1002. margin-left: 27rpx;
  1003. }
  1004. .order-details .header .data.on {
  1005. margin-left: 0;
  1006. }
  1007. .order-details .header .data .state {
  1008. font-size: 30rpx;
  1009. font-weight: bold;
  1010. color: #fff;
  1011. margin-bottom: 7rpx;
  1012. }
  1013. .order-details .header .data .time {
  1014. margin-left: 20rpx;
  1015. }
  1016. .order-details .nav {
  1017. background-color: #fff;
  1018. font-size: 26rpx;
  1019. color: #282828;
  1020. padding: 25rpx 0;
  1021. }
  1022. .order-details .nav .navCon {
  1023. padding: 0 40rpx;
  1024. }
  1025. .order-details .nav .on {
  1026. color: var(--view-theme);
  1027. }
  1028. .order-details .nav .progress {
  1029. padding: 0 65rpx;
  1030. margin-top: 10rpx;
  1031. }
  1032. .order-details .nav .progress .line {
  1033. width: 100rpx;
  1034. height: 2rpx;
  1035. background-color: #939390;
  1036. }
  1037. .order-details .nav .progress .iconfont {
  1038. font-size: 25rpx;
  1039. color: #939390;
  1040. margin-top: -2rpx;
  1041. }
  1042. .order-details .address {
  1043. font-size: 26rpx;
  1044. color: #868686;
  1045. background-color: #fff;
  1046. margin-top: 13rpx;
  1047. padding: 35rpx 30rpx;
  1048. margin-bottom: 12rpx;
  1049. }
  1050. .order-details .address .name {
  1051. font-size: 30rpx;
  1052. color: #282828;
  1053. margin-bottom: 15rpx;
  1054. }
  1055. .order-details .address .name .phone {
  1056. margin-left: 40rpx;
  1057. }
  1058. .order-details .line {
  1059. width: 100%;
  1060. height: 3rpx;
  1061. }
  1062. .order-details .line image {
  1063. width: 100%;
  1064. height: 100%;
  1065. display: block;
  1066. }
  1067. .order-details .wrapper {
  1068. background-color: #fff;
  1069. margin-top: 12rpx;
  1070. padding: 30rpx;
  1071. }
  1072. .order-details .wrapper .acea-row {
  1073. display: flex;
  1074. flex-wrap: nowrap;
  1075. }
  1076. .order-details .wrapper .item {
  1077. font-size: 28rpx;
  1078. color: #282828;
  1079. }
  1080. .order-details .wrapper .item~.item {
  1081. margin-top: 20rpx;
  1082. white-space: normal;
  1083. word-break: break-all;
  1084. word-wrap: break-word;
  1085. }
  1086. .order-details .wrapper .item .conter {
  1087. color: #868686;
  1088. width: 380srpx;
  1089. display: flex;
  1090. flex-wrap: nowrap;
  1091. justify-content: flex-end;
  1092. }
  1093. .order-details .wrapper .item .conter .copy {
  1094. font-size: 20rpx;
  1095. color: #333;
  1096. border-radius: 3rpx;
  1097. border: 1rpx solid #666;
  1098. padding: 3rpx 15rpx;
  1099. margin-left: 24rpx;
  1100. white-space: nowrap;
  1101. }
  1102. .order-details .wrapper .actualPay {
  1103. border-top: 1rpx solid #eee;
  1104. margin-top: 30rpx;
  1105. padding-top: 30rpx;
  1106. display: flex;
  1107. align-items: center;
  1108. .pay-people {
  1109. display: flex;
  1110. align-items: center;
  1111. image {
  1112. width: 40rpx;
  1113. height: 40rpx;
  1114. border-radius: 50%;
  1115. }
  1116. .pay-nickname {
  1117. margin-right: 20rpx;
  1118. padding: 0 10rpx;
  1119. }
  1120. }
  1121. }
  1122. .order-details .wrapper .actualPay .money {
  1123. font-weight: bold;
  1124. font-size: 30rpx;
  1125. }
  1126. .order-details .footer {
  1127. width: 100%;
  1128. height: 100rpx;
  1129. position: fixed;
  1130. bottom: 0;
  1131. left: 0;
  1132. background-color: #fff;
  1133. padding: 0 30rpx;
  1134. box-sizing: border-box;
  1135. .more {
  1136. position: absolute;
  1137. left: 30rpx;
  1138. font-size: 26rpx;
  1139. color: #333;
  1140. .icon-xiangshang {
  1141. margin-left: 6rpx;
  1142. font-size: 22rpx;
  1143. }
  1144. }
  1145. .more-box {
  1146. color: #333;
  1147. position: absolute;
  1148. left: 30rpx;
  1149. bottom: 110rpx;
  1150. background-color: #fff;
  1151. padding: 18rpx 24rpx;
  1152. border-radius: 4rpx;
  1153. font-size: 28rpx;
  1154. -webkit-box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
  1155. -moz-box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
  1156. box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
  1157. .more-btn {
  1158. color: #333;
  1159. padding: 4rpx;
  1160. z-index: 9999;
  1161. }
  1162. }
  1163. .more-box:before {
  1164. content: "";
  1165. width: 0rpx;
  1166. height: 0rpx;
  1167. border-top: 20rpx solid rgba(200, 200, 200, 0.4);
  1168. border-bottom: 0rpx solid transparent;
  1169. border-top: 20rpx solid rgba(200, 200, 200, 0.4);
  1170. border-left: 20rpx solid rgba(0, 0, 0, 0);
  1171. border-right: 20rpx solid rgba(0, 0, 0, 0);
  1172. position: absolute;
  1173. bottom: -20rpx;
  1174. left: 20rpx;
  1175. }
  1176. .more-box::after {
  1177. content: "";
  1178. width: 0rpx;
  1179. height: 0rpx;
  1180. border-top: 20rpx solid #fff;
  1181. border-bottom: 0rpx solid rgba(0, 0, 0, 0);
  1182. border-left: 20rpx solid rgba(0, 0, 0, 0);
  1183. border-right: 20rpx solid rgba(0, 0, 0, 0);
  1184. position: absolute;
  1185. bottom: -18rpx;
  1186. left: 20rpx;
  1187. z-index: 9;
  1188. }
  1189. }
  1190. .order-details .footer .bnt {
  1191. width: 200rpx;
  1192. height: 60rpx;
  1193. text-align: center;
  1194. line-height: 60rpx;
  1195. border-radius: 50rpx;
  1196. color: #fff;
  1197. font-size: 27rpx;
  1198. }
  1199. .order-details .footer .bnt.refundBnt {
  1200. width: 210rpx;
  1201. }
  1202. .order-details .footer .bnt.cancel {
  1203. color: #666;
  1204. border: 1rpx solid #ccc;
  1205. }
  1206. .order-details .footer .bnt~.bnt {
  1207. margin-left: 18rpx;
  1208. }
  1209. .order-details .writeOff {
  1210. background-color: #fff;
  1211. margin-top: 13rpx;
  1212. padding-bottom: 30rpx;
  1213. }
  1214. .order-details .writeOff .title {
  1215. font-size: 30rpx;
  1216. color: #282828;
  1217. height: 87rpx;
  1218. border-bottom: 1px solid #f0f0f0;
  1219. padding: 0 30rpx;
  1220. line-height: 87rpx;
  1221. }
  1222. .order-details .writeOff .grayBg {
  1223. background-color: #f2f5f7;
  1224. width: 590rpx;
  1225. height: 384rpx;
  1226. border-radius: 20rpx 20rpx 0 0;
  1227. margin: 50rpx auto 0 auto;
  1228. padding-top: 55rpx;
  1229. position: relative;
  1230. }
  1231. .order-details .writeOff .grayBg .written {
  1232. position: absolute;
  1233. top: 0;
  1234. right: 0;
  1235. width: 60rpx;
  1236. height: 60rpx;
  1237. }
  1238. .order-details .writeOff .grayBg .written image {
  1239. width: 100%;
  1240. height: 100%;
  1241. }
  1242. .order-details .writeOff .grayBg .pictrue {
  1243. width: 290rpx;
  1244. height: 290rpx;
  1245. margin: 0 auto;
  1246. }
  1247. .order-details .writeOff .grayBg .pictrue image {
  1248. width: 100%;
  1249. height: 100%;
  1250. display: block;
  1251. }
  1252. .order-details .writeOff .gear {
  1253. width: 590rpx;
  1254. height: 30rpx;
  1255. margin: 0 auto;
  1256. }
  1257. .order-details .writeOff .gear image {
  1258. width: 100%;
  1259. height: 100%;
  1260. display: block;
  1261. }
  1262. .order-details .writeOff .num {
  1263. background-color: #f0c34c;
  1264. width: 590rpx;
  1265. height: 84rpx;
  1266. color: #282828;
  1267. font-size: 48rpx;
  1268. margin: 0 auto;
  1269. border-radius: 0 0 20rpx 20rpx;
  1270. text-align: center;
  1271. padding-top: 4rpx;
  1272. }
  1273. .order-details .writeOff .rules {
  1274. margin: 46rpx 30rpx 0 30rpx;
  1275. border-top: 1px solid #f0f0f0;
  1276. padding-top: 10rpx;
  1277. }
  1278. .order-details .writeOff .rules .item {
  1279. margin-top: 20rpx;
  1280. }
  1281. .order-details .writeOff .rules .item .rulesTitle {
  1282. font-size: 28rpx;
  1283. color: #282828;
  1284. }
  1285. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  1286. font-size: 30rpx;
  1287. color: #333;
  1288. margin-right: 8rpx;
  1289. margin-top: 5rpx;
  1290. }
  1291. .order-details .writeOff .rules .item .info {
  1292. font-size: 28rpx;
  1293. color: #999;
  1294. margin-top: 7rpx;
  1295. }
  1296. .order-details .writeOff .rules .item .info .time {
  1297. margin-left: 20rpx;
  1298. }
  1299. .order-details .map {
  1300. height: 86rpx;
  1301. font-size: 30rpx;
  1302. color: #282828;
  1303. line-height: 86rpx;
  1304. border-bottom: 1px solid #f0f0f0;
  1305. margin-top: 13rpx;
  1306. background-color: #fff;
  1307. padding: 0 30rpx;
  1308. }
  1309. .order-details .map .place {
  1310. font-size: 26rpx;
  1311. // width: 176rpx;
  1312. height: 50rpx;
  1313. border-radius: 25rpx;
  1314. line-height: 50rpx;
  1315. text-align: center;
  1316. padding: 0 10rpx;
  1317. }
  1318. .order-details .map .place .iconfont {
  1319. font-size: 27rpx;
  1320. height: 27rpx;
  1321. line-height: 27rpx;
  1322. margin: 2rpx 3rpx 0 0;
  1323. }
  1324. .order-details .address .name .iconfont {
  1325. font-size: 34rpx;
  1326. margin-left: 10rpx;
  1327. }
  1328. .refund {
  1329. padding: 0 30rpx 30rpx;
  1330. margin: 12rpx 0;
  1331. background-color: #fff;
  1332. .title {
  1333. display: flex;
  1334. align-items: center;
  1335. font-size: 30rpx;
  1336. color: #333;
  1337. height: 86rpx;
  1338. border-bottom: 1px solid #f5f5f5;
  1339. image {
  1340. width: 32rpx;
  1341. height: 32rpx;
  1342. margin-right: 10rpx;
  1343. }
  1344. }
  1345. .con {
  1346. padding-top: 25rpx;
  1347. font-size: 28rpx;
  1348. color: #868686;
  1349. }
  1350. }
  1351. </style>
  1352. <style scoped lang="scss">
  1353. .invoice-mask {
  1354. background-color: #999999;
  1355. opacity: 1;
  1356. }
  1357. .more-mask {
  1358. background-color: #fff;
  1359. opacity: 0;
  1360. left: 300rpx;
  1361. }
  1362. .goodCall {
  1363. color: var(--view-theme);
  1364. text-align: center;
  1365. width: 100%;
  1366. height: 86rpx;
  1367. padding: 0 30rpx;
  1368. border-bottom: 1rpx solid #eee;
  1369. font-size: 30rpx;
  1370. line-height: 86rpx;
  1371. background: #fff;
  1372. .icon-kefu {
  1373. font-size: 36rpx;
  1374. margin-right: 15rpx;
  1375. }
  1376. /* #ifdef MP */
  1377. button {
  1378. display: flex;
  1379. align-items: center;
  1380. justify-content: center;
  1381. height: 86rpx;
  1382. font-size: 30rpx;
  1383. color: var(--view-theme);
  1384. }
  1385. /* #endif */
  1386. }
  1387. .order-details .header {
  1388. padding: 0 30rpx;
  1389. height: 150rpx;
  1390. }
  1391. .order-details .header.on {
  1392. background-color: #666 !important;
  1393. }
  1394. .order-details .header .pictrue {
  1395. width: 110rpx;
  1396. height: 110rpx;
  1397. }
  1398. .order-details .header .pictrue image {
  1399. width: 100%;
  1400. height: 100%;
  1401. }
  1402. .order-details .header .data {
  1403. color: rgba(255, 255, 255, 0.8);
  1404. font-size: 24rpx;
  1405. margin-left: 27rpx;
  1406. }
  1407. .order-details .header .data.on {
  1408. margin-left: 0;
  1409. }
  1410. .order-details .header .data .state {
  1411. font-size: 30rpx;
  1412. font-weight: bold;
  1413. color: #fff;
  1414. margin-bottom: 7rpx;
  1415. }
  1416. .order-details .header .data .time {
  1417. margin-left: 20rpx;
  1418. }
  1419. .order-details .nav {
  1420. background-color: #fff;
  1421. font-size: 26rpx;
  1422. color: #282828;
  1423. padding: 25rpx 0;
  1424. }
  1425. .order-details .nav .navCon {
  1426. padding: 0 40rpx;
  1427. }
  1428. .order-details .nav .on {
  1429. color: var(--view-theme);
  1430. }
  1431. .order-details .nav .progress {
  1432. padding: 0 65rpx;
  1433. margin-top: 10rpx;
  1434. }
  1435. .order-details .nav .progress .line {
  1436. width: 100rpx;
  1437. height: 2rpx;
  1438. background-color: #939390;
  1439. }
  1440. .order-details .nav .progress .iconfont {
  1441. font-size: 25rpx;
  1442. color: #939390;
  1443. margin-top: -2rpx;
  1444. }
  1445. .order-details .address {
  1446. font-size: 26rpx;
  1447. color: #868686;
  1448. background-color: #fff;
  1449. margin-top: 13rpx;
  1450. padding: 35rpx 30rpx;
  1451. }
  1452. .order-details .address .name {
  1453. font-size: 30rpx;
  1454. color: #282828;
  1455. margin-bottom: 15rpx;
  1456. }
  1457. .order-details .address .name .phone {
  1458. margin-left: 40rpx;
  1459. }
  1460. .order-details .line {
  1461. width: 100%;
  1462. height: 3rpx;
  1463. }
  1464. .order-details .line image {
  1465. width: 100%;
  1466. height: 100%;
  1467. display: block;
  1468. }
  1469. .order-details .wrapper {
  1470. background-color: #fff;
  1471. margin-top: 12rpx;
  1472. padding: 30rpx;
  1473. }
  1474. .order-details .wrapper .item {
  1475. font-size: 28rpx;
  1476. color: #282828;
  1477. }
  1478. .order-details .wrapper .item~.item {
  1479. margin-top: 20rpx;
  1480. }
  1481. .order-details .wrapper .item .conter {
  1482. color: #868686;
  1483. width: 380rpx;
  1484. text-align: justify;
  1485. }
  1486. .order-details .wrapper .item .conter .copy {
  1487. font-size: 20rpx;
  1488. color: #333;
  1489. border-radius: 3rpx;
  1490. border: 1rpx solid #666;
  1491. padding: 3rpx 15rpx;
  1492. margin-left: 24rpx;
  1493. }
  1494. .order-details .wrapper .actualPay {
  1495. border-top: 1rpx solid #eee;
  1496. margin-top: 30rpx;
  1497. padding-top: 30rpx;
  1498. }
  1499. .order-details .wrapper .actualPay .money {
  1500. font-weight: bold;
  1501. font-size: 30rpx;
  1502. }
  1503. .order-details .footer {
  1504. width: 100%;
  1505. height: 100rpx;
  1506. position: fixed;
  1507. bottom: 0;
  1508. left: 0;
  1509. background-color: #fff;
  1510. padding: 0 30rpx;
  1511. box-sizing: border-box;
  1512. }
  1513. .order-details .footer .bnt {
  1514. width: 160rpx;
  1515. height: 60rpx;
  1516. text-align: center;
  1517. line-height: 60rpx;
  1518. border-radius: 50rpx;
  1519. color: #fff;
  1520. font-size: 27rpx;
  1521. }
  1522. .order-details .footer .bnt~.bnt {
  1523. margin-left: 18rpx;
  1524. }
  1525. .order-details .writeOff {
  1526. background-color: #fff;
  1527. margin-top: 13rpx;
  1528. padding-bottom: 30rpx;
  1529. }
  1530. .order-details .writeOff .title {
  1531. font-size: 30rpx;
  1532. color: #282828;
  1533. height: 87rpx;
  1534. border-bottom: 1px solid #f0f0f0;
  1535. padding: 0 30rpx;
  1536. line-height: 87rpx;
  1537. }
  1538. .order-details .writeOff .grayBg {
  1539. background-color: #f2f5f7;
  1540. width: 590rpx;
  1541. height: 384rpx;
  1542. border-radius: 20rpx 20rpx 0 0;
  1543. margin: 50rpx auto 0 auto;
  1544. padding-top: 55rpx;
  1545. position: relative;
  1546. }
  1547. .order-details .writeOff .grayBg .written {
  1548. position: absolute;
  1549. top: 0;
  1550. right: 0;
  1551. width: 60rpx;
  1552. height: 60rpx;
  1553. }
  1554. .order-details .writeOff .grayBg .written image {
  1555. width: 100%;
  1556. height: 100%;
  1557. }
  1558. .order-details .writeOff .grayBg .pictrue {
  1559. width: 290rpx;
  1560. height: 290rpx;
  1561. margin: 0 auto;
  1562. }
  1563. .order-details .writeOff .grayBg .pictrue image {
  1564. width: 100%;
  1565. height: 100%;
  1566. display: block;
  1567. }
  1568. .order-details .writeOff .gear {
  1569. width: 590rpx;
  1570. height: 30rpx;
  1571. margin: 0 auto;
  1572. }
  1573. .order-details .writeOff .gear image {
  1574. width: 100%;
  1575. height: 100%;
  1576. display: block;
  1577. }
  1578. .order-details .writeOff .num {
  1579. background-color: #f0c34c;
  1580. width: 590rpx;
  1581. height: 84rpx;
  1582. color: #282828;
  1583. font-size: 48rpx;
  1584. margin: 0 auto;
  1585. border-radius: 0 0 20rpx 20rpx;
  1586. text-align: center;
  1587. padding-top: 4rpx;
  1588. }
  1589. .order-details .writeOff .rules {
  1590. margin: 46rpx 30rpx 0 30rpx;
  1591. border-top: 1px solid #f0f0f0;
  1592. padding-top: 10rpx;
  1593. }
  1594. .order-details .writeOff .rules .item {
  1595. margin-top: 20rpx;
  1596. }
  1597. .order-details .writeOff .rules .item .rulesTitle {
  1598. font-size: 28rpx;
  1599. color: #282828;
  1600. }
  1601. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  1602. font-size: 30rpx;
  1603. color: #333;
  1604. margin-right: 8rpx;
  1605. margin-top: 5rpx;
  1606. }
  1607. .order-details .writeOff .rules .item .info {
  1608. font-size: 28rpx;
  1609. color: #999;
  1610. margin-top: 7rpx;
  1611. }
  1612. .order-details .writeOff .rules .item .info .time {
  1613. margin-left: 20rpx;
  1614. }
  1615. .order-details .map {
  1616. height: 86rpx;
  1617. font-size: 30rpx;
  1618. color: #282828;
  1619. line-height: 86rpx;
  1620. border-bottom: 1px solid #f0f0f0;
  1621. margin-top: 13rpx;
  1622. background-color: #fff;
  1623. padding: 0 30rpx;
  1624. }
  1625. .order-details .map .place {
  1626. font-size: 26rpx;
  1627. // width: 176rpx;
  1628. height: 50rpx;
  1629. border-radius: 25rpx;
  1630. line-height: 50rpx;
  1631. text-align: center;
  1632. }
  1633. .order-details .map .place .iconfont {
  1634. font-size: 27rpx;
  1635. height: 27rpx;
  1636. line-height: 27rpx;
  1637. margin: 2rpx 3rpx 0 0;
  1638. }
  1639. .order-details .address .name .iconfont {
  1640. font-size: 34rpx;
  1641. margin-left: 10rpx;
  1642. }
  1643. .refund {
  1644. padding: 0 30rpx 30rpx;
  1645. margin: 12rpx 0;
  1646. background-color: #fff;
  1647. .title {
  1648. display: flex;
  1649. align-items: center;
  1650. font-size: 30rpx;
  1651. color: #333;
  1652. height: 86rpx;
  1653. border-bottom: 1px solid #f5f5f5;
  1654. image {
  1655. width: 32rpx;
  1656. height: 32rpx;
  1657. margin-right: 10rpx;
  1658. }
  1659. }
  1660. .con {
  1661. padding-top: 25rpx;
  1662. font-size: 28rpx;
  1663. color: #868686;
  1664. }
  1665. }
  1666. .refund-msg {
  1667. background-color: #fff;
  1668. padding: 20rpx 40rpx;
  1669. font-size: 28rpx;
  1670. .refund-msg-user {
  1671. font-weight: bold;
  1672. margin-bottom: 10rpx;
  1673. .copy-refund-msg {
  1674. font-size: 10px;
  1675. border-radius: 1px;
  1676. border: 0.5px solid #666;
  1677. padding: 1px 7px;
  1678. margin-left: 12px;
  1679. }
  1680. .name {
  1681. margin-right: 20rpx;
  1682. }
  1683. }
  1684. .refund-address {
  1685. color: #868686;
  1686. }
  1687. }
  1688. .upload .pictrue {
  1689. display: inline-block;
  1690. margin: 22rpx 17rpx 20rpx 0;
  1691. width: 156rpx;
  1692. height: 156rpx;
  1693. color: #bbb;
  1694. }
  1695. .upload .pictrue image {
  1696. width: 100%;
  1697. height: 100%;
  1698. }
  1699. </style>