Commit 67357632 authored by linwenqing's avatar linwenqing

update:未入住不能上传提示

parent 2be76324
......@@ -98,7 +98,8 @@
desc: ['营业执照正面'],
data: {}
},
}
},
isRuZhu: false,
}
},
onLoad() {
......@@ -110,7 +111,7 @@
if(res.code != 200){
return
}
this.isRuZhu = true
for(let key in this.list){
if(res.data.length <= 0){
this.list[key].data = {}
......@@ -124,6 +125,7 @@
}
}
}).catch((err) => {
this.isRuZhu = false;
});
},
methods: {
......@@ -132,19 +134,19 @@
},
toDetail(key) {
let data = null;
if(this.list[key].data.length == undefined || this.list[key].data.length <= 0){
if(!this.isRuZhu){
uni.showToast({
icon: "none",
title: "您当前未入驻,暂无法上传证件",
});
return
data = {
type: key,
url: "",
desc: this.list[key].desc,
status: 0,
type_key: key
}
// data = {
// type: key,
// url: "",
// desc: this.list[key].desc,
// status: 0,
// type_key: key
// }
}else{
data = this.list[key].data;
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