1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- <view class="myqr" wx:if="{{myqr_show}}">
- <view>
- <image class="cancel" src="/static/images/cancel.png" bindtouchstart="qrtouchstart" ></image>
- </view>
- <view>
- <image class="img" src="{{myqr_url}}"mode="widthFix" />
- </view>
- <view>
- <image class="btn" style="float:unset" bindtap="saveShare" src="/static/images/right.png" />
- </view>
- </view>
- <view class="container">
- <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>
- <view class="no-order" wx:if="{{orderList.length <= 0}}">
- <view class="c">
- <text>还没有任何工单呢</text>
- </view>
- </view>
- <view class="orders">
- <view class="content" wx:for="{{orderList}}" wx:for-item="detail" wx:key="detail">
- {{detail.dateStr}}
- <span wx:if="{{detail.dateStr}}">(</span>
- {{detail.weekStr}}
- <span wx:if="{{detail.dateStr}}">)</span>
- {{detail.bookDate}}
- <view class='book' wx:for="{{detail.details}}" wx:for-item="item" wx:key="item">
- <view>
- <view class="status">{{item.status}}</view>
- <view class="bookname">{{item.bookTime}}</view>
- <view class="address">{{item.address}}</view>
- <view class="goodsname">{{item.goods_name}}</view>
- </view>
- <view class="tool">
- <button class="btn" bindtap="openMap" data-lng="{{item.lng}}" data-lat="{{item.lat}}" data-address="{{item.address}}">地图</button>
- <button class="btn" bindtap="shareGoods" data-id="{{item.goodsId}}">开单</button>
- <button class="btn" data-mobile="{{item.mobile}}" bindtap="makeCall">联系客户</button>
- <button wx:if="{{item.statusId==1}}" class="btn" style="color:red" data-id="{{item.id}}" bindtap="goProvideBook">完成工单</button>
- </view>
- </view>
-
- </view>
-
- </view>
- </view>
|