123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025 |
- <template>
- <view>
- <!-- <sjs src="../../../utils/formatFuc.sjs" module="utils" /> -->
- <view class="poster" v-if="myqr_show">
- <view>
- <image :src="myqr_url" :style="'width:' + myqr_width + 'rpx;'" mode="widthFix"></image>
- <view class="tool">
- <view>
- <button open-type="share" class="share-btn">
- <image class="img" style="width: 85rpx; margin-right: 25rpx" mode="widthFix" src="/static/images/share/p_dy.png"></image>
- </button>
- </view>
- <view>
- <image class="img" mode="widthFix" @tap="goSaveQrcode" src="/static/images/share/p_save.png"></image>
- </view>
- </view>
- <view style="text-align: center">
- <image class="closeImg" @tap="hidePoster" src="/static/images/share/close.png"></image>
- </view>
- </view>
- </view>
- <view class="appoint-tabs-wrapper">
- <view :class="'appoint-tab-item ' + (showType == 0 ? 'active' : '')" data-tab="0" @tap="onTabChange">全 部</view>
- <view :class="'appoint-tab-item ' + (showType == 1 ? 'active' : '')" data-tab="1" @tap="onTabChange">待支付</view>
- <view :class="'appoint-tab-item ' + (showType == 2 ? 'active' : '')" data-tab="2" @tap="onTabChange">待服务</view>
- <view :class="'appoint-tab-item ' + (showType == 3 ? 'active' : '')" data-tab="3" @tap="onTabChange">售后</view>
- <!-- <view class="appoint-tab-item {{showType==4?'active':''}}" data-tab="4" bindtap="onTabChange">待评价</view> -->
- </view>
- <view class="container" :style="'filter:blur(' + myqr_blur + 'rpx)'">
- <!-- <view class="orders-switch">
- <view class="item {{ showType == 0 ? 'active' : ''}}" bindtap="switchTab" data-index='0'>
- <view class="txt">全部</view>
- </view>
- <view class="item {{ showType == 1 ? 'active' : ''}}" bindtap="switchTab" data-index='1'>
- <view class="txt">待付款</view>
- </view> -->
- <!-- <view class="item {{ showType == 2 ? 'active' : ''}}" bindtap="switchTab" data-index='2'>
- <view class="txt">待发货</view>
- </view> -->
- <!-- <view class="item {{ showType == 3 ? 'active' : ''}}" bindtap="switchTab" data-index='3'>
- <view class="txt">待上门</view>
- </view>
- <view class="item {{ showType == 4 ? 'active' : ''}}" bindtap="switchTab" data-index='4'>
- <view class="txt">待评价</view>
- </view>
- </view> -->
- <!-- <van-tabs active="{{showType }}" color="#09afff" bind:change="onTabChange">
- <van-tab title="全部" name="0"></van-tab>
- <van-tab title="待付款" name="1"></van-tab>
- <van-tab title="服务中" name="3"></van-tab>
- <van-tab title="待评价" name="4"></van-tab>
- </van-tabs> -->
- <!--
- <view class="appoint-tabs-wrapper">
- <view class="appoint-tab-item {{showType==0?'active':''}}" data-tab="0" bindtap="onTabChange">全 部</view>
- <view class="appoint-tab-item {{showType==1?'active':''}}" data-tab="1" bindtap="onTabChange">待付款</view>
- <view class="appoint-tab-item {{showType==3?'active':''}}" data-tab="3" bindtap="onTabChange">服务中</view>
- <view class="appoint-tab-item {{showType==4?'active':''}}" data-tab="4" bindtap="onTabChange">待评价</view>
- </view> -->
- <view class="no-order" v-if="orderList.length <= 0">
- <view class="c">
- <text>还没有任何订单呢</text>
- </view>
- </view>
- <view class="orders">
- <!-- 工单提醒 -->
- <block v-if="showType == 0">
- <view v-for="(item, index) in tipsList" :key="index" class="tips-item">
- <view class="tips-item-title">
- <view class="item-title-left">
- <image mode="aspectFit"
- src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-store.png"></image>
- <text>服务提醒</text>
- </view>
- <view class="item-title-right">{{item.statusName}}</view>
- </view>
- <view class="tips-item-line">
- <view class="line-left">
- 预约时间
- </view>
- <view class="line-right" v-if="item.bookDateTime.split(',').length>=3">
- {{item.bookDateTime.split(',')[0]}}
- <text>{{item.bookDateTime.split(',')[1]}}</text>
- {{item.bookDateTime.split(',')[2]}}
- </view>
- <view class="line-right" v-else>
- {{item.bookDateTime.split(',')[0]}}
- {{item.bookDateTime.split(',')[1]}}
- </view>
- </view>
- <view class="tips-item-line">
- <view class="line-left">
- 服务项目
- </view>
- <view class="line-right">
- {{item.skuName}}
- </view>
- </view>
- <view class="tips-item-line">
- <view class="line-left">
- 上门信息
- </view>
- <view class="line-right">
- {{item.bookInfo.split('|')[0]}}
- </view>
- </view>
- <view class="tips-item-line" style="margin-top:-18rpx;">
- <view class="line-left">
- </view>
- <view class="line-right">
- {{item.bookInfo.split('|')[1]}}
- </view>
- </view>
- <view class="tips-item-content" v-if="item.tip">
- 提醒:{{item.tip}}
- </view>
- </view>
- </block>
- <view v-if="orderList.length>0&&tipsList.length>0&&showType == 0" class="order-devide">
- <view class="line"></view>
- <view class="devide-text">订单列表</view>
- <view class="line"></view>
- </view>
- <view class="order" v-for="(item, index) in orderList" :key="index" :data-status="item.orderStatusVal" @tap="goOrderDetailNew" :data-id="item.id">
- <view class="h">
- <view class="l" v-if="item.orderStatusVal == '待预约' || item.orderStatusVal == '服务中' || item.orderStatusVal == '服务已完成'|| item.orderStatusVal == '退款中'">已支付</view>
- <view class="l" v-else>{{ item.orderStatusVal }}</view>
- <view class="r" v-if="item.orderStatusVal == '待预约' || item.orderStatusVal == '服务中' || item.orderStatusVal == '服务已完成'|| item.orderStatusVal == '退款中'">
- {{ item.orderStatusVal }}
- </view>
- <view class="r" v-else></view>
- </view>
- <!-- open-type="redirect" -->
- <!-- <navigator :url="'../orderDetail/orderDetail?id=' + item.id"> -->
- <view class="goods" >
- <view class="img">
- <image :src="item.picUrl + '?w=200'"></image>
- </view>
- <view class="info">
- <!-- <view class="info-orderSn" >订单编号: {{item.orderSn}}</view> -->
- <view class="info-main">
- <text class="product-name">{{ item.goodsName }}</text>
- <text class="price">¥{{ item.orderPrice }}</text>
- </view>
- <view class="sku-name" v-if="item.increaseSumPrice">
- <view>加购: {{ item.unitDescribe }}*{{ item.unitIncreaseNumber }}</view>
- <view>¥{{ item.increaseSumPrice }}</view>
- </view>
- <view class="sku-name">规格:{{ item.skuName }}</view>
- <!-- <text class="number">共{{item.number}}件商品</text> -->
- <text class="other-info">服务{{ item.serviceTimes }}次</text>
- <!-- <text class="other-info" wx:if="{{utils.getNotServiceTimes(item.serviceTimes,item.servedTimes)>0}}"> {{utils.getNotServiceTimes(item.serviceTimes,item.servedTimes)}}次未服务</text> -->
- <!-- 支付倒计时 payOverTime -->
- <view v-if="item.payOverTime > 0" class="over-time">{{ formatOverTime(item.payOverTime) }} 后订单关闭</view>
- </view>
- <!-- <view class="status">
- </view> -->
- </view>
- <!-- </navigator> -->
- <view class="b">
- <view class="l">
- <text>实付款:¥{{ item.actualPrice }}</text>
- </view>
- </view>
- <!-- 提醒 -->
- <view class="status-tips" v-if="item.orderStatusVal == '已退款'">
- <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-refund-tips.png"></image>
- <view class="tips-title">已退款</view>
- <view>已按照原支付路径退回</view>
- </view>
- <view class="status-tips" v-if="item.orderStatusVal == '服务已完成'" :data-id="item.id" @tap="goCheck">
- <image mode="aspectFit" src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-customer-msg.png"></image>
- <view class="tips-title">服务验收:</view>
- <view>服务已完成,请评价</view>
- </view>
- <view class="customer-msg" v-if="item.customerServiceReminder">
- <view class="msg-title">提醒:</view>
- <view class="msg-text">{{ item.customerServiceReminder }}</view>
- </view>
- <view class="customer-msg" v-if="item.ticketStatus == 1">
- <view class="msg-title">提醒:</view>
- <view class="msg-text">您的售后工单正在处理中,请耐心等待</view>
- </view>
- <view class="customer-msg" v-if="item.ticketStatus == 2" :data-id="item.id" @tap="orderDetail">
- <view class="msg-title">提醒:</view>
- <view class="msg-text">您的售后工单已完成,可以去评价了哦</view>
- </view>
- <!-- 操作事件 -->
- <view class="order-operate-wrapper">
- <!-- <view catchtap="deleteOrder" wx:if="{{item.handleOption.delete}}" data-id="{{item.id}}" class="del">删除订单
- </view> -->
- <view @tap.stop.prevent="cancelOrder" v-if="item.handleOption.cancel" :data-id="item.id" class="del">取消订单</view>
- <view @tap.stop.prevent="showRefundDia" v-if="item.handleOption.refund" :data-id="item.id" class="del">申请退款</view>
- <!-- v-if="item.handleOption.refund" -->
- <!-- <view data-id="{{item.id}}" data-sn="{{item.orderSn}}" data-aid="{{item.addressId}}"
- data-type="{{item.type}}" wx:if="{{item.handleOption.book}}" class="eval-btn">评价</view> -->
- <!-- 抖音评价 20231007屏蔽 by leo 启用工单上的服务验收
- <rate-button class="eval-btn" order-id="{{item.orderSn}}" bind:init="handleInit" bind:success="handleSuccess" bind:error="handleError" />-->
- <!-- <view catchtap="confirmOrder" wx:if="{{item.handleOption.confirm}}" data-id="{{item.id}}">待上门</view> -->
- <!-- <view catchtap="refundOrder" wx:if="{{item.handleOption.refund&&item.goodsList[0].goodsSn!='1036016'}}" data-id="{{item.id}}">申请退款</view> -->
- <!-- <view data-id="{{item.goodsList[0].goodsId}}" catchtap="shareFriendOrCircle" >分享商品</view> -->
- <view
- @tap.stop.prevent="appointService"
- :data-id="item.id"
- :data-sn="item.orderSn"
- :data-aid="item.addressId"
- :data-type="item.type"
- v-if="item.handleOption.book"
- :data-detail="item.detailId"
- :data-voucherId="item.voucherId"
- class="appoint"
- >
- 预约服务
- </view>
- <view @tap.stop.prevent="cancelAppoint" :data-serid="item.bookedDetailId" :data-id="item.id" :data-times="item.serviceTimes" v-if="item.handleOption.canCancelBook" class="del">取消预约</view>
- <view
- @tap.stop.prevent="modifyAppoint"
- :data-id="item.id"
- :data-serid="item.bookedDetailId"
- :data-times="item.serviceTimes"
- :data-sn="item.orderSn"
- :data-aid="item.addressId"
- :data-type="item.type"
- v-if="item.handleOption.canModify"
- class="warning-color">
- 修改预约
- </view>
- <view @tap.stop.prevent="payOrder" :data-id="item.id" :data-sn="item.orderSn" v-if="item.handleOption.pay" class="appoint">继续支付</view>
- <view class="btn-rebuy" @tap.stop.prevent="buyAgain" :data-id="item.goodsId" v-if="item.handleOption.rebuy">再来一单</view>
-
- </view>
-
- <view class="remain-content" v-if="item.showAppointmentAlert">
- 还剩{{item.notAppointmentTimes}}次可约,请记得预约哦
- </view>
- </view>
- </view>
- </view>
- <contact-mov :pageX="30" :pageY="420"></contact-mov>
- <view class="refund-order-overlay" v-if="refundTipShow">
- <view class="refund-order-dialog">
- <view class="refund-dia-tips">您遇到任何问题都可联系在线客服,我们将竭诚为您解决问题!</view>
- <view class="dia-btn-wrapper">
- <view class="dia-cancel-btn" @tap="refundOrder">继续退款</view>
- <view v-if="false" style="width:240rpx;float:left;"> <!--绕过校验 -->
- <!-- https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/component/industry/trading-system/pay-button-sdk#e606dcbb -->
- <pay-button class="paybt" :mode="refundBt.mode" :order-status="refundBt.orderStatus" :refund-total-amount="refundBt.refundTotalAmount" :order-id="refundBt.orderId" :biz-line="refundBt.bizLine"
- @error="refundError" >
- </pay-button>
- </view>
- <view class="dia-conf-btn" @tap="goIM">联系在线客服</view>
- </view>
- </view>
- </view>
- <!-- 修改预约/预约 -->
- <view class="refund-order-overlay" v-if="appointDiaShow">
- <view class="refund-order-dialog refund-order-dia-success">
- <view class="refund-dia-title">请选择您要修改的服务</view>
- <view class="modify-list">
- <view class="modify-item" v-for="(item,index) in serModifyList" :key="index" @tap="switchSer" :data-serid="item.id">
- <image src="https://mall.zhaijieshi.cc/file/wx-dy/radio-select.png" mode="aspectFit"
- v-if="item.id==serviceId"></image>
- <image src="https://mall.zhaijieshi.cc/file/wx-dy/radio-unselect.png" mode="aspectFit"
- v-else></image>
- <view :class="(item.id==serviceId?'current-modify':'')">{{item.bookTime}}</view>
- </view>
- </view>
- <view class="dia-btn-wrapper">
- <view class="dia-cancel-btn" @tap="appointModifyConf">确定</view>
- </view>
- </view>
- <image @tap="closeModify" src="https://jzmall.lifejingzhi.com/file/mall-uni/icon-close.png" class="modify-close"></image>
- </view>
- <!-- 选择取消原因 -->
- <!-- 第一步 -->
- <view class="appoint-overlay-wrapper remark-overlay" v-if="cancelFirstShow" @tap="onCancelPopupCloseFir">
- <view class="remark-select" @tap.stop.prevent="onCancelClick">
- <view class="title" style="text-align: left;">请选择要取消的服务</view>
- <view class="remark-list ser-list">
- <view :class="'remark-item ser-item '+(item.id==serviceId?'current-ser':'')" @tap="switchSer" :data-serid="item.id"
- v-for="(item, index) in serModifyList" :key="index" style="justify-content:flex-start;">
- <image mode="aspectFit"
- src="https://jzmall.lifejingzhi.com/file/mall-uni/icon-ser-selected.png"
- class="radio-img" v-if="item.id==serviceId"></image>
- <image mode="aspectFit"
- src="https://jzmall.lifejingzhi.com/file/mall-uni/icon-ser-unselect.png"
- class="radio-img" v-else></image>
- <view :class="'remark-value '+(item.id==serviceId?'current-cancel':'')">{{ item.bookTime }}</view>
- <view class="ser-right">已预约</view>
- </view>
- </view>
- <view class="remark-conf-btn" @tap.stop.prevent="cancelFirstConfirm">下一步</view>
- </view>
- </view>
- <view class="appoint-overlay-wrapper remark-overlay" v-if="cancelShow" @tap="onCancelPopupClose">
- <view class="remark-select" @tap.stop.prevent="onCancelClick">
- <view class="title">选择取消原因</view>
- <view class="remark-list">
- <view class="remark-item" :data-id="item.id" @tap.stop.prevent="cancelItemSelect"
- v-for="(item, index) in cancelList" :key="index">
- <view class="remark-value">{{ item.value }}</view>
- <image mode="aspectFit"
- src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-select-popup.png"
- class="radio-img" v-if="cancelReason == item.id"></image>
- <image mode="aspectFit"
- src="https://jzmall.lifejingzhi.com/file/jzmall-dy/icon-unselect-popup.png"
- class="radio-img" v-else></image>
- </view>
- </view>
- <view class="remark-conf-btn" @tap.stop.prevent="cancelItemConfirm">取消预约</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- var util = require('../../../utils/util.js');
- var api = require('../../../config/api.js');
- var app = getApp();
- import contactMov from '@/components/contact-mov';
- export default {
- components:{contactMov},
- data() {
- return {
- timer: '',
- orderList: [],
- showType: 0,
- page: 1,
- limit: 10,
- totalPages: 1,
- myqr_show: false,
- //我的分享二维码
- myqr_url: null,
- myqr_blur: 0,
- //背景模糊值
- myqr_width: 0,
- hasLogin: false,
- goodsId: '',
- tipsList:[],
- refundTipShow:false,
- refundId:'',
- refundBt:{
- mode:'',
- bizLine:'',
- orderStatus:'',
- orderId:'0',
- refundId:'',
- refundTotalAmount:''
- },
- serModifyList:[],
- serviceId:'',
- appointOrderId:'',
- appointDiaType:'',//1修改预约 2取消预约
- appointDiaShow:false,
- cancelShow:false,
- cancelList: [{
- id: 19,
- value: '【个人原因】临时有事暂时不预约'
- },
- {
- id: 20,
- value: '【个人原因】先囤着以后再约'
- },
- {
- id: 22,
- value: '【个人原因】计划有变不需要了'
- },
- {
- id: 21,
- value: '【商家原因】保洁师无法上门服务'
- },
- {
- id: 23,
- value: ' 其他'
- }
- ],
- cancelReason: '',
- cancelFirstShow:false,
- };
- },
- onLoad: function (options) {
- // 页面初始化 options为页面跳转所带来的参数
- if (options.tab) {
- this.setData({
- showType: options.tab
- });
- } else {
- try {
- let query = uni.getEnterOptionsSync().query;
- let keys = Object.keys(query);
- if (keys.length > 0) {
- let str = keys[0]; //{\"showType\": 1}
- let json = str.replace(/\"/g, '').replace(/\\/g, '"');
- let tab = JSON.parse(json).showType;
- if (tab != null && tab != '' && tab != undefined) {
- this.setData({
- showType: '0' //全部订单,写死因为历史后台传的是1
- });
- }
- }
- } catch (error) {
- console.log('CatchClause', error);
- console.log('CatchClause', error);
- console.info(error);
- }
- }
- },
- onHide: function () {
- console.log('onHide');
- clearInterval(this.timer);
- },
- onUnload: function () {
- console.log('onunload');
- clearInterval(this.timer);
- },
- onReachBottom() {
- if (this.totalPages > this.page) {
- this.setData({
- page: this.page + 1
- });
- this.getOrderList();
- } else if (this.orderList.length > 0) {
- uni.showToast({
- title: '没有更多订单了',
- icon: 'none',
- duration: 2000
- });
- return false;
- }
- },
- onReady: function () {
- // 页面渲染完成
- },
- onShow: function () {
- // 页面显示
- this.setData({
- orderList: [],
- page: 1
- });
- // wx.pageScrollTo({
- // scrollTop: 0,
- // duration: 1000,
- // });
- this.getOrderList();
- },
- methods: {
- formatOverTime(time){
- var minute='00';
- var second='00';
- if(time>0){
- minute=(Math.floor(time/60)<10?('0'+Math.floor(time/60)):Math.floor(time/60));
- second=(Number(time%60).toFixed(0)<10?('0'+Number(time%60).toFixed(0)):Number(time%60).toFixed(0));
- }
- var result="00:"+minute+":"+second;
- return result;
- },
- getOrderList() {
- uni.showLoading({
- title: '加载中'
- });
- let that = this;
- util.request(api.OrderList, {
- showType: that.showType,
- page: that.page,
- limit: that.limit
- }).then((res) => {
- uni.hideLoading();
- if (res.errno === 0) {
- console.log(res.data);
- that.setData({
- orderList: that.orderList.concat(res.data.data.orders),
- totalPages: res.data.pages,
- tipsList:res.data.data.tips
- });
- clearInterval(this.timer);
- // 如果有未支付订单,倒计时定时器
- let isHasOver = this.orderList.some((item) => {
- return item.payOverTime > 0;
- });
- console.log(isHasOver);
- if (isHasOver) {
- let timer = setInterval(() => {
- let list = this.orderList;
- let newList = [];
- list.forEach((item) => {
- let obj = item;
- if (item.payOverTime > 0) {
- obj.payOverTime = item.payOverTime - 1;
- }
- newList.push(obj);
- });
- this.setData({
- orderList: newList
- });
- }, 1000);
- this.setData({
- timer: timer
- });
- }
- }
- });
- },
- orderDetail(e) {
- let id = e.currentTarget.dataset.id;
- uni.navigateTo({
- url: '/pages/ucenter/orderDetail/orderDetail?id=' + id
- });
- },
- switchTab: function (event) {
- let showType = event.currentTarget.dataset.index;
- this.setData({
- orderList: [],
- showType: showType,
- page: 1,
- // limit: 10,
- totalPages: 1
- });
- this.getOrderList();
- },
- onTabChange(e) {
- // let showType = e.detail.name;
- let showType = e.currentTarget.dataset.tab;
- this.setData({
- orderList: [],
- showType: showType,
- page: 1,
- // limit: 10,
- totalPages: 1
- });
- this.getOrderList();
- },
- appointServiceOld(e) {
- let id = e.currentTarget.dataset.id;
- let addressId = e.currentTarget.dataset.aid;
- let type = e.currentTarget.dataset.type;
- if (type && type == 5) {
- uni.navigateTo({
- url: '/pages/ucenter/coupon/couponGoods?id=1'
- });
- return;
- }
- if (addressId == null || addressId == 0) {
- uni.navigateTo({
- url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + id
- });
- } else {
- //买约分离 没有地址的预约
- uni.navigateTo({
- url: '/pages/ucenter/serviceDetail/serviceDetail?orderId=' + id
- });
- }
- },
- appointService(e) {
- let id = e.currentTarget.dataset.id;
- let addressId = e.currentTarget.dataset.aid;
- let type = e.currentTarget.dataset.type;
- let detailId = e.currentTarget.dataset.detail;
- let voucherId = e.currentTarget.dataset.voucherId;
- uni.navigateTo({
- url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + id + '&serviceId=' + detailId+'&voucherId='+voucherId
- });
- },
- qrtouchstart: function () {
- this.setData({
- myqr_blur: 0,
- myqr_show: false
- });
- },
- shareFriendOrCircle: function (e) {
- // let that = this;
- // if (!app.globalData.hasLogin) {
- // wx.navigateTo({
- // url: "/pages/auth/login/login"
- // });
- // return;
- // }
- // //获取分享id 用来追踪链接
- // //引荐人和非引荐人的 链接不同
- // let imgUrl = that.data.goods.shareWxUrl ? that.data.goods.shareWxUrl : that.data.goods.gallery[0];
- // var path = '/pages/goods/goods?id=' + that.data.id + '&rId=' + that.data.userInfo.id;
- // if (that.data.userInfo.isDis) { //是引荐人
- // path = '/pages/goods/goods?id=' + that.data.id + '&shareId=' + that.data.wxShareId;
- // }
- // this.hidePoster();
- // return {
- // title: that.data.goods.name,
- // desc: that.data.myqr_ads,
- // path: path,
- // imageUrl: imgUrl
- // }
- },
- // 保存分享图
- saveShare: function () {
- let that = this;
- uni.showLoading({
- title: '图片保存中'
- });
- console.log(that);
- uni.downloadFile({
- url: that.myqr_url,
- success: function (res) {
- console.log(res);
- uni.saveImageToPhotosAlbum({
- filePath: res.tempFilePath,
- success: function (res) {
- uni.hideLoading();
- uni.showModal({
- title: '存图成功',
- content: '图片成功保存到相册了,可以分享到朋友圈了',
- showCancel: false,
- confirmText: '好的',
- confirmColor: '#a78845',
- success: function (res) {
- if (res.confirm) {
- console.log('用户点击确定');
- that.setData({
- myqr_show: false,
- myqr_blur: 0
- });
- }
- }
- });
- },
- fail: function (res) {
- uni.hideLoading();
- uni.showModal({
- title: '警告',
- content: '不授权无法保存',
- showCancel: false
- });
- that.setData({
- myqr_show: false,
- myqr_blur: 0
- });
- }
- });
- },
- fail: function (res) {
- uni.hideLoading();
- console.log(res);
- }
- });
- },
- // “去付款”按钮点击效果
- payOrder: function (e) {
- // #ifdef MP-TOUTIAO
- this.orderPrepay(e);
- // #endif
- // #ifdef MP-ALIPAY
- this.aliPrepay(e);
- // #endif
- },
- orderPrepay(e){
- let that = this;
- let id = e.currentTarget.dataset.id;
- let ordern = e.currentTarget.dataset.sn;
- util.request(
- api.OrderPayCheck,
- {
- orderId: id
- },
- 'POST'
- ).then(function (res) {
- if (res.errno === 0) {
- const outOrderNo = res.data;
- console.log(res);
- uni.continueToPay({
- // orderId: this.data.orderId, // 内部订单号
- outOrderNo: outOrderNo,
- // 外部订单号 2个订单号必填一个
- success: (res) => {
- console.log(res);
- const { orderId, outOrderNo } = res;
- console.log('success res', res);
- console.log('orderId', orderId, 'outOrderNo', outOrderNo);
- uni.redirectTo({
- url: '/pages/ucenter/order/order'
- });
- },
- fail: (res) => {
- console.log(res);
- const { orderId, outOrderNo, errNo, errMsg, errLogId } = res;
- if (errLogId) {
- console.log('查询订单信息失败', errNo, errMsg, errLogId);
- }
- if (orderId || outOrderNo) {
- console.log('支付失败', errNo, errMsg, orderId, outOrderNo);
- console.log('订单号' + outOrderNo);
- // wx.navigateTo({
- // url: '/pages/ucenter/orderDetail/orderDetail?id='+outOrderNo
- // });
- }
- util.showErrorToast('支付失败');
- }
- });
- }
- });
- },
- aliPrepay(e){
- let that = this;
- let id = e.currentTarget.dataset.id;
- let ordern = e.currentTarget.dataset.sn;
- uni.showLoading({
- title: '加载中'
- });
- util.request(api.aliPrepay, {
- orderId:id
- }).then(function (res) {
- if (res.errno === 0) {
- //是否跳转新支付结果页面
- let goNewPage=res.data.goNewPage;
- let tradeNo=res.data.payment.tradeNo;
- let outOrderNo=res.data.payment.outTradeNo;
- my.tradePay({
- tradeNO:tradeNo,
- success: (payres) => {
- uni.hideLoading();
- console.log('ali调起支付成功');
- console.log(payres);
- let resultCode=payres.resultCode;
- if(resultCode=='9000'){
- uni.redirectTo({
- url: '/pages/ucenter/order/order'
- });
- }else{
- uni.showModal({
- title: '提示',
- content: payres.memo,
- showCancel: false,
- });
- }
- },
- fail: (failres) => {
- console.log(failres);
- uni.hideLoading();
- }
- });
- } else {
- uni.hideLoading();
- uni.showModal({
- title: '提醒',
- showCancel: false,
- content: res.errmsg
- });
- }
- })
- .catch((res) => {
- uni.hideLoading();
- util.showErrorToast(res.errmsg);
- });
- },
- // “删除”点击效果
- deleteOrder: function (e) {
- let that = this;
- let id = e.currentTarget.dataset.id;
- uni.showModal({
- title: '',
- content: '确定要删除此订单?',
- success: function (res) {
- if (res.confirm) {
- util.request(
- api.OrderDelete,
- {
- orderId: id
- },
- 'POST'
- ).then(function (res) {
- if (res.errno === 0) {
- uni.showToast({
- title: '删除订单成功'
- });
- util.redirect('/pages/ucenter/order/order');
- } else {
- util.showErrorToast(res.errmsg);
- }
- });
- }
- }
- });
- },
- // “取消订单”点击效果
- cancelOrder: function (e) {
- let that = this;
- let id = e.currentTarget.dataset.id;
- uni.showModal({
- title: '',
- content: '确定要取消此订单?',
- success: function (res) {
- if (res.confirm) {
- util.request(
- api.OrderCancel,
- {
- orderId: id
- },
- 'POST'
- ).then(function (res) {
- if (res.errno === 0) {
- uni.showToast({
- title: '取消订单成功'
- });
- util.redirect('/pages/ucenter/order/order');
- } else {
- util.showErrorToast(res.errmsg);
- }
- });
- }
- }
- });
- },
- // “待上门”点击效果
- confirmOrder: function (e) {
- let that = this;
- let id = e.currentTarget.dataset.id;
- uni.showModal({
- title: '',
- content: '确认上门服务?',
- success: function (res) {
- if (res.confirm) {
- util.request(
- api.OrderConfirm,
- {
- orderId: id
- },
- 'POST'
- ).then(function (res) {
- if (res.errno === 0) {
- uni.showToast({
- title: '确认上门成功!'
- });
- util.redirect('/pages/ucenter/order/order');
- } else {
- util.showErrorToast(res.errmsg);
- }
- });
- }
- }
- });
- },
- // “取消订单并退款”点击效果
- refundOrderOld: function (e) {
- let that = this;
- let id = e.currentTarget.dataset.id;
- uni.showModal({
- title: '',
- content: '确定要取消此订单?',
- success: function (res) {
- if (res.confirm) {
- util.request(
- api.OrderRefund,
- {
- orderId: id
- },
- 'POST'
- ).then(function (res) {
- if (res.errno === 0) {
- uni.showToast({
- title: '取消订单成功'
- });
- util.redirect('/pages/ucenter/order/order');
- } else {
- util.showErrorToast(res.errmsg);
- }
- });
- }
- }
- });
- },
- refundError:function(e) {
- console.log(e.detail);
- const { errNo, errMsg } = e.detail;
- console.log("errNo", errNo, "errMsg", errMsg);
- if (errNo === 21514) {
- tt.showToast({
- title: "失败", // 内容
- icon: "none", // 图标
- });
- } else if (errNo === 21513) {
- tt.showToast({
- title: "获取中", // 内容
- icon: "none", // 图标
- });
- }else{
- tt.showToast({
- title: "失败:"+e.detail.errMsg+',errNo:'+e.detail.errNo, // 内容
- icon: "none", // 图标
- });
- }
- },
-
- showRefundDia:function(e){
- let id = e.currentTarget.dataset.id;
- this.setData({
- refundTipShow:true,
- refundId:id
- });
- },
- refundOrder: function (e) {
- this.setData({
- refundTipShow:false
- });
- uni.navigateTo({
- url: '/pages/ucenter/applyRefund/applyRefund?id=' + this.refundId
- });
- },
- buyAgain(e) {
- let id = e.currentTarget.dataset.id;
- uni.navigateTo({
- url: '/pages/goods/goods?id=' + id
- });
- },
- goCheck(e) {
- let id = e.currentTarget.dataset.id;
- uni.navigateTo({
- url: '/pages/ucenter/orderDetail/orderDetail?id=' + id
- });
- },
- goOrderDetailNew(e) {
- let status= e.currentTarget.dataset.status;
- let id = e.currentTarget.dataset.id;
- console.log(status);
- if(status=='未支付'){
- uni.navigateTo({
- url: '/pages/ucenter/orderDetail/orderDetailPay?id=' + id
- });
- }else{
- uni.navigateTo({
- url: '/pages/ucenter/orderDetail/orderDetail?id=' + id
- });
- }
- },
- handleInit(event) {
- const { status } = event.detail;
- console.log(status);
- },
- handleSuccess(event) {
- const { result } = event.detail;
- // 团购订单不支持查看评价,此时可决定按钮是否展示
- console.log(result);
- },
- handleError(event) {
- const { errMsg, errNo } = event.detail;
- // errNo(错误码,对应某种具体报错原因)
- // errMsg(报错信息)
- console.log(errMsg, errNo);
- },
- goSaveQrcode() {
- console.log('占位:函数 goSaveQrcode 未声明');
- },
- hidePoster() {
- console.log('占位:函数 hidePoster 未声明');
- },
- goIM() {
- this.setData({
- refundTipShow:false
- });
- console.info('goIm');
- uni.navigateTo({
- url: '/pages/chat/im/im'
- });
- },
- switchSer(e){
- let serid = e.currentTarget.dataset.serid;
- this.setData({
- serviceId:serid
- });
- },
- appointModifyConf(){
- if(this.serviceId==''||this.serviceId==null){
- uni.showToast({
- title: '请选择要修改的服务',
- icon:'none'
- });
- return false;
- }else{
- this.setData({
- appointDiaShow:false
- });
- uni.navigateTo({
- url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + this.appointOrderId + '&serviceId=' +
- this.serviceId
- });
- }
- },
- closeModify(){
- this.setData({
- appointDiaShow:false
- });
- },
- modifyAppoint(e){
- let id = e.currentTarget.dataset.id;
- let serid = e.currentTarget.dataset.serid;
- let times = e.currentTarget.dataset.times;
- this.setData({
- appointOrderId:id
- });
- if(times>1){
- this.setData({
- appointDiaShow:true,
- serviceId:''
- });
- util.request(
- api.getBooked,
- {orderId: id},
- 'GET'
- ).then(res=> {
- if (res.errno === 0) {
- this.setData({
- serModifyList:res.data
- })
- }
- });
- }else{
- uni.navigateTo({
- url: '/pages/ucenter/appointOrder/appointOrder?orderId=' + id + '&serviceId=' +
- serid
- });
- }
- },
- onCancelClick() {
- },
- cancelAppoint(e){
- let id = e.currentTarget.dataset.id;
- let serid = e.currentTarget.dataset.serid;
- let times = e.currentTarget.dataset.times;
- this.setData({
- appointOrderId:id
- });
- if(times>1){
- this.setData({
- cancelFirstShow:true,
- serviceId:''
- });
- util.request(
- api.getBooked,
- {orderId: id},
- 'GET'
- ).then(res=> {
- if (res.errno === 0) {
- this.setData({
- serModifyList:res.data
- })
- }
- });
- }else{
- this.setData({
- cancelShow:true,
- serviceId:serid
- });
- }
- },
- cancelItemSelect(e) {
- this.setData({
- cancelReason: e.currentTarget.dataset.id
- });
- },
- onCancelPopupClose() {
- this.setData({
- cancelShow: false
- });
- },
- onCancelPopupCloseFir(){
- this.setData({
- cancelFirstShow: false
- });
- },
- cancelFirstConfirm(){
- if(this.serviceId==''||this.serviceId==null){
- uni.showToast({
- title: '请选择要取消的服务',
- icon:'none'
- });
- return false;
- }
- this.setData({
- cancelFirstShow: false,
- cancelShow: true
- });
- },
- cancelItemConfirm() {
- let that = this;
- if (that.cancelReason == '') {
- util.showErrorToast('请选择取消原因');
- return;
- }
- uni.showLoading({
- title: '提交中'
- });
- util.request(
- api.OrderBookCancel, {
- detailId: this.serviceId,
- cancelReason: this.cancelReason
- },
- 'POST'
- ).then((res) => {
- uni.hideLoading();
- if (res.errno === 0) {
- uni.showToast({
- title: '提交成功'
- });
- this.setData({
- cancelShow: false,
- orderList: [],
- page: 1
- });
- this.getOrderList();
- }else{
- uni.showToast({
- title: res.errmsg,
- icon: 'none',
- duration: 2000
- });
- }
- });
- },
- }
- };
- </script>
- <style>
- page {
- /* height: 100%; */
- width: 100%;
- background: #f4f4f4;
- }
- .orders-switch {
- width: 100%;
- background: #fff;
- height: 84rpx;
- /* border-bottom: 1px solid rgba(0,0,0,.15); */
- }
- .orders-switch .item {
- display: inline-block;
- height: 82rpx;
- width: 18%;
- padding: 0 15rpx;
- text-align: center;
- }
- .orders-switch .item .txt {
- display: inline-block;
- height: 82rpx;
- padding: 0 20rpx;
- line-height: 82rpx;
- color: #9a9ba1;
- font-size: 30rpx;
- width: 170rpx;
- }
- .orders-switch .item.active .txt {
- color: #ab956d;
- border-bottom: 4rpx solid #ab956d;
- }
- .no-order {
- width: 100%;
- height: auto;
- margin: 0 auto;
- }
- .no-order .c {
- width: 100%;
- height: auto;
- padding-top: 400rpx;
- }
- .no-order .c text {
- margin: 0 auto;
- display: block;
- width: 258rpx;
- height: 29rpx;
- line-height: 29rpx;
- text-align: center;
- font-size: 29rpx;
- color: #999;
- }
- .orders {
- height: auto;
- width: 750rpx;
- /* overflow: hidden; */
- padding: 0 24rpx;
- margin-top: 110rpx;
- }
- .order {
- /* margin-top: 20rpx; */
- background: #fff;
- padding: 0 24rpx 24rpx 24rpx;
- border-radius: 24rpx;
- margin-bottom: 24rpx;
- }
- .order .h {
- height: 72rpx;
- border-bottom: 2rpx solid #e0e0e0;
- color: #191919;
- font-size: 28rpx;
- font-weight: bold;
- display: flex;
- align-items: center;
- justify-content: space-between;
- }
- .order .h .l {
- }
- .order .h .r {
- }
- .order .goods {
- display: flex;
- /* align-items: center; */
- padding: 24rpx 0 0;
- position: relative;
- }
- .order .goods .img {
- height: 190rpx;
- width: 190rpx;
- background: #f4f4f4;
- }
- .order .goods .img image {
- height: 190rpx;
- width: 190rpx;
- overflow: hidden;
- border-radius: 10rpx;
- }
- .order .goods .info {
- height: 145.83rpx;
- flex: 1;
- padding-left: 20rpx;
- }
- .info-orderSn {
- font-size: 28rpx;
- font-weight: bold;
- }
- .info-main {
- display: flex;
- height: 40rpx;
- align-items: center;
- justify-content: space-between;
- /* margin-bottom: 58rpx; */
- }
- .info .sku-name {
- color: #666666;
- font-size: 24rpx;
- margin: 10rpx 0;
- height: 34rpx;
- line-height: 34rpx;
- display: flex;
- justify-content: space-between;
- }
- .product-name {
- line-height: 40rpx;
- font-size: 28rpx;
- /* padding-left: 20rpx;
- text-indent: -16rpx; */
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- width: 328rpx;
- font-weight: bold;
- color: rgba(0, 0, 0, 0.9);
- }
- .info-main .price {
- color: rgba(0, 0, 0, 0.9);
- font-size: 24rpx;
- font-weight: bold;
- }
- .info .other-info {
- font-size: 24rpx;
- color: rgba(0, 0, 0, 0.9);
- line-height: 34rpx;
- }
- .order .goods .status {
- width: 105rpx;
- color: #b4282d;
- font-size: 25rpx;
- }
- .order .b {
- height: 44rpx;
- line-height: 44rpx;
- /* border-top: 1px solid #f4f4f4; */
- font-size: 26rpx;
- color: #666;
- text-align: right;
- }
- .order .b text {
- font-size: 24rpx;
- color: rgba(0, 0, 0, 0.9);
- font-weight: bold;
- }
- .order .b .l {
- /* float: left; */
- }
- .order .b .r {
- float: right;
- }
- .order .b .btn {
- margin-top: 19rpx;
- height: 64.5rpx;
- line-height: 64.5rpx;
- text-align: center;
- padding: 0 20rpx;
- border-radius: 5rpx;
- font-size: 28rpx;
- color: #fff;
- background: #b4282d;
- }
- .order-operate-wrapper {
- /* height: 80rpx; */
- display: flex;
- align-items: center;
- justify-content: flex-end;
- flex: 1;
- flex-wrap: wrap;
- border-top: 2rpx solid #e0e0e0;
- padding: 10rpx 0 12rpx;
- margin: 20rpx 0 0;
- }
- /* .order-operate-wrapper::after {
- content: '';
- flex: auto;
- } */
- .order-operate-wrapper > view {
- text-align: center;
- font-size: 28rpx;
- color: #fff;
- margin-left: 20rpx;
- width: 190rpx;
- height: 72rpx;
- line-height: 72rpx;
- background: linear-gradient(90deg, #ff9c49 0%, #ff8219 100%);
- border-radius: 72rpx;
- margin-top: 10rpx;
- font-weight: bold;
- }
- .order-operate-wrapper > view.del {
- border: 2rpx solid #d8d8d8;
- /* color: #666666; */
- color: rgba(0,0,0,0.85);
- background: #fff;
- }
- .order-operate-wrapper > view.appoint {
- background: linear-gradient(90deg, #00baff 0%, #008dff 100%);
- }
- .myqr {
- position: fixed;
- z-index: 999;
- width: 100%;
- text-align: center;
- height: auto;
- padding-top: 50rpx;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- }
- .myqr .cancel {
- width: 60rpx;
- height: 60rpx;
- margin-top: 30rpx;
- margin-left: 480rpx;
- }
- .myqr .img {
- width: 480rpx;
- }
- .myqr .btn {
- width: 120rpx;
- height: 120rpx;
- line-height: 120rpx;
- margin-top: 20rpx;
- padding: 30rpx;
- background: #ffffff;
- border-radius: 60rpx;
- }
- /* 会员卡蒙层的样式 */
- .poster {
- position: fixed;
- top: 0;
- bottom: 0;
- right: 0;
- left: 0;
- background-color: #333333d1;
- /* padding: 0rpx 80rpx;
- padding-top: 20%;*/
- z-index: 99;
- height: 100%;
- text-align: center;
- justify-content: center;
- align-items: center;
- display: flex;
- }
- .title {
- color: #fff;
- margin: 20rpx 0;
- font-size: 30rpx;
- }
- .ads {
- margin: 10rpx 0rpx;
- color: #fff;
- }
- .tool {
- display: flex;
- text-align: center;
- justify-content: baseline;
- width: 100%;
- margin-top: 20rpx;
- }
- .tool view {
- flex: 1;
- }
- .img {
- width: 99rpx;
- }
- .closeImg {
- width: 57rpx;
- height: 57rpx;
- }
- .share-btn {
- background-color: transparent;
- }
- .share-btn::after {
- border: none;
- }
- .m-card {
- width: 100%;
- height: 230rpx;
- margin: 20rpx 0;
- }
- .m-card image {
- width: 100%;
- height: 230rpx;
- }
- .appoint-tabs-wrapper {
- height: 88rpx;
- display: flex;
- align-items: center;
- line-height: 88rpx;
- justify-content: space-around;
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- background: #fff;
- z-index: 99;
- }
- .appoint-tab-item {
- font-weight: bold;
- font-size: 30rpx;
- color: #191919;
- /* width:80rpx; */
- }
- .appoint-tab-item.active {
- color: #fe2b54;
- /* border-bottom:4rpx solid #09afff; */
- }
- .detail-btn {
- width: 148rpx;
- text-align: center;
- line-height: 60rpx;
- text-align: center;
- font-size: 26rpx;
- color: #00b9ff;
- margin-top: -20rpx;
- /* margin-left:340rpx; */
- width: 170rpx;
- height: 60rpx;
- background: #ffffff;
- border: 2rpx solid #00b9ff;
- border-radius: 60px;
- float: right;
- }
- .status-tips {
- height: 56rpx;
- background: #ebebeb;
- border-radius: 10rpx;
- display: flex;
- align-items: center;
- padding: 0 0 0 16rpx;
- margin-top: 24rpx;
- }
- .status-tips image {
- width: 36rpx;
- height: 32rpx;
- }
- .status-tips view {
- font-size: 24rpx;
- color: #2e3333;
- }
- .status-tips .tips-title {
- color: #191919;
- font-weight: bold;
- margin: 0 16rpx;
- }
- .customer-msg {
- background: #ebebeb;
- border-radius: 10rpx;
- display: flex;
- padding: 12rpx 16rpx;
- margin-top: 24rpx;
- }
- .customer-msg .msg-title {
- color: #fe2b54;
- font-weight: bold;
- font-size: 24rpx;
- white-space: nowrap;
- }
- .customer-msg .msg-text {
- line-height: 34rpx;
- display: -webkit-box;
- -webkit-box-orient: vertical;
- -webkit-line-clamp: 2;
- text-overflow: ellipsis;
- overflow: hidden;
- font-size: 24rpx;
- color: #000000;
- }
- .over-time {
- position: absolute;
- top: 170rpx;
- right: 0;
- line-height: 40rpx;
- color: #ad0000;
- font-size: 28rpx;
- }
- .eval-btn {
- text-align: center;
- font-size: 24rpx;
- color: #fff;
- margin-left: 20rpx;
- width: 160rpx;
- height: 56rpx;
- line-height: 56rpx;
- background: linear-gradient(90deg, #ff9c49 0%, #ff8219 100%);
- border-radius: 56rpx;
- margin-top: 10rpx;
- border: 2rpx solid #ff8219;
- color: #ff8219;
- background: #fff;
- }
- .order-operate-wrapper view.eval-btn {
- border: 2rpx solid #ff8219;
- color: #ff8219;
- background: #fff;
- }
- .tips-item{
- background: #fff;
- border-radius:12rpx;
- padding:30rpx 0rpx 0;
- margin-bottom: 20rpx;
- }
- .tips-item-title{
- display: flex;
- height:40rpx;
- align-items: center;
- justify-content: space-between;
- margin-bottom:20rpx;
- padding:0 32rpx;
- }
- .item-title-left{
- display: flex;
- align-items: center;
- }
- .item-title-left image{
- width:28rpx;
- height:28rpx;
- margin-right:8rpx;
- }
- .item-title-left text{
- font-size: 28rpx;
- font-weight: bold;
- color:#333;
- }
- .item-title-right{
- height: 34rpx;
- background: #FFFFFF;
- border-radius: 4rpx;
- border: 1rpx solid #5FB306;
- padding:0 8rpx;
- line-height: 34rpx;
- font-size: 22rpx;
- color: #5FB306;
- }
- .tips-item-line{
- display: flex;
- height:44rpx;
- margin-bottom:20rpx;
- align-items: center;
- justify-content: space-between;
- padding:0 32rpx;
- }
- .tips-item-line .line-left{
- font-size: 28rpx;
- color: #999999;
- }
- .tips-item-line .line-right{
- font-size: 28rpx;
- color: #333333;
- font-weight: bold;
- width:500rpx;
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- text-align: right;
- }
- .line-right text{
- color: #5FB306;
- }
- .tips-item-content{
- background: #FF4447;
- border-radius: 0rpx 0rpx 14rpx 14rpx;
- padding:24rpx 24rpx 24rpx 32rpx;
- line-height: 40rpx;
- font-size: 28rpx;
- color: rgba(255,255,255,0.9);
- }
- .order-devide{
- height:40rpx;
- margin-bottom:20rpx;
- display: flex;
- align-items: center;
- justify-content: space-between;
- padding:0 4rpx;
- }
- .order-devide .line{
- width: 290rpx;
- height: 1rpx;
- background: #979797;
- }
- .order-devide .devide-text{
- font-size: 28rpx;
- color: #999999;
- }
- /* 退款弹框 */
- .refund-order-overlay {
- width: 750rpx;
- height: 100vh;
- background: rgba(0, 0, 0, 0.5);
- display: flex;
- align-items: center;
- justify-content: center;
- position: fixed;
- top: 0;
- bottom: 0;
- z-index:999;
- flex-direction: column;
- }
- .refund-order-dialog {
- width: 606rpx;
- height: 644rpx;
- border-radius: 14rpx;
- background: #ffffff;
- border-radius: 20rpx;
- position: relative;
- padding: 300rpx 30rpx 40rpx;
- background: url('https://jzmall.lifejingzhi.com/file/jzmall-dy/dia-bg-refund.png') no-repeat;
- background-color: #FFFFFF;
- background-size: 606rpx 210rpx;
- }
- .refund-order-dialog.refund-order-dia-success{
- padding: 200rpx 30rpx 40rpx;
- background-image: url('https://jzmall.lifejingzhi.com/file/jzmall-dy/dia-bg-refund-success.png');
- height:auto;
- }
- .refund-order-dia-success .dia-btn-wrapper{
- justify-content: center;
- }
- .refund-order-dia-success .dia-cancel-btn{
- width:484rpx;
- font-weight: bold;
- border: 2rpx solid #0093FF;
- color: #0093FF;
- }
- .refund-dia-title {
- height: 56rpx;
- font-weight: bold;
- font-size: 40rpx;
- color: rgba(0,0,0,0.85);
- line-height: 56rpx;
- text-align: center;
- margin:60rpx 0 34rpx;
- }
- .refund-dia-tips {
- width: 540rpx;
- color: #333333;
- line-height: 46rpx;
- font-size: 32rpx;
- color: rgba(0,0,0,0.85);
- text-align: center;
- white-space: wrap;
- margin-bottom: 120rpx;
- font-weight: bold;
- }
- .dia-btn-wrapper {
- height:94rpx;
- display: flex;
- justify-content: space-between;
- }
- .dia-cancel-btn{
- width: 248rpx;
- height: 94rpx;
- line-height: 94rpx;
- border-radius: 94rpx;
- border: 2rpx solid #0093FF;
- font-size: 32rpx;
- color: #0093FF;
- /* font-weight: bold; */
- text-align: center;
- }
- .dia-conf-btn{
- width: 258rpx;
- height: 94rpx;
- line-height: 94rpx;
- border-radius: 94rpx;
- font-size: 32rpx;
- color: #fff;
- font-weight: bold;
- background: #0093FF;
- text-align: center;
- }
- .modify-list{
- margin:0 0 44rpx;
- max-height: 400rpx;
- overflow-y: scroll;
- }
- .modify-item{
- height: 46rpx;
- margin-bottom:18rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- line-height:46rpx;
- }
- .modify-item image{
- width:30rpx;
- height:30rpx;
- margin-right:16rpx;
- }
- .modify-item view{
- font-size: 32rpx;
- color: rgba(102,102,102,0.85);
- }
- .modify-item view.current-modify{
- color: rgba(0,0,0,0.85);
- font-weight: bold;
- }
- .modify-close{
- width:80rpx;
- height:80rpx;
- margin-top:58rpx;
- }
- .warning-color {
- background: linear-gradient(90deg, #af4318 0%, #c96405 100%) !important;
- }
- /* 选择备注 */
- .appoint-overlay-wrapper.remark-overlay {
- display: flex;
- align-items: flex-end;
- justify-content: center;
- position: fixed;
- top: 0;
- left: 0;
- width: 100%;
- height: 100%;
- background-color: rgba(0, 0, 0, 0.7);
- z-index: 999;
- }
- .remark-select {
- width: 750rpx;
- padding: 0 24rpx 56rpx;
- background: #ffffff;
- border-radius: 24rpx 24rpx 0 0;
- }
- .remark-select .title {
- font-weight: 600;
- color: #191919;
- font-size: 30rpx;
- height: 90rpx;
- line-height: 90rpx;
- text-align: center;
- border-bottom: 2rpx solid #e0e0e0;
- }
- .remark-item .remark-value {
- color: #191919;
- font-size: 26rpx;
- font-weight: bold;
- flex: 1;
- text-align: left;
- }
- .remark-list .remark-item {
- height: 84rpx;
- display: flex;
- border-bottom: 2rpx solid #e0e0e0;
- align-items: center;
- }
- .remark-item .radio-img {
- width: 26rpx;
- height: 26rpx;
- }
- .remark-conf-btn {
- width: 652rpx;
- height: 90rpx;
- line-height: 90rpx;
- border-radius: 90rpx;
- border: 4rpx solid #ff8219;
- text-align: center;
- font-size: 36rpx;
- color: #ff8219;
- margin: 0 auto;
- margin-top: 54rpx;
- }
- .remark-list .remark-item.ser-item{
- border:none;
- background: #B5EDFF;
- border-radius: 12px;
- height:130rpx;
- padding:0 30rpx;
- margin-bottom:24rpx;
- }
- .remark-list .remark-item.ser-item.current-ser{
- background: #FA6400;
- }
- .remark-item.ser-item .remark-value{
- color:#666;
- font-size: 32rpx;
- font-weight:normal;
- flex:1;
- }
- .remark-item.ser-item view{
- color:#666;
- font-size: 32rpx;
- font-weight:normal;
- }
- .remark-item.ser-item.current-ser .remark-value{
- color:#fff;
- font-weight:bold;
- }
- .remark-item.ser-item.current-ser view{
- color:#fff;
- font-weight:bold;
- }
- .remark-item.ser-item .radio-img{
- width:30rpx;
- height:30rpx;
- margin-right:26rpx;
- }
- .ser-right{
- text-align:right;
- }
- .remark-list.ser-list{
- min-height:500rpx;
- max-height: 800rpx;
- overflow-y: scroll;
- }
- .remain-content{
- height: 50rpx;
- background-color: #B5EDFF;
- color: #000;
- line-height: 50rpx;
- border-radius: 12rpx;
- font-size: 24rpx;
- font-weight: bold;
- padding-left: 20rpx;
- }
-
- .paybt{
- display: inline-block;
- color: #606060;
- border: 2rpx solid #ccc;
- height: 96rpx;
- padding: 0 32rpx;
- border-radius: 56rpx;
- font-size: 40rpx;
- line-height: 96rpx;
- }
- </style>
|