seam 7 years ago
parent
commit
dd9eb8a60d

File diff suppressed because it is too large
+ 0 - 0
www/webapp/housekeeping/home/static/css/app.css


File diff suppressed because it is too large
+ 0 - 0
www/webapp/housekeeping/home/static/js/app.js


File diff suppressed because it is too large
+ 0 - 0
www/webapp/housekeeping/home/static/js/app.js.map


File diff suppressed because it is too large
+ 0 - 0
www/webapp/housekeeping/home/static/js/manifest.js.map


+ 1 - 4
www/webapp/housekeeping/src/components/Home.vue

@@ -64,11 +64,8 @@
       init();
       // 用户是否为管理员
       if (config.user_id === '57e238929f5160d6048b456d' || config.user_id === '57e38f1b9f5160ac048b457d') {
-//        this.$router.push({path: '/managementList'});
+        this.$router.push({path: '/managementList'});
       }
-      axios.post(config.apiPath + '/j/HouseKeeping/GetUser&user_id=' + config.user_id).then(res => {
-        alert(`门店ID:${res.data.store_id}`);
-      })
 
       function init() {
         setTimeout(function () {

+ 3 - 2
www/webapp/housekeeping/src/config/index.js

@@ -10,7 +10,7 @@ if (locationHref.indexOf('common.yiguanjia.me') > -1) {
 if (test) {
   apiPath = 'http://commontest.yiguanjia.me/index.php?r=';
   // userId = '57e38f1b9f5160ac048b457d'
-  if(localStorage.getItem('wxUserID') === null){
+  if (localStorage.getItem('wxUserID') === null) {
     userId = '57e238929f5160d6048b456d' // 管理员
   } else {
     userId = localStorage.getItem('wxUserID')
@@ -26,7 +26,8 @@ if (locationHref.indexOf('http://localhost:8080/') > -1) {
   apiPath = 'http://commontest.yiguanjia.me/index.php?r=';
   // userId = '57fe2dc59f5160a1048b4591' // 享月会
   // userId = '582405cea84ea02e3e8b4611' // 养老院
-  userId = '57e238929f5160d6048b456d' // 管理员
+  // userId = '57e238929f5160d6048b456d'; // 管理员
+  userId = '57fd74be9f5160c7048b4a52' // 顾客
 } else if (locationHref.indexOf('admin.yiguanjiadev.me') > -1) {
   apiPath = 'http://admin.yiguanjiadev.me/index.php?r=';
   // userId = '57fe2dc59f5160a1048b4591'; // 享月会

Some files were not shown because too many files changed in this diff