Commit a8d3ba38 authored by 王建威's avatar 王建威

Merge branch 'develop' into wjw_fenqi

parents ff55d339 693adf77
......@@ -77,9 +77,14 @@ function backup() {
}
// 跳转外部链接,使用webview
function jump(url) {
function jump(url, type) {
// #ifdef H5
if(type === 1){
// 重定向到指定地址,防止回退
window.location.replace(url);
}else{
window.location.href = url;
}
// #endif
// #ifndef H5
......
......@@ -21,7 +21,9 @@
let timer = setInterval(() => {
if(this.time <= 0){
const {origin} = window.location;
this.$jump(`${origin}/index.php?app=member`);
// 清除合同信息缓存
uni.removeStorageSync('installment');
this.$jump(`${origin}/index.php?app=member`, 1);
clearInterval(timer);
return;
}
......@@ -30,7 +32,9 @@
},
methods:{
jumpPhp(){
this.$jump(`${origin}/index.php?app=member`);
// 清除合同信息缓存
uni.removeStorageSync('installment');
this.$jump(`${origin}/index.php?app=member`, 1);
}
}
}
......
......@@ -113,7 +113,7 @@
const {contract_no, equipment_id, property_id} = install;
const url = this.is_eidt ? '/uni/api/signcontract/EditContract' : '/uni/api/signcontract/AddContract';
uni.showLoading({
title: '提交中。。。'
title: '提交中...'
})
uni.request({
url: url,
......
......@@ -115,6 +115,9 @@
}
}
);
},
goBack(){
this.$backup();
}
}
}
......
......@@ -77,6 +77,9 @@
}
}
})
},
goBack(){
this.$backup();
}
}
}
......
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