Commit c39728dead1ebc29d23fbfab1a3bc444cf2f4edc

Authored by wangfan
1 parent 52315eeb

选择备注 & fix time bug

@@ -716,8 +716,14 @@ Page({ @@ -716,8 +716,14 @@ Page({
716 App.User.GetCustomRemark({ 716 App.User.GetCustomRemark({
717 uid:util.cache('enter_params')['manager_id'], 717 uid:util.cache('enter_params')['manager_id'],
718 }).then(res=>{ 718 }).then(res=>{
  719 + let CustomRemark=[];
  720 + res.data.forEach(r=>{
  721 + if(r.often_use){
  722 + CustomRemark.push(r);
  723 + }
  724 + })
719 this.setData({ 725 this.setData({
720 - CustomRemark:res.data, 726 + CustomRemark:CustomRemark,
721 }) 727 })
722 }) 728 })
723 }, 729 },
@@ -190,12 +190,12 @@ @@ -190,12 +190,12 @@
190 bindblur="inputFocus" 190 bindblur="inputFocus"
191 data-key="cusdem"/> 191 data-key="cusdem"/>
192 </view> 192 </view>
193 - <view wx:if="{{CustomRemark.length>0}}" class="book-info-single" style="padding-top: 14rpx; height: 60rpx;"> 193 + <view wx:if="{{CustomRemark.length>0}}" class="book-info-single last" style="padding-top: 14rpx; height: 60rpx;">
194 <view class="flex-lr CustomRemark"> 194 <view class="flex-lr CustomRemark">
195 <view class="CustomRemarks"> 195 <view class="CustomRemarks">
196 <view class="CustomRemarksView"> 196 <view class="CustomRemarksView">
197 <view class="CustomRemarkItem {{item.active?'active':''}}" wx:for="{{CustomRemark}}" 197 <view class="CustomRemarkItem {{item.active?'active':''}}" wx:for="{{CustomRemark}}"
198 - wx:if="{{item.often_use}}" bindtap="oftenUse" 198 + bindtap="oftenUse"
199 data-id="{{item.id}}" 199 data-id="{{item.id}}"
200 data-value="{{item.often_use}}">{{item.often_use}}</view> 200 data-value="{{item.often_use}}">{{item.often_use}}</view>
201 </view> 201 </view>
@@ -308,7 +308,7 @@ @@ -308,7 +308,7 @@
308 .CustomRemarkMore .CustomRemarkItem{ 308 .CustomRemarkMore .CustomRemarkItem{
309 padding: 4rpx 24rpx; 309 padding: 4rpx 24rpx;
310 } 310 }
311 -.book-info-single:last-child{ 311 +.book-info-single.last{
312 border-width: 0; 312 border-width: 0;
313 } 313 }
314 .CustomRemarkItem.active{ 314 .CustomRemarkItem.active{