Commit 18fb1adc by cocomilk2012

updfate

parent d2bf15e9
Showing with 2 additions and 35 deletions
......@@ -7,9 +7,6 @@ import server from '@/services/install';
// import FastClick from 'fastclick'
import '@/assets/css/index.less';
import * as filters from '@/utils/filters';
//@ts-ignore
import initJsBridge from "@/utils/JsBridge.js";
Vue.config.productionTip = false;
// FastClick.attach(document.body);
......@@ -19,34 +16,6 @@ Object.keys(filters).forEach((key: string) => {
Vue.use(server);
Vue.prototype.closeWebView = function () {
console.log('close webview in jsbridge');
try {
initJsBridge(() => {
//@ts-ignore
window.WebViewJavascriptBridge.callHandler("ready", null, function (
//@ts-ignore
response
) {
try {
//@ts-ignore
window.WebViewJavascriptBridge.callHandler(
"closeWebView",
null,
//@ts-ignore
function(response) {
console.log("closeWebView 来自 ios/android的回传数据:", response);
}
);
} catch (err) {
console.log("closeWebView is error",err);
}
});
});
} catch (err) {
console.log("closeWebView is error",err);
}
};
if (
process.env.NODE_ENV === 'development' ||
......
......@@ -92,7 +92,6 @@ export default class SelectIdentity extends Vue {
await this.$server.EmployeeService.getUserInfo({})
.then(res => {
if (false&&res.data && res.data.uthStatus && res.data.uthStatus > 0) {
console.log(res);
this.id_no = res.data.personalIdCardNo;
localStorage.setItem("id_no", res.data.personalIdCardNo);
......@@ -105,9 +104,8 @@ export default class SelectIdentity extends Vue {
Dialog.alert({
message: "您还未实名认证,不可进行查询,请先去【我】的页面,点击头像,进行实名认证后再查询"
}).then(()=>{
//@ts-ignore
this.closeWebView();
console.log(342342);
location.href="http://qqxb://native/identityVerification"
});
}
})
......
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 sign in to comment