Browse Source

feat 管理端页面

wzh 4 months ago
parent
commit
38c91209eb
3 changed files with 11 additions and 14 deletions
  1. 4 4
      pages/cjx/hexiao/jxs/index.vue
  2. 4 6
      pages/cjx/hexiao/login.vue
  3. 3 4
      pages/cjx/hexiao/ywy/index.vue

+ 4 - 4
pages/cjx/hexiao/jxs/index.vue

@@ -83,8 +83,8 @@ export default {
         role: '超吉炫'
       },
       stats: {
-        storeCount: 12,
-        pointsCount: 1120150
+        storeCount: 0,
+        pointsCount: 0
       }
     };
   },
@@ -146,13 +146,13 @@ export default {
 
 <style lang="scss">
 .page-container {
-  min-height: 100vh;
   background-image: url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/hexiao/hexiao_bg.png");
-  background-size: contain;
+  background-size: 100% 100%;
   background-position: center;
   background-repeat: no-repeat;
 }
 .page-title {
+  padding-top: 5%;
   color: #ffffff;
   text-align: center;
   font-size: 19px;

+ 4 - 6
pages/cjx/hexiao/login.vue

@@ -177,21 +177,19 @@ export default {
       if(this.userType === 'salesman'){
         userType = 2;
       }
+      let self = this;
       uni.login({
         provider: 'weixin', //使用微信登录
         success: function (loginRes) {
           let jsCode = loginRes.code;
-          login(this.phone, this.code,userType,jsCode).then(res => {
+          login(self.phone, self.code,userType,jsCode).then(res => {
             // 登录成功 (res.code === 0)
             uni.hideLoading();
 
             if (res.code === 0) {
-              if (res.data.isWxAuth == 1) {
-                uni.setStorageSync('Authorization-status', true);
-              }
               setAdminToken(res.data.sessionId)
-              this.setUserInfo(res.data);
-              this.doLoginSuccess();
+              self.setUserInfo(res.data);
+              self.doLoginSuccess();
             } else {
               console.log('登录失败!' + res.msg);
               uni.showToast({ title: err.msg || '登录失败', icon: 'none' });

+ 3 - 4
pages/cjx/hexiao/ywy/index.vue

@@ -96,8 +96,8 @@ export default {
         role: '超吉炫'
       },
       stats: {
-        storeCount: 12,
-        pointsCount: 1120150
+        storeCount: 0,
+        pointsCount: 0
       }
     };
   },
@@ -156,9 +156,8 @@ export default {
 
 <style lang="scss">
 .page-container {
-  min-height: 100vh;
   background-image: url("https://hyscancode.oss-cn-hangzhou.aliyuncs.com/xiaochengxu/cjx/hexiao/hexiao_bg.png");
-  background-size: contain;
+  background-size: 100% 100%;
   background-position: center;
   background-repeat: no-repeat;
 }