Commit d5fb7a2b authored by 林文清's avatar 林文清

fix:自营-首页消息,学习-培训通知 高度自适应

parent de5ffc80
...@@ -9,10 +9,10 @@ ...@@ -9,10 +9,10 @@
<view class="msg-view"> <view class="msg-view">
<view class="msg-title">最新消息</view> <view class="msg-title">最新消息</view>
<view class="msg-list-view"> <view class="msg-list-view">
<view class="msg-content" v-for="(item, index) in messageList" :key="index"> <view class="msg-content" v-for="(item, index) in messageList" :key="index" @click="toNewsDetail(item)">
<view class="msg-content-view"> <view class="msg-content-view">
<view class="left-view"> <view class="left-view">
<image class="msg-icon" :src="msgStyleImage[item.content_type]"></image> <image class="msg-icon" :src="msgStyleImage[item.is_top]"></image>
<text class="msg-text">{{ item.title }}</text> <text class="msg-text">{{ item.title }}</text>
</view> </view>
<image class="right-icon" :src="shouyeyouImage"></image> <image class="right-icon" :src="shouyeyouImage"></image>
...@@ -123,8 +123,8 @@ ...@@ -123,8 +123,8 @@
msgStyleImage() { msgStyleImage() {
return { return {
'1': process.uniEnv.qn_base_url + "zhiding.png", // 置顶 '1': process.uniEnv.qn_base_url + "zhiding.png", // 置顶
'2': process.uniEnv.qn_base_url + "tongzhi.png", // 通知 '0': process.uniEnv.qn_base_url + "tongzhi.png", // 通知
'3': process.uniEnv.qn_base_url + "xiaoxi.png", // 消息 // '3': process.uniEnv.qn_base_url + "xiaoxi.png", // 消息
} }
}, },
bannerImage() { bannerImage() {
...@@ -398,7 +398,15 @@ ...@@ -398,7 +398,15 @@
fail: function(err) { fail: function(err) {
} }
}); });
}, },
toNewsDetail(item) {
wx.navigateTo({
url: '/pages/learn/news-details',
success: function(res) {
res.eventChannel.emit('acceptDataFromLearn', item)
}
});
}
}, },
}; };
</script> </script>
......
...@@ -744,7 +744,7 @@ ...@@ -744,7 +744,7 @@
.notice { .notice {
/* border: #808080 solid 2rpx; */ /* border: #808080 solid 2rpx; */
width: 100%; width: 100%;
height: 370rpx; min-height: 370rpx;
margin-top: 36rpx; margin-top: 36rpx;
overflow: hidden; overflow: hidden;
background-color: #ffffff; background-color: #ffffff;
...@@ -868,7 +868,7 @@ ...@@ -868,7 +868,7 @@
} }
swiper { swiper {
height: 920rpx; height: 65vh;
} }
.line-percent { .line-percent {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment