Commit a1c3cbc2 by 李嘉林

feat: 加日志

parent a3ad214f
<template> <template>
<div class="loadings"> <div class="loadings">
<div class="img flex"> <div class="img flex">
<image :src="shopLogo" alt="" mode="aspectFill"></image> <image :src="shopLogo" alt="" mode="aspectFill" @click="showD"></image>
<van-loading color="#333" size="60px" /> <van-loading color="#333" size="60px" />
</div> </div>
</div> </div>
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
<script> <script>
import { DFSImg } from "@/utils/index"; import { DFSImg } from "@/utils/index";
const app = getApp(); const app = getApp();
const { log } = app;
export default { export default {
props: { props: {
toHide: { toHide: {
...@@ -18,7 +19,9 @@ export default { ...@@ -18,7 +19,9 @@ export default {
} }
}, },
data() { data() {
return {}; return {
count: 0,
};
}, },
computed: { computed: {
shopLogo() { shopLogo() {
...@@ -30,13 +33,34 @@ export default { ...@@ -30,13 +33,34 @@ export default {
} else { } else {
logoUrl = app.globalData && app.globalData.shopInfo && app.globalData.shopInfo.logoUrl; logoUrl = app.globalData && app.globalData.shopInfo && app.globalData.shopInfo.logoUrl;
} }
return logoUrl?DFSImg(logoUrl):""; return logoUrl ? DFSImg(logoUrl) : "";
}, },
}, },
created() { }, created() { },
mounted() { }, mounted() { },
methods: { methods: {
showD() {
this.count++;
if (this.count > 20) {
let val = [
`[wx.getExtConfigSync()]->:${JSON.stringify(wx.getExtConfigSync())}`,
`[$store.state.extConfig]->:${JSON.stringify(this.$store.state.extConfig)}`,
`[wx.getStorageSync('extConfig')]->:${JSON.stringify(wx.getStorageSync('extConfig'))}`,
];
log.info('pageLoading-showD->', val.join('\n'))
wx.showModal({
title: '提示',
content: val.join("\n"),
success(res) {
if (res.confirm) {
console.log('用户点击确定');
} else if (res.cancel) {
console.log('用户点击取消')
}
}
})
}
}
} }
}; };
</script> </script>
...@@ -50,7 +74,8 @@ export default { ...@@ -50,7 +74,8 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
z-index: 9999; z-index: 9999;
.img{
.img {
width: 50px; width: 50px;
height: 50px; height: 50px;
position: relative; position: relative;
...@@ -58,7 +83,8 @@ export default { ...@@ -58,7 +83,8 @@ export default {
margin: 40vh auto 0; margin: 40vh auto 0;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
image{
image {
width: 50px; width: 50px;
height: 50px; height: 50px;
border-radius: 50%; border-radius: 50%;
...@@ -66,9 +92,11 @@ export default { ...@@ -66,9 +92,11 @@ export default {
z-index: 1; z-index: 1;
} }
} }
._van-loading{
._van-loading {
position: absolute; position: absolute;
} }
.van-loading { .van-loading {
position: absolute; position: absolute;
top: -2px; top: -2px;
......
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 to comment