update :查找ios端问题
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<div
|
||||
:class="'container'+(mode?' old_container':'')"
|
||||
:class="'container' + (mode ? ' old_container' : '')"
|
||||
v-loading="loading"
|
||||
element-loading-text="页面加载中"
|
||||
element-loading-spinner="el-icon-loading"
|
||||
@@ -14,36 +14,31 @@
|
||||
</template>
|
||||
<script>
|
||||
import { mgop } from "@aligov/jssdk-mgop";
|
||||
/* import { changeBottomStyle } from "@/olderMode/1.js";
|
||||
import $ from "jquery"; */
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
loading: true,
|
||||
info: {
|
||||
title: "加载中...",
|
||||
publicTime: "加载中..."
|
||||
}
|
||||
publicTime: "加载中...",
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.mode = this.$root.mode
|
||||
/* if (sessionStorage.getItem("mode") == "older") {
|
||||
changeBottomStyle();
|
||||
} */
|
||||
this.mode = this.$root.mode;
|
||||
this.onInit();
|
||||
},
|
||||
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() {
|
||||
@@ -57,10 +52,10 @@ export default {
|
||||
type: "POST",
|
||||
data: {
|
||||
ticket: window.sessionStorage.getItem("ticket"),
|
||||
id: window.sessionStorage.getItem("zszcId")
|
||||
id: window.sessionStorage.getItem("zszcId"),
|
||||
},
|
||||
appKey: "es4b8zmz+2001833218+dehllx",
|
||||
onSuccess: data => {
|
||||
onSuccess: (data) => {
|
||||
this.loading = false;
|
||||
if (data.data.success) {
|
||||
const { data: res } = data;
|
||||
@@ -74,7 +69,7 @@ export default {
|
||||
message: "请求超时,请重新登录",
|
||||
duration: 3000,
|
||||
type: "info",
|
||||
center: true
|
||||
center: true,
|
||||
});
|
||||
setTimeout(() => {
|
||||
window.location.replace(
|
||||
@@ -86,26 +81,26 @@ export default {
|
||||
message: "请求出错",
|
||||
duration: 3000,
|
||||
type: "error",
|
||||
center: true
|
||||
center: true,
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
onFail: function(err) {
|
||||
onFail: function (err) {
|
||||
this.loading = false;
|
||||
this.$notify({
|
||||
title: "错误",
|
||||
message: "请求失败",
|
||||
type: "error",
|
||||
duration: 3000
|
||||
duration: 3000,
|
||||
});
|
||||
}
|
||||
},
|
||||
});
|
||||
},
|
||||
modifyDate(date) {
|
||||
return (date + "").substr(0, 10);
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
|
||||
Reference in New Issue
Block a user