Commit 86690094 authored by linwenqing's avatar linwenqing

Merge branch 'dev-fix' into test

parents 8dff5e08 b78e1ac5
...@@ -98,7 +98,8 @@ ...@@ -98,7 +98,8 @@
desc: ['营业执照正面'], desc: ['营业执照正面'],
data: {} data: {}
}, },
} },
isRuZhu: false,
} }
}, },
onLoad() { onLoad() {
...@@ -110,7 +111,7 @@ ...@@ -110,7 +111,7 @@
if(res.code != 200){ if(res.code != 200){
return return
} }
this.isRuZhu = true
for(let key in this.list){ for(let key in this.list){
if(res.data.length <= 0){ if(res.data.length <= 0){
this.list[key].data = {} this.list[key].data = {}
...@@ -124,6 +125,7 @@ ...@@ -124,6 +125,7 @@
} }
} }
}).catch((err) => { }).catch((err) => {
this.isRuZhu = false;
}); });
}, },
methods: { methods: {
...@@ -132,19 +134,19 @@ ...@@ -132,19 +134,19 @@
}, },
toDetail(key) { toDetail(key) {
let data = null; let data = null;
if(this.list[key].data.length == undefined || this.list[key].data.length <= 0){ if(!this.isRuZhu){
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: "您当前未入驻,暂无法上传证件", title: "您当前未入驻,暂无法上传证件",
}); });
return return
data = { // data = {
type: key, // type: key,
url: "", // url: "",
desc: this.list[key].desc, // desc: this.list[key].desc,
status: 0, // status: 0,
type_key: key // type_key: key
} // }
}else{ }else{
data = this.list[key].data; data = this.list[key].data;
data.desc = this.list[key].desc; data.desc = this.list[key].desc;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment