我的勋章

This commit is contained in:
zhaofang
2022-11-10 19:08:52 +08:00
parent b2241cf402
commit 8c776f0a02
4 changed files with 100 additions and 2 deletions

View File

@@ -7,7 +7,7 @@
<view class="btn-index" @click="allRead()">一键已读</view>
</view>
<view class="news-page-list">
<view class="list-index" v-for="item in items" :key="item.id">
<view class="list-index" v-for="item in items" :key="item.id" @click="returnRouter(item)">
<view style="margin-top: 16upx;margin-right: 20upx;">
<radio v-show="flag" @click="changeChecked(item)" :checked="item.checked"/>
</view>
@@ -53,6 +53,27 @@
}
},
methods: {
returnRouter(item) {
if (item.refType == 2) {
uni.navigateTo({
url: '/pages/resource/articeDetail?id=' + item.refId
});
} else if (item.refType == 4) {
uni.navigateTo({
url: '/pages/resource/qaDetail?id=' + item.refId
});
} else {
if (item.conType == '10') {
uni.navigateTo({
url: '/pages/resource/microDetail?id=' + item.refId
});
} else if (item.conType == '20') {
uni.navigateTo({
url: '/pages/resource/courseDetail?id=' +item.refId
});
}
}
},
cancel() {
this.modalShow = false;
},