调试按钮进入组件库
This commit is contained in:
43
src/components/AiConsole.vue
Normal file
43
src/components/AiConsole.vue
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<template>
|
||||||
|
<section class="AiConsole">
|
||||||
|
<div class="vconsoleBtn" @click="$u.debounce(handleVConosle,500)"/>
|
||||||
|
</section>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
name: "AiConsole",
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
count: {},
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
handleVConosle() {
|
||||||
|
if (this.count == 5) {
|
||||||
|
this.$injectLib("https://cdn.cunwuyun.cn/vconsole.min.js", () => {
|
||||||
|
new VConsole()
|
||||||
|
this.count++
|
||||||
|
})
|
||||||
|
} else {
|
||||||
|
this.count++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.count = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
.AiConsole {
|
||||||
|
.vconsoleBtn {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
width: 60px;
|
||||||
|
height: 60px;
|
||||||
|
z-index: 202203181519;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="my">
|
<div class="my">
|
||||||
<!--隐藏的vconsole开关-->
|
|
||||||
<div class="vconsoleBtn" @click="$u.debounce(handleVConosle,500)" :style="vcBtn"/>
|
|
||||||
<!-- 个人信息 -->
|
<!-- 个人信息 -->
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="userInfoCard">
|
<div class="userInfoCard">
|
||||||
@@ -71,7 +69,6 @@ export default {
|
|||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
vcBtn: {},
|
|
||||||
gridInfo: []
|
gridInfo: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -103,17 +100,10 @@ export default {
|
|||||||
gotoMyGrids() {
|
gotoMyGrids() {
|
||||||
uni.navigateTo({url: './myGrids'})
|
uni.navigateTo({url: './myGrids'})
|
||||||
},
|
},
|
||||||
handleVConosle() {
|
|
||||||
if (this.vcBtn.count == 5) {
|
|
||||||
this.$injectLib("https://cdn.cunwuyun.cn/vconsole.min.js", () => new VConsole())
|
|
||||||
} else {
|
|
||||||
this.vcBtn.count++
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
document.title = '个人中心'
|
document.title = '个人中心'
|
||||||
this.vcBtn.count = 0
|
|
||||||
this.getGirdInfo()
|
this.getGirdInfo()
|
||||||
this.injectJWeixin('openThirdAppServiceChat')
|
this.injectJWeixin('openThirdAppServiceChat')
|
||||||
},
|
},
|
||||||
@@ -125,15 +115,6 @@ export default {
|
|||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
padding-bottom: 100px;
|
padding-bottom: 100px;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
.vconsoleBtn {
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
width: 60px;
|
|
||||||
height: 60px;
|
|
||||||
z-index: 202203181519;
|
|
||||||
}
|
|
||||||
|
|
||||||
.card {
|
.card {
|
||||||
position: relative;
|
position: relative;
|
||||||
height: 458px;
|
height: 458px;
|
||||||
|
|||||||
Reference in New Issue
Block a user