Skip to content

Commit

Permalink
调整演示版本显示
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiQiaoT committed Nov 30, 2021
1 parent 5871b4a commit 29b61dd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion components/page-nav/page-nav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
height="70px" />
<view class="nav-info">
<view class="nav-info__title" @tap="jumpToWx">
<text class="nav-info__title__text">uView {{this.$u.config.v}}</text>
<text class="nav-info__title__text">uView {{version}}</text>
<!-- #ifdef MP-WEIXIN -->
<!-- uni-app不支持text内部的text组件的tap事件,所以放到外部响应tap -->
<text class="nav-info__title__jump">查看1.x演示</text>
Expand All @@ -23,6 +23,11 @@
props: {
desc: String,
title: String,
},
data() {
return {
version: uni.$u.config.v
}
},
methods: {
jumpToWx() {
Expand Down

0 comments on commit 29b61dd

Please sign in to comment.