lsx 2 年之前
父节点
当前提交
72c96b0be1
共有 1 个文件被更改,包括 6 次插入2 次删除
  1. 6 2
      src/packageOther/about/index.vue

+ 6 - 2
src/packageOther/about/index.vue

@@ -7,7 +7,7 @@
 		<u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="关于我们"></u-navbar>
 		<!-- #endif -->
 		<!-- #ifndef MP-WEIXIN || MP-ALIPAY -->
-		<view v-if="$pagesNum() > 1">
+		<view v-if="pagesNum > 1">
 			<u-navbar :placeholder="true" bgColor="#fff" :autoBack="true" :border="true" title="关于我们" />
 		</view>
 		<view v-else>
@@ -22,7 +22,7 @@
 			<view class="flex about-logo">
 				<image src="../../static/public/logo.png" mode="scaleToFill"></image>
 				<!-- #ifndef MP-ALIPAY -->
-				<view class="edition">v 1.0.16</view>
+				<view class="edition">v 1.0.17</view>
 				<!-- #endif -->
 				<!-- #ifdef MP-ALIPAY -->
 				<view class="edition">v 2.2.6</view>
@@ -42,8 +42,12 @@
 	export default {
 		data() {
 			return {
+				pagesNum: '',
 			};
 		},
+		onShow() {
+			this.pagesNum = getCurrentPages().length
+		},
 		methods: {
 			toIndex() {
 				uni.switchTab({