index.vue 54 KB

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