内容必填

This commit is contained in:
shijingjing
2023-04-04 16:31:04 +08:00
parent f44191578c
commit 8a896f2289
3 changed files with 41 additions and 20 deletions

View File

@@ -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>

View File

@@ -84,6 +84,10 @@ export default {
return this.$u.toast('请选择事件类型')
}
if (!this.form.content) {
return this.$u.toast('请输入详细描述')
}
if ((this.form.images.length + this.form.videos.length) > 9) {
return this.$u.toast('图片和视频不得超过9个')
} else {

View File

@@ -5,7 +5,7 @@
<img src="https://cdn.cunwuyun.cn/fengdu/img-qiandaochenggong.png" alt="">
</div>
<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>时间</div>
<div class="value">{{ data.createTime.slice(0,16) }}</div>