打卡的积分
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
<img src="https://cdn.cunwuyun.cn/fengdu/img-jifenlist.png" alt="">
|
||||
</div>
|
||||
<div class="title">任务大厅</div>
|
||||
<div class="card-list">
|
||||
<div class="card-list" v-if="list.length">
|
||||
<div class="card" v-for="(item,index) in list" :key="index" @click="$linkTo('./taskDetail?id='+item.id)">
|
||||
<h4>{{ item.title }}</h4>
|
||||
<p>{{ item.detail }}</p>
|
||||
@@ -12,12 +12,12 @@
|
||||
<image mode="aspectFill" v-for="(e, i) in item.files" :key="i" :src="e.url"/>
|
||||
</div>
|
||||
<div class="time">
|
||||
<div class="goin">
|
||||
<div class="goin" v-if="item.intoBegintime && item.intoEndtime">
|
||||
<img src="https://cdn.cunwuyun.cn/fengdu/ic-jinchangshijian.png" alt="">
|
||||
<div class="label">进场时间:</div>
|
||||
<div class="value">{{ item.intoBegintime.substring(0, 16)}} 至 {{ item.intoEndtime.substring(0, 16) }}</div>
|
||||
</div>
|
||||
<div class="exit">
|
||||
<div class="exit" v-if="item.exitBegintime && item.exitEndtime">
|
||||
<img src="https://cdn.cunwuyun.cn/fengdu/ic-lichangshijian.png" alt="">
|
||||
<div class="label">离场时间:</div>
|
||||
<div class="value">{{ item.exitBegintime.substring(0, 16) }} 至 {{ item.exitEndtime.substring(0, 16) }}</div>
|
||||
@@ -25,11 +25,12 @@
|
||||
<div class="type">
|
||||
<img src="https://cdn.cunwuyun.cn/fengdu/ic-renwuleixing.png" alt="">
|
||||
<div class="label">任务类型:</div>
|
||||
<div class="value">{{ item.type==0? '打卡得积分':'报名得积分' }}</div>
|
||||
<div class="value">{{ $dict.getLabel('fdIntegralTaskType', item.type) }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<AiEmpty :description="`暂无任务`" class="emptyWrap" v-else/>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -44,7 +45,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
getList() {
|
||||
this.$instance.post('/app/appintegraltask/list').then(res=> {
|
||||
this.$instance.post('/app/appintegraltask/list?status=1').then(res=> {
|
||||
if(res?.data) {
|
||||
this.list = res.data.records
|
||||
}
|
||||
@@ -55,7 +56,9 @@ export default {
|
||||
uni.setNavigationBarTitle({
|
||||
title: '功德银行'
|
||||
});
|
||||
this.getList()
|
||||
this.$dict.load(['fdIntegralTaskType']).then(() => {
|
||||
this.getList()
|
||||
})
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user