Explorar el Código

装集客项目更新

lijiangwei hace 4 años
padre
commit
46b0440eb5
Se han modificado 2 ficheros con 8 adiciones y 0 borrados
  1. 5 0
      uis/views/account/login.html
  2. 3 0
      uis/views/customer/index.html

+ 5 - 0
uis/views/account/login.html

@@ -117,6 +117,7 @@
         ,data: obj.field
         ,type: 'post'
         ,done: function(res){
+            console.log(res.data, "oppppppp")
 
           //请求成功后,写入 access_token
           layui.data(setter.tableName, {
@@ -135,6 +136,10 @@
             key: 'permissions'
             ,value: res.data.permissions
           });
+          layui.data(setter.tableName, {
+            key: 'manager_stores'
+            ,value: res.data.manager_stores
+          });
 
           //登入成功的提示与跳转
           layer.msg('登入成功', {

+ 3 - 0
uis/views/customer/index.html

@@ -229,6 +229,9 @@
             , height: 'full-108'
         });
 
+        var manager_stores = layui.data(layui.setter.tableName)['manager_stores'];
+        console.log(manager_stores, "opppppppp")
+
          admin.req({
             url: '/account/employee_tree/'
             , done: function (res) {