|
@@ -33,7 +33,7 @@
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
import {
|
|
import {
|
|
|
- ref,reactive,onMounted
|
|
|
|
|
|
|
+ ref,reactive,onMounted,onUnmounted
|
|
|
} from "vue";
|
|
} from "vue";
|
|
|
import * as httpApi from "@/api/jzHetong.js"
|
|
import * as httpApi from "@/api/jzHetong.js"
|
|
|
import cacheManager from '@/utils/cacheManager.js'
|
|
import cacheManager from '@/utils/cacheManager.js'
|
|
@@ -43,7 +43,7 @@
|
|
|
} from "@dcloudio/uni-app"
|
|
} from "@dcloudio/uni-app"
|
|
|
import writeSign from "@/components/writeSign/index.vue"
|
|
import writeSign from "@/components/writeSign/index.vue"
|
|
|
import {
|
|
import {
|
|
|
- throttleAdvanced
|
|
|
|
|
|
|
+ throttleAdvanced, toast
|
|
|
} from "@/utils/common.js"
|
|
} from "@/utils/common.js"
|
|
|
import {
|
|
import {
|
|
|
base64ToPath
|
|
base64ToPath
|
|
@@ -61,6 +61,7 @@
|
|
|
loadingIcon: '',
|
|
loadingIcon: '',
|
|
|
})
|
|
})
|
|
|
const fromPage = ref('')
|
|
const fromPage = ref('')
|
|
|
|
|
+ const timer2 = ref(null);
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
onMounted(() => {
|
|
|
uni.getSystemInfo({
|
|
uni.getSystemInfo({
|
|
@@ -69,6 +70,12 @@
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
+
|
|
|
|
|
+ onUnmounted(() => {
|
|
|
|
|
+ clearTimeout(timer2.value);
|
|
|
|
|
+ timer2.value = null;
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
onLoad((options) => {
|
|
onLoad((options) => {
|
|
|
tId.value = options.id;
|
|
tId.value = options.id;
|
|
|
fromPage.value = options.from;
|
|
fromPage.value = options.from;
|
|
@@ -87,6 +94,10 @@
|
|
|
}).then(res => {
|
|
}).then(res => {
|
|
|
info.value = res.data;
|
|
info.value = res.data;
|
|
|
imgList.value = res.data.base64List;
|
|
imgList.value = res.data.base64List;
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ timer2.value = setTimeout(() => {
|
|
|
|
|
+ handleGoLishi()
|
|
|
|
|
+ },3000)
|
|
|
}).finally(() => {
|
|
}).finally(() => {
|
|
|
isLoading.value = false;
|
|
isLoading.value = false;
|
|
|
})
|
|
})
|