ccjgmwz 4 tahun lalu
induk
melakukan
5dff7604b5

+ 0 - 42
unimall-app/pages/buy/transaction.vue

@@ -103,48 +103,6 @@
 				scrollTop: 0,
 				categoryList:[{title:'我要买粮',id:'0'},{title:'我要卖粮',id:'1'}],
 				TabCur: 0,
-				listTab: [
-					{
-						iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun.png",
-						selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun_check.png",
-						text: '资讯',
-						count: 0	,
-						isDot: true,
-						customIcon: false,
-						pagePath:'/pages/sale/information'
-					},
-					{
-						iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi.png",
-						selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi_check.png",
-						text: '交易',
-						customIcon: false,
-						pagePath:'/pages/buy/transaction'
-					},
-					{
-						iconPath: "chat",
-						selectedIconPath: "chat",
-						text: '粮信',
-						midButton: true,
-						customIcon: false,
-						pagePath:'/pages/home/home'
-					},
-					{
-						iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu.png",
-						selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu_check.png",
-						text: '物流',
-						customIcon: false,
-						pagePath:'/pages/tran/tran'
-					},
-					{
-						iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode.png",
-						selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode_check.png",
-						text: '我的',
-						count: this.myTip,
-						isDot: false,
-						customIcon: false,
-						pagePath:'/pages/user/user'
-					},
-				],
 				current: 1
 			};
 		},

+ 0 - 56
unimall-app/pages/sale/information.vue

@@ -209,47 +209,6 @@
 				loadStatus:'loading',  //加载样式:more-加载前样式,loading-加载中样式,nomore-没有数据样式
 				TabCur: 0,
 				category:0,
-				listTab: [
-					{
-						iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun.png",
-						selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun_check.png",
-						text: '资讯',
-						count: 0	,
-						customIcon: false,
-						pagePath:'/pages/sale/information'
-					},
-					{
-						iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi.png",
-						selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi_check.png",
-						text: '交易',
-						customIcon: false,
-						pagePath:'/pages/buy/transaction'
-					},
-					{
-						iconPath: "chat",
-						selectedIconPath: "chat",
-						text: '粮信',
-						midButton: true,
-						customIcon: false,
-						pagePath:'/pages/home/home'
-					},
-					{
-						iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu.png",
-						selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu_check.png",
-						text: '物流',
-						customIcon: false,
-						pagePath:'/pages/tran/tran'
-					},
-					{
-						iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode.png",
-						selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode_check.png",
-						text: '我的',
-						count: this.myTip,
-						isDot: false,
-						customIcon: false,
-						pagePath:'/pages/user/user'
-					},
-				],
 				current: 0
 			};
 		},
@@ -304,21 +263,6 @@
 			})
 			uni.hideTabBar()
 			// this.loadData() 
-			uni.preloadPage({
-				url:"/pages/buy/transaction",
-				complete(e) {
-					console.log("预加载成功"+JSON.stringify(e))
-				},
-				fail(e) {
-					console.log("预加载失败"+JSON.stringify(e))
-				}
-			})
-			uni.preloadPage({
-				url:"/pages/tran/tran"
-			})
-			uni.preloadPage({
-				url:"/pages/user/user"
-			})
 		},
 		onPageScroll(e) {
 			this.scrollTop = e.scrollTop;

+ 0 - 42
unimall-app/pages/tran/tran.vue

@@ -143,48 +143,6 @@
 					isLoadMore:false  ,//是否加载中
 					PageCur: "tran",
 					TabCur: 0,
-					listTab: [
-						{
-							iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun.png",
-							selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun_check.png",
-							text: '资讯',
-							count: 0	,
-							isDot: true,
-							customIcon: false,
-							pagePath:'/pages/sale/information'
-						},
-						{
-							iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi.png",
-							selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi_check.png",
-							text: '交易',
-							customIcon: false,
-							pagePath:'/pages/buy/transaction'
-						},
-						{
-							iconPath: "chat",
-							selectedIconPath: "chat",
-							text: '粮信',
-							midButton: true,
-							customIcon: false,
-							pagePath:'/pages/home/home'
-						},
-						{
-							iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu.png",
-							selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu_check.png",
-							text: '物流',
-							customIcon: false,
-							pagePath:'/pages/tran/tran'
-						},
-						{
-							iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode.png",
-							selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode_check.png",
-							text: '我的',
-							count: this.myTip,
-							isDot: false,
-							customIcon: false,
-							pagePath:'/pages/user/user'
-						},
-					],
 					current: 3
 				};
 			},

+ 1 - 44
unimall-app/pages/user/user.vue

@@ -221,50 +221,7 @@
 					],
 					showTran:true,
 					companyId:1,
-					
-					listTab: [
-						{
-							iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun.png",
-							selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun_check.png",
-							text: '资讯',
-							count: 0	,
-							isDot: true,
-							customIcon: false,
-							pagePath:'/pages/sale/information'
-						},
-						{
-							iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi.png",
-							selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi_check.png",
-							text: '交易',
-							customIcon: false,
-							pagePath:'/pages/buy/transaction'
-						},
-						{
-							iconPath: "chat",
-							selectedIconPath: "chat",
-							text: '粮信',
-							midButton: true,
-							customIcon: false,
-							pagePath:'/pages/home/home'
-						},
-						{
-							iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu.png",
-							selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu_check.png",
-							text: '物流',
-							customIcon: false,
-							pagePath:'/pages/tran/tran'
-						},
-						{
-							iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode.png",
-							selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode_check.png",
-							text: '我的',
-							count: this.myTip,
-							isDot: false,
-							customIcon: false,
-							pagePath:'/pages/user/user'
-						},
-					],
-					current: 3
+					current: 4
 			}
 		},
 		

+ 42 - 1
unimall-app/store/index.js

@@ -11,7 +11,7 @@ try {
 }
 
 // 需要永久存储,且下次APP启动需要取出的,在state中的变量名
-let saveStateKeys = ['firendItem','userData','pushRes','myTip','taskTip','contractTip','liangxinTip','packet','linkItem','memberItem','memberItemIndex','chatItem'];
+let saveStateKeys = ['firendItem','userData','pushRes','myTip','taskTip','contractTip','liangxinTip','packet','linkItem','memberItem','memberItemIndex','chatItem','listTab'];
 
 // 保存变量到本地存储中
 const saveLifeData = function(key, value) {
@@ -85,6 +85,47 @@ const store = new Vuex.Store({
 			// { src:require('@/static/image/circleBanner/3.jpg'), isCheck:false },
 			// { src:require('@/static/image/circleBanner/4.jpg'), isCheck:false },
 		],
+		// 版本
+		listTab: [
+			{
+				iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun.png",
+				selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/zixun_check.png",
+				text: '资讯',
+				customIcon: false,
+				pagePath:'/pages/sale/information'
+			},
+			{
+				iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi.png",
+				selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/jiaoyi_check.png",
+				text: '交易',
+				customIcon: false,
+				pagePath:'/pages/buy/transaction'
+			},
+			{
+				iconPath: "chat",
+				selectedIconPath: "chat",
+				text: '粮信',
+				midButton: true,
+				customIcon: false,
+				pagePath:'/pages/home/home'
+			},
+			{
+				iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu.png",
+				selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wuliu_check.png",
+				text: '物流',
+				customIcon: false,
+				pagePath:'/pages/tran/tran'
+			},
+			{
+				iconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode.png",
+				selectedIconPath: "https://taohaoliang.oss-cn-beijing.aliyuncs.com/tmp/wode_check.png",
+				text: '我的',
+				count: lifeData.myTip?lifeData.myTip: 0,
+				isDot: false,
+				customIcon: false,
+				pagePath:'/pages/user/user'
+			},
+		]
 	},
 	mutations: {
 		$uStore(state, payload) {