1附录1、登录注册功能accountLogin: function() { var that = this; if (this.data.password.length < 1 || this.data.username.length < 1) { wx.showModal({ title: '错误信息', content: '请输入用户名和密码', showCancel: false }); return false; } wx.request({ url: api.AuthLoginByAccount, data: { username: that.data.username, password: that.data.password }, method: 'POST', header: { 'content-type': 'application/json' }, success: function(res) { if (res.data.errno == 0) { that.setData(...
发表评论取消回复