|
@@ -27,38 +27,6 @@ const store = new Vuex.Store({
|
|
|
tabNums: 0, // '我的'右上角的数字
|
|
|
sysTime:0, //系统时间
|
|
|
scene: 0, //进入小程序的场景值
|
|
|
- tabLists: [{
|
|
|
- iconPath: "/static/nav1.png",
|
|
|
- selectedIconPath: "/static/nav1_on.png",
|
|
|
- text: '首页',
|
|
|
- pagePath: "/pages/index/index"
|
|
|
- },
|
|
|
- {
|
|
|
- iconPath: "/static/nav2.png",
|
|
|
- selectedIconPath: "/static/nav2_on.png",
|
|
|
- text: '选课',
|
|
|
- pagePath: "/pages/course/index"
|
|
|
- },
|
|
|
- {
|
|
|
- iconPath: "/static/nav6.png",
|
|
|
- selectedIconPath: "/static/nav6_on.png",
|
|
|
- text: '学习',
|
|
|
- midButton: true,
|
|
|
- pagePath: "/pages/learn/index"
|
|
|
- },
|
|
|
- {
|
|
|
- iconPath: "/static/nav3.png",
|
|
|
- selectedIconPath: "/static/nav3_on.png",
|
|
|
- text: '购物车',
|
|
|
- pagePath: "/pages/shopping/shoppingCart"
|
|
|
- },
|
|
|
- {
|
|
|
- iconPath: "/static/nav5.png",
|
|
|
- selectedIconPath: "/static/nav5_on.png",
|
|
|
- text: '我的',
|
|
|
- count: 0,
|
|
|
- pagePath: "/pages/wd/index"
|
|
|
- }]
|
|
|
},
|
|
|
getters: {
|
|
|
sysTime: state => {
|
|
@@ -129,7 +97,7 @@ const store = new Vuex.Store({
|
|
|
state.sysTime = time;
|
|
|
},
|
|
|
tabNum(state, nums) {
|
|
|
- state.tabLists[4].count = nums
|
|
|
+ // state.tabLists[4].count = nums
|
|
|
// if (nums) {
|
|
|
// uni.setTabBarBadge({
|
|
|
// index: 4,
|