Jelajahi Sumber

refactor(tabbar): 更新弹出层显示逻辑和文本

-将 show 属性重命名为 showTabbar,以更准确地表示其用途
- 修改"超级炫"为"超吉炫",以纠正文本内容
- 更新了弹出层显示和隐藏的逻辑,使用新的 showTabbar 属性
mws 4 bulan lalu
induk
melakukan
7bff175aa3
1 mengubah file dengan 6 tambahan dan 6 penghapusan
  1. 6 6
      components/tabbar_cjx.vue

+ 6 - 6
components/tabbar_cjx.vue

@@ -5,10 +5,10 @@
 			<u-tabbar-item v-for="(item, index) in items" :key="index" :text="item.text"
 				:icon="require(`@/static/images/tabbar/cjx/${item.icon}`)" />
 		</u-tabbar>
-		<u-popup :show="show" mode="bottom" class="popup-view" @close="close" @open="open">
+		<u-popup :show="showTabbar" mode="bottom" class="popup-view" @close="close" @open="open">
 			<view style="margin: 20px">
 				<view class="login-text">
-					超
+					超
 				</view>
 				<button class="login-btn" open-type="getPhoneNumber" @getphonenumber="handlePhone">
 					授权登录
@@ -27,7 +27,7 @@
 	export default {
 		data() {
 			return {
-				show: false,
+        showTabbar: false,
 				loginDate: {
 					jsCode: '',
 					encryptedData: '',
@@ -72,7 +72,7 @@
 				// console.log('open');
 			},
 			close() {
-				this.show = false
+				this.showTabbar = false
 				// console.log('close');
 			},
 			onTabChange(index) {
@@ -82,7 +82,7 @@
 					return;
 				}
 				this.handleLogin();
-				this.show = true;
+				this.showTabbar = true;
 				this.selectedIndex = index;
 				return;
 
@@ -110,7 +110,7 @@
 					getUserInfo(this.loginDate).then(res => {
 						if (res.code === 0) {
 							uni.setStorageSync('Authorization-status', true);
-							this.show = false;
+							this.showTabbar = false;
 							this.handleTabSwitch(this.selectedIndex);
 						} else {