优化审核逻辑

This commit is contained in:
weipengfei 2023-09-25 14:34:59 +08:00
parent 18285ec6ac
commit 7dba6f81c6
4 changed files with 4 additions and 20 deletions

View File

@ -60,6 +60,7 @@
}, },
onLoad() { onLoad() {
this.initType(); this.initType();
uni.$on('initMerchant', this.initList);
}, },
onShow() { onShow() {
if(this.typeTabLists.length>0){ if(this.typeTabLists.length>0){

View File

@ -62,16 +62,7 @@
// this.initType(); // this.initType();
this.check_status = 2; this.check_status = 2;
this.initList(); this.initList();
}, uni.$on('initMerchant', this.initList);
onShow() {
if(this.typeTabLists.length>0){
this.loadConfig.page = 1;
this.loadConfig.status = "loading";
this.list = [];
this.$u.sleep(200).then(()=>{
this.loadList();
})
}
}, },
async onPullDownRefresh() { async onPullDownRefresh() {
await this.initList(); await this.initList();

View File

@ -205,6 +205,7 @@
this.tipShow = false; this.tipShow = false;
this.$nextTick(() => { this.$nextTick(() => {
Toast('已通过'); Toast('已通过');
uni.$emit('initMerchant');
uni.navigateBack(); uni.navigateBack();
}) })
}, },

View File

@ -62,16 +62,7 @@
// this.initType(); // this.initType();
this.check_status = 3; this.check_status = 3;
this.initList(); this.initList();
}, uni.$on('initMerchant', this.initList);
onShow() {
if(this.typeTabLists.length>0){
this.loadConfig.page = 1;
this.loadConfig.status = "loading";
this.list = [];
this.$u.sleep(200).then(()=>{
this.loadList();
})
}
}, },
async onPullDownRefresh() { async onPullDownRefresh() {
await this.initList(); await this.initList();