shish 4 лет назад
Родитель
Сommit
0494a8537e

+ 7 - 0
hdApp/src/admin/home/workbench.vue

@@ -72,6 +72,7 @@
 <script>
 import { mapGetters, mapState } from "vuex";
 import { getWeixinId } from "@/api/invite/index";
+import { closeRemindChange } from "@/api/shop-admin"
 import { getShopInfo } from "@/utils/auth";
 import { consoleIndex } from "@/api/workbench";
 import NotLogin from "@/components/not-login";
@@ -170,6 +171,7 @@ export default {
         // #ifdef MP-WEIXIN
         this.isMini = 1
         // #endif
+        let that = this
         consoleIndex({isMini:this.isMini}).then(res => {
           this.data = res.data;
           const { asset, todayData } = res.data;
@@ -182,6 +184,11 @@ export default {
             this.totalData[4].value = asset.totalExpend ? parseFloat(asset.totalExpend) : 0;
             this.totalData[5].value = asset.totalPurchase ? parseFloat(asset.totalPurchase) : 0;
           }
+          if(res.data.hasRemindChangeAppName == 0){
+            that.$util.confirmModal({content:'本小程序最近将更名为:花掌柜',okText:'我知道了'},() => {
+              closeRemindChange()
+            })
+          }
         });
     },
     //通知处理

+ 1 - 1
hdApp/src/admin/order/components/order-item.vue

@@ -38,7 +38,7 @@ export default {
 				return {};
 			}
 		},
-    },
+	},
 	methods: {
     delItemFn () {
       this.goodsInfo.bigCount = 0

+ 5 - 0
hdApp/src/api/shop-admin/index.js

@@ -1,4 +1,9 @@
 import https from '@/plugins/luch-request_0.0.7/request'
+
+export const closeRemindChange = data => {
+	return https.post('/shop-admin/close-remind-change', data)
+}
+
 /** *
  * 准备创建管理员的数据
  */