update:增加ticket过期提示,请求提示,下拉刷新

This commit is contained in:
2021-10-08 09:20:10 +08:00
parent ab1972183c
commit 69c5b7a4f0
12 changed files with 343 additions and 282 deletions

View File

@@ -15,10 +15,6 @@
class="baseImg"
/>
</div>
<div class="bottomContent">
<p>本服务由浙江政务服务网宁波市住房保障和房屋征收管理中心提供</p>
<p>服务咨询热线<b>0574-88086606</b></p>
</div>
</div>
</template>
@@ -56,12 +52,41 @@ export default {
},
appKey: "es4b8zmz+2001833218+dehllx",
onSuccess: result => {
if (result.data && result.data.success == true) {
if (result.data.success) {
console.log("result.data.data:", result.data.data);
this.apidata = result.data.data;
this.pic_width = "100%";
this.pic_height = "100%";
this.isloading = false;
} else {
let code = [6001, 6501];
if (code.indexOf(result.data.bizCode) != "-1") {
this.$message({
message: "登录超时,请重新登录",
duration: 3000,
type: "info",
center: true
});
setTimeout(() => {
window.location.replace(
"https://puser.zjzwfw.gov.cn/sso/mobile.do?action=oauth&scope=1&servicecode=fwzs"
);
}, 3000);
} else if (result.data.message == "未上传附件") {
this.$message({
message: "无附件",
duration: 3000,
type: "info",
center: true
});
} else {
this.$message({
message: "请求出错",
duration: 3000,
type: "error",
center: true
});
}
}
},
onFail: err => {
@@ -130,17 +155,4 @@ export default {
position: absolute;
bottom: 0px;
}
.bottomContent {
margin-top: 20px;
margin-bottom: 10px;
text-align: center;
width: 100%;
font-size: 10px;
p {
margin: 0;
}
b {
color: #5d8cbc;
}
}
</style>