@@ -243,6 +243,12 @@ Page({
this.toReport()
}
},
+ assistantClear(){
+ this.setData({
+ 'detail.assistant': '',
+ 'detail.assistantUserId': '',
+ })
+ },
toReport: function(e) {
return wx.showToast({
title: '暂无数据',
@@ -55,6 +55,8 @@
<text style="margin-right:30rpx;">选择助理</text>
<text class="value {{ detail.assistant ? '' : 'tipsClass'}}">{{detail.assistant || '请选择助理'}}</text>
</view>
+
+ <image src="/static/images/clear_input.png" catchtap="assistantClear" wx:if="{{detail.assistant}}" class="clear"></image>
<image src="/static/images/go.png" class="go"></image>
</picker>
@@ -86,6 +86,13 @@
height: 20rpx;
+.order-list-v .navigator .clear {
+ flex: 0 0 auto;
+ width: 40rpx;
+ height: 40rpx;
+ margin-right:30rpx
+}
.order-list-v .navigator view {
margin-left: 14rpx;
font-size: 30rpx;