文章跳转
parent
65b19d985e
commit
a33c4d14ac
|
|
@ -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>
|
||||
|
|
@ -90,7 +90,7 @@
|
|||
}
|
||||
})
|
||||
this.article_banner = resDate.article_banner
|
||||
} catch (err) {}
|
||||
} catch (err) {}
|
||||
},
|
||||
//获取文章分类
|
||||
async getDate(){
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue