Ver código fonte

修改专区

wangyong 5 anos atrás
pai
commit
173322ad90
3 arquivos alterados com 6 adições e 4 exclusões
  1. 0 1
      pages/login/login.js
  2. 3 3
      pages/login/login.wxml
  3. 3 0
      pages/momo/momo.js

+ 0 - 1
pages/login/login.js

@@ -87,7 +87,6 @@ Page({
   },
   login(){
     let that = this;
-    console.log(this.data.pwd)
     wx.request({
       url: host +'/channelLogin',
       method:'post',

+ 3 - 3
pages/login/login.wxml

@@ -1,13 +1,13 @@
 <view class="login-box">
   <view class='login'>
     <view class='login-item'>
-      <input type='text' placeholder='输入账号' value='{{account}}' bindblur='account'></input>
+      <input type='text' placeholder='输入账号' value='{{account}}' bindinput='account'></input>
     </view>
     <view class='login-item'>
-      <input type='password' placeholder='密码' value='{{pwd}}' bindblur='pwd'></input>
+      <input type='password' placeholder='密码' value='{{pwd}}' bindinput='pwd'></input>
     </view>
     <view class='login-btn' bindtap='login'>
-      <button>登陆</button>
+      <button bindtap='login'>登陆</button>
     </view>
   </view>
 </view>

+ 3 - 0
pages/momo/momo.js

@@ -67,6 +67,9 @@ Page({
    */
   onShow: function () {
     let that = this;
+    that.setData({
+      goodsList:[],
+    })
     if (!wx.getStorageSync('channelIdObj')) { // 还没有登录过渠道
       wx.redirectTo({
         url: '/pages/login/login?url=/pages/momo/momo&&type=1',