seam vor 7 Jahren
Ursprung
Commit
022bfcf772

Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
www/webapp/housekeeping/home/static/css/app.css


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
www/webapp/housekeeping/home/static/js/app.js


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
www/webapp/housekeeping/home/static/js/app.js.map


Datei-Diff unterdrückt, da er zu groß ist
+ 0 - 0
www/webapp/housekeeping/home/static/js/manifest.js.map


+ 45 - 37
www/webapp/housekeeping/src/components/houseKeeping/isreg.vue

@@ -7,52 +7,60 @@
 </template>
 
 <script>
-  import _ from '@/config'
+import _ from '@/config';
 
-  export default {
-    name: "isreg",
-    created() {
-      let self = this;
-      let storeId = '';
-      let href = location.href;
-      if (href.indexOf('storeId') > -1) {
-        storeId = 1;
-        _.$http('/j/JGEmpolyer/Register', {
+export default {
+  name: 'isreg',
+  created() {
+    let self = this;
+    let storeId = '';
+    let href = location.href;
+    if (href.indexOf('storeId') > -1) {
+      storeId = Number.parseInt(href.split('storeId=')[1]);
+      _.$http(
+        '/j/JGEmpolyer/Register',
+        {
           userId: _.user_id,
           storeId: storeId,
-          isReg: true
-        }, res => {
+          isReg: true,
+        },
+        res => {
+          console.log(res)
           if (res.data.message == '未注册') {
-            self.$router.push({path: '/houseKeeping/login/', query: {storeId: storeId}});
+            self.$router.push({
+              path: '/houseKeeping/login/',
+              query: { storeId: storeId },
+            });
           } else {
-            self.$router.push({path: '/houseKeeping/info/'});
+            self.$router.push({ path: '/houseKeeping/info/' });
           }
-        })
-      } else {
-        weui.alert('请重新扫二维码,进入本页面', function () {
-          // self.$router.push({path: '/managementList'});
-          // wx.closeWindow();
-        });
-        return
-      }
-    },
-    methods: {}
-  }
+        }
+      );
+    } else {
+      weui.alert('请重新扫二维码,进入本页面', function() {
+        // self.$router.push({path: '/managementList'});
+        // wx.closeWindow();
+      });
+      return;
+    }
+  },
+  methods: {},
+};
 </script>
 
 <style scoped>
-  .isreg {
-    padding: 50% 0;
-    text-align: center;
-    color: #e64340;
-    font-size: 1.5rem;
-    font-weight: bold;
-    text-shadow: 1px 1px 1px #747171;
-  }
+.isreg {
+  padding: 50% 0;
+  text-align: center;
+  color: #e64340;
+  font-size: 1.5rem;
+  font-weight: bold;
+  text-shadow: 1px 1px 1px #747171;
+}
 
-  @media (max-width: 320px) {
-    .isreg {
-      font-size: 1.2rem;
-    }
+@media (max-width: 320px) {
+  .isreg {
+    font-size: 1.2rem;
   }
+}
 </style>

+ 1 - 1
www/webapp/housekeeping/src/config/globalVariables.js

@@ -50,7 +50,7 @@ if (locationHref.indexOf('http://localhost:80') > -1) {
   apiPath = 'http://commontest.yiguanjia.me/index.php?r=';
   // userId = '57fe2dc59f5160a1048b4591' // 享月会
   // userId = '582405cea84ea02e3e8b4611' // 养老院
-  userId = '59e41443fb48a7552f8b459e'; // 管理员\门店老师
+  // userId = '59e41443fb48a7552f8b459e'; // 管理员\门店老师
   // 张工
   // userId = '582849af9f5160c2048b55dc';
 

Einige Dateien werden nicht angezeigt, da zu viele Dateien in diesem Diff geändert wurden.