123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037 |
- <template>
- <view :style="colorStyle">
- <view class='order-details'>
- <!-- 给header上与data上加on为退款订单-->
- <view class='header bg-color acea-row row-middle' :class='isGoodsReturn ? "on":""'>
- <view class='pictrue' v-if="isGoodsReturn==false">
- <image :src="orderInfo.status_pic"></image>
- </view>
- <view class='data' :class='isGoodsReturn ? "on":""'>
- <view class='state'>{{orderInfo._status._msg}}</view>
- <view>{{orderInfo.add_time_y}}<text class='time'>{{orderInfo.add_time_h}}</text></view>
- </view>
- </view>
- <view class="refund-msg" v-if="[4,5].includes(orderInfo.refund_type)">
- <view class="refund-msg-user">
- <text class="name">{{orderInfo._status.refund_name}}</text>
- <text>{{orderInfo._status.refund_phone}}</text>
- <!-- #ifndef H5 -->
- <text class="copy-refund-msg" @click="copyAddress()">复制</text>
- <!-- #endif -->
- <!-- #ifdef H5 -->
- <text class="copy-refund-msg"
- :data-clipboard-text="orderInfo._status.refund_name + orderInfo._status.refund_phone + orderInfo._status.refund_address">复制</text>
- <!-- #endif -->
- </view>
- <view class="refund-address">
- {{orderInfo._status.refund_address}}
- </view>
- <view class="refund-tip"><text class="iconfont icon-zhuyi-copy"></text>请按以上退货信息将商品退回</view>
- </view>
- <view class='line' v-if="[4,5].includes(orderInfo.refund_type)">
- <image src='@/static/images/line.jpg'></image>
- </view>
- <!-- 拒绝退款 -->
- <view class="refund" v-if="isGoodsReturn && orderInfo.refund_type==3">
- <view class="title">
- <image src="../static/shuoming.png" mode=""></image>
- 商家拒绝退款
- </view>
- <view class="con">拒绝原因:{{orderInfo.refuse_reason}}</view>
- </view>
- <view v-if="isGoodsReturn==false">
- <view class='nav'>
- <view class='navCon acea-row row-between-wrapper'>
- <view :class="status.type == 0 || status.type == -9 ? 'on':''">待付款</view>
- <view :class="status.type == 1 || status.type == 5 ? 'on':''" v-if="orderInfo.shipping_type!=4">
- {{(orderInfo.shipping_type==1 || orderInfo.shipping_type==3) ? '待发货':'待核销'}}
- </view>
- <view :class="status.type == 2 ? 'on':''"
- v-if="orderInfo.shipping_type == 1 || orderInfo.shipping_type == 3">待收货</view>
- <view :class="status.type == 3 ? 'on':''">待评价</view>
- <view :class="status.type == 4 ? 'on':''">已完成</view>
- </view>
- <view class='progress acea-row row-between-wrapper'>
- <view class='iconfont'
- :class='(status.type == 0 || status.type == -9 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 0 ? "font-num":"")'>
- </view>
- <view class='line' :class='status.type > 0 ? "bg-color":""' v-if="orderInfo.shipping_type!=4">
- </view>
- <view class='iconfont'
- :class='(status.type == 1 || status.type == 5 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 1 ? "font-num":"")'
- v-if="orderInfo.shipping_type!=4">
- </view>
- <view class='line' :class='status.type > 1 && status.type != 5 ? "bg-color":""'
- v-if="orderInfo.shipping_type == 1 || orderInfo.shipping_type == 3">
- </view>
- <view class='iconfont'
- :class='(status.type == 2 ? "icon-webicon318":"icon-yuandianxiao") + " " +(status.type >= 2 ? "font-num":"")'
- v-if="orderInfo.shipping_type == 1 || orderInfo.shipping_type == 3"></view>
- <view class='line' :class='status.type > 2 && status.type != 5 ? "bg-color":""'></view>
- <view class='iconfont'
- :class='(status.type == 3 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 3 && status.type != 5 ? "font-num":"")'>
- </view>
- <view class='line' :class='status.type > 3 && status.type != 5 ? "bg-color":""'></view>
- <view class='iconfont'
- :class='(status.type == 4 ? "icon-webicon318":"icon-yuandianxiao") + " " + (status.type >= 4 && status.type != 5 ? "font-num":"")'>
- </view>
- </view>
- </view>
- <!-- <view class="writeOff" v-if="orderInfo.shipping_type == 2 && orderInfo.paid"> -->
- <view class="writeOff" v-if="orderInfo.verify_code && orderInfo.paid == 1">
- <view class="title">核销信息</view>
- <view class="grayBg">
- <view class="written" v-if="orderInfo.status == 2">
- <image src="../static/written.png"></image>
- </view>
- <view class="pictrue">
- <w-qrcode :options="config.qrc"></w-qrcode>
- </view>
- </view>
- <view class="gear">
- <image src="../static/writeOff.jpg"></image>
- </view>
- <view class="num">{{orderInfo._verify_code}}</view>
- <view class="rules">
- <view class="item" v-if="orderInfo.shipping_type == 2">
- <view class="rulesTitle acea-row row-middle">
- <text class="iconfont icon-shijian"></text>营业时间
- </view>
- <view class="info">
- 每日:<text class="time">{{orderInfo.system_store.day_time}}</text>
- </view>
- </view>
- <view class="item">
- <view class="rulesTitle acea-row row-middle">
- <text class="iconfont icon-shuoming1"></text>使用说明
- </view>
- <view class="info">{{orderInfo.shipping_type == 2?'可将二维码出示给店员扫描或提供数字核销码':'可将二维码出示给配送员进行核销'}}
- </view>
- </view>
- </view>
- </view>
- <view class="map acea-row row-between-wrapper" v-if="orderInfo.shipping_type == 2">
- <view>自提地址信息</view>
- <view class="place cart-color acea-row row-center-wrapper" @tap="showMaoLocation">
- <text class="iconfont icon-weizhi"></text>查看位置
- </view>
- </view>
- <view class='address' v-if="(orderInfo.shipping_type === 1 || orderInfo.shipping_type === 3) && orderInfo.product_type==0">
- <view class='name'>{{orderInfo.real_name}}<text class='phone'>{{orderInfo.user_phone}}</text></view>
- <view>{{orderInfo.user_address}}</view>
- </view>
- <view class='address' v-if="(orderInfo.shipping_type === 2 || orderInfo.shipping_type === 4) && orderInfo.product_type==0">
- <view class='name' @tap="makePhone">{{orderInfo.system_store.name}}<text
- class='phone'>{{orderInfo.system_store.phone}}</text><text
- class="iconfont icon-tonghua font-num"></text></view>
- <view>{{orderInfo.system_store.detailed_address}}</view>
- </view>
- <view class='line' v-if="orderInfo.shipping_type === 1">
- <image src='@/static/images/line.jpg'></image>
- </view>
- </view>
- <view class="delivery acea-row row-between-wrapper" v-if="orderInfo.delivery_type == 'city_delivery' || orderInfo.delivery_type == 'send'">
- <view class="text acea-row row-middle">
- <view class="pictrue">
- <image src="../static/delivery.png"></image>
- </view>
- <view class="info" v-if="orderInfo.delivery_id">
- <view class="name">{{orderInfo.delivery_name}}</view>
- <view class="phone">{{orderInfo.delivery_id}}</view>
- </view>
- <view class="name" v-else>系统派单中...</view>
- </view>
- <navigator :url="'/pages/goods/delivery_detail/index?orderId='+orderInfo.id" hover-class='none' class="details" >查看详情</navigator>
- </view>
- <orderGoods v-for="(item,index) in split" :key="item.id" :evaluate='item._status._type == 3 ? 3 : 0'
- :orderId="item.order_id" :cartInfo="item.cartInfo" :jump="false" :jumpDetail='true' :pid="item.pid"
- :split="true" :status_type="item._status._type" :index="index" :refund_status="item.refund_status"
- :delivery_type="item.delivery_type" @confirmOrder="confirmOrder" @openSubcribe="openSubcribe">
- </orderGoods>
- <orderGoods :evaluate='evaluate' :giveData="giveData" :deliveryType="orderInfo.shipping_type" :statusType="status.type"
- :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">
- </orderGoods>
- <!-- #ifdef H5 || APP-PLUS -->
- <div class="goodCall" @click="goGoodCall">
- <span class="iconfont icon-kefu"></span><span>联系客服</span>
- </div>
- <!-- #endif -->
- <!-- #ifdef MP -->
- <div class="goodCall" @click="goGoodCall" v-if='routineContact == 0'>
- <button hover-class='none'>
- <span class="iconfont icon-kefu"></span><span>联系客服</span>
- </button>
- </div>
- <div class="goodCall" v-else>
- <button hover-class='none' open-type='contact'>
- <span class="iconfont icon-kefu"></span><span>联系客服</span>
- </button>
- </div>
- <!-- #endif -->
- <view v-if="orderInfo.status!=0">
- <view class='wrapper' v-if='orderInfo.delivery_type=="fictitious" && orderInfo.product_type!=1'>
- <view class='item acea-row row-between'>
- <view>虚拟发货:</view>
- <view class='conter'>已发货,请注意查收</view>
- </view>
- <view class='item acea-row row-between' v-if="orderInfo.fictitious_content">
- <view>虚拟备注:</view>
- <view class='conter'>{{orderInfo.fictitious_content}}</view>
- </view>
- </view>
- <view class='wrapper' v-if="orderInfo.virtual_info && orderInfo.product_type==1">
- <view class='item acea-row row-between'>
- <view>卡密发货:</view>
- <view class='conter'>{{orderInfo.virtual_info}}</view>
- </view>
- <view class="item acea-row row-right">
- <view class="conter">
- <!-- #ifndef H5 -->
- <text class='copy' @tap='copyKm'>复制</text>
- <!-- #endif -->
- <!-- #ifdef H5 -->
- <text class='copy copy-data' :data-clipboard-text="orderInfo.virtual_info">复制</text>
- <!-- #endif -->
- </view>
- </view>
- </view>
- </view>
- <customForm :customForm="orderInfo.custom_form"></customForm>
- <view class='wrapper'>
- <view class='item acea-row row-between'>
- <view>订单编号:</view>
- <view class='conter on acea-row row-middle row-right'>
- <text>{{orderInfo.order_id}}</text>
- <!-- #ifndef H5 -->
- <text class='copy' @tap='copy'>复制</text>
- <!-- #endif -->
- <!-- #ifdef H5 -->
- <text class='copy copy-data' :data-clipboard-text="orderInfo.order_id">复制</text>
- <!-- #endif -->
- </view>
- </view>
- <view class='item acea-row row-between' v-if="orderInfo.refunded_price">
- <view>退款金额:</view>
- <view class='conter'>{{orderInfo.refunded_price}}</view>
- </view>
- <view class='item acea-row row-between'>
- <view>下单时间:</view>
- <view class='conter'>{{(orderInfo.add_time_y || '') +' '+(orderInfo.add_time_h || 0)}}</view>
- </view>
- <view class='item acea-row row-between'>
- <view>支付状态:</view>
- <view class='conter' v-if="orderInfo.paid">已支付</view>
- <view class='conter' v-else>未支付</view>
- </view>
- <view class='item acea-row row-between'>
- <view>支付方式:</view>
- <view class='conter'>{{orderInfo._status._payType}}</view>
- </view>
- <view class='item acea-row row-between' v-if="orderInfo.mark">
- <view v-if="!isGoodsReturn">买家备注:</view>
- <view v-else>退款留言:</view>
- <view class='conter'>{{orderInfo.mark}}</view>
- </view>
- <view class="item acea-row row-between" v-if="orderInfo.refund_goods_explain">
- <view>退货留言:</view>
- <view class='conter'>{{orderInfo.refund_goods_explain}}</view>
- </view>
- </view>
- <!-- 退款订单详情 -->
- <view class='wrapper' v-if="isGoodsReturn && orderInfo.product_type==0">
- <view class='item acea-row row-between'>
- <view>收货人:</view>
- <view class='conter'>{{orderInfo.real_name}}</view>
- </view>
- <view class='item acea-row row-between'>
- <view>联系电话:</view>
- <view class='conter'>{{orderInfo.user_phone}}</view>
- </view>
- <view class='item acea-row row-between'>
- <view>收货地址:</view>
- <view class='conter'>{{orderInfo.user_address}}</view>
- </view>
- <view class="item acea-row row-between" v-if="orderInfo.refund_img && orderInfo.refund_img.length">
- <view>退款凭证:</view>
- <view class="conter">
- <view class="pictrue" v-for="(item,index) in orderInfo.refund_img">
- <image :src="item" mode="aspectFill" @click='getpreviewImage(index,1)'></image>
- </view>
- </view>
- </view>
- <view class="item acea-row row-between" v-if="orderInfo.refund_goods_img && orderInfo.refund_goods_img.length">
- <view>退货凭证:</view>
- <view class="conter">
- <view class="pictrue" v-for="(item,index) in orderInfo.refund_goods_img">
- <image :src="item" mode="aspectFill" @click='getpreviewImage(index,0)'></image>
- </view>
- </view>
- </view>
- </view>
- <view v-if="orderInfo.status!=0">
- <view class='wrapper' v-if='orderInfo.delivery_type=="express"'>
- <view class='item acea-row row-between'>
- <view>配送方式:</view>
- <view class='conter'>发货</view>
- </view>
- <view class='item acea-row row-between'>
- <view>快递公司:</view>
- <view class='conter'>{{orderInfo.delivery_name || ''}}</view>
- </view>
- <view class='item acea-row row-between'>
- <view>快递号:</view>
- <view class='conter'>{{orderInfo.delivery_id || ''}}</view>
- </view>
- </view>
- <view class='wrapper' v-else-if='orderInfo.delivery_type=="send"'>
- <view class='item acea-row row-between'>
- <view>配送方式:</view>
- <view class='conter'>送货</view>
- </view>
- <view class='item acea-row row-between'>
- <view>配送人姓名:</view>
- <view class='conter'>{{orderInfo.delivery_name || ''}}</view>
- </view>
- <view class='item acea-row row-between'>
- <view>联系电话:</view>
- <view class='conter acea-row row-middle row-right'>{{orderInfo.delivery_id || ''}}<text
- class='copy' @tap='goTel'>拨打</text></view>
- </view>
- </view>
- </view>
- <view class='wrapper'>
- <view class='item acea-row row-between'>
- <view>商品总价:</view>
- <view class='conter'>
- ¥{{(parseFloat(orderInfo.total_price)+parseFloat(orderInfo.vip_true_price)).toFixed(2)}}</view>
- </view>
- <view class='item acea-row row-between' v-if="orderInfo.pay_postage > 0">
- <view>配送运费:</view>
- <view class='conter'>¥{{parseFloat(orderInfo.pay_postage).toFixed(2)}}</view>
- </view>
- <view v-if="orderInfo.vip_true_price > 0" class='item acea-row row-between'>
- <view>会员商品优惠:</view>
- <view class='conter'>-¥{{parseFloat(orderInfo.vip_true_price).toFixed(2)}}</view>
- </view>
- <!-- <view v-if="orderInfo.vip_true_price" class='item acea-row row-between'>
- <view>会员运费优惠:</view>
- <view class='conter'>-¥{{parseFloat(orderInfo.vip_true_price).toFixed(2)}}</view>
- </view> -->
- <view class='item acea-row row-between' v-if='orderInfo.coupon_id'>
- <view>优惠券抵扣:</view>
- <view class='conter'>-¥{{parseFloat(orderInfo.coupon_price).toFixed(2)}}</view>
- </view>
- <view class='item acea-row row-between' v-if="orderInfo.use_integral > 0">
- <view>积分抵扣:</view>
- <view class='conter'>-¥{{parseFloat(orderInfo.deduction_price).toFixed(2)}}</view>
- </view>
- <view class='item acea-row row-between' v-for="(item,index) in orderInfo.promotions_detail" :key="index" v-if="parseFloat(item.promotions_price)">
- <view>{{item.title}}:</view>
- <view class='conter'>-¥{{parseFloat(item.promotions_price).toFixed(2)}}</view>
- </view>
- <view class='actualPay acea-row row-right'>实付款:<text
- class='money font-color'>¥{{parseFloat(orderInfo.pay_price).toFixed(2)}}</text></view>
- </view>
- <view style='height:120rpx;'></view>
- <view class='footer acea-row row-right row-middle'
- v-if="isGoodsReturn==false || status.type == 9 || orderInfo.refund_type || orderInfo.is_apply_refund">
- <view class="more" v-if="(invoice_func || invoiceData) && orderInfo.paid && !orderInfo.refund_status"
- @click="more">更多<span class='iconfont icon-xiangshang'></span></view>
- <view class="more-box" v-if="moreBtn">
- <view class="more-btn" v-if="invoice_func && !invoiceData" @click="invoiceApply">申请开票</view>
- <view class="more-btn" v-if="invoiceData" @click="aleartStatusChange">查看发票</view>
- </view>
- <view class="qs-btn" v-if="status.type == 0 || status.type == -9" @click.stop="cancelOrder">取消订单</view>
- <view class='bnt bg-color' v-if="status.type==0" @tap='pay_open(orderInfo.order_id)'>立即付款</view>
- <view
- @click="openSubcribe(`/pages/goods/${cartInfo.length > 1 ? 'goods_return_list' : 'goods_return'}/index?orderId=`+orderInfo.order_id+ '&id=' + orderInfo.id)"
- class='bnt cancel' v-else-if="orderInfo.is_apply_refund && orderInfo.refund_status == 0 && cartInfo.length>1">
- 批量退款</view>
- <!-- #ifdef MP -->
- <!-- <view
- @tap="openSubcribe(`/pages/users/${orderInfo.total_num > 1 ? 'goods_return_list' : 'goods_return'}/index?orderId=`+orderInfo.order_id+ '&id=' + orderInfo.id)"
- class='bnt cancel' v-else-if="orderInfo.is_apply_refund && orderInfo.refund_status == 0">
- 申请退款</view> -->
- <!-- #endif -->
- <!-- #ifndef MP -->
- <!-- <navigator hover-class="none"
- :url="`/pages/users/${orderInfo.total_num > 1 ? 'goods_return_list' : 'goods_return'}/index?orderId=`+ orderInfo.order_id + '&id=' + orderInfo.id"
- class='bnt cancel' v-else-if="orderInfo.is_apply_refund && orderInfo.refund_status == 0">
- 申请退款
- </navigator> -->
- <!-- #endif -->
- <!-- <navigator hover-class="none" :url="'/pages/goods/goods_return/index?orderId='+orderInfo.order_id"
- class='bnt cancel' v-if="orderInfo.refund_type== 3">重新申请
- </navigator> -->
- <navigator class='bnt cancel'
- v-if="orderInfo.delivery_type == 'express' && status.class_status==3 && status.type==2 && !split.length"
- hover-class='none' :url="'/pages/goods/goods_logistics/index?orderId='+ orderInfo.order_id">查看物流
- </navigator>
- <view class='bnt bg-color' v-if="orderInfo.type==3 && orderInfo.paid && orderInfo.refund_status==0" @tap='goJoinPink'>查看拼团</view>
- <view class='bnt bg-color' v-if="status.class_status==3 && !split.length" @click='confirmOrder()'>确认收货
- </view>
- <view class='bnt cancel' v-if="status.type==4 && !split.length ||status.type==-2" @tap='delOrder'>删除订单
- </view>
- <view class='bnt bg-color' v-if="status.class_status==5" @tap='goOrderConfirm'>再次购买
- </view>
- <view class='bnt bg-color refundBnt'
- v-if="[1,2,4].includes(orderInfo.refund_type) && !orderInfo.is_cancel" @tap='cancelRefundOrder'>取消申请
- </view>
- <view class='bnt bg-color refundBnt' v-if="orderInfo.refund_type== 4" @tap='refundInput'>填写退货信息</view>
- <navigator class='bnt cancel refundBnt' v-if="orderInfo.refund_type == 5" hover-class='none'
- :url="'/pages/goods/goods_logistics/index?orderId='+ orderInfo.order_id + '&type=refund'">查看退货物流
- </navigator>
- </view>
- </view>
- <home v-show="!aleartStatus && !invShow && navigation"></home>
- <view class="mask" v-if="refund_close" @click="refund_close = false"></view>
- <payment :payMode='payMode' :pay_close="pay_close" @onChangeFun='onChangeFun' :order_id="pay_order_id"
- :totalPrice='totalPrice'></payment>
- <invoiceModal :aleartStatus="aleartStatus" :invoiceData="invoiceData" @close="aleartStatus=false">
- </invoiceModal>
- <view class="mask invoice-mask" v-if="aleartStatus" @click="aleartStatus = false"></view>
- <view class="mask more-mask" v-if="moreBtn" @click="moreBtn = false"></view>
- <invoice-picker :inv-show="invShow" :is-special="special_invoice" :inv-checked="invChecked" :order-id='order_id'
- :inv-list="invList" :is-order="1" @inv-close="invClose" @inv-change="invSub" @inv-cancel="invCancel">
- </invoice-picker>
- </view>
- </template>
- <style scoped lang="scss">
- .delivery{
- width: 100%;
- height: 140rpx;
- background-color: #fff;
- padding: 0 30rpx;
- margin-top: 12rpx;
- .text{
- .info{
- margin-left: 30rpx;
- .name{
- font-weight: 400;
- margin-left: 0;
- }
- .phone{
- font-size: 26rpx;
- font-weight: 400;
- color: #333333;
- margin-top: 8rpx;
- }
- }
- .name{
- width: 420rpx;
- margin-left: 30rpx;
- font-size: 28rpx;
- font-weight: 500;
- color: #333333;
- }
- .pictrue{
- width: 80rpx;
- height: 80rpx;
- image{
- width: 100%;
- height: 100%;
- }
- }
- }
- .details{
- font-size: 24rpx;
- font-weight: 400;
- color: var(--view-theme);
- }
- }
-
- .refund-tip {
- font-size: 24rpx;
- margin-top: 10rpx;
- color: var(--view-theme);
- .iconfont {
- font-size: 24rpx;
- margin-right: 6rpx;
- }
- }
- .qs-btn {
- width: auto;
- height: 60rpx;
- text-align: center;
- line-height: 60rpx;
- border-radius: 50rpx;
- font-size: 27rpx;
- padding: 0 3%;
- color: #666;
- border: 1px solid #ccc;
- margin-right: 20rpx;
- }
- .refund-input {
- position: fixed;
- bottom: 0;
- left: 0;
- width: 100%;
- border-radius: 16rpx 16rpx 0 0;
- background-color: #fff;
- z-index: 99;
- padding: 40rpx 0 70rpx 0;
- transition: all 0.3s cubic-bezier(0.25, 0.5, 0.5, 0.9);
- transform: translate3d(0, 100%, 0);
- .refund-input-title {
- font-size: 32rpx;
- margin-bottom: 60rpx;
- color: #282828;
- }
- .refund-input-sty {
- border: 1px solid #ddd;
- padding: 20rpx 20rpx;
- border-radius: 40rpx;
- width: 100%;
- margin: 20rpx 65rpx;
- }
- .input-msg {
- display: flex;
- flex-direction: column;
- justify-content: center;
- align-items: center;
- position: relative;
- margin: 0 65rpx;
- .iconfont {
- position: absolute;
- font-size: 32rpx;
- color: #282828;
- top: 8rpx;
- right: -30rpx;
- }
- }
- .refund-bth {
- display: flex;
- margin: 0 65rpx;
- margin-top: 20rpx;
- justify-content: space-around;
- width: 100%;
- .close-refund {
- padding: 24rpx 80rpx;
- border-radius: 80rpx;
- color: #fff;
- background-color: #ccc;
- }
- .submit-refund {
- width: 100%;
- padding: 24rpx 0rpx;
- text-align: center;
- border-radius: 80rpx;
- color: #fff;
- background-color: var(--view-theme);
- }
- }
- }
- .refund-input.on {
- transform: translate3d(0, 0, 0);
- }
- .goodCall {
- color: var(--view-theme);
- text-align: center;
- width: 100%;
- height: 86rpx;
- padding: 0 30rpx;
- border-bottom: 1rpx solid #eee;
- font-size: 30rpx;
- line-height: 86rpx;
- background: #fff;
- .icon-kefu {
- font-size: 36rpx;
- margin-right: 15rpx;
- }
- /* #ifdef MP */
- button {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 86rpx;
- font-size: 30rpx;
- color: var(--view-theme);
- }
- /* #endif */
- }
- .order-details .header {
- padding: 0 30rpx;
- height: 150rpx;
- display: flex;
- align-items: center;
- flex-wrap: nowrap;
- }
- .order-details .header.on {
- background-color: #666 !important;
- }
- .order-details .header .pictrue {
- width: 110rpx;
- height: 110rpx;
- }
- .order-details .header .pictrue image {
- width: 100%;
- height: 100%;
- }
- .order-details .header .data {
- color: rgba(255, 255, 255, 0.8);
- font-size: 24rpx;
- margin-left: 27rpx;
- }
- .order-details .header .data.on {
- margin-left: 0;
- }
- .order-details .header .data .state {
- font-size: 30rpx;
- font-weight: bold;
- color: #fff;
- margin-bottom: 7rpx;
- }
- .order-details .header .data .time {
- margin-left: 20rpx;
- }
- .order-details .nav {
- background-color: #fff;
- font-size: 26rpx;
- color: #282828;
- padding: 25rpx 0;
- }
- .order-details .nav .navCon {
- padding: 0 40rpx;
- }
- .order-details .nav .on {
- color: var(--view-theme);
- }
- .order-details .nav .progress {
- padding: 0 65rpx;
- margin-top: 10rpx;
- }
- .order-details .nav .progress .line {
- width: 100rpx;
- height: 2rpx;
- background-color: #939390;
- }
- .order-details .nav .progress .iconfont {
- font-size: 25rpx;
- color: #939390;
- margin-top: -2rpx;
- }
- .order-details .address {
- font-size: 26rpx;
- color: #868686;
- background-color: #fff;
- margin-top: 13rpx;
- padding: 35rpx 30rpx;
- }
- .order-details .address .name {
- font-size: 30rpx;
- color: #282828;
- margin-bottom: 15rpx;
- }
- .order-details .address .name .phone {
- margin-left: 40rpx;
- }
- .order-details .line {
- width: 100%;
- height: 3rpx;
- }
- .order-details .line image {
- width: 100%;
- height: 100%;
- display: block;
- }
- .order-details .wrapper {
- background-color: #fff;
- margin-top: 12rpx;
- padding: 30rpx;
- }
- .order-details .wrapper .item {
- font-size: 28rpx;
- color: #282828;
- }
- .order-details .wrapper .item~.item {
- margin-top: 20rpx;
- white-space: normal;
- word-break: break-all;
- word-wrap: break-word;
- }
- .order-details .wrapper .item .conter {
- color: #868686;
- width: 460rpx;
- display: flex;
- flex-wrap: nowrap;
- justify-content: flex-end;
- text-align: right;
- &.on{
- width: 500rpx;
- }
- .pictrue{
- width: 80rpx;
- height: 80rpx;
- margin-left: 6rpx;
- image{
- width: 100%;
- height: 100%;
- border-radius: 6rpx;
- }
- }
- }
- .order-details .wrapper .item .conter .copy {
- font-size: 20rpx;
- color: #333;
- border-radius: 3rpx;
- border: 1rpx solid #666;
- padding: 3rpx 15rpx;
- margin-left: 24rpx;
- white-space: nowrap;
- }
- .order-details .wrapper .actualPay {
- border-top: 1rpx solid #eee;
- margin-top: 30rpx;
- padding-top: 30rpx;
- }
- .order-details .wrapper .actualPay .money {
- font-weight: bold;
- font-size: 30rpx;
- }
- .order-details .footer {
- width: 100%;
- height: 100rpx;
- position: fixed;
- bottom: 0;
- left: 0;
- background-color: #fff;
- padding: 0 30rpx;
- box-sizing: border-box;
- border-top: 1px solid #eee;
- .more {
- position: absolute;
- left: 30rpx;
- font-size: 26rpx;
- color: #333;
- .icon-xiangshang {
- margin-left: 6rpx;
- font-size: 22rpx;
- }
- }
- .more-box {
- color: #333;
- position: absolute;
- left: 30rpx;
- bottom: 110rpx;
- background-color: #fff;
- padding: 18rpx 24rpx;
- border-radius: 4rpx;
- font-size: 28rpx;
- -webkit-box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
- -moz-box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
- box-shadow: 0px 0px 3px 0px rgba(200, 200, 200, 0.75);
- .more-btn {
- color: #333;
- padding: 4rpx;
- z-index: 9999;
- }
- }
- .more-box:before {
- content: "";
- width: 0rpx;
- height: 0rpx;
- border-top: 10rpx solid #fff;
- border-bottom: 10rpx solid transparent;
- border-left: 10rpx solid #fff;
- position: absolute;
- bottom: -10rpx;
- left: 0px;
- }
- }
- .order-details .footer .bnt {
- width: 176rpx;
- height: 60rpx;
- text-align: center;
- line-height: 60rpx;
- border-radius: 50rpx;
- color: #fff;
- font-size: 27rpx;
- }
- .order-details .footer .bnt.refundBnt {
- width: 210rpx;
- }
- .order-details .footer .bnt.cancel {
- color: #666;
- border: 1rpx solid #ccc;
- }
- .order-details .footer .bnt~.bnt {
- margin-left: 18rpx;
- }
- .order-details .writeOff {
- background-color: #fff;
- margin-top: 13rpx;
- padding-bottom: 30rpx;
- }
- .order-details .writeOff .title {
- font-size: 30rpx;
- color: #282828;
- height: 87rpx;
- border-bottom: 1px solid #f0f0f0;
- padding: 0 30rpx;
- line-height: 87rpx;
- }
- .order-details .writeOff .grayBg {
- background-color: #f2f5f7;
- width: 590rpx;
- height: 384rpx;
- border-radius: 20rpx 20rpx 0 0;
- margin: 50rpx auto 0 auto;
- padding-top: 55rpx;
- position: relative;
- }
- .order-details .writeOff .grayBg .written {
- position: absolute;
- top: 0;
- right: 0;
- width: 60rpx;
- height: 60rpx;
- }
- .order-details .writeOff .grayBg .written image {
- width: 100%;
- height: 100%;
- }
- .order-details .writeOff .grayBg .pictrue {
- width: 290rpx;
- height: 290rpx;
- margin: 0 auto;
- }
- .order-details .writeOff .grayBg .pictrue image {
- width: 100%;
- height: 100%;
- display: block;
- }
- .order-details .writeOff .gear {
- width: 590rpx;
- height: 30rpx;
- margin: 0 auto;
- }
- .order-details .writeOff .gear image {
- width: 100%;
- height: 100%;
- display: block;
- }
- .order-details .writeOff .num {
- background-color: #f0c34c;
- width: 590rpx;
- height: 84rpx;
- color: #282828;
- font-size: 48rpx;
- margin: 0 auto;
- border-radius: 0 0 20rpx 20rpx;
- text-align: center;
- padding-top: 4rpx;
- }
- .order-details .writeOff .rules {
- margin: 46rpx 30rpx 0 30rpx;
- border-top: 1px solid #f0f0f0;
- padding-top: 10rpx;
- }
- .order-details .writeOff .rules .item {
- margin-top: 20rpx;
- }
- .order-details .writeOff .rules .item .rulesTitle {
- font-size: 28rpx;
- color: #282828;
- }
- .order-details .writeOff .rules .item .rulesTitle .iconfont {
- font-size: 30rpx;
- color: #333;
- margin-right: 8rpx;
- margin-top: 5rpx;
- }
- .order-details .writeOff .rules .item .info {
- font-size: 28rpx;
- color: #999;
- margin-top: 7rpx;
- }
- .order-details .writeOff .rules .item .info .time {
- margin-left: 20rpx;
- }
- .order-details .map {
- height: 86rpx;
- font-size: 30rpx;
- color: #282828;
- line-height: 86rpx;
- border-bottom: 1px solid #f0f0f0;
- margin-top: 13rpx;
- background-color: #fff;
- padding: 0 30rpx;
- }
- .order-details .map .place {
- font-size: 26rpx;
- width: 176rpx;
- height: 50rpx;
- border-radius: 25rpx;
- line-height: 50rpx;
- text-align: center;
- }
- .order-details .map .place .iconfont {
- font-size: 27rpx;
- height: 27rpx;
- line-height: 27rpx;
- margin: 2rpx 3rpx 0 0;
- }
- .order-details .address .name .iconfont {
- font-size: 34rpx;
- margin-left: 10rpx;
- }
- .refund {
- padding: 0 30rpx 30rpx;
- margin-top: 12rpx;
- background-color: #fff;
- .title {
- display: flex;
- align-items: center;
- font-size: 30rpx;
- color: #333;
- height: 86rpx;
- border-bottom: 1px solid #f5f5f5;
- image {
- width: 32rpx;
- height: 32rpx;
- margin-right: 10rpx;
- }
- }
- .con {
- padding-top: 25rpx;
- font-size: 28rpx;
- color: #868686;
- }
- }
- </style>
- <script>
- import {
- getOrderDetail,
- getRefundOrderDetail,
- orderAgain,
- orderTake,
- orderDel,
- refundOrderDel,
- orderCancel,
- refundExpress,
- cancelRefundOrder
- } from '@/api/order.js';
- import {
- openOrderRefundSubscribe
- } from '@/utils/SubscribeMessage.js';
- import {
- getUserInfo,
- invoiceList,
- makeUpinvoice
- } from '@/api/user.js';
- import home from '@/components/home';
- import payment from '@/components/payment';
- import orderGoods from "@/components/orderGoods";
- import customForm from "@/components/customForm";
- import ClipboardJS from "@/plugin/clipboard/clipboard.js";
- import {
- toLogin
- } from '@/libs/login.js';
- import {
- mapGetters
- } from "vuex";
- import colors from "@/mixins/color";
- import invoicePicker from '../components/invoicePicker';
- import invoiceModal from '../components/invoiceModal/index.vue'
- export default {
- components: {
- payment,
- home,
- invoicePicker,
- invoiceModal,
- orderGoods,
- customForm
- },
- mixins: [colors],
- data() {
- return {
- giveData:{
- give_integral:0,
- give_coupon:[]
- },
- giveCartInfo:[],
- config: {
- qrc: {
- code: "",
- size: 300, // 二维码大小
- level: 4, //等级 0~4
- bgColor: '#FFFFFF', //二维码背景色 默认白色
- border: {
- color: ['#eee', '#eee'], //边框颜色支持渐变色
- lineWidth: 3, //边框宽度
- },
- color: ['#333', '#333'], //边框颜色支持渐变色
- }
- },
- order_id: '',
- evaluate: 0,
- cartInfo: [], //购物车产品
- pid: 0, //上级订单ID
- split: [], //分单商品
- orderInfo: {
- system_store: {},
- _status: {}
- }, //订单详情
- system_store: {},
- isGoodsReturn: false, //是否为退款订单
- status: {}, //订单底部按钮状态
- refund_close: false,
- isClose: false,
- payMode: [{
- name: "微信支付",
- icon: "icon-weixinzhifu",
- value: 'weixin',
- title: '使用微信快捷支付',
- payStatus: true,
- },
- // #ifdef H5 || APP-PLUS
- {
- name: '支付宝支付',
- icon: 'icon-zhifubao',
- value: 'alipay',
- title: '使用线上支付宝支付',
- payStatus: true
- },
- // #endif
- {
- name: "余额支付",
- icon: "icon-yuezhifu",
- value: 'yue',
- title: '当前可用余额:',
- number: 0,
- payStatus: true
- },
- ],
- pay_close: false,
- pay_order_id: '',
- totalPrice: '0',
- isAuto: false, //没有授权的不会自动授权
- isShowAuth: false, //是否隐藏授权
- routineContact: 0,
- express_num: '',
- invoice_func: false,
- invoiceData: {},
- invoice_id: 0,
- invChecked: '',
- moreBtn: false,
- invShow: false,
- aleartStatus: false, //发票弹窗
- special_invoice: false,
- invList: [],
- userInfo: {},
- isReturen: ''
- };
- },
- computed: mapGetters(['isLogin']),
- onLoad: function(options) {
- if (options.order_id) {
- this.$set(this, 'order_id', options.order_id);
- this.isReturen = options.isReturen;
- }
- if (options.invoice_id) {
- this.invoice_id = options.invoice_id
- }
- },
- onShow() {
- uni.removeStorageSync('form_type_cart');
- if (this.isLogin) {
- this.getOrderInfo();
- this.getUserInfo();
- } else {
- toLogin();
- }
- },
- onHide: function() {
- this.isClose = true;
- },
- onReady: function() {
- // #ifdef H5
- this.$nextTick(function() {
- const clipboard = new ClipboardJS(".copy-data");
- clipboard.on("success", () => {
- this.$util.Tips({
- title: '复制成功'
- });
- });
- const address = new ClipboardJS(".copy-refund-msg");
- address.on("success", () => {
- this.$util.Tips({
- title: '复制成功'
- });
- });
- });
- // #endif
- },
- methods: {
- getpreviewImage: function(index,num) {
- uni.previewImage({
- urls: num?this.orderInfo.refund_img:this.orderInfo.refund_goods_img,
- current: num?this.orderInfo.refund_img[index]:this.orderInfo.refund_goods_img[index]
- });
- },
- cancelRefundOrder(orderId) {
- let that = this;
- uni.showModal({
- title: '取消申请',
- content: '您确认放弃此次申请吗?',
- success: (res) => {
- if (res.confirm) {
- cancelRefundOrder(that.order_id).then(res => {
- return that.$util.Tips({
- title: '操作成功',
- icon: 'success'
- }, {
- tab: 4,
- url: '/pages/users/user_return_list/index'
- });
- }).catch(err => {
- return that.$util.Tips({
- title: err
- });
- })
- }
- }
- })
- },
- refundInput() {
- uni.navigateTo({
- url: `/pages/goods/order_refund_goods/index?orderId=` + this.order_id
- })
- },
- goGoodCall() {
- let url = `/pages/extension/customer_list/chat?orderId=${this.order_id}&isReturen=${this.isReturen}`
- this.$util.getCustomer(this.userInfo,url)
- },
- openSubcribe: function(e) {
- let page = e;
- // #ifdef MP
- uni.showLoading({
- title: '正在加载',
- })
- openOrderRefundSubscribe().then(res => {
- uni.hideLoading();
- uni.navigateTo({
- url: page,
- });
- }).catch(() => {
- uni.hideLoading();
- });
- // #endif
- // #ifndef MP
- uni.navigateTo({
- url: page
- })
- // #endif
- },
- /**
- * 事件回调
- *
- */
- onChangeFun: function(e) {
- let opt = e;
- let action = opt.action || null;
- let value = opt.value != undefined ? opt.value : null;
- (action && this[action]) && this[action](value);
- },
- /**
- * 拨打电话
- */
- makePhone: function() {
- uni.makePhoneCall({
- phoneNumber: this.system_store.phone
- })
- },
- /**
- * 打开地图
- *
- */
- showMaoLocation: function() {
- if (!this.system_store.latitude || !this.system_store.longitude) return this.$util.Tips({
- title: '缺少经纬度信息无法查看地图!'
- });
- uni.openLocation({
- latitude: parseFloat(this.system_store.latitude),
- longitude: parseFloat(this.system_store.longitude),
- scale: 8,
- name: this.system_store.name,
- address: this.system_store.address + this.system_store.detailed_address,
- success: function() {
- },
- });
- },
- /**
- * 关闭支付组件
- *
- */
- payClose: function() {
- this.pay_close = false;
- },
- /**
- * 打开支付组件
- *
- */
- pay_open: function() {
- this.pay_close = true;
- this.pay_order_id = this.orderInfo.order_id;
- this.totalPrice = this.orderInfo.pay_price;
- },
- /**
- * 支付成功回调
- *
- */
- pay_complete: function() {
- this.pay_close = false;
- this.pay_order_id = '';
- uni.navigateTo({
- url: '/pages/goods/order_pay_status/index?order_id=' + this.orderInfo.order_id + '&msg=' +
- '支付成功' +
- '&type=3' + '&totalPrice=' + this.totalPrice
- })
- this.getOrderInfo();
- },
- /**
- * 支付失败回调
- *
- */
- pay_fail: function() {
- this.pay_close = false;
- this.pay_order_id = '';
- },
- /**
- * 获取用户信息
- *
- */
- getUserInfo: function() {
- let that = this;
- getUserInfo().then(res => {
- that.userInfo = res.data
- // #ifdef H5 || APP-PLUS
- that.payMode[2].number = res.data.now_money;
- // #endif
- // #ifdef MP
- that.payMode[1].number = res.data.now_money;
- // #endif
- that.$set(that, 'payMode', that.payMode);
- })
- },
- /**
- * 获取订单详细信息
- *
- */
- getOrderInfo: function() {
- let that = this;
- uni.showLoading({
- title: "正在加载中"
- });
- let obj = '';
- if (that.isReturen) {
- obj = getRefundOrderDetail(this.order_id);
- } else {
- obj = getOrderDetail(this.order_id);
- }
- obj.then(res => {
- let _type = res.data._status._type;
- uni.hideLoading();
- that.giveData.give_coupon = res.data.give_coupon;
- that.giveData.give_integral = res.data.give_integral;
- that.$set(that, 'orderInfo', res.data);
- that.$set(that, 'pid', res.data.pid);
- that.$set(that, 'split', res.data.split);
- that.$set(that, 'evaluate', _type == 3 ? 3 : 0);
- that.$set(that, 'system_store', res.data.system_store);
- that.$set(that, 'invoiceData', res.data.invoice);
- if (that.invoiceData) {
- that.invoiceData.pay_price = res.data.pay_price;
- }
- that.$set(that, 'invoice_func', res.data.invoice_func);
- that.$set(that, 'special_invoice', res.data.special_invoice);
- that.$set(that, 'routineContact', Number(res.data.routine_contact_type));
- let cartInfo = res.data.cartInfo;
- let cartObj = [],giftObj = [];
- cartInfo.forEach(item=>{
- if(item.is_gift == 1){
- giftObj.push(item)
- }else{
- cartObj.push(item)
- }
- })
- that.$set(that, 'cartInfo', cartObj);
- that.$set(that, 'giveCartInfo', giftObj);
- this.$nextTick(function() {
- that.config.qrc.code = that.orderInfo.verify_code
- })
- if (this.orderInfo.refund_status != 0) {
- this.isGoodsReturn = true;
- }else{
- this.isReturen = 0
- }
- if (that.invoice_id && !that.invoiceData) {
- that.invChecked = that.invoice_id || '';
- this.invoiceApply()
- }
- that.payMode.map(item => {
- if (item.value == 'weixin') {
- item.payStatus = res.data.pay_weixin_open ? true : false;
- }
- if (item.value == 'alipay') {
- item.payStatus = res.data.ali_pay_status ? true : false;
- }
- if (item.value == 'yue') {
- item.payStatus = res.data.yue_pay_status == 1 ? true : false;
- }
- });
- that.getOrderStatus();
- }).catch(err => {
- uni.hideLoading();
- if(err.status == 403){
- uni.navigateTo({
- url: '/pages/goods/order_list/index'
- })
- }else{
- that.$util.Tips({
- title: err
- }, '/pages/goods/order_list/index');
- }
- });
- },
- // 不开发票
- invCancel() {
- this.invChecked = '';
- this.invTitle = '不开发票';
- this.invShow = false;
- },
- // 选择发票
- invSub(id) {
- this.invChecked = id;
- let data = {
- order_id: this.order_id,
- invoice_id: this.invChecked
- }
- makeUpinvoice(data).then(res => {
- uni.showToast({
- title: '申请成功',
- icon: 'success'
- });
- this.invShow = false;
- this.aleartStatus = true;
- this.getOrderInfo()
- }).catch(err => {
- uni.showToast({
- title: err,
- icon: 'none'
- });
- });
- },
- // 关闭发票
- invClose() {
- this.invShow = false;
- this.getInvoiceList()
- },
- //申请开票
- invoiceApply() {
- this.getInvoiceList()
- this.moreBtn = false;
- this.invShow = true;
- },
- aleartStatusChange() {
- this.moreBtn = false;
- this.aleartStatus = true
- },
- getInvoiceList() {
- uni.showLoading({
- title: '正在加载…'
- })
- invoiceList().then(res => {
- uni.hideLoading();
- this.invList = res.data.map(item => {
- item.id = item.id.toString();
- return item;
- });
- const result = this.invList.find(item => item.id == this.invChecked);
- if (result) {
- let name = '';
- name += result.header_type === 1 ? '个人' : '企业';
- name += result.type === 1 ? '普通' : '专用';
- name += '发票';
- this.invTitle = name;
- }
- }).catch(err => {
- uni.showToast({
- title: err,
- icon: 'none'
- });
- });
- },
- more() {
- this.moreBtn = !this.moreBtn
- },
- /**
- *
- * 剪切订单号
- */
- // #ifndef H5
- copy: function() {
- let that = this;
- uni.setClipboardData({
- data: this.orderInfo.order_id
- });
- },
- copyKm: function() {
- let that = this;
- uni.setClipboardData({
- data: this.orderInfo.virtual_info
- });
- },
- // #endif
- // #ifndef H5
- copyAddress() {
- uni.setClipboardData({
- data: this.orderInfo._status.refund_name + this.orderInfo._status.refund_phone + this.orderInfo
- ._status
- .refund_address,
- success() {
- uni.Tips({
- title: '复制成功',
- icon: 'success'
- })
- }
- });
- },
- // #endif
- // #ifdef H5
- copyAddress() {
- // console.log('1111111111111')
- // let msg =
- // console.log(msg)
- // return msg
- },
- // #endif
- /**
- * 打电话
- */
- goTel: function() {
- uni.makePhoneCall({
- phoneNumber: this.orderInfo.delivery_id
- })
- },
- /**
- * 设置底部按钮
- *
- */
- getOrderStatus: function() {
- let orderInfo = this.orderInfo || {},
- _status = orderInfo._status || {
- _type: 0
- },
- status = {};
- let type = parseInt(_status._type),
- delivery_type = orderInfo.delivery_type,
- seckill_id = orderInfo.seckill_id ? parseInt(orderInfo.seckill_id) : 0,
- bargain_id = orderInfo.bargain_id ? parseInt(orderInfo.bargain_id) : 0,
- discount_id = orderInfo.discount_id ? parseInt(orderInfo.discount_id) : 0,
- combination_id = orderInfo.combination_id ? parseInt(orderInfo.combination_id) : 0;
- status = {
- type: type == 9 ? -9 : type,
- class_status: 0
- };
- if (type == 1 && combination_id > 0) status.class_status = 1; //查看拼团
- if (type == 2 && delivery_type == 'express') status.class_status = 2; //查看物流
- if (type == 2) status.class_status = 3; //确认收货
- if (type == 4 || type == 0) status.class_status = 4; //删除订单
- if (!seckill_id && !bargain_id && !combination_id && !discount_id && !orderInfo.type && (type == 3 ||
- type == 4)) status
- .class_status =
- 5; //再次购买
- this.$set(this, 'status', status);
- },
- /**
- * 去拼团详情
- *
- */
- goJoinPink: function() {
- uni.navigateTo({
- url: '/pages/activity/goods_combination_status/index?id=' + this.orderInfo.pink_id,
- });
- },
- /**
- * 再此购买
- *
- */
- goOrderConfirm: function() {
- let that = this;
- orderAgain(that.orderInfo.order_id).then(res => {
- return uni.navigateTo({
- url: '/pages/goods/order_confirm/index?new=1&cartId=' + res.data.cateId
- });
- });
- },
- confirmOrder(orderId) {
- let that = this;
- uni.showModal({
- title: '确认收货',
- content: '为保障权益,请收到货确认无误后,再确认收货',
- success: function(res) {
- if (res.confirm) {
- orderTake(orderId ? orderId : that.order_id).then(res => {
- return that.$util.Tips({
- title: '操作成功',
- icon: 'success'
- }, function() {
- that.getOrderInfo();
- });
- }).catch(err => {
- return that.$util.Tips({
- title: err
- });
- })
- }
- }
- })
- },
- /**
- *
- * 删除订单
- */
- delOrder: function() {
- let that = this;
- uni.showModal({
- title: '删除订单',
- content: '确定删除该订单',
- success: function(res) {
- if (res.confirm) {
- (that.isReturen ? refundOrderDel : orderDel)(that.order_id).then(res => {
- if (that.status.type == -2) {
- return that.$util.Tips({
- title: '删除成功',
- icon: 'success'
- }, {
- tab: 5,
- url: '/pages/users/user_return_list/index'
- });
- } else {
- return that.$util.Tips({
- title: '删除成功',
- icon: 'success'
- }, {
- tab: 5,
- url: '/pages/goods/order_list/index'
- });
- }
- }).catch(err => {
- return that.$util.Tips({
- title: err
- });
- });
- } else if (res.cancel) {
- return that.$util.Tips({
- title: '已取消'
- });
- }
- }
- });
- },
- cancelOrder() {
- let self = this
- uni.showModal({
- title: '提示',
- content: '确认取消该订单?',
- success: function(res) {
- if (res.confirm) {
- orderCancel(self.orderInfo.order_id)
- .then((data) => {
- let pages = getCurrentPages(); // 获取当前打开过的页面路由数组
- let prevPage = pages[pages.length - 3].$page.fullPath;//上一页面
- uni.reLaunch({
- url: prevPage
- })
- })
- .catch(() => {
- self.getDetail();
- });
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .invoice-mask {
- background-color: #999999;
- opacity: 1;
- }
- .more-mask {
- background-color: #fff;
- opacity: 0;
- left: 160rpx;
- }
- .goodCall {
- color: var(--view-theme);
- text-align: center;
- width: 100%;
- height: 86rpx;
- padding: 0 30rpx;
- border-bottom: 1rpx solid #eee;
- font-size: 30rpx;
- line-height: 86rpx;
- background: #fff;
- .icon-kefu {
- font-size: 36rpx;
- margin-right: 15rpx;
- }
- /* #ifdef MP */
- button {
- display: flex;
- align-items: center;
- justify-content: center;
- height: 86rpx;
- font-size: 30rpx;
- color: var(--view-theme);
- }
- /* #endif */
- }
- .order-details .header {
- padding: 0 30rpx;
- height: 150rpx;
- }
- .order-details .header.on {
- background-color: #666 !important;
- }
- .order-details .header .pictrue {
- width: 110rpx;
- height: 110rpx;
- }
- .order-details .header .pictrue image {
- width: 100%;
- height: 100%;
- }
- .order-details .header .data {
- color: rgba(255, 255, 255, 0.8);
- font-size: 24rpx;
- margin-left: 27rpx;
- }
- .order-details .header .data.on {
- margin-left: 0;
- }
- .order-details .header .data .state {
- font-size: 30rpx;
- font-weight: bold;
- color: #fff;
- margin-bottom: 7rpx;
- }
- .order-details .header .data .time {
- margin-left: 20rpx;
- }
- .order-details .nav {
- background-color: #fff;
- font-size: 26rpx;
- color: #282828;
- padding: 25rpx 0;
- }
- .order-details .nav .navCon {
- padding: 0 40rpx;
- }
- .order-details .nav .on {
- color: var(--view-theme);
- }
- .order-details .nav .progress {
- padding: 0 65rpx;
- margin-top: 10rpx;
- }
- .order-details .nav .progress .line {
- width: 100rpx;
- height: 2rpx;
- background-color: #939390;
- }
- .order-details .nav .progress .iconfont {
- font-size: 25rpx;
- color: #939390;
- margin-top: -2rpx;
- }
- .order-details .address {
- font-size: 26rpx;
- color: #868686;
- background-color: #fff;
- margin-top: 13rpx;
- padding: 35rpx 30rpx;
- }
- .order-details .address .name {
- font-size: 30rpx;
- color: #282828;
- margin-bottom: 15rpx;
- }
- .order-details .address .name .phone {
- margin-left: 40rpx;
- }
- .order-details .line {
- width: 100%;
- height: 3rpx;
- }
- .order-details .line image {
- width: 100%;
- height: 100%;
- display: block;
- }
- .order-details .wrapper {
- background-color: #fff;
- margin-top: 12rpx;
- padding: 30rpx;
- }
- .order-details .wrapper .item {
- font-size: 28rpx;
- color: #282828;
- }
- .order-details .wrapper .item~.item {
- margin-top: 20rpx;
- }
- .order-details .wrapper .item .conter .copy {
- font-size: 20rpx;
- color: #333;
- border-radius: 3rpx;
- border: 1rpx solid #666;
- padding: 3rpx 15rpx;
- margin-left: 24rpx;
- transform: scale(.9);
- }
- .order-details .wrapper .actualPay {
- border-top: 1rpx solid #eee;
- margin-top: 30rpx;
- padding-top: 30rpx;
- }
- .order-details .wrapper .actualPay .money {
- font-weight: bold;
- font-size: 30rpx;
- }
- .order-details .footer {
- width: 100%;
- height: 100rpx;
- position: fixed;
- bottom: 0;
- left: 0;
- background-color: #fff;
- padding: 0 30rpx;
- box-sizing: border-box;
- }
- .order-details .footer .bnt {
- width: 150rpx;
- height: 60rpx;
- text-align: center;
- line-height: 60rpx;
- border-radius: 50rpx;
- color: #fff;
- font-size: 27rpx;
- }
- .order-details .footer .bnt~.bnt {
- margin-left: 18rpx;
- }
- .order-details .writeOff {
- background-color: #fff;
- margin-top: 13rpx;
- padding-bottom: 30rpx;
- }
- .order-details .writeOff .title {
- font-size: 30rpx;
- color: #282828;
- height: 87rpx;
- border-bottom: 1px solid #f0f0f0;
- padding: 0 30rpx;
- line-height: 87rpx;
- }
- .order-details .writeOff .grayBg {
- background-color: #f2f5f7;
- width: 590rpx;
- height: 384rpx;
- border-radius: 20rpx 20rpx 0 0;
- margin: 50rpx auto 0 auto;
- padding-top: 55rpx;
- position: relative;
- }
- .order-details .writeOff .grayBg .written {
- position: absolute;
- top: 0;
- right: 0;
- width: 60rpx;
- height: 60rpx;
- }
- .order-details .writeOff .grayBg .written image {
- width: 100%;
- height: 100%;
- }
- .order-details .writeOff .grayBg .pictrue {
- width: 290rpx;
- height: 290rpx;
- margin: 0 auto;
- }
- .order-details .writeOff .grayBg .pictrue image {
- width: 100%;
- height: 100%;
- display: block;
- }
- .order-details .writeOff .gear {
- width: 590rpx;
- height: 30rpx;
- margin: 0 auto;
- }
- .order-details .writeOff .gear image {
- width: 100%;
- height: 100%;
- display: block;
- }
- .order-details .writeOff .num {
- background-color: #f0c34c;
- width: 590rpx;
- height: 84rpx;
- color: #282828;
- font-size: 48rpx;
- margin: 0 auto;
- border-radius: 0 0 20rpx 20rpx;
- text-align: center;
- padding-top: 4rpx;
- }
- .order-details .writeOff .rules {
- margin: 46rpx 30rpx 0 30rpx;
- border-top: 1px solid #f0f0f0;
- padding-top: 10rpx;
- }
- .order-details .writeOff .rules .item {
- margin-top: 20rpx;
- }
- .order-details .writeOff .rules .item .rulesTitle {
- font-size: 28rpx;
- color: #282828;
- }
- .order-details .writeOff .rules .item .rulesTitle .iconfont {
- font-size: 30rpx;
- color: #333;
- margin-right: 8rpx;
- margin-top: 5rpx;
- }
- .order-details .writeOff .rules .item .info {
- font-size: 28rpx;
- color: #999;
- margin-top: 7rpx;
- }
- .order-details .writeOff .rules .item .info .time {
- margin-left: 20rpx;
- }
- .order-details .map {
- height: 86rpx;
- font-size: 30rpx;
- color: #282828;
- line-height: 86rpx;
- border-bottom: 1px solid #f0f0f0;
- margin-top: 13rpx;
- background-color: #fff;
- padding: 0 30rpx;
- }
- .order-details .map .place {
- font-size: 26rpx;
- width: 176rpx;
- height: 50rpx;
- border-radius: 25rpx;
- line-height: 50rpx;
- text-align: center;
- }
- .order-details .map .place .iconfont {
- font-size: 27rpx;
- height: 27rpx;
- line-height: 27rpx;
- margin: 2rpx 3rpx 0 0;
- }
- .order-details .address .name .iconfont {
- font-size: 34rpx;
- margin-left: 10rpx;
- }
- .refund {
-
- .title {
- display: flex;
- align-items: center;
- font-size: 30rpx;
- color: #333;
- height: 86rpx;
- border-bottom: 1px solid #f5f5f5;
- image {
- width: 32rpx;
- height: 32rpx;
- margin-right: 10rpx;
- }
- }
- .con {
- padding-top: 25rpx;
- font-size: 28rpx;
- color: #868686;
- }
- }
- .refund-msg {
- background-color: #fff;
- padding: 20rpx 40rpx;
- font-size: 28rpx;
- .refund-msg-user {
- font-weight: bold;
- margin-bottom: 10rpx;
- .copy-refund-msg {
- font-size: 10px;
- border-radius: 1px;
- border: 0.5px solid #666;
- padding: 1px 7px;
- margin-left: 12px;
- }
- .name {
- margin-right: 20rpx;
- }
- }
- .refund-address {
- color: #868686;
- }
- }
- </style>
|