内容必填
This commit is contained in:
@@ -30,27 +30,31 @@
|
||||
<h4>兑换得好物</h4>
|
||||
</div>
|
||||
</div>
|
||||
<div class="handpick">
|
||||
<div class="handpick" v-if="list.length">
|
||||
<div class="title">
|
||||
<h1>精选动态</h1>
|
||||
<div class="more" @click="toPages('./handpick')">
|
||||
<div class="more" v-if="list.length > 3" @click="toPages('./handpick')">
|
||||
<span>更多</span>
|
||||
<u-icon name="arrow-right" color="#687DA6" size="28"></u-icon>
|
||||
</div>
|
||||
</div>
|
||||
<div class="list" @click="toPages('内容建设中...')">
|
||||
<div class="top">
|
||||
<div class="left">百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年…</div>
|
||||
<div class="right">
|
||||
<img src="https://cdn.cunwuyun.cn/wxmp/fengdu/zan-active.png" alt="">
|
||||
<!-- https://cdn.cunwuyun.cn/wxmp/fengdu/zan.png -->
|
||||
<span>99+</span>
|
||||
<div class="list" @click="toPages('内容建设中...')" v-if="list.length">
|
||||
<div v-for="(item,index) in list" :key="index">
|
||||
<div class="top">
|
||||
<div class="left">百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年…</div>
|
||||
<div class="right">
|
||||
<img src="https://cdn.cunwuyun.cn/wxmp/fengdu/zan-active.png" alt="">
|
||||
<!-- https://cdn.cunwuyun.cn/wxmp/fengdu/zan.png -->
|
||||
<span>99+</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<img src="https://cdn.cunwuyun.cn/fengdu/img-jifenlist.png" alt="">
|
||||
</div>
|
||||
</div>
|
||||
<div class="bottom">
|
||||
<img src="https://cdn.cunwuyun.cn/fengdu/img-jifenlist.png" alt="">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- <AiEmpty :description="`暂无数据`" class="emptyWrap" v-else/> -->
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -63,16 +67,24 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
status: null,
|
||||
current: 1,
|
||||
list: [],
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
...mapState(['user'])
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$instance.post(``).then(res=> {
|
||||
getList(moduleId) {
|
||||
this.$instance.post(`/app/appcontentinfo/list-web`,null,{
|
||||
params: {
|
||||
moduleId: moduleId,
|
||||
current: this.current,
|
||||
// areaId: this.user.areaId
|
||||
}
|
||||
}).then(res=> {
|
||||
if(res?.data) {
|
||||
console.log(res);
|
||||
this.list = res.data.records.length > 3 ? res.data.records.slice(2) : res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
@@ -103,14 +115,19 @@ export default {
|
||||
this.status = 1
|
||||
}
|
||||
})
|
||||
},
|
||||
getModule() {
|
||||
this.$instance.post(`/app/appintegraluserapply/queryModuleByName`).then(res=> {
|
||||
if(res?.data) {
|
||||
this.getList(res.data)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
onShow() {
|
||||
uni.setNavigationBarTitle({
|
||||
title: '功德银行'
|
||||
});
|
||||
// this.getList()
|
||||
this.getStatus()
|
||||
this.getModule()
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user