Commit 64dcbc6b authored by Facius's avatar Facius

feat: 首页点击logo五下切换是否显示机构id

parent b3468d79
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
<text v-else>{{ title }}</text> <text v-else>{{ title }}</text>
<u-icon class="icon-view" name="arrow-up-fill"></u-icon> <u-icon class="icon-view" name="arrow-up-fill"></u-icon>
</view> </view>
<view>{{ orgIdText }}</view> <view v-if="showOrgId">{{ orgIdText }}</view>
<view v-if="noExam" class="tip-view"> <view v-if="noExam" class="tip-view">
<text>您还未选择题库,请先选择题库</text> <text>您还未选择题库,请先选择题库</text>
</view> </view>
...@@ -90,7 +90,11 @@ ...@@ -90,7 +90,11 @@
</view> </view>
</view> </view>
<view class="bottom-view"> <view class="bottom-view">
<image class="bottom-image" :src="mokaodashiImage"></image> <image
class="bottom-image"
:src="mokaodashiImage"
@click="handleClickBlank"
></image>
<view>想要轻松考过,首选模考大师</view> <view>想要轻松考过,首选模考大师</view>
</view> </view>
</view> </view>
...@@ -126,6 +130,8 @@ export default { ...@@ -126,6 +130,8 @@ export default {
finishCount: 0, finishCount: 0,
pass: this.$u.random(95, 99), pass: this.$u.random(95, 99),
isAdd: false, // 题库切换 isAdd: false, // 题库切换
tapCount: 0, // 点击底部logo五次,显示机构id
showOrgId: false, // 显示机构id
} }
}, },
computed: { computed: {
...@@ -566,6 +572,17 @@ export default { ...@@ -566,6 +572,17 @@ export default {
}, },
}) })
}, },
handleClickBlank() {
this.tapCount++
if (this.tapCount >= 5) {
this.showOrgId = !this.showOrgId
this.tapCount = 0
} else if (this.tapCount == 1) {
setTimeout(() => {
this.tapCount = 0
}, 3000)
}
},
}, },
} }
</script> </script>
......
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