Commit a1c3cbc2 by 李嘉林

feat: 加日志

parent a3ad214f
<template>
<div class="loadings">
<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" />
</div>
</div>
......@@ -10,6 +10,7 @@
<script>
import { DFSImg } from "@/utils/index";
const app = getApp();
const { log } = app;
export default {
props: {
toHide: {
......@@ -18,7 +19,9 @@ export default {
}
},
data() {
return {};
return {
count: 0,
};
},
computed: {
shopLogo() {
......@@ -30,13 +33,34 @@ export default {
} else {
logoUrl = app.globalData && app.globalData.shopInfo && app.globalData.shopInfo.logoUrl;
}
return logoUrl?DFSImg(logoUrl):"";
return logoUrl ? DFSImg(logoUrl) : "";
},
},
created() { },
mounted() { },
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>
......@@ -50,7 +74,8 @@ export default {
width: 100%;
height: 100%;
z-index: 9999;
.img{
.img {
width: 50px;
height: 50px;
position: relative;
......@@ -58,7 +83,8 @@ export default {
margin: 40vh auto 0;
justify-content: center;
align-items: center;
image{
image {
width: 50px;
height: 50px;
border-radius: 50%;
......@@ -66,9 +92,11 @@ export default {
z-index: 1;
}
}
._van-loading{
._van-loading {
position: absolute;
}
.van-loading {
position: absolute;
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