zs 3 éve
szülő
commit
b983eeb521

+ 1 - 1
pages/login/index.js

@@ -34,7 +34,7 @@ Page({
           if (res.data.errcode == 0) {
             console.log('登录成功');
             app.globalData.userInfo = res.data.data;//存用户信息到app.js
-            wx.setStorage({ key: "token", data: 'token' })// 存用户信息到storage,以便之后判断用户是否登录
+            wx.setStorage({ key: "data", data: res.data.data })// 存用户信息到storage,以便之后判断用户是否登录
             wx.showToast({ title: `账号登录成功`, icon: 'success', duration: 2000 }) //登录成功提示
             wx.navigateTo({ url: '/pages/home/index' })// 跳转页面
           } else {

+ 1 - 1
pages/login/index.wxml

@@ -1,5 +1,5 @@
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-  <view slot="info" class="main" style="height:{{infoHeight}}px;">
+  <view slot="info" class="main">
     <view class="one">
       <view class="word">
         <text>您好,</text>

+ 9 - 5
pages/login/index.wxss

@@ -10,26 +10,30 @@
   background-color: #D8D8D8;
 }
 .main .one {
-  position: relative;
   text-align: left;
   font-size: 25px;
   font-weight: 500;
   margin-left: 30px;
   margin-top: 120px;
-  margin-bottom: 85px;
+  margin-bottom: 100px;
+}
+.two{
+  float: left;
+  width: 100%;
 }
 .word{
   margin-bottom: 10px;
 }
 .main .two {
-  position: relative;
   text-align: center;
 }
 .main .two .content {
-  margin: 0 0 30px 30px;
+  margin: 0 0 25px 30px;
 }
 .main .two .save {
-  margin: 100px 10px;
+  float: left;
+  width: 100%;
+  margin-top: 15%;
   text-align: center;
 }
 .input{

+ 8 - 2
pages/register/index.wxml

@@ -1,5 +1,5 @@
 <mobile-main frameStyle="{{frameStyle}}" bind:back="back">
-  <view slot="info" class="main" style="height:{{infoHeight}}px;">
+  <view slot="info" class="main">
     <view class="onea">
       <cover-image src='/image/back.png' class="back" bindtap='back'></cover-image>
     </view>
@@ -38,11 +38,17 @@
           </view>
         </view>
         <view class="content">
-          <view class="left1" >用户类别</view>
+          <view class="left1" >
+          用户类别
+          <view class="line"></view>
+          </view>
           <view class="right1">
             <picker mode="selector" bindchange="bindCatePickerChange" value="{{cateIndex}}" range-key="type" range="{{cateArray}}">
               <view class="weui-select">{{cateArray[cateIndex].type}}</view>
             </picker>
+            <view class="right">
+            <view class="line"></view>
+          </view>
           </view>
         </view>
         <view class="save">

+ 7 - 2
pages/register/index.wxss

@@ -12,14 +12,15 @@
 .onea{
   font-weight: 600;
   position: absolute;
-  top: -13%;
+  top: -20%;
   left: 2%;
 }
 .line{
   margin: 0 auto;
-  height: 1px;
+  height: 0.5px;
   margin-left: -10px;
   margin-right: 10px; 
+  margin-top: 2px;
   background-color: #D8D8D8;
 }
 .main .one {
@@ -64,10 +65,14 @@
   width: 30%;
   text-align: left;
   font-size: 13px;
+  color: #858585;
+  font-weight: 500;
 }
 .right1{
   float: left;
   width: 70%;
   text-align: center;
   font-size: 13px;
+  color: #858585;
+  font-weight: 500;
 }