shish 6 лет назад
Родитель
Сommit
f10b642e9d
2 измененных файлов с 11 добавлено и 7 удалено
  1. 10 6
      store/src/admin/home/workbench.vue
  2. 1 1
      store/src/pages.json

+ 10 - 6
store/src/admin/home/workbench.vue

@@ -184,11 +184,6 @@ export default {
           img: `${this.$constant.imgUrl}/retail/admin/tab-icon-2.png`,
           url: "/admin/interest/invite"
         },
-        {
-          name: "图库",
-          img: `${this.$constant.imgUrl}/retail/admin/tab-icon-1.png`,
-          url: "/admin/goodsManage/img-store"
-        },
         {
           name: "优惠券",
           img: `${this.$constant.imgUrl}/retail/admin/tab-icon-3.png`,
@@ -199,6 +194,11 @@ export default {
           img: `${this.$constant.imgUrl}/retail/admin/tab-icon-4.png`,
           url: "/admin/ad/list"
         },
+        {
+          name: "图库",
+          img: `${this.$constant.imgUrl}/retail/admin/tab-icon-1.png`,
+          url: "/admin/goodsManage/img-store"
+        },
         {
           name: "数据统计",
           img: `${this.$constant.imgUrl}/retail/admin/tab-icon-5.png`,
@@ -276,6 +276,10 @@ export default {
   methods: {
     init() {
       getUser().then(res => {
+        uni.setNavigationBarTitle({
+          title: res.merchantName
+        });
+
         let nowTime = getDataTimestamp(new Date(), true);
         if (nowTime > res.setDeadline) {
           this.renewMask = true;
@@ -323,7 +327,7 @@ export default {
     goToItem(item) {
       if (item.name == "数据统计") {
         this.$msg("开发中...");
-      }else if(item.name == "进货"){
+      } else if (item.name == "进货") {
         this.$msg("开发中...");
       } else {
         this.$util.pageTo(item);

+ 1 - 1
store/src/pages.json

@@ -9,7 +9,7 @@
 		{
 			"path": "admin/home/workbench",
 			"style": {
-				"navigationBarTitleText": "工作台",
+				"navigationBarTitleText": "",
 				"enablePullDownRefresh": true
 			}
 		},