113 lines
4.2 KiB
Plaintext
113 lines
4.2 KiB
Plaintext
<!--packageH/installationSever/installationSeverHome/installationSeverHome.wxml-->
|
|
<van-tabs active="{{ active }}" title-active-color="#f15354" bind:change="bindChangeActive" ellipsis="{{false}}">
|
|
<van-tab wx:for="{{titleArr}}" title="{{item.name}}"></van-tab>
|
|
</van-tabs>
|
|
|
|
<view class="location">
|
|
<view class="leftIcon">
|
|
<icon class="iconfont icon-zx_map_locate2"></icon>
|
|
{{location.address}}
|
|
</view>
|
|
<i class="iconfont icon-member_right"></i>
|
|
</view>
|
|
|
|
|
|
<!-- 抢单内容 -->
|
|
<view class="grab" wx:for="{{listData}}" wx:if="{{networkLoading && listData.length>0}}" wx:key="order_id"
|
|
bindtap="gotoDetails" data-order_id="{{item.order_id}}">
|
|
<view class="orderIds" wx:if="{{active == 0}}">订单号:{{item.order_sn}}</view>
|
|
<view class="allOrderIds" wx:if="{{active != 0}}">
|
|
<text>订单号:{{item.order_sn}}</text>
|
|
<text>{{item.state_name}}</text>
|
|
</view>
|
|
<view class="masterUser">
|
|
<view class="masterLeft">
|
|
<view class="imgbox">
|
|
<image src="{{item.avatar}}"></image>
|
|
</view>
|
|
<view class="userDetail">
|
|
<text style="font-size: 0.94rem">{{item.nickname}}</text>
|
|
<view class="memberPhone">
|
|
{{item.mobile}}
|
|
<icon class="iconfont icon-service_m" data-mobile="{{item.mobile}}" catchtap="makePhoneCall"
|
|
wx:if="{{active!=0}}"></icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="masterRight">{{item.distance}}</view>
|
|
</view>
|
|
<view class="locationGrab">
|
|
<view class="locationLeft">
|
|
<i class="iconfont icon-icon_location"></i>
|
|
<text class="locationName">{{item.address}}</text>
|
|
</view>
|
|
<icon class="iconfont icon-zx_map_local" data-item="{{item}}" catchtap="openLocation"></icon>
|
|
</view>
|
|
<view class="shopBox">
|
|
<view class="shopTitle">预约安装时间:{{item.reserve_time}}</view>
|
|
<view class="shoplist" wx:for="{{item.goods_list}}" wx:for-item="good" wx:for-index="gindex"
|
|
wx:key="{{gindex}}">
|
|
<view style="display: flex; align-items: center">
|
|
<view class="image">
|
|
<image src="{{good.thumb}}"></image>
|
|
</view>
|
|
<text style="margin-left: 0.5rem; font-size: 0.81rem">共{{good.total}}件</text>
|
|
</view>
|
|
|
|
<text style="font-size: 0.75rem">服务费:¥{{item.service_amount}}</text>
|
|
</view>
|
|
</view>
|
|
<!-- 抢单大厅 -->
|
|
<view class="rob" wx:if="{{active == 0}}" wx:for="{{item.button_group}}" wx:for-item="btn" wx:for-index="bindex"
|
|
data-index="{{bindex}}" data-btn="{{btn}}" catchtap="bindBtnClick" data-order_id="{{item.order_id}}"
|
|
wx:key="{{bindex}}">{{btn.name}}</view>
|
|
<!-- 全部订单 -->
|
|
<view class="allOrder" wx:if="{{active == 1 || active == 2 || active == 3 || active == 4}}">
|
|
|
|
<view class="allItem" wx:for="{{item.button_group}}" wx:for-item="btn" wx:for-index="bindex"
|
|
data-index="{{bindex}}" data-btn="{{btn}}" catchtap="bindBtnClick" data-order_id="{{item.order_id}}"
|
|
wx:key="{{bindex}}">{{btn.name}}</view>
|
|
<!-- <view class="allItem" bindtap="setCodeShow">取货码</view>
|
|
<view class="allItem">上门安装</view>
|
|
<view class="allItem" bindtap="setPictureShow">完成</view> -->
|
|
</view>
|
|
</view>
|
|
|
|
<view wx:if="{{networkLoading && listData.length==0}}" class="blank">
|
|
<image src='https://mini-app-img-1251768088.cos.ap-guangzhou.myqcloud.com/blank.png' mode='widthFix' />
|
|
</view>
|
|
|
|
|
|
|
|
<van-popup custom-style="border-radius: 10rpx;" show="{{codeShow}}" bind:close="setCodeShow">
|
|
<view class="qrcodeBox">
|
|
<view class="top">
|
|
<view class="title">{{codeText}}</view>
|
|
<icon class="iconfont icon-guanbi" catchtap="setCodeShow"></icon>
|
|
</view>
|
|
<view class="img">
|
|
<image mode="aspectFill" show-menu-by-longpress src="{{takeCodeImageUrl}}"></image>
|
|
</view>
|
|
</view>
|
|
</van-popup>
|
|
|
|
|
|
|
|
<van-popup show="{{ pictureShow }}" bind:close="setPictureShow" round position="bottom" closeable
|
|
custom-style="height: 70%">
|
|
<view class="pictureWrapper">
|
|
<view class="title">请上传安装完成图片</view>
|
|
<view style="overflow:scroll;max-height: calc(100% - 80rpx);">
|
|
<view class="pictureList">
|
|
<view class="picItem" wx:for="{{pictureList}}" style="background-image:url({{item}});"></view>
|
|
<view class="imgBox" catchtap="onRead_2">
|
|
<van-icon name='plus' class="iconfont" size="40px" color="#999999"></van-icon>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="btnWrapper" bindtap="sendImageBtn">
|
|
<view class="btn">完成</view>
|
|
</view>
|
|
</view>
|
|
</van-popup> |