You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
89 lines
4.1 KiB
89 lines
4.1 KiB
<!--pages/member/myclean.wxml-->
|
|
<cu-custom bgColor="bg-blue" isBack="{{true}}">
|
|
<view slot="backText">返回</view>
|
|
<view slot="content">我的保洁</view>
|
|
</cu-custom>
|
|
|
|
<view class="cu-bar bg-white solid-bottom margin-top">
|
|
<view class="action">
|
|
<text class="cuIcon-title text-orange "></text> 我的保洁任务
|
|
</view>
|
|
<view class="padding-sm">
|
|
已完成:
|
|
<switch bindchange="isClean" checked="{{data.member.is_clean ? true : false}}"></switch>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="cu-card dynamic">
|
|
<block wx:for="{{orders}}" wx:for-item="order" wx:for-index="idx">
|
|
<view class="cu-item shadow">
|
|
<view class="text-content">
|
|
<view class="cu-avatar round lg bg-white"
|
|
style="background-image:url({{ order.photo ? order.photo : 'https://xunxibaoapi.yaoyz.com/upload/share/yy.png' }});">
|
|
<!-- <view class="cu-tag badge">99+</view> -->
|
|
</view>
|
|
{{order.name}} {{order.door_number}}
|
|
<view bindtap="phoneCall" data-phone="{{order.phone}}" class="cu-tag bg-green "
|
|
style="margin-top:30rpx;float:right;" wx:if="{{userInfo.is_clean == 1}}"> 呼叫房东 </view>
|
|
</view>
|
|
<view class="grid flex-sub padding-lr col-3 grid-square">
|
|
<view class="bg-img" wx:for="{{order.picture}}" bindtap="preview" data-one="{{idx}}" data-two="{{index}}"
|
|
style="background-image:url({{item}});"></view>
|
|
</view>
|
|
<view class="text-gray text-sm text-right padding">
|
|
<view class="tmargin-lr-xs clean-date">打扫时间:
|
|
<block wx:if="{{is_complete==1}}"><text class="text-red">{{order.complete_time}}</text></block>
|
|
<block wx:else><text class="text-red">{{order.create_time}}</text></block>
|
|
</view>
|
|
<!-- <block wx:if="{{order.complete_time}}">
|
|
<view bindtap="goCommont" data-id="{{order.id}}" data-idx="{{idx}}">
|
|
<text class="cuIcon-messagefill margin-lr-xs"></text> 评价</view>
|
|
</block> -->
|
|
<block wx:if="{{ order.service_openid && userInfo.openid == order.service_openid && !order.complete_time}}">
|
|
<view catchtap="goComplete" data-id="{{order.id}}" data-orderno="{{order.order_no}}" class="cu-tag bg-cyan">打扫
|
|
</view>
|
|
</block>
|
|
<block wx:if="{{order.complete_time}}">
|
|
<view catchtap="goMap" data-index="{{idx}}" class="cu-tag" style="margin:0;"> 已完成 </view>
|
|
</block>
|
|
<view catchtap="goMap" data-index="{{idx}}" class="cu-tag bg-orange " style="margin:0;"> 导航 </view>
|
|
<block wx:if="{{!order.complete_time}}">
|
|
<view class="cu-tag bg-blue " style="margin:0;">
|
|
<picker mode="date" :value="date" data-id="{{order.id}}" data-index="{{idx}}" bindchange="changeDate">
|
|
<view class="picker">
|
|
更改时间
|
|
</view>
|
|
</picker>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
<view class="cu-list menu-avatar comment solids-top" wx:if="{{order.commont.commont}}">
|
|
<view class="cu-item">
|
|
<view class="cu-avatar round" style="background-image:url({{order.commont.headimg}});"></view>
|
|
<view class="content">
|
|
<view class="text-grey">{{order.commont.nickname}}</view>
|
|
<view class="text-gray text-content text-df">
|
|
{{order.commont.commont}}
|
|
</view>
|
|
|
|
<view class="margin-top-sm flex justify-between">
|
|
<view class="text-gray text-df">{{order.commont.commont_time}}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<view class="text-sm padding-sm" style="border-bottom:1px solid #eee;">
|
|
<text class="text-grey">类型:{{order.content}}</text>
|
|
</view>
|
|
|
|
|
|
</view>
|
|
</block>
|
|
</view>
|
|
|
|
<view class="cu-bar foot input {{InputBottom!=0?'cur':''}}" wx:if="{{input_focus}}" style="bottom:{{InputBottom}}px">
|
|
<input class="solid-bottom" bindfocus="InputFocus" bindblur="InputBlur" adjust-position="{{false}}"
|
|
focus="{{input_focus}}" value='{{inputCommont}}' bindinput='getInputValue' maxlength="300"
|
|
cursor-spacing="10"></input>
|
|
<button class="cu-btn bg-green shadow" catchtap="submitCommont">发送</button>
|
|
</view>
|