jf
This commit is contained in:
@@ -4,12 +4,11 @@
|
||||
<div class="tab-select">
|
||||
<div class="item" :class="tabIndex == index ? 'active' : ''" v-for="(item, index) in tabs" :key="index" @click="tabClick(index)">{{item}}<span></span></div>
|
||||
</div>
|
||||
|
||||
<!-- 列表 -->
|
||||
<div>
|
||||
<div class="search-box" v-if="tabIndex==0">
|
||||
<div class="integral-types" @click="showType = true">{{ type? type : '积分类型' }}<u-icon name="arrow-down"></u-icon></div>
|
||||
<u-search placeholder="请输入关键字" v-model="keyword" :show-action="false" @search="search" />
|
||||
<u-search placeholder="请输入关键字" v-model="keyword" :show-action="false" @search="search" @clear="getList()"/>
|
||||
</div>
|
||||
|
||||
<div class="card-list" v-if="integralList.length">
|
||||
@@ -21,7 +20,7 @@
|
||||
</div>
|
||||
<div class="card-type">
|
||||
<div class="type" :style="{color: item.auditStatus==0? '#4181FF':item.auditStatus==1? '#07c160' : '#dd5347'}">{{ $dict.getLabel('integralDeclareStatus',item.auditStatus) }}</div>
|
||||
<div class="num">+20</div>
|
||||
<div class="num" v-if="item.auditIntegral">{{ item.auditIntegral }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -54,6 +53,10 @@ export default {
|
||||
created() {
|
||||
this.$dict.load('atWillReportType','integralDeclareStatus').then(()=>{
|
||||
this.getList()
|
||||
uni.$on('update',()=>{
|
||||
this.current = 1
|
||||
this.getList()
|
||||
})
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
@@ -71,10 +74,10 @@ export default {
|
||||
size: 10,
|
||||
description : this.keyword,
|
||||
applyIntegralType: this.applyIntegralType,
|
||||
auditStatus: this.tabIndex== 0 ? "" : this.tabIndex == 1 ? 0 : this.tabIndex == 2 ? "1|2" : ''
|
||||
auditType: this.tabIndex== 0 ? "" : this.tabIndex == 1 ? 0 : 1
|
||||
}
|
||||
}).then(res => {
|
||||
if(res.code==0){
|
||||
if(res?.data){
|
||||
this.integralList = this.current > 1 ? [...this.integralList, ...res.data.records] : res.data.records
|
||||
this.$forceUpdate()
|
||||
}
|
||||
@@ -86,7 +89,6 @@ export default {
|
||||
},
|
||||
|
||||
confirmTypeSelect(e) {
|
||||
console.log(e);
|
||||
this.type = e[0].label
|
||||
this.applyIntegralType = e[0].value
|
||||
this.current = 1,
|
||||
@@ -95,13 +97,12 @@ export default {
|
||||
},
|
||||
|
||||
toDetail(item) {
|
||||
uni.navigateTo({url: `./detail?id=${item.id}`})
|
||||
uni.navigateTo({url: `./detail?id=${item.id}&nopass=${item.auditType}`})
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
document.title = '积分审核'
|
||||
},
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -186,10 +187,10 @@ export default {
|
||||
color: #999999;
|
||||
|
||||
.name {
|
||||
padding: 0 30px;
|
||||
padding: 0 20px;
|
||||
background: #EEEEEE;
|
||||
border-radius: 24px;
|
||||
margin-right: 40px;
|
||||
margin-right: 24px;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user