内容必填
This commit is contained in:
@@ -30,27 +30,31 @@
|
|||||||
<h4>兑换得好物</h4>
|
<h4>兑换得好物</h4>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="handpick">
|
<div class="handpick" v-if="list.length">
|
||||||
<div class="title">
|
<div class="title">
|
||||||
<h1>精选动态</h1>
|
<h1>精选动态</h1>
|
||||||
<div class="more" @click="toPages('./handpick')">
|
<div class="more" v-if="list.length > 3" @click="toPages('./handpick')">
|
||||||
<span>更多</span>
|
<span>更多</span>
|
||||||
<u-icon name="arrow-right" color="#687DA6" size="28"></u-icon>
|
<u-icon name="arrow-right" color="#687DA6" size="28"></u-icon>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="list" @click="toPages('内容建设中...')">
|
<div class="list" @click="toPages('内容建设中...')" v-if="list.length">
|
||||||
<div class="top">
|
<div v-for="(item,index) in list" :key="index">
|
||||||
<div class="left">百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年…</div>
|
<div class="top">
|
||||||
<div class="right">
|
<div class="left">百年征和波澜壮阔,百年初心历争议弥坚。7月1日上午,庆祝中国共产党成立100周年…</div>
|
||||||
<img src="https://cdn.cunwuyun.cn/wxmp/fengdu/zan-active.png" alt="">
|
<div class="right">
|
||||||
<!-- https://cdn.cunwuyun.cn/wxmp/fengdu/zan.png -->
|
<img src="https://cdn.cunwuyun.cn/wxmp/fengdu/zan-active.png" alt="">
|
||||||
<span>99+</span>
|
<!-- 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>
|
</div>
|
||||||
<div class="bottom">
|
|
||||||
<img src="https://cdn.cunwuyun.cn/fengdu/img-jifenlist.png" alt="">
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <AiEmpty :description="`暂无数据`" class="emptyWrap" v-else/> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -63,16 +67,24 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
status: null,
|
status: null,
|
||||||
|
current: 1,
|
||||||
|
list: [],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user'])
|
...mapState(['user'])
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getList() {
|
getList(moduleId) {
|
||||||
this.$instance.post(``).then(res=> {
|
this.$instance.post(`/app/appcontentinfo/list-web`,null,{
|
||||||
|
params: {
|
||||||
|
moduleId: moduleId,
|
||||||
|
current: this.current,
|
||||||
|
// areaId: this.user.areaId
|
||||||
|
}
|
||||||
|
}).then(res=> {
|
||||||
if(res?.data) {
|
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
|
this.status = 1
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
},
|
||||||
|
getModule() {
|
||||||
|
this.$instance.post(`/app/appintegraluserapply/queryModuleByName`).then(res=> {
|
||||||
|
if(res?.data) {
|
||||||
|
this.getList(res.data)
|
||||||
|
}
|
||||||
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
uni.setNavigationBarTitle({
|
|
||||||
title: '功德银行'
|
|
||||||
});
|
|
||||||
// this.getList()
|
|
||||||
this.getStatus()
|
this.getStatus()
|
||||||
|
this.getModule()
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -84,6 +84,10 @@ export default {
|
|||||||
return this.$u.toast('请选择事件类型')
|
return this.$u.toast('请选择事件类型')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.form.content) {
|
||||||
|
return this.$u.toast('请输入详细描述')
|
||||||
|
}
|
||||||
|
|
||||||
if ((this.form.images.length + this.form.videos.length) > 9) {
|
if ((this.form.images.length + this.form.videos.length) > 9) {
|
||||||
return this.$u.toast('图片和视频不得超过9个')
|
return this.$u.toast('图片和视频不得超过9个')
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<img src="https://cdn.cunwuyun.cn/fengdu/img-qiandaochenggong.png" alt="">
|
<img src="https://cdn.cunwuyun.cn/fengdu/img-qiandaochenggong.png" alt="">
|
||||||
</div>
|
</div>
|
||||||
<p class="status">今日已完成签到</p>
|
<p class="status">今日已完成签到</p>
|
||||||
<h4>积分<span>+{{ data.changeIntegral || 0}}</span></h4>
|
<h4>积分<span v-if="data.changeIntegral">+{{ data.changeIntegral || 0}}</span></h4>
|
||||||
<div class="times">
|
<div class="times">
|
||||||
<div>时间</div>
|
<div>时间</div>
|
||||||
<div class="value">{{ data.createTime.slice(0,16) }}</div>
|
<div class="value">{{ data.createTime.slice(0,16) }}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user