高敬炎 1 年間 前
コミット
ec138f9d6c

+ 4 - 0
uni_applet/pageA/enter/cateringindustry.vue

@@ -116,6 +116,7 @@
 			return {
 				content:'确定提交入驻信息?',
 				isSubmit:false,
+				userInfo:{},
 				form:{
 					commonId:uni.getStorageSync("userInfo").id,
 					mainBody:'商铺',
@@ -215,6 +216,9 @@
 						title: '提交成功,请等待平台审核',
 						duration: 2000
 					});
+					this.userInfo=uni.getStorageSync("userInfo")
+					this.userInfo.foodEntry+=1
+					uni.setStorageSync("userInfo",this.userInfo)
 					that.indoorImageArray=[]
 					uni.navigateBack()
 			

+ 4 - 0
uni_applet/pageA/enter/homestay.vue

@@ -85,6 +85,7 @@
 				isSubmit:false,
 				fileList4:[],
 				fileList6:[],
+				userInfo:{},
 				content:'确定提交入驻信息',
 			}
 		},
@@ -176,6 +177,9 @@
 						title: '提交成功,请等待平台审核',
 						duration: 2000
 					});
+					this.userInfo=uni.getStorageSync("userInfo")
+					this.userInfo.homeEntry+=1
+					uni.setStorageSync("userInfo",this.userInfo)
 					uni.navigateBack()
 							
 				})

+ 4 - 0
uni_applet/pageA/enter/hotel.vue

@@ -89,6 +89,7 @@
 				startDate:'',
 				isSubmit:false,
 				fileList2:[],
+				userInfo:{},
 				content:'确定提交入驻信息',
 			}
 		},
@@ -198,6 +199,9 @@
 						title: '提交成功,请等待平台审核',
 						duration: 2000
 					});
+					this.userInfo=uni.getStorageSync("userInfo")
+					this.userInfo.hotelEntry+=1
+					uni.setStorageSync("userInfo",this.userInfo)
 					uni.navigateBack()
 							
 				})

+ 55 - 2
uni_applet/pageA/my/my.vue

@@ -1,6 +1,47 @@
 <template>
 	<view>
-		
+		<u-tabbar
+			:value="tabbarCheck"
+			@change="tabbarChange"
+			activeColor="#5F7DE9"
+		>
+			<u-tabbar-item name="team" text="加入">
+				<image
+					class="u-page__item__slot-icon"
+					slot="active-icon"
+					src="@/static/image/nav-icon/antOutline-team Copy.png"
+				></image>
+				<image
+					class="u-page__item__slot-icon"
+					slot="inactive-icon"
+					src="@/static/image/nav-icon/antOutline-team.png"
+				></image>
+			</u-tabbar-item>
+			<u-tabbar-item name="notification" text="通知">
+				<image
+					class="u-page__item__slot-icon"
+					slot="active-icon"
+					src="@/static/image/nav-icon/md-notifications_none Copy.png"
+				></image>
+				<image
+					class="u-page__item__slot-icon"
+					slot="inactive-icon"
+					src="@/static/image/nav-icon/md-notifications_none.png"
+				></image>
+			</u-tabbar-item>
+			<u-tabbar-item name="user" text="我的">
+				<image
+					class="u-page__item__slot-icon"
+					slot="active-icon"
+					src="@/static/image/nav-icon/antOutline-user1 Copy.png"
+				></image>
+				<image
+					class="u-page__item__slot-icon"
+					slot="inactive-icon"
+					src="@/static/image/nav-icon/antOutline-user1.png"
+				></image>
+			</u-tabbar-item>
+		</u-tabbar>
 	</view>
 </template>
 
@@ -12,7 +53,19 @@
 			}
 		},
 		methods: {
-			
+			tabbarChange(e){
+				console.log(e)
+				if(e=='team'){
+					uni.navigateTo({
+						url:'/pageA/notice/index'
+					})
+				}else if(e=='user'){
+					uni.navigateTo({
+						url:'/pageA/my/my'
+					})
+				}
+				// name => tabbarCheck = name
+			},
 		}
 	}
 </script>

+ 1 - 42
uni_applet/pages/my/my.vue

@@ -103,48 +103,7 @@
 		<!-- <view class="exit" @click="exit" v-if="userInfo.phone">
 			退出账号
 		</view> -->
-		<u-tabbar
-			:value="tabbarCheck"
-			@change="tabbarChange"
-			activeColor="#5F7DE9"
-		>
-			<u-tabbar-item name="team" text="加入">
-				<image
-					class="u-page__item__slot-icon"
-					slot="active-icon"
-					src="@/static/image/nav-icon/antOutline-team Copy.png"
-				></image>
-				<image
-					class="u-page__item__slot-icon"
-					slot="inactive-icon"
-					src="@/static/image/nav-icon/antOutline-team.png"
-				></image>
-			</u-tabbar-item>
-			<u-tabbar-item name="notification" text="通知">
-				<image
-					class="u-page__item__slot-icon"
-					slot="active-icon"
-					src="@/static/image/nav-icon/md-notifications_none Copy.png"
-				></image>
-				<image
-					class="u-page__item__slot-icon"
-					slot="inactive-icon"
-					src="@/static/image/nav-icon/md-notifications_none.png"
-				></image>
-			</u-tabbar-item>
-			<u-tabbar-item name="user" text="我的">
-				<image
-					class="u-page__item__slot-icon"
-					slot="active-icon"
-					src="@/static/image/nav-icon/antOutline-user1 Copy.png"
-				></image>
-				<image
-					class="u-page__item__slot-icon"
-					slot="inactive-icon"
-					src="@/static/image/nav-icon/antOutline-user1.png"
-				></image>
-			</u-tabbar-item>
-		</u-tabbar>
+		
 		<login-pop-up ref='loginpopup' :content='"手机登录后才能查看我的哦~"'></login-pop-up>
 	</view>
 </template>