shish 5 лет назад
Родитель
Сommit
62fa38171b

+ 0 - 6
ghsApp/src/admin/home/workbench.vue

@@ -304,7 +304,6 @@ export default {
 		uni.stopPullDownRefresh();
 	},
 	onShow() {
-		// this.init();
 	},
 	methods: {
 		init() {
@@ -337,12 +336,7 @@ export default {
 				}
 			});
 		},
-
 		goPage (item) {
-			// if (item.url === '/admin/my-mall') {
-			// 	this.getMyMall()
-			// 	return
-			// }
 			this.$util.pageTo(item)
 		},
 		// 跳转

+ 1 - 24
ghsApp/src/mixins/globalMixins.js

@@ -111,7 +111,6 @@ export default {
           });
         } else {
           getStaffApi().then(res => {
-            console.log(res)
             if (res.data.openShop == '2') {
               status = '2'
             } else if (res.data.openShop == '3') {
@@ -122,7 +121,6 @@ export default {
       }
     },
     experienceFun(experienceCode){
-      console.log(experienceCode)
       if (this.$util.isEmpty(experienceCode)) {
         this.$msg('请输入体验码')
         return false
@@ -155,28 +153,7 @@ export default {
         uni.removeStorageSync('OPEN_SHOP_ID')
         this.AUTHORITY_SHOW = false
         uni.showTabBar()
-        //启动更新逻辑 shish 2020.5.18
-        if (subRes.data.update == 1) {
-          const updateManager = wx.getUpdateManager()
-          updateManager.onCheckForUpdate(function (res) {
-            // 请求完新版本信息的回调
-            console.log(res.hasUpdate)
-          })
-          updateManager.onUpdateReady(function () {
-            wx.showModal({
-              title: '更新提示',
-              content: '新版本已经准备好,是否重启应用?',
-              success(res) {
-                if (res.confirm) {
-                  // 新的版本已经下载好,调用 applyUpdate 应用新版本并重启
-                  updateManager.applyUpdate()
-                }
-              }
-            })
-          })
-          updateManager.onUpdateFailed(function () {})// 新版本下载失败
-          return true;
-        }
+
         getUser(true)
         //获取门店信息
         this.setUserShopAll();

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

@@ -302,10 +302,6 @@ export default {
         this.goToMallPt('pages/pay/index')
         return true
       }
-      // if(item.url === '/admin/my-mall'){
-      //   this.goToMallPt('pages/home/index')
-      //   return true
-      // 
       this.$util.pageTo(item)
     },
     init () {

+ 1 - 4
hdApp/src/mixins/globalMixins.js

@@ -36,7 +36,7 @@ export default {
 			uni.setStorageSync('account', option.account)
 		}
     uni.setStorageSync('currentQuery', JSON.stringify(option))
-    console.log(uni.getStorageSync('HOME_STATUS_STROAGE_SHOW'), 'this.shopAdminId', this.getLoginInfo, this.getLoginInfo.openShop)
+
     if (this.$util.isEmpty(this.getLoginInfo)) {
       wxLoginFn(true).then(res => {
         //客户可以访问的地址
@@ -51,7 +51,6 @@ export default {
         })
         if (needRedirect === true) {
           //客户访问不能查看的页面跳转去官网
-          console.log('res.data.damin', res.data.admin.openShop)
           if (res.data.shopAdminId == '0' && res.data.admin.openShop == '1') {
             this.AUTHORITY_SHOW = true;
             uni.hideTabBar()
@@ -112,7 +111,6 @@ export default {
           });
         } else {
           getStaffApi().then(res => {
-            console.log(res)
             if (res.data.openShop == '2') {
               status = '2'
             } else if (res.data.openShop == '3') {
@@ -128,7 +126,6 @@ export default {
       }
     },
     experienceFun (experienceCode) {
-      console.log(experienceCode)
       if (this.$util.isEmpty(experienceCode)) {
         this.$msg('请输入体验码')
         return false