|
|
|
|
@ -26,8 +26,10 @@
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
const setTitle = () => {
|
|
|
|
|
|
|
|
|
|
let title = '新闻列表'
|
|
|
|
|
switch ($props.type) {
|
|
|
|
|
console.log($props.type)
|
|
|
|
|
switch (Number($props.type)) {
|
|
|
|
|
case 1:
|
|
|
|
|
title = '健康宣传'
|
|
|
|
|
break;
|
|
|
|
|
@ -35,6 +37,7 @@
|
|
|
|
|
title = '常见问题'
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
uni.setNavigationBarTitle({
|
|
|
|
|
title: title
|
|
|
|
|
})
|
|
|
|
|
@ -81,7 +84,7 @@
|
|
|
|
|
<view class="top_line_wrapper" :class="SysGreyType==1? 'grey' :''"></view>
|
|
|
|
|
<view class="posts_wrapper">
|
|
|
|
|
<view @click="postClick(i)" class="post_item_wrapper" v-for="(i,k) in post_list" :class="SysGreyType==1? 'grey' :''">
|
|
|
|
|
<view class="post_title_wrapper">{{ i.title }}{{ i.title }}{{ i.title }}{{ i.title }}{{ i.title }}{{ i.title }}
|
|
|
|
|
<view class="post_title_wrapper">{{ i.title }}
|
|
|
|
|
</view>
|
|
|
|
|
<view v-if="Number($props.type) === 1" class="post_content_wrapper">
|
|
|
|
|
<view class="post_cover_wrapper">
|
|
|
|
|
|