添加资讯跳转

This commit is contained in:
zxy
2024-02-20 09:12:49 +08:00
parent 3ae78e3992
commit 7e8ede0cbd

View File

@@ -195,7 +195,7 @@
<company-list :companyitem="item"></company-list> <company-list :companyitem="item"></company-list>
</block> --> </block> -->
<view style="background-color: #fff;padding: 20rpx 30rpx;"> <view style="background-color: #fff;padding: 20rpx 30rpx;">
<view v-for="(item,index) in policyContentList" :key="index" style="display: flex;align-items: center;padding: 20rpx 0;"> <view v-for="(item,index) in policyContentList" :key="index" style="display: flex;align-items: center;padding: 20rpx 0;" @click="toArticleDetail(item.id)">
<image :src="item.headPic" style="width: 80rpx;height: 80rpx;margin-right: 20rpx;border-radius: 10rpx;" mode=""></image> <image :src="item.headPic" style="width: 80rpx;height: 80rpx;margin-right: 20rpx;border-radius: 10rpx;" mode=""></image>
<view style="font-size: 28rpx;">{{ item.articleTitle }}</view> <view style="font-size: 28rpx;">{{ item.articleTitle }}</view>
</view> </view>
@@ -422,6 +422,13 @@
url: `/pages/project/newProject?tabIndex=${2}` url: `/pages/project/newProject?tabIndex=${2}`
}); });
}, },
toArticleDetail(id) {
if(id){
uni.navigateTo({
url:`/pages/user/policyContent?id=${id}`
})
}
},
gouserSet: function() { gouserSet: function() {
if (!this.$store.state.user.token) { if (!this.$store.state.user.token) {
uni.showModal({ uni.showModal({