mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
15
README.md
15
README.md
@@ -89,19 +89,15 @@ https://gitee.com/gz-yami/mall4j/wikis
|
||||

|
||||
|
||||
|
||||
### 3. 软著截图
|
||||

|
||||
|
||||
|
||||
|
||||
## 提交反馈
|
||||
- Mall4j官网 https://www.mall4j.com
|
||||
|
||||
|
||||
- mall4j开源技术QQ群:722835385
|
||||
|
||||

|
||||
- Mall4j官方技术QQ群:722835385(3000人群)
|
||||
- 如需购买商业版源码,请联系商务微信
|
||||
|
||||

|
||||
|
||||
## 特别鸣谢
|
||||
|
||||
@@ -110,7 +106,4 @@ https://gitee.com/gz-yami/mall4j/wikis
|
||||
## mall4cloud微服务版本已上线
|
||||
https://gitee.com/gz-yami/mall4cloud
|
||||
|
||||
## 你的点赞鼓励,是我们前进的动力~
|
||||
## 你的点赞鼓励,是我们前进的动力~
|
||||
## 你的点赞鼓励,是我们前进的动力~
|
||||
|
||||
## 更多信息请查看官网 <https://www.mall4j.com>
|
||||
|
||||
@@ -109,6 +109,7 @@ Page({
|
||||
* 注册/登录按钮
|
||||
*/
|
||||
handleLoginOrRegister() {
|
||||
const that = this
|
||||
if (!this.data.userName.trim()) {
|
||||
wx.showToast({
|
||||
title: '请输入用户名',
|
||||
@@ -132,9 +133,22 @@ Page({
|
||||
},
|
||||
callBack: (res) => {
|
||||
wx.setStorageSync('token', res.accessToken)
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
if(this.data.isRegister) {
|
||||
that.setData({
|
||||
userName: '',
|
||||
password: '',
|
||||
isRegister: !that.data.isRegister
|
||||
})
|
||||
wx.showToast({
|
||||
title: '注册成功,请登录',
|
||||
icon: 'none'
|
||||
})
|
||||
}else {
|
||||
wx.switchTab({
|
||||
url: '/pages/index/index',
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
http.request(params);
|
||||
|
||||
@@ -5,13 +5,13 @@
|
||||
<view class="item">
|
||||
<view class="account">
|
||||
<text class="input-item">用户名</text>
|
||||
<input type="text" data-type="account" placeholder-class="inp-palcehoder" placeholder="请输入用户名" bindinput="getInputVal"></input>
|
||||
<input type="text" data-type="account" placeholder-class="inp-palcehoder" value="{{userName}}" placeholder="请输入用户名" bindinput="getInputVal"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view class="item">
|
||||
<view class="account">
|
||||
<text class="input-item">密码</text>
|
||||
<input type="password" data-type="password" placeholder-class="inp-palcehoder" placeholder="请输入密码" bindinput="getInputVal"></input>
|
||||
<input type="password" data-type="password" placeholder-class="inp-palcehoder" value="{{password}}" placeholder="请输入密码" bindinput="getInputVal"></input>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
|
||||
Reference in New Issue
Block a user