lilei 5 months ago
parent
commit
cf828158b6
2 changed files with 12 additions and 11 deletions
  1. 2 2
      App.vue
  2. 10 9
      pages/index/index.vue

+ 2 - 2
App.vue

@@ -2,8 +2,8 @@
 	export default {
 		globalData: {
 			// baseUrl: 'http://192.168.2.131:7002/saas/clz/', // 本地
-			baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
-			// baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
+			// baseUrl: 'https://md.test.zyucgj.com/saas/clz/', // 预发布
+			baseUrl: 'https://car.zyucgj.com/saas/clz/' // 生产
 		},
 		onLaunch: function() {
 			console.log('App Launch');

+ 10 - 9
pages/index/index.vue

@@ -766,11 +766,11 @@
 			},
 			// 显示购物车tab
 			showCatTab(){
-				const videoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '视频')
+				const videoIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '我的')
 				const catIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '购物车')
 				if(catIndex<0 && videoIndex >= 0){
 					// 替换视频为购物车
-					this.$store.state.vuex_tabBarList.splice(videoIndex,1,{
+					this.$store.state.vuex_tabBarList.splice(videoIndex,0,{
 						"pagePath": "/pages/cart/index",
 						"iconPath": "/static/tab/tab_cart_normal.png",
 						"selectedIconPath": "/static/tab/tab_cart_pressed.png",
@@ -791,13 +791,14 @@
 				const catIndex = this.$store.state.vuex_tabBarList.findIndex(item => item.text == '购物车')
 				if(videoIndex<0 && catIndex >= 0){
 					// 替换购物车为视频
-					this.$store.state.vuex_tabBarList.splice(catIndex,1,{
-						"pagePath": "/pages/videos/index",
-						"iconPath": "/static/tab/tab_video_normal.png",
-						"selectedIconPath": "/static/tab/tab_video_pressed.png",
-						"text": "视频",
-						'customIcon': false,
-					})
+					// this.$store.state.vuex_tabBarList.splice(catIndex,1,{
+					// 	"pagePath": "/pages/videos/index",
+					// 	"iconPath": "/static/tab/tab_video_normal.png",
+					// 	"selectedIconPath": "/static/tab/tab_video_pressed.png",
+					// 	"text": "视频",
+					// 	'customIcon': false,
+					// })
+					this.$store.state.vuex_tabBarList.splice(catIndex,1)
 				}
 			},
 			// 显示促销模块