提交 f4d4e9ae4f8d9057aade2ae404066fe5950510c5

作者 wangyu
1 个父辈 c069d8c4

优化

... ... @@ -54,7 +54,7 @@ Page({
54 54 if (res.data.items && res.data.items.length > 0) {
55 55 that.setData({
56 56 showModal: true,
57   - // comlist: res.data.items
  57 + comlist: res.data.items
58 58 })
59 59 }
60 60 }
... ...
... ... @@ -34,11 +34,11 @@
34 34 <view style='width:100%;display:flex;flex-direction:column;max-height:688rpx;'>
35 35 <view wx:for="{{comlist}}" wx:for-index="idx" bindtap='bindChange' id="{{idx}}">
36 36 <view wx:if="{{idx==choosed_index}}" style='padding:30rpx;display:flex;flex-direction:row;' >
37   - <view class='text_item_blue float_left' >{{item}}</view>
  37 + <view class='text_item_blue float_left' >{{item.name}}</view>
38 38 <image class='icon_choosed' src="/images/icon_chat_choosed.png"></image>
39 39 </view>
40 40 <view wx:else style='padding:30rpx;display:flex;' >
41   - <text class='text_item_black float_left' >{{item}}</text>
  41 + <text class='text_item_black float_left' >{{item.name}}</text>
42 42 </view>
43 43 <view class='divide_line_f5f5f5'></view>
44 44 </view>
... ...
注册登录 后发表评论