Commit c39728dead1ebc29d23fbfab1a3bc444cf2f4edc

Authored by wangfan
1 parent 52315eeb

选择备注 & fix time bug

... ... @@ -716,8 +716,14 @@ Page({
App.User.GetCustomRemark({
uid:util.cache('enter_params')['manager_id'],
}).then(res=>{
let CustomRemark=[];
res.data.forEach(r=>{
if(r.often_use){
CustomRemark.push(r);
}
})
this.setData({
CustomRemark:res.data,
CustomRemark:CustomRemark,
})
})
},
... ...
... ... @@ -190,12 +190,12 @@
bindblur="inputFocus"
data-key="cusdem"/>
</view>
<view wx:if="{{CustomRemark.length>0}}" class="book-info-single" style="padding-top: 14rpx; height: 60rpx;">
<view wx:if="{{CustomRemark.length>0}}" class="book-info-single last" style="padding-top: 14rpx; height: 60rpx;">
<view class="flex-lr CustomRemark">
<view class="CustomRemarks">
<view class="CustomRemarksView">
<view class="CustomRemarkItem {{item.active?'active':''}}" wx:for="{{CustomRemark}}"
wx:if="{{item.often_use}}" bindtap="oftenUse"
bindtap="oftenUse"
data-id="{{item.id}}"
data-value="{{item.often_use}}">{{item.often_use}}</view>
</view>
... ...
... ... @@ -308,7 +308,7 @@
.CustomRemarkMore .CustomRemarkItem{
padding: 4rpx 24rpx;
}
.book-info-single:last-child{
.book-info-single.last{
border-width: 0;
}
.CustomRemarkItem.active{
... ...