ソースを参照

修改首页关注类型非空判断!

release/210823_需求对对碰
王饶冀 3年前
コミット
6b266954af
3個のファイルの変更21行の追加4行の削除
  1. 4
    2
      pages/index/index.js
  2. 4
    2
      pages/msgModule/wechat2/wechat2.wxml
  3. 13
    0
      pages/msgModule/wechat2/wechat2.wxss

+ 4
- 2
pages/index/index.js ファイルの表示

@@ -251,8 +251,10 @@ Page({
this.setData({
listLoading: false
})
if(this.data.attentionTypeIds.length > 0 && res.data.total == 0){
this.getListData(1);
if(this.data.attentionTypeIds){
if(this.data.attentionTypeIds.length > 0 && res.data.total == 0){
this.getListData(1);
}
}
}).catch(error => {
console.log(error, 'error appletLogin')

+ 4
- 2
pages/msgModule/wechat2/wechat2.wxml ファイルの表示

@@ -29,8 +29,10 @@
<image class='own-head-img' src='{{item.senderHeadPortrait}}'></image>
</view>
</view>
<view wx:else>
{{ item.object.info }} \ {{ item.date }}
<view wx:else class="product-item-view">
<view class="content-view">
{{ item.object.info }} \ {{ item.date }}
</view>
</view>
<!-- own结尾 -->
</block>

+ 13
- 0
pages/msgModule/wechat2/wechat2.wxss ファイルの表示

@@ -285,3 +285,16 @@ page {
.historyText {
color: #ccc;
}

.product-item-view {
width: 100%;
margin-bottom: 15rpx;
box-sizing: border-box;
padding: 0 20rpx;
}
.product-item-view .content-view{
background: #fff;
border-radius: 20rpx;
box-shadow: -1px 3px 12px 4px
rgba(186, 186, 186, 0.1);
}

読み込み中…
キャンセル
保存