2 Commits 318b1ad8bc ... eb6a61604d

Author SHA1 Message Date
  高敬炎 eb6a61604d Merge branch 'master' of http://git.zthymaoyi.com/zyw/tourism 1 year ago
  高敬炎 978bf8e3d8 前端 1 year ago

+ 17 - 5
uni_applet/pageA/enter/enter.vue

@@ -51,7 +51,7 @@
 				</u-modal>
 				</u-modal>
 		<u-tabbar
 		<u-tabbar
 			:value="tabbarCheck"
 			:value="tabbarCheck"
-			@change="name => tabbarCheck = name"
+			@change="tabbarChange"
 			activeColor="#5F7DE9"
 			activeColor="#5F7DE9"
 		>
 		>
 			<u-tabbar-item name="team" text="加入">
 			<u-tabbar-item name="team" text="加入">
@@ -259,11 +259,24 @@
 		
 		
 		},
 		},
 		methods: {
 		methods: {
+			tabbarChange(e){
+				console.log(e)
+				if(e=='notification'){
+					uni.navigateTo({
+						url:'/pageA/notice/index'
+					})
+				}else if(e=='user'){
+					uni.navigateTo({
+						url:'/pageA/my/my'
+					})
+				}
+				// name => tabbarCheck = name
+			},
 			async confirm(){
 			async confirm(){
 				var data1=await this.updateUser()
 				var data1=await this.updateUser()
 				if(data1.errno==200){
 				if(data1.errno==200){
 					uni.setStorageSync("userInfo",this.userInfo)
 					uni.setStorageSync("userInfo",this.userInfo)
-					return
+					this.editshow = false
 				}
 				}
 			},
 			},
 			
 			
@@ -298,8 +311,7 @@
 						if(data1.errno==200){
 						if(data1.errno==200){
 							uni.setStorageSync("userInfo",this.userInfo)
 							uni.setStorageSync("userInfo",this.userInfo)
 							return
 							return
-						}
-							
+						}	
 					}
 					}
 					if(uni.getStorageSync("userInfo").foodEntry==0&&uni.getStorageSync("userInfo").homeEntry!=0&&uni.getStorageSync("userInfo").hotelEntry==0){
 					if(uni.getStorageSync("userInfo").foodEntry==0&&uni.getStorageSync("userInfo").homeEntry!=0&&uni.getStorageSync("userInfo").hotelEntry==0){
 						this.userInfo.autoModule='homeEntry'
 						this.userInfo.autoModule='homeEntry'
@@ -361,7 +373,7 @@
 			},
 			},
 			updateUser(){
 			updateUser(){
 				return new Promise((resolve, reject) => {
 				return new Promise((resolve, reject) => {
-					that.$request.baseRequest('admin.unimall.commonUserInfo', 'list', {
+					that.$request.baseRequest('admin.unimall.commonUserInfo', 'update', {
 					commonUserInfo:JSON.stringify(this.userInfo)
 					commonUserInfo:JSON.stringify(this.userInfo)
 				}, failres => {
 				}, failres => {
 						reject(failres)
 						reject(failres)

+ 1 - 1
uni_applet/pageA/enter/myCateringdustry/shopSetting/editCertificate.vue

@@ -26,7 +26,7 @@
 				   @confirm="confirm"
 				   @confirm="confirm"
 				    />
 				    />
 			</u--form>
 			</u--form>
-			<view class="footer">
+			<view class="mercharts_footer">
 				<button @click='submit' class="submit">提交</button>
 				<button @click='submit' class="submit">提交</button>
 			</view>
 			</view>
 		</view>
 		</view>

+ 1 - 1
uni_applet/pageA/enter/myCateringdustry/shopSetting/editFoodClassify.vue

@@ -12,7 +12,7 @@
 				</view>
 				</view>
 			</view>
 			</view>
 		</view>
 		</view>
-		<view class="footer">
+		<view class="mercharts_footer">
 			<button @click='submit' class="submit">新增</button>
 			<button @click='submit' class="submit">新增</button>
 		</view>
 		</view>
 		<u-modal :show="isSubmit" :content='content' @confirm="$u.debounce(confirmSubmit, 500)" showCancelButton
 		<u-modal :show="isSubmit" :content='content' @confirm="$u.debounce(confirmSubmit, 500)" showCancelButton

+ 1 - 1
uni_applet/pageA/enter/myCateringdustry/shopSetting/editShopImage.vue

@@ -14,7 +14,7 @@
 					</u-upload>
 					</u-upload>
 				</u-form-item>
 				</u-form-item>
 			</u--form>
 			</u--form>
-			<view class="footer">
+			<view class="mercharts_footer">
 				<button @click='submit' class="submit">提交</button>
 				<button @click='submit' class="submit">提交</button>
 			</view>
 			</view>
 		</view>
 		</view>

+ 1 - 1
uni_applet/pageA/enter/myCateringdustry/shopSetting/editShopInformation.vue

@@ -42,7 +42,7 @@
 					<u-input inputAlign='right' maxlength="15" border='none' placeholder='输入详细地址,不超过15个字' v-model="currectData.detailedAddress" />
 					<u-input inputAlign='right' maxlength="15" border='none' placeholder='输入详细地址,不超过15个字' v-model="currectData.detailedAddress" />
 				</u-form-item>
 				</u-form-item>
 			</u--form>
 			</u--form>
-			<view class="footer">
+			<view class="mercharts_footer">
 				<button @click='submit' class="submit">提交</button>
 				<button @click='submit' class="submit">提交</button>
 			</view>
 			</view>
 			<u-modal :show="isSubmit" content='确定提交店铺信息?' @confirm="$u.debounce(confirmSubmit, 500)" showCancelButton
 			<u-modal :show="isSubmit" content='确定提交店铺信息?' @confirm="$u.debounce(confirmSubmit, 500)" showCancelButton

+ 55 - 0
uni_applet/pageA/notice/index.vue

@@ -13,6 +13,48 @@
 			</view>
 			</view>
 		<!-- </mescroll-body> -->
 		<!-- </mescroll-body> -->
 		<u-toast ref="uToast"></u-toast>
 		<u-toast ref="uToast"></u-toast>
+		<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>
 	</view>
 </template>
 </template>
 
 
@@ -31,6 +73,19 @@
 		},
 		},
 		
 		
 		methods:{
 		methods:{
+			tabbarChange(e){
+				console.log(e)
+				if(e=='team'){
+					uni.navigateTo({
+						url:'/pageA/enter/enter'
+					})
+				}else if(e=='user'){
+					uni.navigateTo({
+						url:'/pageA/my/my'
+					})
+				}
+				// name => tabbarCheck = name
+			},
 			getList(){
 			getList(){
 				var that = this
 				var that = this
 				uni.showLoading({
 				uni.showLoading({

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

@@ -90,8 +90,9 @@
 					    isLink
 					    isLink
 					    url="/pages/componentsB/badge/badge"
 					    url="/pages/componentsB/badge/badge"
 					></u-cell> -->
 					></u-cell> -->
-					<view class="kf">
+					<view class="flex justify-space-between kf">
 						<button class="left-btn" open-type='contact'>联系客服</button>
 						<button class="left-btn" open-type='contact'>联系客服</button>
+						<image style='width:22px;height:22px;' src="../../static/image/yjt.png" mode=""></image>
 					</view>
 					</view>
 
 
 					<u-cell :border='false' title="去商家端" isLink url="/pageA/enter/enter"></u-cell>
 					<u-cell :border='false' title="去商家端" isLink url="/pageA/enter/enter"></u-cell>
@@ -102,6 +103,48 @@
 		<!-- <view class="exit" @click="exit" v-if="userInfo.phone">
 		<!-- <view class="exit" @click="exit" v-if="userInfo.phone">
 			退出账号
 			退出账号
 		</view> -->
 		</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>
 		<login-pop-up ref='loginpopup' :content='"手机登录后才能查看我的哦~"'></login-pop-up>
 	</view>
 	</view>
 </template>
 </template>
@@ -139,6 +182,19 @@
 			}
 			}
 		},
 		},
 		methods: {
 		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
+			},
 			todetail(){
 			todetail(){
 				uni.navigateTo({
 				uni.navigateTo({
 					url:"/pageA/notice/index"
 					url:"/pageA/notice/index"