elis пре 2 година
родитељ
комит
8070728aec

+ 30 - 31
nngkxxdp/src/main/resources/static/nnzwminiapp/app.json

@@ -24,37 +24,36 @@
 		"borderStyle": "white",
 		"list": [
 			{
-			"selectedIconPath": "/pages/images/f-fw2.png",
-			"iconPath": "pages/images/f-sy.png",
-			"pagePath": "pages/index/index",
-			"selected": false,
-			"text": "首页"
-		},
-		{
-			"selectedIconPath": "pages/images/f-gk2.png",
-			"iconPath": "pages/images/f-gk.png",
-			"pagePath": "pages/publics/publics",
-			"text": "公开"
-		},
-		{
-			"selectedIconPath": "pages/images/f-gk2.png",
-			"iconPath": "pages/images/f-gk.png",
-			"pagePath": "pages/nais/nais",
-			"isSpecial": true,
-			"text": "这是南岸"
-		},
-		{
-			"selectedIconPath": "pages/images/l-grzl.png",
-			"iconPath": "pages/images/l-grzl.png",
-			"pagePath": "pages/serve/serve",
-			"text": "服务"
-		},
-		{
-			"selectedIconPath": "pages/images/l-grzl.png",
-			"iconPath": "pages/images/l-grzl.png",
-			"pagePath": "pages/myCenter/myCenter",
-			"text": "我的"
-		}
+				"selectedIconPath": "pages/images/f-fw2.png",
+				"iconPath": "pages/images/f-sy.png",
+				"pagePath": "pages/index/index",
+				"text": "首页"
+			},
+			{
+				"selectedIconPath": "pages/images/f-gk2.png",
+				"iconPath": "pages/images/f-gk.png",
+				"pagePath": "pages/publics/publics",
+				"text": "公开"
+			},
+			{
+				"selectedIconPath": "pages/images/f-gk2.png",
+				"iconPath": "pages/images/f-gk.png",
+				"pagePath": "pages/nais/nais",
+				"isSpecial": true,
+				"text": "这是南岸"
+			},
+			{
+				"selectedIconPath": "pages/images/f-fw2.png",
+				"iconPath": "pages/images/f-fw.png",
+				"pagePath": "pages/serve/serve",
+				"text": "服务"
+			},
+			{
+				"selectedIconPath": "pages/images/f-wd2.png",
+				"iconPath": "pages/images/f-wd.png",
+				"pagePath": "pages/myCenter/myCenter",
+				"text": "我的"
+			}
 		]
 	}
 }

+ 4 - 4
nngkxxdp/src/main/resources/static/nnzwminiapp/custom-tab-bar/index.js

@@ -7,17 +7,14 @@ Component({
 		
 	},
 	data: {
-		isIphoneX: app.globalData.systemInfo.model.search('iPhone') != -1 ? true : false,
-		selected: 0,
+		selected: '',
 		backgroundColor: "#ffffff",
 		color: "#979795",
 		selectedColor: "#1c1c1b",
-		currentTab: 0, // 默认首页为选中页面
 		list: [{
 				"selectedIconPath": "/pages/images/f-fw2.png",
 				"iconPath": "/pages/images/f-sy.png",
 				"pagePath": "/pages/index/index",
-				"selected": false,
 				"text": "首页"
 			},
 			{
@@ -52,6 +49,9 @@ Component({
 			const data = e.currentTarget.dataset
 			const url = data.path
 			wx.switchTab({url})
+			console.log("sss"+this.data.selected);
+			console.log("ttt"+data.index);
+			this.data.selected= '';
 			this.setData({
 			  selected: data.index
 			})

+ 1 - 0
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/index/index.js

@@ -15,6 +15,7 @@ Page({
 
 
   onReady() {
+	  	console.log(1);
 		if (typeof this.getTabBar === 'function' &&
 		this.getTabBar()) {
 			this.getTabBar().setData({

+ 1 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/myCenter/myCenter.js

@@ -16,7 +16,7 @@ Page({
 		if (typeof this.getTabBar === 'function' &&
 		this.getTabBar()) {
 			this.getTabBar().setData({
-			selected: 0
+			selected: 4
 			})
 		}
 	},

+ 1 - 1
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/nais/nais.js

@@ -19,7 +19,7 @@ Page({
 	 * 生命周期函数--监听页面显示
 	 */
 	onShow() {
-		console.log("nan"+1);
+		console.log(3);
 		if (typeof this.getTabBar === 'function' &&
 		this.getTabBar()) {
 		this.getTabBar().setData({

+ 1 - 4
nngkxxdp/src/main/resources/static/nnzwminiapp/pages/publics/publics.js

@@ -21,11 +21,8 @@ Page({
 	 * 生命周期函数--监听页面显示
 	 */
 	onShow() {
-		console.log(1);
-		console.log(typeof this.getTabBar === 'function');
-		console.log(this.getTabBar());
+		console.log(2);
 		if (typeof this.getTabBar === 'function' && this.getTabBar()) {
-			console.log(2);
 		this.getTabBar().setData({
 		  selected: 1
 		})