123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170 |
- <view class="service-detail-page">
- <view class="order-main-top">
- <view class="order-main-left">
- <view class="order-detail-status">
- {{orderBook.status==3||orderBook.status==4?'订单已完成':(orderBook.status==6?'订单已取消':'订单服务中')}}
- </view>
- <view class="order-detail-des" wx:if="{{orderBook.status==2&&bookCount>=1}}">
- 您剩余{{bookCount}}次保洁次卡可预约
- </view>
- </view>
- <view class="order-main-right">
- <view class="service-times">
- <text class="current-times">{{orderBook.servicedTimes}}</text>/{{orderBook.serviceTimes}}
- </view>
- </view>
- </view>
- <!-- 地址信息 -->
- <view class="address-box" wx:if="{{!isHaveAddress}}">
- <view class="address-item" bindtap="selectAddress"
- wx:if="{{checkedAddress.addressId > 0&&checkedAddress.address}}">
- <image class="map-icon" mode="aspectFit" src='/static/images/address/dingwei.png'></image>
- <view class="m">
- <text class="address">{{checkedAddress.address}}</text>
- <view class="address-bottom">
- <text class="user-name">{{checkedAddress.name}}</text>
- <text>{{checkedAddress.tel}}</text>
- </view>
- </view>
- <view class="r">
- <van-icon name="arrow" />
- </view>
- </view>
- <view class="address-item address-empty" bindtap="selectAddress" wx:else>
- <view class="m">
- 还没有收货地址,去添加
- </view>
- <view class="r">
- <van-icon name="arrow" />
- </view>
- </view>
- </view>
- <!-- 订单详情信息 -->
- <view class="service-info">
- <view class="info-title">
- {{orderBook.goodsName}} 鲸致生活
- </view>
- <view class="info-content">
- <image mode="aspectFill" class="product-img" src="{{goods.picUrl}}"></image>
- <view class="info-detail">
- <!-- <view>规格:1</view> -->
- <view>服务次数:{{orderBook.serviceTimes}}</view>
- <view>未预约次数:{{noAppoint}}</view>
- <view>单价:¥ {{goods.retailPrice}} 元</view>
- </view>
- </view>
- </view>
- <!-- 次卡列表 -->
- <van-tabs active="{{ activeTab }}" color="#09afff" bind:change="onTabChange">
- <van-tab title="未使用" name="1"></van-tab>
- <van-tab title="已使用" name="2"></van-tab>
- </van-tabs>
- <view class="service-list">
- <view class="service-item" wx:for="{{serList}}" wx:key="index">
- <view class="service-item-top">
- <view class="item-left">
- <image mode="aspectFit" class="ci-img" src="/static/images/icon-ci.png"></image>
- <text>服务次卡</text>
- </view>
- <!-- <view class="service-item-status">{{activeTab=='2'?'服务已完成':(item.status===0?("未预约"):(item.status===7?"匹配中":'待履约'))}}</view> -->
- <view class="service-item-status">{{activeTab=='2'?'服务已完成':(item.status==0?("未预约"):'待履约')}}</view>
- </view>
- <view class="service-item-bottom">
- <view class="service-time">
- <text>预约时间:</text>
- <text>{{item.bookTime==null?'':item.bookTime}}</text>
- </view>
- <!-- <view class="service-time">
- <text>服务者:</text>
- <text>{{item.servantName==null?'':item.servantName}}</text>
- </view> -->
- <!-- 0-未预约,1-已预约,2-服务中,3-服务已提供,4-服务已完成,5-取消 未付款,6-退款 orderChannel==25-->
- <view class="go-appoint" wx:if="{{item.status===0&&activeTab=='1'&&(aftersaleStatus!=1&&aftersaleStatus!=2)}}"
- bindtap="showAppoint" data-id="{{item.id}}" data-status="{{item.status}}" data-bookid="{{item.bookId}}"> 预约</view>
- <view class="go-appoint" wx:if="{{(item.status==1||item.status==7)&&activeTab=='1'&&goods.type!=4}}" bindtap="showAppoint" data-id="{{item.id}}" data-bookid="{{item.bookId}}"
- data-status="{{item.status}}" data-time="{{item.bookTime}}">修改预约</view>
- <view class="go-appoint" wx:if="{{item.checkAcceptState==1}}" bindtap="goReVisit" data-id="{{item.id}}">去验收</view>
-
- </view>
- </view>
- </view>
- <view class="no-list" wx:if="{{serList.length==0}}">没有更多了</view>
- <!-- custom-style="height: 80%" -->
- <van-popup show="{{ choosePopup }}" round position="bottom" bind:click-overlay="onClose">
- <view class="popup-wrapper popup-wrapper-special">
- <!-- 标题 -->
- <view class="popup-title popup-title-special popup-title-new">
- <view> 选择服务开始时间
- </view>
- <view wx:if="{{selectTimeValue>=17}}" class="fee-tips">您选的时间段可能会加收夜间服务费,具体以与商家的沟通为准</view>
- </view>
- <block>
- <view class="popup-content popup-content-special">
- <view class="time-select-left">
- <view wx:for="{{dateList}}" wx:key="index" class="time-select-left-item" bindtap="dateCheck"
- data-index="{{index}}" data-week="{{item.week}}" data-date="{{item.date}}" data-isbook="{{item.isBook}}">
- <view class="{{dateIndex==index?'current-date':''}}">{{item.bookdate+' '+item.weekOfDay}}</view>
- <view>
- <!-- <view hidden="{{index>1}}" class="date-tag">{{index==0?'明天':'后天'}}</view>
- <text wx:if="{{index<=1||(index<=7&&(item.week=='周六'||item.week=='周日'))}}" class="full-time">约满</text> -->
- <text wx:if="{{index<=1}}" class="date-tag">{{index==0?'今天':'明天'}}</text>
- <!-- <text wx:if="{{item.mark}}" class="full-time">{{item.mark}}</text> -->
- </view>
-
- </view>
- </view>
- <view class="time-select-right">
- <view class="noon-select" >
- <view class="noon-item {{noonType=='1'?'active-noon':''}}" data-noon="1" bindtap="noonTab">上午</view>
- <view class="noon-item {{noonType=='2'?'active-noon':''}}" data-noon="2" bindtap="noonTab">下午</view>
- </view>
- <view class="time-item-wrapper">
- <view wx:for="{{timeList}}" wx:key="id" class="time-select-right-item {{item.timeMsg?'invalid-time':''}}" bindtap="timeCheck"
- data-stock="{{item.stock}}" data-index="{{index}}"
- data-msg="{{item.timeMsg}}"
- >
- <!-- <view class="{{item.stock<=0?'zero-stock':''}}"> -->
- <view class="time-line">
- <text class="{{timeIndex===index?'current-date':''}}">{{item.begin}} </text>
- <!-- <text class="stock-text">(库存:{{item.stock}})</text> -->
-
- </view>
- <view wx:if="{{item.timeMsg&&item.timeMsg!=null}}" class="time-msg">
- {{item.timeMsg}}
- </view>
- <view wx:if="{{timeIndex===index}}" class="date-tag">已选</view>
- <!-- <view wx:if="{{timeIndex===index&&item.time>='17:00'}}" style="font-size: 11px;line-height: 12px;">您选的时间段可能会加收夜间服务费,具体以与商家的沟通为准</view> -->
-
- </view>
- </view>
- </view>
- </view>
- </block>
- </view>
- <!-- 确认按钮 -->
- <view class="popup-btn-wrapper">
- <van-button type="info" block round bindtap="confirmTime">确定</van-button>
- </view>
- </van-popup>
- </view>
|