update :查找ios端问题
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div style="margin: 0 auto" :class="mode?'old_container':'container'">
|
||||
<div style="margin: 0 auto" :class="mode ? 'old_container' : 'container'">
|
||||
<el-button
|
||||
type="primary"
|
||||
@click="testdownload4()"
|
||||
@@ -20,42 +20,35 @@
|
||||
|
||||
<script>
|
||||
import { mgop } from "@aligov/jssdk-mgop";
|
||||
/* import { changeBottomStyle } from "@/olderMode/1.js";
|
||||
import $ from "jquery"; */
|
||||
export default {
|
||||
components: {},
|
||||
data() {
|
||||
return {
|
||||
mode:"",
|
||||
mode: "",
|
||||
url: "",
|
||||
apidata: {},
|
||||
pic_width: "100%",
|
||||
pic_height: "100%",
|
||||
isloading: true
|
||||
isloading: true,
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.mode = this.$root.mode
|
||||
/* if (sessionStorage.getItem("mode") == "older") {
|
||||
changeBottomStyle();
|
||||
} */
|
||||
this.mode = this.$root.mode;
|
||||
this.onInit();
|
||||
},
|
||||
mounted(){},
|
||||
mounted() {},
|
||||
|
||||
computed:{
|
||||
watchMode(){
|
||||
return this.$root.mode
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
watchMode(val, oldVal) {
|
||||
this.mode = val
|
||||
}
|
||||
computed: {
|
||||
watchMode() {
|
||||
return this.$root.mode;
|
||||
},
|
||||
},
|
||||
watch: {
|
||||
watchMode(val, oldVal) {
|
||||
this.mode = val;
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
|
||||
methods: {
|
||||
onInit() {
|
||||
if (this.$route.params.id) {
|
||||
@@ -69,10 +62,10 @@ export default {
|
||||
data: {
|
||||
ticket:
|
||||
this.$route.query.ticket || window.sessionStorage.getItem("ticket"),
|
||||
id: window.sessionStorage.getItem("bcxyId")
|
||||
id: window.sessionStorage.getItem("bcxyId"),
|
||||
},
|
||||
appKey: "es4b8zmz+2001833218+dehllx",
|
||||
onSuccess: result => {
|
||||
onSuccess: (result) => {
|
||||
if (result.data.success) {
|
||||
this.apidata = result.data.data;
|
||||
this.pic_width = "100%";
|
||||
@@ -86,7 +79,7 @@ export default {
|
||||
message: "登录超时,请重新登录",
|
||||
duration: 3000,
|
||||
type: "info",
|
||||
center: true
|
||||
center: true,
|
||||
});
|
||||
setTimeout(() => {
|
||||
window.location.replace(
|
||||
@@ -98,26 +91,26 @@ export default {
|
||||
message: result.data.message,
|
||||
duration: 3000,
|
||||
type: "error",
|
||||
center: true
|
||||
center: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
onFail: err => {
|
||||
onFail: (err) => {
|
||||
console.log("用户无数据,不展示");
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
saveImages() {
|
||||
ZWJSBridge.onReady(() => {
|
||||
// console.log("初始化完成后,执行bridge方法-saveImages");
|
||||
ZWJSBridge.saveImage({
|
||||
url: this.apidata.pdf
|
||||
url: this.apidata.pdf,
|
||||
})
|
||||
.then(result => {
|
||||
.then((result) => {
|
||||
// console.log("saveImage()成功:" + JSON.stringify(result));
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
// console.log("saveImage()失败:" + JSON.stringify(result));
|
||||
// console.log(error);
|
||||
});
|
||||
@@ -127,17 +120,17 @@ export default {
|
||||
ZWJSBridge.onReady(() => {
|
||||
// console.log("初始化完成后,执行bridge方法-testdownload4");
|
||||
ZWJSBridge.openLink({
|
||||
url: this.apidata.pdf
|
||||
url: this.apidata.pdf,
|
||||
})
|
||||
.then(result => {
|
||||
.then((result) => {
|
||||
// console.log("测试新开窗口():" + result);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch((error) => {
|
||||
// console.log(error);
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
|
||||
Reference in New Issue
Block a user