index.vue 58 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198
  1. <template>
  2. <view :style="colorStyle">
  3. <view class='order-details'>
  4. <!-- 给header上与data上加on为退款订单-->
  5. <view class='header bg-color acea-row row-middle' :class='isGoodsReturn ? "on":""'>
  6. <view class='pictrue' v-if="isGoodsReturn==false">
  7. <image :src="orderInfo.status_pic"></image>
  8. </view>
  9. <view class='data' :class='isGoodsReturn ? "on":""'>
  10. <view class='state'>{{orderInfo._status._msg}}</view>
  11. <view>{{orderInfo.add_time_y}}<text class='time'>{{orderInfo.add_time_h}}</text></view>
  12. </view>
  13. </view>
  14. <view class="refund-msg" v-if="[4,5].includes(orderInfo.refund_type)">
  15. <view class="refund-msg-user">
  16. <text class="name">{{orderInfo._status.refund_name}}</text>
  17. <text>{{orderInfo._status.refund_phone}}</text>
  18. <!-- #ifndef H5 -->
  19. <text class="copy-refund-msg" @click="copyAddress()">复制</text>
  20. <!-- #endif -->
  21. <!-- #ifdef H5 -->
  22. <text class="copy-refund-msg"
  23. :data-clipboard-text="orderInfo._status.refund_name + orderInfo._status.refund_phone + orderInfo._status.refund_address">复制</text>
  24. <!-- #endif -->
  25. </view>
  26. <view class="refund-address">
  27. {{orderInfo._status.refund_address}}
  28. </view>
  29. <view class="refund-tip"><text class="iconfont icon-zhuyi-copy"></text>请按以上退货信息将商品退回</view>
  30. </view>
  31. <view class='line' v-if="[4,5].includes(orderInfo.refund_type)">
  32. <image src='@/static/images/line.jpg'></image>
  33. </view>
  34. <!-- 拒绝退款 -->
  35. <view class="refund" v-if="isGoodsReturn && orderInfo.refund_type==3">
  36. <view class="title">
  37. <image src="../static/shuoming.png" mode=""></image>
  38. 商家拒绝退款
  39. </view>
  40. <view class="con">拒绝原因:{{orderInfo.refuse_reason}}</view>
  41. </view>
  42. <view v-if="isGoodsReturn==false">
  43. <view class='nav'>
  44. <view class='navCon acea-row row-between-wrapper'>
  45. <view :class="status.type == 0 || status.type == -9 ? 'on':''">待付款</view>
  46. <view :class="status.type == 1 || status.type == 5 ? 'on':''" v-if="orderInfo.shipping_type!=4 && orderInfo.type != 10">
  47. {{(orderInfo.shipping_type==1 || orderInfo.shipping_type==3) ? '待发货':'待核销'}}
  48. </view>
  49. <view :class="status.type == 2 ? 'on':''"
  50. v-if="(orderInfo.shipping_type == 1 || orderInfo.shipping_type == 3) && orderInfo.type != 10">待收货</view>
  51. <view v-if="orderInfo.type != 8" :class="status.type == 3 ? 'on':''">待评价</view>
  52. <view :class="status.type == 4 ? 'on':''">已完成</view>
  53. </view>
  54. <view class='progress acea-row row-between-wrapper'>
  55. <view v-if="orderInfo.type != 10" class='iconfont'
  56. :class='(status.type == 0 || status.type == -9 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 0 ? "font-num":"")'>
  57. </view>
  58. <view class='line' :class='status.type > 0 ? "bg-color":""' v-if="orderInfo.shipping_type!=4 && orderInfo.type != 10">
  59. </view>
  60. <view class='iconfont'
  61. :class='(status.type == 1 || status.type == 5 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 1 ? "font-num":"")'
  62. v-if="orderInfo.shipping_type!=4 && orderInfo.type != 10">
  63. </view>
  64. <view class='line' :class='status.type > 1 && status.type != 5 ? "bg-color":""'
  65. v-if="(orderInfo.shipping_type == 1 || orderInfo.shipping_type == 3) && orderInfo.type != 10">
  66. </view>
  67. <view class='iconfont'
  68. :class='(status.type == 2 ? "icon-webicon318":"icon-yuandianxiao") + " " +(status.type >= 2 ? "font-num":"")'
  69. v-if="orderInfo.shipping_type == 1 || orderInfo.shipping_type == 3 || (orderInfo.shipping_type == 4 && orderInfo.type == 10)"></view>
  70. <view class='line' :class='status.type > 2 && status.type != 5 ? "bg-color":""'></view>
  71. <view v-if="orderInfo.type != 8" class='iconfont'
  72. :class='(status.type == 3 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 3 && status.type != 5 ? "font-num":"")'>
  73. </view>
  74. <view v-if="orderInfo.type != 8" class='line' :class='status.type > 3 && status.type != 5 ? "bg-color":""'></view>
  75. <view class='iconfont'
  76. :class='(status.type == 4 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 4 && status.type != 5 ? "font-num":"")'>
  77. </view>
  78. </view>
  79. </view>
  80. <!-- <view class="writeOff" v-if="orderInfo.shipping_type == 2 && orderInfo.paid"> -->
  81. <view class="writeOff" v-if="orderInfo.verify_code && orderInfo.paid == 1">
  82. <view class="title">核销信息</view>
  83. <view class="grayBg">
  84. <view class="written" v-if="orderInfo.status == 2">
  85. <image src="../static/written.png"></image>
  86. </view>
  87. <view class="pictrue">
  88. <image v-if="tempFilePath" :src="tempFilePath"></image>
  89. <w-qrcode v-else :options="config.qrc" @generate='generate'></w-qrcode>
  90. </view>
  91. </view>
  92. <view class="gear">
  93. <image src="../static/writeOff.jpg"></image>
  94. </view>
  95. <view class="num">{{orderInfo._verify_code}}</view>
  96. <view class="rules">
  97. <view class="item" v-if="orderInfo.shipping_type == 2 && orderInfo.product_type==4">
  98. <view class="rulesTitle acea-row row-middle">
  99. <text class="iconfont icon-tishi"></text>核销信息
  100. </view>
  101. <view class="info">
  102. 核销次数:<text class="font-num">{{orderInfo.write_off}}</text>/{{orderInfo.write_times}}
  103. </view>
  104. </view>
  105. <view class="item" v-if="orderInfo.shipping_type == 2 && orderInfo.product_type==4">
  106. <view class="rulesTitle acea-row row-middle">
  107. <text class="iconfont icon-shijian"></text>核销时间
  108. </view>
  109. <view class="info">{{orderInfo.write_day}}</view>
  110. </view>
  111. <view class="item" v-if="orderInfo.shipping_type == 2">
  112. <view class="rulesTitle acea-row row-middle">
  113. <text class="iconfont icon-shijian"></text>营业时间
  114. </view>
  115. <view class="info">
  116. 每日:{{orderInfo.system_store.day_time}}
  117. </view>
  118. </view>
  119. <view class="item">
  120. <view class="rulesTitle acea-row row-middle">
  121. <text class="iconfont icon-shuoming1"></text>使用说明
  122. </view>
  123. <view class="info">{{orderInfo.shipping_type == 2?'可将二维码出示给店员扫描或提供数字核销码':'可将二维码出示给配送员进行核销'}}
  124. </view>
  125. </view>
  126. </view>
  127. </view>
  128. <view class="map acea-row row-between-wrapper" v-if="orderInfo.shipping_type == 2">
  129. <view>自提地址信息</view>
  130. <view class="place cart-color acea-row row-center-wrapper" @tap="showMaoLocation">
  131. <text class="iconfont icon-weizhi"></text>查看位置
  132. </view>
  133. </view>
  134. <view class='address' v-if="(orderInfo.shipping_type === 1 || orderInfo.shipping_type === 3) && orderInfo.product_type==0 && orderInfo.type != 10">
  135. <view class='name'>{{orderInfo.real_name}}<text class='phone'>{{orderInfo.user_phone}}</text></view>
  136. <view>{{orderInfo.user_address}}</view>
  137. </view>
  138. <view class='address' v-if="(orderInfo.shipping_type === 2 || orderInfo.shipping_type === 4) && (orderInfo.product_type==0 || orderInfo.product_type==4)">
  139. <view class='name acea-row' @tap="makePhone">
  140. <view class="nameCon">{{orderInfo.system_store.name}}</view>
  141. <text class='phone'>{{orderInfo.system_store.phone}}</text>
  142. <text class="iconfont icon-tonghua font-num"></text>
  143. </view>
  144. <view>{{orderInfo.system_store.detailed_address}}</view>
  145. </view>
  146. <view class='line' v-if="orderInfo.shipping_type === 1 && orderInfo.type != 10">
  147. <image src='@/static/images/line.jpg'></image>
  148. </view>
  149. </view>
  150. <view class="delivery acea-row row-between-wrapper" v-if="orderInfo.delivery_type == 'city_delivery' || orderInfo.delivery_type == 'send'">
  151. <view class="text acea-row row-middle">
  152. <view class="pictrue">
  153. <image src="../static/delivery.png"></image>
  154. </view>
  155. <view class="info" v-if="orderInfo.delivery_id">
  156. <view class="name">{{orderInfo.delivery_name}}</view>
  157. <view class="phone">{{orderInfo.delivery_id}}</view>
  158. </view>
  159. <view class="name" v-else>系统派单中...</view>
  160. </view>
  161. <navigator v-if="orderInfo.delivery_type == 'city_delivery'" :url="'/pages/goods/delivery_detail/index?orderId='+orderInfo.id" hover-class='none' class="details" >查看详情</navigator>
  162. </view>
  163. <orderGoods v-for="(item,index) in split" :key="item.id" :evaluate='item._status._type == 3 ? 3 : 0'
  164. :orderId="item.order_id" :cartInfo="item.cartInfo" :jump="false" :jumpDetail='true' :pid="item.pid"
  165. :split="true" :status_type="item._status._type" :index="index" :refund_status="item.refund_status"
  166. :delivery_type="item.delivery_type" @confirmOrder="confirmOrder" @openSubcribe="openSubcribe">
  167. </orderGoods>
  168. <orderGoods :evaluate='evaluate' :giveData="giveData" :deliveryType="orderInfo.shipping_type" :statusType="status.type"
  169. :sendType="orderInfo.delivery_type" :orderId="order_id" :oid="Number(orderInfo.id)" :cartInfo="cartInfo" :pid="pid" :jump="true" :refund_status="orderInfo.refund_status" :paid="Number(orderInfo.paid)" :productType="orderInfo.product_type" :giveCartInfo="giveCartInfo">
  170. </orderGoods>
  171. <!-- #ifdef H5 || APP-PLUS -->
  172. <div class="goodCall" @click="goGoodCall">
  173. <span class="iconfont icon-kefu"></span><span>联系客服</span>
  174. </div>
  175. <!-- #endif -->
  176. <!-- #ifdef MP -->
  177. <div class="goodCall" @click="goGoodCall" v-if='routineContact == 0'>
  178. <button hover-class='none'>
  179. <span class="iconfont icon-kefu"></span><span>联系客服</span>
  180. </button>
  181. </div>
  182. <div class="goodCall" v-else>
  183. <button hover-class='none' open-type='contact'>
  184. <span class="iconfont icon-kefu"></span><span>联系客服</span>
  185. </button>
  186. </div>
  187. <!-- #endif -->
  188. <view v-if="orderInfo.status!=0">
  189. <view class='wrapper' v-if='orderInfo.delivery_type=="fictitious" && orderInfo.product_type!=1'>
  190. <view class='item acea-row row-between'>
  191. <view>虚拟发货:</view>
  192. <view class='conter'>已发货,请注意查收</view>
  193. </view>
  194. <view class='item acea-row row-between' v-if="orderInfo.fictitious_content">
  195. <view>虚拟备注:</view>
  196. <view class='conter'>{{orderInfo.fictitious_content}}</view>
  197. </view>
  198. </view>
  199. <view class='wrapper' v-if="orderInfo.virtual_info && orderInfo.product_type==1">
  200. <view class='item acea-row row-between'>
  201. <view>卡密发货:</view>
  202. <view class='conter'>{{orderInfo.virtual_info}}</view>
  203. </view>
  204. <view class="item acea-row row-right">
  205. <view class="conter">
  206. <!-- #ifndef H5 -->
  207. <text class='copy' @tap='copyKm'>复制</text>
  208. <!-- #endif -->
  209. <!-- #ifdef H5 -->
  210. <text class='copy copy-data' :data-clipboard-text="orderInfo.virtual_info">复制</text>
  211. <!-- #endif -->
  212. </view>
  213. </view>
  214. </view>
  215. </view>
  216. <customForm :customForm="orderInfo.custom_form"></customForm>
  217. <!-- #ifdef MP -->
  218. <!-- 桌码信息 -->
  219. <view v-if="orderInfo.type == 10" class='wrapper'>
  220. <view class='item acea-row row-between'>
  221. <view>桌台号:</view>
  222. <view class='conter'>{{ tableCode.category.name }} {{ tableCode.table_number }}</view>
  223. </view>
  224. <view class='item acea-row row-between'>
  225. <view>就餐人数:</view>
  226. <view class='conter'>{{ tableCode.number_diners }}人</view>
  227. </view>
  228. </view>
  229. <!-- #endif -->
  230. <view class='wrapper'>
  231. <view class='item acea-row row-between'>
  232. <view>订单编号:</view>
  233. <view class='conter on acea-row row-middle row-right'>
  234. <text>{{orderInfo.order_id}}</text>
  235. <!-- #ifndef H5 -->
  236. <text class='copy' @tap='copy'>复制</text>
  237. <!-- #endif -->
  238. <!-- #ifdef H5 -->
  239. <text class='copy copy-data' :data-clipboard-text="orderInfo.order_id">复制</text>
  240. <!-- #endif -->
  241. </view>
  242. </view>
  243. <view class='item acea-row row-between' v-if="orderInfo.refunded_price">
  244. <view>退款金额:</view>
  245. <view class='conter'>¥{{orderInfo.refunded_price}}</view>
  246. </view>
  247. <view class='item acea-row row-between'>
  248. <view>下单时间:</view>
  249. <view class='conter'>{{(orderInfo.add_time_y || '') +' '+(orderInfo.add_time_h || 0)}}</view>
  250. </view>
  251. <view class='item acea-row row-between'>
  252. <view>支付状态:</view>
  253. <view class='conter' v-if="orderInfo.paid">已支付</view>
  254. <view class='conter' v-else>未支付</view>
  255. </view>
  256. <view class='item acea-row row-between'>
  257. <view>支付方式:</view>
  258. <view class='conter'>{{orderInfo._status._payType}}</view>
  259. </view>
  260. <!-- 说明:测试有提过问题,之前退款留言取的是mark,现在按要求改成refund_explain -->
  261. <view class='item acea-row row-between' v-if="orderInfo.mark || orderInfo.refund_explain">
  262. <view v-if="!isGoodsReturn">买家备注:</view>
  263. <view v-else>退款留言:</view>
  264. <view class='conter'>{{!isGoodsReturn?orderInfo.mark:orderInfo.refund_explain}}</view>
  265. </view>
  266. <view class="item acea-row row-between" v-if="orderInfo.refund_goods_explain">
  267. <view>退货留言:</view>
  268. <view class='conter'>{{orderInfo.refund_goods_explain}}</view>
  269. </view>
  270. </view>
  271. <!-- 退款订单详情 -->
  272. <view class='wrapper' v-if="isGoodsReturn && orderInfo.product_type==0">
  273. <view class='item acea-row row-between'>
  274. <view>收货人:</view>
  275. <view class='conter'>{{orderInfo.real_name}}</view>
  276. </view>
  277. <view class='item acea-row row-between'>
  278. <view>联系电话:</view>
  279. <view class='conter'>{{orderInfo.user_phone}}</view>
  280. </view>
  281. <view v-if="this.orderInfo.shipping_type !== 2 && this.orderInfo.shipping_type !== 4" class='item acea-row row-between'>
  282. <view>收货地址:</view>
  283. <view class='conter'>{{orderInfo.user_address}}</view>
  284. </view>
  285. <view class="item acea-row row-between" v-if="orderInfo.refund_img && orderInfo.refund_img.length">
  286. <view>退款凭证:</view>
  287. <view class="conter">
  288. <view class="pictrue" v-for="(item,index) in orderInfo.refund_img">
  289. <image :src="item" mode="aspectFill" @click='getpreviewImage(index,1)'></image>
  290. </view>
  291. </view>
  292. </view>
  293. <view class="item acea-row row-between" v-if="orderInfo.refund_goods_img && orderInfo.refund_goods_img.length">
  294. <view>退货凭证:</view>
  295. <view class="conter">
  296. <view class="pictrue" v-for="(item,index) in orderInfo.refund_goods_img">
  297. <image :src="item" mode="aspectFill" @click='getpreviewImage(index,0)'></image>
  298. </view>
  299. </view>
  300. </view>
  301. </view>
  302. <view v-if="orderInfo.status!=0">
  303. <view class='wrapper' v-if='orderInfo.delivery_type=="express"'>
  304. <view class='item acea-row row-between'>
  305. <view>配送方式:</view>
  306. <view class='conter'>发货</view>
  307. </view>
  308. <view class='item acea-row row-between'>
  309. <view>快递公司:</view>
  310. <view class='conter'>{{orderInfo.delivery_name || ''}}</view>
  311. </view>
  312. <view class='item acea-row row-between'>
  313. <view>快递号:</view>
  314. <view class='conter'>{{orderInfo.delivery_id || ''}}</view>
  315. </view>
  316. </view>
  317. <view class='wrapper' v-else-if='orderInfo.delivery_type=="send"'>
  318. <view class='item acea-row row-between'>
  319. <view>配送方式:</view>
  320. <view class='conter'>送货</view>
  321. </view>
  322. <view class='item acea-row row-between'>
  323. <view>配送人姓名:</view>
  324. <view class='conter'>{{orderInfo.delivery_name || ''}}</view>
  325. </view>
  326. <view class='item acea-row row-between'>
  327. <view>联系电话:</view>
  328. <view class='conter acea-row row-middle row-right'>{{orderInfo.delivery_id || ''}}<text
  329. class='copy' @tap='goTel'>拨打</text></view>
  330. </view>
  331. </view>
  332. </view>
  333. <view class='wrapper'>
  334. <view class='item acea-row row-between'>
  335. <view>商品总价:</view>
  336. <view class='conter'>
  337. ¥{{(parseFloat(orderInfo.total_price)+parseFloat(orderInfo.vip_true_price)).toFixed(2)}}</view>
  338. </view>
  339. <view class='item acea-row row-between' v-if="orderInfo.pay_postage > 0 && orderInfo.type != 10">
  340. <view>配送运费:</view>
  341. <view class='conter'>¥{{parseFloat(orderInfo.pay_postage).toFixed(2)}}</view>
  342. </view>
  343. <view v-if="orderInfo.vip_true_price > 0" class='item acea-row row-between'>
  344. <view>会员商品优惠:</view>
  345. <view class='conter'>-¥{{parseFloat(orderInfo.vip_true_price).toFixed(2)}}</view>
  346. </view>
  347. <!-- <view v-if="orderInfo.vip_true_price" class='item acea-row row-between'>
  348. <view>会员运费优惠:</view>
  349. <view class='conter'>-¥{{parseFloat(orderInfo.vip_true_price).toFixed(2)}}</view>
  350. </view> -->
  351. <view class='item acea-row row-between' v-if='orderInfo.coupon_id'>
  352. <view>优惠券抵扣:</view>
  353. <view class='conter'>-¥{{parseFloat(orderInfo.coupon_price).toFixed(2)}}</view>
  354. </view>
  355. <view class='item acea-row row-between-wrapper' v-if="parseFloat(orderInfo.first_order_price) > 0">
  356. <view>新人首单优惠:</view>
  357. <view class='conter'>-¥{{parseFloat(orderInfo.first_order_price).toFixed(2)}}</view>
  358. </view>
  359. <view class='item acea-row row-between' v-if="orderInfo.use_integral > 0">
  360. <view>积分抵扣:</view>
  361. <view class='conter'>-¥{{parseFloat(orderInfo.deduction_price).toFixed(2)}}</view>
  362. </view>
  363. <view class='item acea-row row-between' v-for="(item,index) in orderInfo.promotions_detail" :key="index" v-if="parseFloat(item.promotions_price)">
  364. <view>{{item.title}}:</view>
  365. <view class='conter'>-¥{{parseFloat(item.promotions_price).toFixed(2)}}</view>
  366. </view>
  367. <view class='actualPay acea-row row-right'>实付款:<text
  368. class='money font-color'>¥{{parseFloat(orderInfo.pay_price).toFixed(2)}}</text></view>
  369. </view>
  370. <view style='height:120rpx;'></view>
  371. <view class='footer acea-row row-right row-middle'
  372. v-if="isGoodsReturn==false || status.type == 9 || orderInfo.refund_type || orderInfo.is_apply_refund">
  373. <view class="more" v-if="(invoice_func || invoiceData || status.class_again==6) && orderInfo.paid && !orderInfo.refund_status && orderInfo.type != 8"
  374. @click="more">更多<span class='iconfont icon-xiangshang'></span></view>
  375. <view class="more-box" v-if="moreBtn">
  376. <view class="more-btn" v-if="invoice_func && !invoiceData" @click="invoiceApply">申请开票</view>
  377. <view class="more-btn" v-if="invoiceData" @click="aleartStatusChange">查看发票</view>
  378. <view class="more-btn" v-if="status.class_again==6" @tap='goOrderConfirm'>再次购买</view>
  379. </view>
  380. <navigator class="qs-btn" v-if="orderInfo.type == 9" :url="`/pages/store/group_goods/index?collage_id=${orderInfo.activity_id}`" hover-class="none">拼单详情</navigator>
  381. <template v-if="orderInfo.type != 8">
  382. <view class="qs-btn" v-if="status.type == 0 || status.type == -9" @click.stop="cancelOrder">取消订单</view>
  383. <view class='bnt bg-color' v-if="status.type==0" @tap='pay_open(orderInfo.order_id)'>立即付款</view>
  384. <view
  385. @click="openSubcribe(`/pages/goods/${cartInfo.length > 1 ? 'goods_return_list' : 'goods_return'}/index?orderId=`+orderInfo.order_id+ '&id=' + orderInfo.id)"
  386. class='bnt cancel' v-else-if="orderInfo.paid == 1 && orderInfo.is_apply_refund && orderInfo.refund_status == 0 && cartInfo.length>1">
  387. 批量退款</view>
  388. </template>
  389. <!-- #ifdef MP -->
  390. <!-- <view
  391. @tap="openSubcribe(`/pages/users/${orderInfo.total_num > 1 ? 'goods_return_list' : 'goods_return'}/index?orderId=`+orderInfo.order_id+ '&id=' + orderInfo.id)"
  392. class='bnt cancel' v-else-if="orderInfo.is_apply_refund && orderInfo.refund_status == 0">
  393. 申请退款</view> -->
  394. <!-- #endif -->
  395. <!-- #ifndef MP -->
  396. <!-- <navigator hover-class="none"
  397. :url="`/pages/users/${orderInfo.total_num > 1 ? 'goods_return_list' : 'goods_return'}/index?orderId=`+ orderInfo.order_id + '&id=' + orderInfo.id"
  398. class='bnt cancel' v-else-if="orderInfo.is_apply_refund && orderInfo.refund_status == 0">
  399. 申请退款
  400. </navigator> -->
  401. <!-- #endif -->
  402. <!-- <navigator hover-class="none" :url="'/pages/goods/goods_return/index?orderId='+orderInfo.order_id"
  403. class='bnt cancel' v-if="orderInfo.refund_type== 3">重新申请
  404. </navigator> -->
  405. <navigator class='bnt cancel'
  406. v-if="orderInfo.delivery_type == 'express' && status.class_status==3 && status.type==2 && !split.length"
  407. hover-class='none' :url="'/pages/goods/goods_logistics/index?orderId='+ orderInfo.order_id">查看物流
  408. </navigator>
  409. <view class='bnt bg-color' v-if="orderInfo.type==3 && orderInfo.paid && orderInfo.refund_status==0 && orderInfo.type != 8" @tap='goJoinPink'>查看拼团</view>
  410. <view class='bnt bg-color' v-if="status.class_status==3 && !split.length" @click='confirmOrder()'>确认收货
  411. </view>
  412. <template v-if="orderInfo.type != 8">
  413. <view class='bnt cancel' v-if="status.type==4 && !split.length ||status.type==-2" @tap='delOrder'>删除订单
  414. </view>
  415. <view class='bnt bg-color' v-if="status.class_status==5" @tap='goOrderConfirm'>再次购买
  416. </view>
  417. <view class='bnt bg-color refundBnt'
  418. v-if="[1,2,4].includes(orderInfo.refund_type) && !orderInfo.is_cancel" @tap='cancelRefundOrder'>取消申请
  419. </view>
  420. <view class='bnt bg-color refundBnt' v-if="orderInfo.refund_type== 4" @tap='refundInput'>填写退货信息</view>
  421. <navigator class='bnt cancel refundBnt' v-if="orderInfo.refund_type == 5" hover-class='none'
  422. :url="'/pages/goods/goods_logistics/index?orderId='+ orderInfo.order_id + '&type=refund'">查看退货物流
  423. </navigator>
  424. </template>
  425. </view>
  426. </view>
  427. <home v-show="!aleartStatus && !invShow && navigation"></home>
  428. <view class="mask" v-if="refund_close" @click="refund_close = false"></view>
  429. <payment :payMode='payMode' :pay_close="pay_close" @onChangeFun='onChangeFun' :order_id="pay_order_id"
  430. :totalPrice='totalPrice'></payment>
  431. <invoiceModal :aleartStatus="aleartStatus" :invoiceData="invoiceData" @close="aleartStatus=false">
  432. </invoiceModal>
  433. <view class="mask invoice-mask" v-if="aleartStatus" @click="aleartStatus = false"></view>
  434. <view class="mask more-mask" v-if="moreBtn" @click="moreBtn = false"></view>
  435. <invoice-picker :inv-show="invShow" :is-special="special_invoice" :inv-checked="invChecked" :order-id='order_id'
  436. :inv-list="invList" :is-order="1" @inv-close="invClose" @inv-change="invSub" @inv-cancel="invCancel">
  437. </invoice-picker>
  438. <!-- #ifdef MP -->
  439. <!-- <authorize v-if="isShowAuth" @authColse="authColse" @onLoadFun="onLoadFun"></authorize> -->
  440. <!-- #endif -->
  441. </view>
  442. </template>
  443. <style scoped lang="scss">
  444. .delivery{
  445. width: 100%;
  446. height: 140rpx;
  447. background-color: #fff;
  448. padding: 0 30rpx;
  449. margin-top: 12rpx;
  450. .text{
  451. .info{
  452. margin-left: 30rpx;
  453. .name{
  454. font-weight: 400;
  455. margin-left: 0;
  456. }
  457. .phone{
  458. font-size: 26rpx;
  459. font-weight: 400;
  460. color: #333333;
  461. margin-top: 8rpx;
  462. }
  463. }
  464. .name{
  465. width: 420rpx;
  466. margin-left: 30rpx;
  467. font-size: 28rpx;
  468. font-weight: 500;
  469. color: #333333;
  470. }
  471. .pictrue{
  472. width: 80rpx;
  473. height: 80rpx;
  474. image{
  475. width: 100%;
  476. height: 100%;
  477. }
  478. }
  479. }
  480. .details{
  481. font-size: 24rpx;
  482. font-weight: 400;
  483. color: var(--view-theme);
  484. }
  485. }
  486. .refund-tip {
  487. font-size: 24rpx;
  488. margin-top: 10rpx;
  489. color: var(--view-theme);
  490. .iconfont {
  491. font-size: 24rpx;
  492. margin-right: 6rpx;
  493. }
  494. }
  495. .qs-btn {
  496. width: auto;
  497. height: 60rpx;
  498. text-align: center;
  499. line-height: 60rpx;
  500. border-radius: 50rpx;
  501. font-size: 27rpx;
  502. padding: 0 3%;
  503. color: #666;
  504. border: 1rpx solid #ccc;
  505. margin-right: 20rpx;
  506. }
  507. .refund-input {
  508. position: fixed;
  509. bottom: 0;
  510. left: 0;
  511. width: 100%;
  512. border-radius: 16rpx 16rpx 0 0;
  513. background-color: #fff;
  514. z-index: 99;
  515. padding: 40rpx 0 70rpx 0;
  516. transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
  517. transform: translate3d(0, 100%, 0);
  518. .refund-input-title {
  519. font-size: 32rpx;
  520. margin-bottom: 60rpx;
  521. color: #282828;
  522. }
  523. .refund-input-sty {
  524. border: 1px solid #ddd;
  525. padding: 20rpx 20rpx;
  526. border-radius: 40rpx;
  527. width: 100%;
  528. margin: 20rpx 65rpx;
  529. }
  530. .input-msg {
  531. display: flex;
  532. flex-direction: column;
  533. justify-content: center;
  534. align-items: center;
  535. position: relative;
  536. margin: 0 65rpx;
  537. .iconfont {
  538. position: absolute;
  539. font-size: 32rpx;
  540. color: #282828;
  541. top: 8rpx;
  542. right: -30rpx;
  543. }
  544. }
  545. .refund-bth {
  546. display: flex;
  547. margin: 0 65rpx;
  548. margin-top: 20rpx;
  549. justify-content: space-around;
  550. width: 100%;
  551. .close-refund {
  552. padding: 24rpx 80rpx;
  553. border-radius: 80rpx;
  554. color: #fff;
  555. background-color: #ccc;
  556. }
  557. .submit-refund {
  558. width: 100%;
  559. padding: 24rpx 0rpx;
  560. text-align: center;
  561. border-radius: 80rpx;
  562. color: #fff;
  563. background-color: var(--view-theme);
  564. }
  565. }
  566. }
  567. .refund-input.on {
  568. transform: translate3d(0, 0, 0);
  569. }
  570. .goodCall {
  571. color: var(--view-theme);
  572. text-align: center;
  573. width: 100%;
  574. height: 86rpx;
  575. padding: 0 30rpx;
  576. border-bottom: 1rpx solid #eee;
  577. font-size: 30rpx;
  578. line-height: 86rpx;
  579. background: #fff;
  580. .icon-kefu {
  581. font-size: 36rpx;
  582. margin-right: 15rpx;
  583. }
  584. /* #ifdef MP */
  585. button {
  586. display: flex;
  587. align-items: center;
  588. justify-content: center;
  589. height: 86rpx;
  590. font-size: 30rpx;
  591. color: var(--view-theme);
  592. }
  593. /* #endif */
  594. }
  595. .order-details{
  596. padding-bottom: calc(constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  597. padding-bottom: calc(env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  598. }
  599. .order-details .header {
  600. padding: 0 30rpx;
  601. height: 150rpx;
  602. display: flex;
  603. align-items: center;
  604. flex-wrap: nowrap;
  605. }
  606. .order-details .header.on {
  607. background-color: #666 !important;
  608. }
  609. .order-details .header .pictrue {
  610. width: 110rpx;
  611. height: 110rpx;
  612. }
  613. .order-details .header .pictrue image {
  614. width: 100%;
  615. height: 100%;
  616. }
  617. .order-details .header .data {
  618. color: rgba(255, 255, 255, 0.8);
  619. font-size: 24rpx;
  620. margin-left: 27rpx;
  621. }
  622. .order-details .header .data.on {
  623. margin-left: 0;
  624. }
  625. .order-details .header .data .state {
  626. font-size: 30rpx;
  627. font-weight: bold;
  628. color: #fff;
  629. margin-bottom: 7rpx;
  630. }
  631. .order-details .header .data .time {
  632. margin-left: 20rpx;
  633. }
  634. .order-details .nav {
  635. background-color: #fff;
  636. font-size: 26rpx;
  637. color: #282828;
  638. padding: 25rpx 0;
  639. }
  640. .order-details .nav .navCon {
  641. padding: 0 40rpx;
  642. }
  643. .order-details .nav .on {
  644. color: var(--view-theme);
  645. }
  646. .order-details .nav .progress {
  647. padding: 0 65rpx;
  648. margin-top: 10rpx;
  649. }
  650. .order-details .nav .progress .line {
  651. width: 100rpx;
  652. height: 2rpx;
  653. background-color: #939390;
  654. }
  655. .order-details .nav .progress .iconfont {
  656. font-size: 25rpx;
  657. color: #939390;
  658. margin-top: -2rpx;
  659. }
  660. .order-details .address {
  661. font-size: 26rpx;
  662. color: #868686;
  663. background-color: #fff;
  664. margin-top: 13rpx;
  665. padding: 35rpx 30rpx;
  666. }
  667. .order-details .address .name {
  668. font-size: 30rpx;
  669. color: #282828;
  670. margin-bottom: 15rpx;
  671. }
  672. .order-details .address .name .nameCon{
  673. max-width: 410rpx;
  674. }
  675. .order-details .address .name .phone {
  676. margin-left: 40rpx;
  677. }
  678. .order-details .line {
  679. width: 100%;
  680. height: 3rpx;
  681. }
  682. .order-details .line image {
  683. width: 100%;
  684. height: 100%;
  685. display: block;
  686. }
  687. .order-details .wrapper {
  688. background-color: #fff;
  689. margin-top: 12rpx;
  690. padding: 30rpx;
  691. }
  692. .order-details .wrapper .item {
  693. font-size: 28rpx;
  694. color: #282828;
  695. }
  696. .order-details .wrapper .item~.item {
  697. margin-top: 20rpx;
  698. white-space: normal;
  699. word-break: break-all;
  700. word-wrap: break-word;
  701. }
  702. .order-details .wrapper .item .conter {
  703. color: #868686;
  704. width: 460rpx;
  705. display: flex;
  706. flex-wrap: nowrap;
  707. justify-content: flex-end;
  708. text-align: right;
  709. &.on{
  710. width: 500rpx;
  711. }
  712. .pictrue{
  713. width: 80rpx;
  714. height: 80rpx;
  715. margin-left: 6rpx;
  716. image{
  717. width: 100%;
  718. height: 100%;
  719. border-radius: 6rpx;
  720. }
  721. }
  722. }
  723. .order-details .wrapper .item .conter .copy {
  724. font-size: 20rpx;
  725. color: #333;
  726. border-radius: 3rpx;
  727. border: 1rpx solid #666;
  728. padding: 3rpx 15rpx;
  729. margin-left: 24rpx;
  730. white-space: nowrap;
  731. }
  732. .order-details .wrapper .actualPay {
  733. border-top: 1rpx solid #eee;
  734. margin-top: 30rpx;
  735. padding-top: 30rpx;
  736. }
  737. .order-details .wrapper .actualPay .money {
  738. font-weight: bold;
  739. font-size: 30rpx;
  740. }
  741. .order-details .footer {
  742. width: 100%;
  743. height: 100rpx;
  744. position: fixed;
  745. bottom: 0;
  746. left: 0;
  747. background-color: #fff;
  748. padding: 0 30rpx;
  749. box-sizing: border-box;
  750. border-top: 1px solid #eee;
  751. &:empty {
  752. height: 0;
  753. }
  754. .more {
  755. position: absolute;
  756. left: 30rpx;
  757. font-size: 26rpx;
  758. color: #333;
  759. .icon-xiangshang {
  760. margin-left: 6rpx;
  761. font-size: 22rpx;
  762. }
  763. }
  764. .more-box {
  765. color: #333;
  766. position: absolute;
  767. left: 30rpx;
  768. bottom: 110rpx;
  769. background-color: #fff;
  770. padding: 4rpx 20rpx;
  771. border-radius: 4rpx;
  772. font-size: 28rpx;
  773. -webkit-box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
  774. -moz-box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
  775. box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
  776. bottom: calc(110rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  777. bottom: calc(110rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  778. .more-btn {
  779. color: #333;
  780. padding: 12rpx 4rpx;
  781. z-index: 9999;
  782. text-align: center;
  783. &~.more-btn {
  784. border-top: 1px solid #eee;
  785. }
  786. }
  787. }
  788. .more-box:before {
  789. content: "";
  790. width: 0rpx;
  791. height: 0rpx;
  792. border-top: 10rpx solid #fff;
  793. border-bottom: 10rpx solid transparent;
  794. border-left: 10rpx solid #fff;
  795. position: absolute;
  796. bottom: -10rpx;
  797. left: 0px;
  798. }
  799. }
  800. .order-details .footer .bnt {
  801. width: 176rpx;
  802. height: 60rpx;
  803. text-align: center;
  804. line-height: 60rpx;
  805. border-radius: 50rpx;
  806. color: #fff;
  807. font-size: 27rpx;
  808. }
  809. .order-details .footer .bnt.refundBnt {
  810. width: 210rpx;
  811. }
  812. .order-details .footer .bnt.cancel {
  813. color: #666;
  814. border: 1rpx solid #ccc;
  815. }
  816. .order-details .footer .bnt~.bnt {
  817. margin-left: 18rpx;
  818. }
  819. .order-details .writeOff {
  820. background-color: #fff;
  821. margin-top: 13rpx;
  822. padding-bottom: 30rpx;
  823. }
  824. .order-details .writeOff .title {
  825. font-size: 30rpx;
  826. color: #282828;
  827. height: 87rpx;
  828. border-bottom: 1px solid #f0f0f0;
  829. padding: 0 30rpx;
  830. line-height: 87rpx;
  831. }
  832. .order-details .writeOff .grayBg {
  833. background-color: #f2f5f7;
  834. width: 590rpx;
  835. height: 384rpx;
  836. border-radius: 20rpx 20rpx 0 0;
  837. margin: 50rpx auto 0 auto;
  838. padding-top: 55rpx;
  839. position: relative;
  840. }
  841. .order-details .writeOff .grayBg .written {
  842. position: absolute;
  843. top: 0;
  844. right: 0;
  845. width: 60rpx;
  846. height: 60rpx;
  847. }
  848. .order-details .writeOff .grayBg .written image {
  849. width: 100%;
  850. height: 100%;
  851. }
  852. .order-details .writeOff .grayBg .pictrue {
  853. width: 290rpx;
  854. height: 290rpx;
  855. margin: 0 auto;
  856. }
  857. .order-details .writeOff .grayBg .pictrue image {
  858. width: 100%;
  859. height: 100%;
  860. display: block;
  861. }
  862. .order-details .writeOff .gear {
  863. width: 590rpx;
  864. height: 30rpx;
  865. margin: 0 auto;
  866. }
  867. .order-details .writeOff .gear image {
  868. width: 100%;
  869. height: 100%;
  870. display: block;
  871. }
  872. .order-details .writeOff .num {
  873. background-color: #f0c34c;
  874. width: 590rpx;
  875. height: 84rpx;
  876. color: #282828;
  877. font-size: 48rpx;
  878. margin: 0 auto;
  879. border-radius: 0 0 20rpx 20rpx;
  880. text-align: center;
  881. padding-top: 4rpx;
  882. }
  883. .order-details .writeOff .rules {
  884. margin: 46rpx 30rpx 0 30rpx;
  885. border-top: 1px solid #f0f0f0;
  886. padding-top: 10rpx;
  887. }
  888. .order-details .writeOff .rules .item {
  889. margin-top: 20rpx;
  890. }
  891. .order-details .writeOff .rules .item .rulesTitle {
  892. font-size: 28rpx;
  893. color: #282828;
  894. }
  895. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  896. font-size: 30rpx;
  897. color: #333;
  898. margin-right: 8rpx;
  899. margin-top: 5rpx;
  900. &.icon-tishi{
  901. font-size: 32rpx;
  902. }
  903. }
  904. .order-details .writeOff .rules .item .info {
  905. font-size: 28rpx;
  906. color: #999;
  907. margin-top: 7rpx;
  908. }
  909. .order-details .writeOff .rules .item .info .time {
  910. margin-left: 20rpx;
  911. }
  912. .order-details .map {
  913. height: 86rpx;
  914. font-size: 30rpx;
  915. color: #282828;
  916. line-height: 86rpx;
  917. border-bottom: 1px solid #f0f0f0;
  918. margin-top: 13rpx;
  919. background-color: #fff;
  920. padding: 0 30rpx;
  921. }
  922. .order-details .map .place {
  923. font-size: 26rpx;
  924. width: 176rpx;
  925. height: 50rpx;
  926. border-radius: 25rpx;
  927. line-height: 50rpx;
  928. text-align: center;
  929. }
  930. .order-details .map .place .iconfont {
  931. font-size: 27rpx;
  932. height: 27rpx;
  933. line-height: 27rpx;
  934. margin: 2rpx 3rpx 0 0;
  935. }
  936. .order-details .address .name .iconfont {
  937. font-size: 34rpx;
  938. margin-left: 10rpx;
  939. margin-top: 4rpx;
  940. }
  941. .refund {
  942. padding: 0 30rpx 30rpx;
  943. margin-top: 12rpx;
  944. background-color: #fff;
  945. .title {
  946. display: flex;
  947. align-items: center;
  948. font-size: 30rpx;
  949. color: #333;
  950. height: 86rpx;
  951. border-bottom: 1px solid #f5f5f5;
  952. image {
  953. width: 32rpx;
  954. height: 32rpx;
  955. margin-right: 10rpx;
  956. }
  957. }
  958. .con {
  959. padding-top: 25rpx;
  960. font-size: 28rpx;
  961. color: #868686;
  962. }
  963. }
  964. </style>
  965. <script>
  966. // #ifdef MP
  967. import {
  968. getCodeData
  969. } from '@/api/store.js';
  970. // #endif
  971. import {
  972. getOrderDetail,
  973. getRefundOrderDetail,
  974. orderAgain,
  975. orderTake,
  976. orderDel,
  977. refundOrderDel,
  978. orderCancel,
  979. refundExpress,
  980. cancelRefundOrder
  981. } from '@/api/order.js';
  982. import {
  983. openOrderRefundSubscribe
  984. } from '@/utils/SubscribeMessage.js';
  985. import {
  986. getUserInfo,
  987. invoiceList,
  988. makeUpinvoice
  989. } from '@/api/user.js';
  990. import home from '@/components/home';
  991. import payment from '@/components/payment';
  992. import orderGoods from "@/components/orderGoods";
  993. import customForm from "@/components/customForm";
  994. import ClipboardJS from "@/plugin/clipboard/clipboard.js";
  995. import {
  996. toLogin
  997. } from '@/libs/login.js';
  998. import {
  999. mapGetters
  1000. } from "vuex";
  1001. import colors from "@/mixins/color";
  1002. import invoicePicker from '../components/invoicePicker';
  1003. import invoiceModal from '../components/invoiceModal/index.vue'
  1004. export default {
  1005. components: {
  1006. payment,
  1007. home,
  1008. invoicePicker,
  1009. invoiceModal,
  1010. orderGoods,
  1011. customForm
  1012. },
  1013. mixins: [colors],
  1014. data() {
  1015. return {
  1016. giveData:{
  1017. give_integral:0,
  1018. give_coupon:[]
  1019. },
  1020. giveCartInfo:[],
  1021. config: {
  1022. qrc: {
  1023. code: "",
  1024. size: 300, // 二维码大小
  1025. level: 4, //等级 0~4
  1026. bgColor: '#FFFFFF', //二维码背景色 默认白色
  1027. border: {
  1028. color: ['#eee', '#eee'], //边框颜色支持渐变色
  1029. lineWidth: 3, //边框宽度
  1030. },
  1031. color: ['#333', '#333'], //边框颜色支持渐变色
  1032. }
  1033. },
  1034. order_id: '',
  1035. evaluate: 0,
  1036. cartInfo: [], //购物车产品
  1037. pid: 0, //上级订单ID
  1038. split: [], //分单商品
  1039. orderInfo: {
  1040. system_store: {},
  1041. _status: {}
  1042. }, //订单详情
  1043. system_store: {},
  1044. isGoodsReturn: false, //是否为退款订单
  1045. status: {}, //订单底部按钮状态
  1046. refund_close: false,
  1047. isClose: false,
  1048. payMode: [{
  1049. name: "微信支付",
  1050. icon: "icon-weixinzhifu",
  1051. value: 'weixin',
  1052. title: '使用微信快捷支付',
  1053. payStatus: true,
  1054. },
  1055. // #ifdef H5 || APP-PLUS
  1056. {
  1057. name: '支付宝支付',
  1058. icon: 'icon-zhifubao',
  1059. value: 'alipay',
  1060. title: '使用线上支付宝支付',
  1061. payStatus: true
  1062. },
  1063. // #endif
  1064. {
  1065. name: "余额支付",
  1066. icon: "icon-yuezhifu",
  1067. value: 'yue',
  1068. title: '当前可用余额:',
  1069. number: 0,
  1070. payStatus: true
  1071. },
  1072. ],
  1073. pay_close: false,
  1074. pay_order_id: '',
  1075. totalPrice: '0',
  1076. isAuto: false, //没有授权的不会自动授权
  1077. isShowAuth: false, //是否隐藏授权
  1078. routineContact: 0,
  1079. express_num: '',
  1080. invoice_func: false,
  1081. invoiceData: {},
  1082. invoice_id: 0,
  1083. invChecked: '',
  1084. moreBtn: false,
  1085. invShow: false,
  1086. aleartStatus: false, //发票弹窗
  1087. special_invoice: false,
  1088. invList: [],
  1089. userInfo: {},
  1090. isReturen: '',
  1091. // #ifdef MP
  1092. tableCode: {},
  1093. // #endif
  1094. tempFilePath:''
  1095. };
  1096. },
  1097. computed: mapGetters(['isLogin']),
  1098. onLoad: function(options) {
  1099. if (options.order_id) {
  1100. this.$set(this, 'order_id', options.order_id);
  1101. this.isReturen = options.isReturen;
  1102. }
  1103. if (options.invoice_id) {
  1104. this.invoice_id = options.invoice_id
  1105. }
  1106. },
  1107. onShow() {
  1108. uni.removeStorageSync('form_type_cart');
  1109. if (this.isLogin) {
  1110. this.getOrderInfo();
  1111. this.getUserInfo();
  1112. } else {
  1113. toLogin();
  1114. }
  1115. },
  1116. onHide: function() {
  1117. this.isClose = true;
  1118. },
  1119. onReady: function() {
  1120. // #ifdef H5
  1121. this.$nextTick(function() {
  1122. const clipboard = new ClipboardJS(".copy-data");
  1123. clipboard.on("success", () => {
  1124. this.$util.Tips({
  1125. title: '复制成功'
  1126. });
  1127. });
  1128. const address = new ClipboardJS(".copy-refund-msg");
  1129. address.on("success", () => {
  1130. this.$util.Tips({
  1131. title: '复制成功'
  1132. });
  1133. });
  1134. });
  1135. // #endif
  1136. },
  1137. methods: {
  1138. generate(e){
  1139. this.tempFilePath = e.img.tempFilePath;
  1140. },
  1141. // #ifdef MP
  1142. getCodeData() {
  1143. getCodeData({
  1144. tableId: this.orderInfo.activity_id
  1145. }).then(res => {
  1146. this.tableCode = res.data;
  1147. });
  1148. },
  1149. // #endif
  1150. onLoadFun(){
  1151. this.getOrderInfo();
  1152. this.getUserInfo();
  1153. this.isShowAuth = false
  1154. },
  1155. // 授权关闭
  1156. authColse: function(e) {
  1157. this.isShowAuth = e
  1158. },
  1159. getpreviewImage: function(index,num) {
  1160. uni.previewImage({
  1161. urls: num?this.orderInfo.refund_img:this.orderInfo.refund_goods_img,
  1162. current: num?this.orderInfo.refund_img[index]:this.orderInfo.refund_goods_img[index]
  1163. });
  1164. },
  1165. cancelRefundOrder(orderId) {
  1166. let that = this;
  1167. uni.showModal({
  1168. title: '取消申请',
  1169. content: '您确认放弃此次申请吗?',
  1170. success: (res) => {
  1171. if (res.confirm) {
  1172. cancelRefundOrder(that.order_id).then(res => {
  1173. return that.$util.Tips({
  1174. title: '操作成功',
  1175. icon: 'success'
  1176. }, {
  1177. tab: 4,
  1178. url: '/pages/users/user_return_list/index'
  1179. });
  1180. }).catch(err => {
  1181. return that.$util.Tips({
  1182. title: err
  1183. });
  1184. })
  1185. }
  1186. }
  1187. })
  1188. },
  1189. refundInput() {
  1190. uni.navigateTo({
  1191. url: `/pages/goods/order_refund_goods/index?orderId=` + this.order_id
  1192. })
  1193. },
  1194. goGoodCall() {
  1195. let url = `/pages/extension/customer_list/chat?orderId=${this.order_id}&isReturen=${this.isReturen}`
  1196. let obj = {
  1197. store_name: this.orderInfo.order_id,
  1198. path: `/pages/goods/order_details/index?order_id=${this.orderInfo.order_id}`,
  1199. image: ''
  1200. }
  1201. this.$util.getCustomer(this.userInfo,url,obj,1)
  1202. },
  1203. openSubcribe: function(e) {
  1204. let page = e;
  1205. // #ifdef MP
  1206. uni.showLoading({
  1207. title: '正在加载',
  1208. })
  1209. openOrderRefundSubscribe().then(res => {
  1210. uni.hideLoading();
  1211. uni.navigateTo({
  1212. url: page,
  1213. });
  1214. }).catch(() => {
  1215. uni.hideLoading();
  1216. });
  1217. // #endif
  1218. // #ifndef MP
  1219. uni.navigateTo({
  1220. url: page
  1221. })
  1222. // #endif
  1223. },
  1224. /**
  1225. * 事件回调
  1226. *
  1227. */
  1228. onChangeFun: function(e) {
  1229. let opt = e;
  1230. let action = opt.action || null;
  1231. let value = opt.value != undefined ? opt.value : null;
  1232. (action && this[action]) && this[action](value);
  1233. },
  1234. /**
  1235. * 拨打电话
  1236. */
  1237. makePhone: function() {
  1238. uni.makePhoneCall({
  1239. phoneNumber: this.system_store.phone
  1240. })
  1241. },
  1242. /**
  1243. * 打开地图
  1244. *
  1245. */
  1246. showMaoLocation: function() {
  1247. if (!this.system_store.latitude || !this.system_store.longitude) return this.$util.Tips({
  1248. title: '缺少经纬度信息无法查看地图!'
  1249. });
  1250. uni.openLocation({
  1251. latitude: parseFloat(this.system_store.latitude),
  1252. longitude: parseFloat(this.system_store.longitude),
  1253. scale: 8,
  1254. name: this.system_store.name,
  1255. address: this.system_store.address + this.system_store.detailed_address,
  1256. success: function() {
  1257. },
  1258. });
  1259. },
  1260. /**
  1261. * 关闭支付组件
  1262. *
  1263. */
  1264. payClose: function() {
  1265. this.pay_close = false;
  1266. },
  1267. /**
  1268. * 打开支付组件
  1269. *
  1270. */
  1271. pay_open: function() {
  1272. this.pay_close = true;
  1273. this.pay_order_id = this.orderInfo.order_id;
  1274. this.totalPrice = this.orderInfo.pay_price;
  1275. },
  1276. /**
  1277. * 支付成功回调
  1278. *
  1279. */
  1280. pay_complete: function() {
  1281. this.pay_close = false;
  1282. this.pay_order_id = '';
  1283. uni.navigateTo({
  1284. url: '/pages/goods/order_pay_status/index?order_id=' + this.orderInfo.order_id + '&msg=' +
  1285. '支付成功' +
  1286. '&type=3' + '&totalPrice=' + this.totalPrice
  1287. })
  1288. this.getOrderInfo();
  1289. },
  1290. /**
  1291. * 支付失败回调
  1292. *
  1293. */
  1294. pay_fail: function() {
  1295. this.pay_close = false;
  1296. this.pay_order_id = '';
  1297. },
  1298. /**
  1299. * 获取用户信息
  1300. *
  1301. */
  1302. getUserInfo: function() {
  1303. let that = this;
  1304. getUserInfo().then(res => {
  1305. that.userInfo = res.data
  1306. // #ifdef H5 || APP-PLUS
  1307. that.payMode[2].number = res.data.now_money;
  1308. // #endif
  1309. // #ifdef MP
  1310. that.payMode[1].number = res.data.now_money;
  1311. // #endif
  1312. that.$set(that, 'payMode', that.payMode);
  1313. })
  1314. },
  1315. /**
  1316. * 获取订单详细信息
  1317. *
  1318. */
  1319. getOrderInfo: function() {
  1320. let that = this;
  1321. uni.showLoading({
  1322. title: "正在加载中"
  1323. });
  1324. let obj = '';
  1325. if (that.isReturen) {
  1326. obj = getRefundOrderDetail(this.order_id);
  1327. } else {
  1328. obj = getOrderDetail(this.order_id);
  1329. }
  1330. obj.then(res => {
  1331. let _type = res.data._status._type;
  1332. uni.hideLoading();
  1333. that.giveData.give_coupon = res.data.give_coupon;
  1334. that.giveData.give_integral = res.data.give_integral;
  1335. that.$set(that, 'orderInfo', res.data);
  1336. that.$set(that, 'pid', res.data.pid);
  1337. that.$set(that, 'split', res.data.split);
  1338. that.$set(that, 'evaluate', _type == 3 ? 3 : 0);
  1339. that.$set(that, 'system_store', res.data.system_store);
  1340. that.$set(that, 'invoiceData', res.data.invoice);
  1341. if (that.invoiceData) {
  1342. that.invoiceData.pay_price = res.data.pay_price;
  1343. }
  1344. that.$set(that, 'invoice_func', res.data.invoice_func);
  1345. that.$set(that, 'special_invoice', res.data.special_invoice);
  1346. that.$set(that, 'routineContact', Number(res.data.routine_contact_type));
  1347. let cartInfo = res.data.cartInfo;
  1348. let cartObj = [],giftObj = [];
  1349. cartInfo.forEach(item=>{
  1350. if(item.is_gift == 1){
  1351. giftObj.push(item)
  1352. }else{
  1353. cartObj.push(item)
  1354. }
  1355. })
  1356. that.$set(that, 'cartInfo', cartObj);
  1357. that.$set(that, 'giveCartInfo', giftObj);
  1358. this.$nextTick(function() {
  1359. that.config.qrc.code = that.orderInfo.verify_code
  1360. })
  1361. if (this.orderInfo.refund_status != 0) {
  1362. this.isGoodsReturn = true;
  1363. }else{
  1364. this.isReturen = 0
  1365. }
  1366. if (that.invoice_id && !that.invoiceData) {
  1367. that.invChecked = that.invoice_id || '';
  1368. this.invoiceApply()
  1369. }
  1370. that.payMode.map(item => {
  1371. if (item.value == 'weixin') {
  1372. item.payStatus = res.data.pay_weixin_open ? true : false;
  1373. }
  1374. if (item.value == 'alipay') {
  1375. item.payStatus = res.data.ali_pay_status ? true : false;
  1376. }
  1377. if (item.value == 'yue') {
  1378. item.payStatus = res.data.yue_pay_status == 1 ? true : false;
  1379. }
  1380. });
  1381. that.getOrderStatus();
  1382. // #ifdef MP
  1383. if (that.orderInfo.type == 10) {
  1384. that.getCodeData();
  1385. }
  1386. // #endif
  1387. }).catch(err => {
  1388. uni.hideLoading();
  1389. if(err.status == 403){
  1390. uni.navigateTo({
  1391. url: '/pages/goods/order_list/index'
  1392. })
  1393. }else{
  1394. that.$util.Tips({
  1395. title: err
  1396. }, '/pages/goods/order_list/index');
  1397. }
  1398. });
  1399. },
  1400. // 不开发票
  1401. invCancel() {
  1402. this.invChecked = '';
  1403. this.invTitle = '不开发票';
  1404. this.invShow = false;
  1405. },
  1406. // 选择发票
  1407. invSub(id) {
  1408. this.invChecked = id;
  1409. let data = {
  1410. order_id: this.order_id,
  1411. invoice_id: this.invChecked
  1412. }
  1413. makeUpinvoice(data).then(res => {
  1414. uni.showToast({
  1415. title: '申请成功',
  1416. icon: 'success'
  1417. });
  1418. this.invShow = false;
  1419. this.aleartStatus = true;
  1420. this.getOrderInfo()
  1421. }).catch(err => {
  1422. uni.showToast({
  1423. title: err,
  1424. icon: 'none'
  1425. });
  1426. });
  1427. },
  1428. // 关闭发票
  1429. invClose() {
  1430. this.invShow = false;
  1431. this.getInvoiceList()
  1432. },
  1433. //申请开票
  1434. invoiceApply() {
  1435. this.getInvoiceList()
  1436. this.moreBtn = false;
  1437. this.invShow = true;
  1438. },
  1439. aleartStatusChange() {
  1440. this.moreBtn = false;
  1441. this.aleartStatus = true
  1442. },
  1443. getInvoiceList() {
  1444. uni.showLoading({
  1445. title: '正在加载…'
  1446. })
  1447. invoiceList().then(res => {
  1448. uni.hideLoading();
  1449. this.invList = res.data.map(item => {
  1450. item.id = item.id.toString();
  1451. return item;
  1452. });
  1453. const result = this.invList.find(item => item.id == this.invChecked);
  1454. if (result) {
  1455. let name = '';
  1456. name += result.header_type === 1 ? '个人' : '企业';
  1457. name += result.type === 1 ? '普通' : '专用';
  1458. name += '发票';
  1459. this.invTitle = name;
  1460. }
  1461. }).catch(err => {
  1462. uni.showToast({
  1463. title: err,
  1464. icon: 'none'
  1465. });
  1466. });
  1467. },
  1468. more() {
  1469. this.moreBtn = !this.moreBtn
  1470. },
  1471. /**
  1472. *
  1473. * 剪切订单号
  1474. */
  1475. // #ifndef H5
  1476. copy: function() {
  1477. let that = this;
  1478. uni.setClipboardData({
  1479. data: this.orderInfo.order_id
  1480. });
  1481. },
  1482. copyKm: function() {
  1483. let that = this;
  1484. uni.setClipboardData({
  1485. data: this.orderInfo.virtual_info
  1486. });
  1487. },
  1488. // #endif
  1489. // #ifndef H5
  1490. copyAddress() {
  1491. uni.setClipboardData({
  1492. data: this.orderInfo._status.refund_name + this.orderInfo._status.refund_phone + this.orderInfo
  1493. ._status
  1494. .refund_address,
  1495. success() {
  1496. uni.Tips({
  1497. title: '复制成功',
  1498. icon: 'success'
  1499. })
  1500. }
  1501. });
  1502. },
  1503. // #endif
  1504. // #ifdef H5
  1505. copyAddress() {
  1506. // console.log('1111111111111')
  1507. // let msg =
  1508. // console.log(msg)
  1509. // return msg
  1510. },
  1511. // #endif
  1512. /**
  1513. * 打电话
  1514. */
  1515. goTel: function() {
  1516. uni.makePhoneCall({
  1517. phoneNumber: this.orderInfo.delivery_id
  1518. })
  1519. },
  1520. /**
  1521. * 设置底部按钮
  1522. *
  1523. */
  1524. getOrderStatus: function() {
  1525. let orderInfo = this.orderInfo || {},
  1526. _status = orderInfo._status || {
  1527. _type: 0
  1528. },
  1529. status = {};
  1530. let type = parseInt(_status._type),
  1531. delivery_type = orderInfo.delivery_type,
  1532. seckill_id = orderInfo.seckill_id ? parseInt(orderInfo.seckill_id) : 0,
  1533. bargain_id = orderInfo.bargain_id ? parseInt(orderInfo.bargain_id) : 0,
  1534. discount_id = orderInfo.discount_id ? parseInt(orderInfo.discount_id) : 0,
  1535. combination_id = orderInfo.combination_id ? parseInt(orderInfo.combination_id) : 0;
  1536. status = {
  1537. type: type == 9 ? -9 : type,
  1538. class_status: 0,
  1539. class_again: 0
  1540. };
  1541. if (type == 1 && combination_id > 0) status.class_status = 1; //查看拼团
  1542. if (type == 2 && delivery_type == 'express') status.class_status = 2; //查看物流
  1543. if (type == 2) status.class_status = 3; //确认收货
  1544. if (type == 4 || type == 0) status.class_status = 4; //删除订单
  1545. if (!seckill_id && !bargain_id && !combination_id && !discount_id && !orderInfo.type && (type == 3 ||
  1546. type == 4)) status.class_status = 5; //(待评价、已完成)
  1547. if (!seckill_id && !bargain_id && !combination_id && !discount_id && !orderInfo.type && (type == 1 || type == 2 ||
  1548. type == 5)) status.class_again = 6; //再次购买 (待发货、待收货、部分核销)
  1549. this.$set(this, 'status', status);
  1550. },
  1551. /**
  1552. * 去拼团详情
  1553. *
  1554. */
  1555. goJoinPink: function() {
  1556. uni.navigateTo({
  1557. url: '/pages/activity/goods_combination_status/index?id=' + this.orderInfo.pink_id,
  1558. });
  1559. },
  1560. /**
  1561. * 再此购买
  1562. *
  1563. */
  1564. goOrderConfirm: function() {
  1565. let that = this;
  1566. orderAgain(that.orderInfo.order_id).then(res => {
  1567. let deliveryType = 1,shippingType = this.orderInfo.shipping_type,storeId = this.orderInfo.store_id,storeName = this.orderInfo.system_store.name
  1568. if(shippingType == 1 && storeId == 0){
  1569. deliveryType = 1
  1570. }else if((shippingType == 2 || shippingType == 4) && storeId>0){
  1571. deliveryType = 2
  1572. }else if(shippingType == 1 && storeId > 0){
  1573. deliveryType = 3
  1574. }
  1575. return uni.navigateTo({
  1576. url: '/pages/goods/order_confirm/index?new=1&cartId=' + res.data.cateId + '&delivery_type=' + deliveryType + '&store_id='+storeId+'&store_name='+storeName
  1577. });
  1578. }).catch(err=>{
  1579. return that.$util.Tips({
  1580. title: err
  1581. });
  1582. })
  1583. },
  1584. confirmOrder(orderId) {
  1585. let that = this;
  1586. // #ifdef MP
  1587. if (wx.openBusinessView && this.orderInfo.order_shipping_open && this.orderInfo
  1588. .trade_no) {
  1589. uni.showLoading({
  1590. title: '加载中'
  1591. });
  1592. wx.openBusinessView({
  1593. businessType: 'weappOrderConfirm',
  1594. extraData: {
  1595. transaction_id: this.orderInfo.trade_no
  1596. },
  1597. success() {
  1598. },
  1599. fail(err) {
  1600. uni.hideLoading();
  1601. return that.$util.Tips({
  1602. title: err.errMsg
  1603. });
  1604. },
  1605. complete() {
  1606. uni.hideLoading();
  1607. }
  1608. });
  1609. } else {
  1610. this.defaultTake(orderId)
  1611. }
  1612. // #endif
  1613. // #ifndef MP
  1614. this.defaultTake(orderId)
  1615. // #endif
  1616. },
  1617. defaultTake(orderId) {
  1618. let that = this;
  1619. uni.showModal({
  1620. title: '确认收货',
  1621. content: '为保障权益,请收到货确认无误后,再确认收货',
  1622. success: function(res) {
  1623. if (res.confirm) {
  1624. orderTake(orderId ? orderId : that.order_id).then(res => {
  1625. return that.$util.Tips({
  1626. title: '操作成功',
  1627. icon: 'success'
  1628. }, function() {
  1629. that.getOrderInfo();
  1630. });
  1631. }).catch(err => {
  1632. return that.$util.Tips({
  1633. title: err
  1634. });
  1635. })
  1636. }
  1637. }
  1638. })
  1639. },
  1640. /**
  1641. *
  1642. * 删除订单
  1643. */
  1644. delOrder: function() {
  1645. let that = this;
  1646. uni.showModal({
  1647. title: '删除订单',
  1648. content: '确定删除该订单',
  1649. success: function(res) {
  1650. if (res.confirm) {
  1651. (that.isReturen ? refundOrderDel : orderDel)(that.order_id).then(res => {
  1652. if (that.status.type == -2) {
  1653. return that.$util.Tips({
  1654. title: '删除成功',
  1655. icon: 'success'
  1656. }, {
  1657. // tab: 5,
  1658. // url: '/pages/users/user_return_list/index'
  1659. tab: 3,
  1660. url: 1
  1661. });
  1662. } else {
  1663. return that.$util.Tips({
  1664. title: '删除成功',
  1665. icon: 'success'
  1666. }, {
  1667. // tab: 5,
  1668. // url: '/pages/goods/order_list/index'
  1669. tab: 3,
  1670. url: 1
  1671. });
  1672. }
  1673. }).catch(err => {
  1674. return that.$util.Tips({
  1675. title: err
  1676. });
  1677. });
  1678. } else if (res.cancel) {
  1679. return that.$util.Tips({
  1680. title: '已取消'
  1681. });
  1682. }
  1683. }
  1684. });
  1685. },
  1686. cancelOrder() {
  1687. let self = this
  1688. uni.showModal({
  1689. title: '提示',
  1690. content: '确认取消该订单?',
  1691. success: function(res) {
  1692. if (res.confirm) {
  1693. orderCancel(self.orderInfo.order_id)
  1694. .then((data) => {
  1695. let pages = getCurrentPages(); // 获取当前打开过的页面路由数组
  1696. let prevPage = pages[pages.length - 3].$page.fullPath;//上一页面
  1697. uni.reLaunch({
  1698. url: prevPage
  1699. })
  1700. })
  1701. .catch(() => {
  1702. self.getDetail();
  1703. });
  1704. } else if (res.cancel) {
  1705. console.log('用户点击取消');
  1706. }
  1707. }
  1708. });
  1709. }
  1710. }
  1711. }
  1712. </script>
  1713. <style scoped lang="scss">
  1714. .invoice-mask {
  1715. background-color: #999999;
  1716. opacity: 1;
  1717. }
  1718. .more-mask {
  1719. background-color: #fff;
  1720. opacity: 0;
  1721. left: 160rpx;
  1722. }
  1723. .goodCall {
  1724. color: var(--view-theme);
  1725. text-align: center;
  1726. width: 100%;
  1727. height: 86rpx;
  1728. padding: 0 30rpx;
  1729. border-bottom: 1rpx solid #eee;
  1730. font-size: 30rpx;
  1731. line-height: 86rpx;
  1732. background: #fff;
  1733. .icon-kefu {
  1734. font-size: 36rpx;
  1735. margin-right: 15rpx;
  1736. }
  1737. /* #ifdef MP */
  1738. button {
  1739. display: flex;
  1740. align-items: center;
  1741. justify-content: center;
  1742. height: 86rpx;
  1743. font-size: 30rpx;
  1744. color: var(--view-theme);
  1745. }
  1746. /* #endif */
  1747. }
  1748. .order-details .header {
  1749. padding: 0 30rpx;
  1750. height: 150rpx;
  1751. }
  1752. .order-details .header.on {
  1753. background-color: #666 !important;
  1754. }
  1755. .order-details .header .pictrue {
  1756. width: 110rpx;
  1757. height: 110rpx;
  1758. }
  1759. .order-details .header .pictrue image {
  1760. width: 100%;
  1761. height: 100%;
  1762. }
  1763. .order-details .header .data {
  1764. color: rgba(255, 255, 255, 0.8);
  1765. font-size: 24rpx;
  1766. margin-left: 27rpx;
  1767. }
  1768. .order-details .header .data.on {
  1769. margin-left: 0;
  1770. }
  1771. .order-details .header .data .state {
  1772. font-size: 30rpx;
  1773. font-weight: bold;
  1774. color: #fff;
  1775. margin-bottom: 7rpx;
  1776. }
  1777. .order-details .header .data .time {
  1778. margin-left: 20rpx;
  1779. }
  1780. .order-details .nav {
  1781. background-color: #fff;
  1782. font-size: 26rpx;
  1783. color: #282828;
  1784. padding: 25rpx 0;
  1785. }
  1786. .order-details .nav .navCon {
  1787. padding: 0 40rpx;
  1788. }
  1789. .order-details .nav .on {
  1790. color: var(--view-theme);
  1791. }
  1792. .order-details .nav .progress {
  1793. padding: 0 65rpx;
  1794. margin-top: 10rpx;
  1795. }
  1796. .order-details .nav .progress .line {
  1797. width: 100rpx;
  1798. height: 2rpx;
  1799. background-color: #939390;
  1800. }
  1801. .order-details .nav .progress .iconfont {
  1802. font-size: 25rpx;
  1803. color: #939390;
  1804. margin-top: -2rpx;
  1805. }
  1806. .order-details .address {
  1807. font-size: 26rpx;
  1808. color: #868686;
  1809. background-color: #fff;
  1810. margin-top: 13rpx;
  1811. padding: 35rpx 30rpx;
  1812. }
  1813. .order-details .address .name {
  1814. font-size: 30rpx;
  1815. color: #282828;
  1816. margin-bottom: 15rpx;
  1817. }
  1818. .order-details .address .name .phone {
  1819. margin-left: 40rpx;
  1820. }
  1821. .order-details .line {
  1822. width: 100%;
  1823. height: 3rpx;
  1824. }
  1825. .order-details .line image {
  1826. width: 100%;
  1827. height: 100%;
  1828. display: block;
  1829. }
  1830. .order-details .wrapper {
  1831. background-color: #fff;
  1832. margin-top: 12rpx;
  1833. padding: 30rpx;
  1834. }
  1835. .order-details .wrapper .item {
  1836. font-size: 28rpx;
  1837. color: #282828;
  1838. }
  1839. .order-details .wrapper .item~.item {
  1840. margin-top: 20rpx;
  1841. }
  1842. .order-details .wrapper .item .conter .copy {
  1843. font-size: 20rpx;
  1844. color: #333;
  1845. border-radius: 3rpx;
  1846. border: 1rpx solid #666;
  1847. padding: 3rpx 15rpx;
  1848. margin-left: 24rpx;
  1849. transform: scale(.9);
  1850. }
  1851. .order-details .wrapper .actualPay {
  1852. border-top: 1rpx solid #eee;
  1853. margin-top: 30rpx;
  1854. padding-top: 30rpx;
  1855. }
  1856. .order-details .wrapper .actualPay .money {
  1857. font-weight: bold;
  1858. font-size: 30rpx;
  1859. }
  1860. .order-details .footer {
  1861. width: 100%;
  1862. height: 100rpx;
  1863. position: fixed;
  1864. bottom: 0;
  1865. left: 0;
  1866. background-color: #fff;
  1867. padding: 0 30rpx;
  1868. box-sizing: border-box;
  1869. height: calc(100rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1870. height: calc(100rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1871. padding-bottom: calc(0rpx+ constant(safe-area-inset-bottom)); ///兼容 IOS<11.2/
  1872. padding-bottom: calc(0rpx + env(safe-area-inset-bottom)); ///兼容 IOS>11.2/
  1873. }
  1874. .order-details .footer .bnt {
  1875. width: 150rpx;
  1876. height: 60rpx;
  1877. text-align: center;
  1878. line-height: 60rpx;
  1879. border-radius: 50rpx;
  1880. color: #fff;
  1881. font-size: 27rpx;
  1882. }
  1883. .order-details .footer .bnt~.bnt {
  1884. margin-left: 18rpx;
  1885. }
  1886. .order-details .writeOff {
  1887. background-color: #fff;
  1888. margin-top: 13rpx;
  1889. padding-bottom: 30rpx;
  1890. }
  1891. .order-details .writeOff .title {
  1892. font-size: 30rpx;
  1893. color: #282828;
  1894. height: 87rpx;
  1895. border-bottom: 1px solid #f0f0f0;
  1896. padding: 0 30rpx;
  1897. line-height: 87rpx;
  1898. }
  1899. .order-details .writeOff .grayBg {
  1900. background-color: #f2f5f7;
  1901. width: 590rpx;
  1902. height: 384rpx;
  1903. border-radius: 20rpx 20rpx 0 0;
  1904. margin: 50rpx auto 0 auto;
  1905. padding-top: 55rpx;
  1906. position: relative;
  1907. }
  1908. .order-details .writeOff .grayBg .written {
  1909. position: absolute;
  1910. top: 0;
  1911. right: 0;
  1912. width: 60rpx;
  1913. height: 60rpx;
  1914. }
  1915. .order-details .writeOff .grayBg .written image {
  1916. width: 100%;
  1917. height: 100%;
  1918. }
  1919. .order-details .writeOff .grayBg .pictrue {
  1920. width: 290rpx;
  1921. height: 290rpx;
  1922. margin: 0 auto;
  1923. }
  1924. .order-details .writeOff .grayBg .pictrue image {
  1925. width: 100%;
  1926. height: 100%;
  1927. display: block;
  1928. }
  1929. .order-details .writeOff .gear {
  1930. width: 590rpx;
  1931. height: 30rpx;
  1932. margin: 0 auto;
  1933. }
  1934. .order-details .writeOff .gear image {
  1935. width: 100%;
  1936. height: 100%;
  1937. display: block;
  1938. }
  1939. .order-details .writeOff .num {
  1940. background-color: #f0c34c;
  1941. width: 590rpx;
  1942. height: 84rpx;
  1943. color: #282828;
  1944. font-size: 48rpx;
  1945. margin: 0 auto;
  1946. border-radius: 0 0 20rpx 20rpx;
  1947. text-align: center;
  1948. padding-top: 4rpx;
  1949. }
  1950. .order-details .writeOff .rules {
  1951. margin: 46rpx 30rpx 0 30rpx;
  1952. border-top: 1px solid #f0f0f0;
  1953. padding-top: 10rpx;
  1954. }
  1955. .order-details .writeOff .rules .item {
  1956. margin-top: 20rpx;
  1957. }
  1958. .order-details .writeOff .rules .item .rulesTitle {
  1959. font-size: 28rpx;
  1960. color: #282828;
  1961. }
  1962. .order-details .writeOff .rules .item .rulesTitle .iconfont {
  1963. font-size: 30rpx;
  1964. color: #333;
  1965. margin-right: 8rpx;
  1966. margin-top: 5rpx;
  1967. }
  1968. .order-details .writeOff .rules .item .info {
  1969. font-size: 28rpx;
  1970. color: #999;
  1971. margin-top: 7rpx;
  1972. }
  1973. .order-details .writeOff .rules .item .info .time {
  1974. margin-left: 20rpx;
  1975. }
  1976. .order-details .map {
  1977. height: 86rpx;
  1978. font-size: 30rpx;
  1979. color: #282828;
  1980. line-height: 86rpx;
  1981. border-bottom: 1px solid #f0f0f0;
  1982. margin-top: 13rpx;
  1983. background-color: #fff;
  1984. padding: 0 30rpx;
  1985. }
  1986. .order-details .map .place {
  1987. font-size: 26rpx;
  1988. width: 176rpx;
  1989. height: 50rpx;
  1990. border-radius: 25rpx;
  1991. line-height: 50rpx;
  1992. text-align: center;
  1993. }
  1994. .order-details .map .place .iconfont {
  1995. font-size: 27rpx;
  1996. height: 27rpx;
  1997. line-height: 27rpx;
  1998. margin: 2rpx 3rpx 0 0;
  1999. }
  2000. .order-details .address .name .iconfont {
  2001. font-size: 34rpx;
  2002. margin-left: 10rpx;
  2003. }
  2004. .refund {
  2005. .title {
  2006. display: flex;
  2007. align-items: center;
  2008. font-size: 30rpx;
  2009. color: #333;
  2010. height: 86rpx;
  2011. border-bottom: 1px solid #f5f5f5;
  2012. image {
  2013. width: 32rpx;
  2014. height: 32rpx;
  2015. margin-right: 10rpx;
  2016. }
  2017. }
  2018. .con {
  2019. padding-top: 25rpx;
  2020. font-size: 28rpx;
  2021. color: #868686;
  2022. }
  2023. }
  2024. .refund-msg {
  2025. background-color: #fff;
  2026. padding: 20rpx 40rpx;
  2027. font-size: 28rpx;
  2028. .refund-msg-user {
  2029. font-weight: bold;
  2030. margin-bottom: 10rpx;
  2031. .copy-refund-msg {
  2032. font-size: 10px;
  2033. border-radius: 1px;
  2034. border: 0.5px solid #666;
  2035. padding: 1px 7px;
  2036. margin-left: 12px;
  2037. }
  2038. .name {
  2039. margin-right: 20rpx;
  2040. }
  2041. }
  2042. .refund-address {
  2043. color: #868686;
  2044. }
  2045. }
  2046. </style>