6
0
Fork 0

文章跳转

hui.zhou
ihzero 2023-02-13 16:19:18 +08:00
parent 65b19d985e
commit a33c4d14ac
1 changed files with 14 additions and 2 deletions

View File

@ -12,7 +12,7 @@
<u-image border-radius="25rpx" width="100%" height="180rpx" :src="cpaceImage.image" :lazy-load="true"></u-image>
</view>
<!-- 列表 -->
<view @tap="jumpByOption(item)" v-for="(item,index) in dataList" :key="index"
<view @tap="jump(item.jump_type,item.jump_link,item.id)" v-for="(item,index) in dataList" :key="index"
class="w-710rpx p-base bg-white rounded-xs m-auto mt-base flex items-start justify-between">
<block v-if="item.cover">
<u-image border-radius="15rpx" width="250rpx" height="187rpx" :src="item.cover" :lazy-load="true"></u-image>
@ -125,6 +125,18 @@
this.mescroll.endErr()
})
},
//
jump(type, url, id) {
if (type == 2) {
uni.navigateTo({
url: '/pages/web_view/index?url=' + url
})
} else {
this.$u.route('/pages/article_details/article_details', {
id: id
})
}
},
jumpByOption(e) {
if (!!e.jump_link) {
if (e.jump_type == 1) {