Эх сурвалжийг харах

控制台显示商家名称

shish 6 жил өмнө
parent
commit
f10b642e9d

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

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

+ 1 - 1
store/src/pages.json

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