123 3 yıl önce
ebeveyn
işleme
e4ac0e176f

+ 1 - 1
App/common/utils/request.js

@@ -14,7 +14,7 @@ const request = (url, options) => {
       data:options.data,
       header: {
         'content-Type': 'application/json',
-        "Authorization": app.globalData.authorization ? app.globalData.authorization:''
+        "Authorization": uni.getStorageSync('userInfo').Authorization ? uni.getStorageSync('userInfo').Authorization:''
       },
       success(res) {
         if (res.data.code === "success"||res.data.status) {

+ 29 - 22
App/components/z-tabbar/z-tabbar.vue

@@ -3,7 +3,7 @@
 		<view class="seat"></view>
 		<view class="tabbar flex-n fac fja">
 			<view class="item" :class="$store.state.tabbarRouter==item.router?'choose':''" :key="index"
-				v-for="(item,index) in menuList" @click="gotoPage(item.router)">
+				v-for="(item,index) in menuList" @click="gotoPage(item.router)" v-if="!item.hide">
 				<image class="icon" :src="$store.state.tabbarRouter==item.router?item.selecetedIcon:item.icon"></image>
 				<view class="text">{{item.name}}</view>
 				<view class="num" v-if="item.router=='remind/index/index'&&askOrderCount>0">{{askOrderCount}}</view>
@@ -30,24 +30,28 @@
 						icon: require('../../static/tabbar-1-0.png'),
 						selecetedIcon: require('../../static/tabbar-1-1.png'),
 						name: '提醒',
+						hide:true,
 						router: 'remind/index/index'
 					},
 					{
 						icon: require('../../static/tabbar-2-0.png'),
 						selecetedIcon: require('../../static/tabbar-2-1.png'),
 						name: '预订',
+						hide:true,
 						router: 'book/index/index'
 					},
 					{
 						icon: require('../../static/tabbar-3-0.png'),
 						selecetedIcon: require('../../static/tabbar-3-1.png'),
 						name: '结算',
+						hide:true,
 						router: 'settlement/index/index'
 					},
 					{
 						icon: require('../../static/tabbar-4-0.png'),
 						selecetedIcon: require('../../static/tabbar-4-1.png'),
 						name: '我的',
+						hide:false,
 						router: 'center/index/index'
 					},
 				],
@@ -78,30 +82,33 @@
 						menu.push(res.data.list[i].app_menu_id);
 					}
 					console.log(menu)
-					if (menu.indexOf('101') == -1 && menu.indexOf('102') == -1) {
-						for (var i = 0, len = this.menuList.length; i < len; i++) {
-							if (this.menuList[i].name == '提醒') {
-								this.menuList.splice(i, 1);
-								break;
-							}
-						}
+					if (menu.indexOf('101') != -1 || menu.indexOf('102') != -1) {
+						this.$set(this.menuList[0],'hide',false);
+						// for (var i = 0, len = this.menuList.length; i < len; i++) {
+						// 	if (this.menuList[i].name == '提醒') {
+						// 		this.menuList.splice(i, 1);
+						// 		break;
+						// 	}
+						// }
 					}
 					console.log('42343')
-					if (menu.indexOf('103') == -1) {
-						for (var i = 0, len = this.menuList.length; i < len; i++) {
-							if (this.menuList[i].name == '预订') {
-								this.menuList.splice(i, 1);
-								break;
-							}
-						}
+					if (menu.indexOf('103') != -1) {
+						this.$set(this.menuList[1],'hide',false);
+						// for (var i = 0, len = this.menuList.length; i < len; i++) {
+						// 	if (this.menuList[i].name == '预订') {
+						// 		this.menuList.splice(i, 1);
+						// 		break;
+						// 	}
+						// }
 					}
-					if (menu.indexOf('104') == -1 && menu.indexOf('105') == -1) {
-						for (var i = 0, len = this.menuList.length; i < len; i++) {
-							if (this.menuList[i].name == '结算') {
-								this.menuList.splice(i, 1);
-								break;
-							}
-						}
+					if (menu.indexOf('104') != -1|| menu.indexOf('105') != -1) {
+						this.$set(this.menuList[2],'hide',false);
+						// for (var i = 0, len = this.menuList.length; i < len; i++) {
+						// 	if (this.menuList[i].name == '结算') {
+						// 		this.menuList.splice(i, 1);
+						// 		break;
+						// 	}
+						// }
 					}
 					// menuList
 					console.warn('431344')

+ 2 - 2
App/manifest.json

@@ -2,8 +2,8 @@
     "name" : "刺兔",
     "appid" : "__UNI__509E9F1",
     "description" : "",
-    "versionName" : "1.2.7",
-    "versionCode" : 1270,
+    "versionName" : "1.2.9",
+    "versionCode" : 1290,
     "transformPx" : false,
     /* 5+App特有相关 */
     "app-plus" : {

Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
App/unpackage/dist/build/app-plus/app-service.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
App/unpackage/dist/build/app-plus/app-view.js


Dosya farkı çok büyük olduğundan ihmal edildi
+ 0 - 0
App/unpackage/dist/build/app-plus/manifest.json


Bu fark içinde çok fazla dosya değişikliği olduğu için bazı dosyalar gösterilmiyor