|
|
@@ -11,12 +11,12 @@
|
|
|
<input type="text" v-model="username" @confirm="login()" placeholder="请输入手机号" maxlength="30">
|
|
|
</view>
|
|
|
</view>
|
|
|
- <!-- <view class="input-max-box-two">
|
|
|
+ <view class="input-max-box-two">
|
|
|
<view class="input-box">
|
|
|
<img src="@/static/img_log_in_password.png">
|
|
|
<input type="password" v-model="password" @confirm="login()" placeholder="请输入密码" maxlength="30">
|
|
|
</view>
|
|
|
- </view> -->
|
|
|
+ </view>
|
|
|
<view class="button-box" @click="login()">登录</view>
|
|
|
</view>
|
|
|
<view class="flex-null-2"></view>
|
|
|
@@ -60,20 +60,21 @@
|
|
|
});
|
|
|
return
|
|
|
}
|
|
|
- // if (!this.password) {
|
|
|
- // uni.showToast({
|
|
|
- // mask: true,
|
|
|
- // icon: "none",
|
|
|
- // position: "center",
|
|
|
- // title: "请输入密码",
|
|
|
- // duration: 2000
|
|
|
- // });
|
|
|
- // return
|
|
|
- // }
|
|
|
+ if (!this.password) {
|
|
|
+ uni.showToast({
|
|
|
+ mask: true,
|
|
|
+ icon: "none",
|
|
|
+ position: "center",
|
|
|
+ title: "请输入密码",
|
|
|
+ duration: 2000
|
|
|
+ });
|
|
|
+ return
|
|
|
+ }
|
|
|
let obj = {
|
|
|
// account: this.username,
|
|
|
// password: hex_md5(this.password),
|
|
|
mob : this.username,
|
|
|
+ pwd : this.password,
|
|
|
// password: hex_md5(this.password),
|
|
|
}
|
|
|
const {
|