Commit 1163b0c0 authored by linwenqing's avatar linwenqing

update:证件上传

parent b78e1ac5
...@@ -119,8 +119,8 @@ ...@@ -119,8 +119,8 @@
let getData = res.data[key]; let getData = res.data[key];
this.list[key].isUpload = getData.status; this.list[key].isUpload = getData.status;
this.list[key].isUploadName = getData.status == 1 ? '已上传' : '未上传'; this.list[key].isUploadName = getData.status == 1 ? '已上传' : '未上传';
this.list[key].color = getData.status == 1 ? "#999999" : "#2272FF"; this.list[key].color = getData.status != 1 ? "#999999" : "#2272FF";
this.list[key].iconColor = getData.status == 1 ? "#2272FF" : "#999999"; this.list[key].iconColor = getData.status != 1 ? "#999999" : "#2272FF";
this.list[key].data = getData; this.list[key].data = getData;
} }
} }
......
...@@ -139,7 +139,7 @@ ...@@ -139,7 +139,7 @@
this.param.type = this.type; this.param.type = this.type;
this.$u.api.submitCert(this.param) this.$u.api.submitCert(this.param)
.then((res) => { .then((res) => {
if(res.status != 200){ if(res.code != 200){
uni.showToast({ uni.showToast({
icon: "none", icon: "none",
title: res.message, title: res.message,
...@@ -149,9 +149,6 @@ ...@@ -149,9 +149,6 @@
url: '/pages/mine/cert/index' url: '/pages/mine/cert/index'
}); });
}) })
.catch((err) => {
console.log(err);
});
} }
} }
} }
......
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