| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <!--index.wxml-->
- <wxs src="../../wxs/tool.wxs" module="tool"></wxs>
- <view class="index">
- <scroll-view class="scroll-box" scroll-y="true" show-scrollbar="{{false}}" enhanced="true" bindscrolltolower="more">
- <view class="box theme-colors" style="padding-top:{{safeTop}};">
- <view class="address">
- <view class="z-flex-c" style="height: {{menuH}};box-sizing: content-box;">
- <image class="address-img z-padding-lr-32" src="../../static/index/address.png"></image>
- <text class="address-text">{{address.name}}</text>
- </view>
- <view class="z-font-24 job-text">工号:{{code}}</view>
- </view>
- <view class="last-site z-font-24 z-flex-c z-padding-lr-24 z-margin-t-16">
- <view>上次位置:{{lastAddress}}</view>
- <view bindtap="notice" class=" z-flex-0">
- <image class="update-img z-margin-r-8" src="../../static/index/update.png"></image>
- <text class="z-font-22 update-site-text">更新位置</text>
- </view>
- </view>
- <view class="z-flex-c-s-b serve-box z-margin-t-30">
- <view bind:tap="toServerTime" class="serve-t">服务时间</view>
- <view class="switch">
- <text class="z-font-26 underway">{{checked ? '接单中' : '休息中'}}</text>
- <van-switch active-color="#FF9600" inactive-color="#FFF" checked="{{ checked }}" bind:change="onChange" />
- </view>
- </view>
- </view>
- <view class="circle"></view>
- <!-- 公告 -->
- <view class="z-flex-c-s-b z-padding-lr-24 z-radius-8 notice-box" wx:if="{{config.skill_notice}}">
- <image class="notice-img z-margin-r-24" src="../../static/index/notice.png"></image>
- <van-notice-bar class="z-flex-1" color="#1677FF" background="#fff" text="{{config.skill_notice}}" />
- </view>
- <view class="z-flex-c-s-b z-margin-lr-32 waiting-box" bindtap="order">
- <view class="waiting-each">
- <view class="z-padding-t-16 z-text-c">待服务:{{orderCount[0].count || 0}}单</view>
- <view class="z-text-c z-padding-t-16 time-text">今天</view>
- </view>
- <view class="waiting-each">
- <view class="z-padding-t-16 z-text-c">待服务:{{orderCount[1].count || 0}}单</view>
- <view class="z-text-c z-padding-t-16 time-text">明天</view>
- </view>
- <view class="waiting-each">
- <view class="z-padding-t-16 z-text-c">待服务:{{orderCount[2].count || 0}}单</view>
- <view class="z-text-c z-padding-t-16 time-text">后天</view>
- </view>
- </view>
- <!-- 项目列表 -->
- <view class="item-list-box">
- <view class="z-padding-32 z-margin-t-32 item-each" wx:for="{{list}}" bindtap="detail" data-id="{{item.id}}">
- <view class="z-flex-c-s-b">
- <view class="item-each-text">
- <view>
- <text class="time-yy">预约时间</text>
- <text class="z-margin-l-16 type-text">{{item.orderDetail.name}}</text>
- </view>
- <!-- 时间 -->
- <view class="time z-margin-tb-16">
- <text class="time-date">{{tool.formatTime(item.starttime,'mm-dd')}}</text>
- <text class="z-margin-l-16 time-hour theme-color">{{tool.formatTime(item.starttime,'HH:MM')}}</text>
- </view>
- <!-- 价格 -->
- <view class="price-unit">¥ <text class="z-font-32 price-number">{{item.payprice}}</text> </view>
- </view>
- <image class="item-each-img" mode="aspectFill" src="{{tool.cdn(item.orderDetail.image)}}"></image>
- </view>
- <view class="z-margin-tb-30 wire"></view>
- <view class="item-underway z-flex-c-s-b">
- <view class="underway-text" wx:if="{{item.status == 2}}">待出发</view>
- <view class="underway-text" wx:if="{{item.status == 3}}">已出发</view>
- <view class="underway-text" wx:if="{{item.status == 4}}">已到达</view>
- <view class="underway-text" wx:if="{{item.status == 5}}">服务中</view>
- </view>
- </view>
- <van-empty description="暂无订单" wx:if="{{finish && list.length === 0}}" />
- <login wx:if="{{!token}}" />
- </view>
- </scroll-view>
- </view>
- <!-- 弹出层 -->
- <van-popup round show="{{ show }}" bind:close="onClose">
- <view class="popup-box">
- <image class="z-margin-t-40 location-img" src="../../static/index/location.png"></image>
- <view class="z-font-30 z-text-c z-margin-t-9">位置更新成功</view>
- <view class="z-margin-t-32 z-text-c location-btn" bind:tap="onClose">确定</view>
- </view>
- </van-popup>
|