Commit 0886f5cf by 张立顺

fix bug

1 parent bb42b399
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
<img class="logoIcon" src="../images/djLogin.png" /> <img class="logoIcon" src="../images/djLogin.png" />
</div> </div>
</div> </div>
<van-dialog v-model="show" confirm-button-text="知道了" confirm-button-color="#347BFF"> <van-dialog v-model="show" confirm-button-text="知道了" confirm-button-color="#347BFF" @confirm="handleConfirm">
<img class="errorIcon" src="https://img02.glsx.com.cn/weapp/resource/saas/h5/image/error.png" /> <img class="errorIcon" src="https://img02.glsx.com.cn/weapp/resource/saas/h5/image/error.png" />
<div class="text ">当前收款码已停用,请联系销售人员</div> <div class="text ">当前收款码已停用,请联系销售人员</div>
<div class="text text_bottom">重新提供新的收款码,谢谢~</div> <div class="text text_bottom">重新提供新的收款码,谢谢~</div>
...@@ -193,6 +193,47 @@ export default { ...@@ -193,6 +193,47 @@ export default {
this.getTitleByModule() this.getTitleByModule()
}, },
methods: { methods: {
handleConfirm() {
function isWeiXin() {
var ua = window.navigator.userAgent.toLowerCase();
if (ua.match(/MicroMessenger/i) == 'micromessenger') {
return true;
} else {
return false;
}
}
function isPc() {
var userAgent = navigator.userAgent;
let Agents = ["Android", "iPhone",
"SymbianOS", "Windows Phone",
"iPad", "iPod"];
var flag = true;
for (let v = 0; v < Agents.length; v++) {
if (userAgent.indexOf(Agents[v]) > 0) {
flag = false;
break;
}
}
return flag;
}
var userAgent = navigator.userAgent;
if (isWeiXin()) {
WeixinJSBridge.call('closeWindow');
}
if (!isPc()) {
window.opener = null; window.open('about:blank', '_self', '').close();
}
if (userAgent.indexOf("Firefox") != -1 || userAgent.indexOf("Chrome") != -1) {
window.location.href = "about:blank";
}
else {
window.opener = null;
window.open("about:blank", "_self");
window.close();
}
},
// 如果id不住名单中,就弹框提升并禁用cer // 如果id不住名单中,就弹框提升并禁用cer
setDisabledList(id) { setDisabledList(id) {
const { prohibitedList } = baseConfig const { prohibitedList } = baseConfig
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!