|
- function doLogin() {
- if (pass) {
- /*$api.post('https://d.apicloud.com/mcm/api/user/login', {
- username : tel,
- password : pwd
- }, function(ret) {
- }, 'json');*/
- var model = api.require('model');
- model.config({
- appid: 'A6973455400997',
- appkey:'86066211-93A7-E9E6-C953-8B8C6C2BD136',
- host: 'https://d.apicloud.com'
- });
- var user = api.require('user');
- user.login({
- username: tel,
- password: pwd
- },function(ret,err){
- if(ret){
-
- }else{
- api.toast({
- msg: err==null?'登录失败':'',
- location: 'top'
- });
- }
- });
- }
- }
复制代码 为什么这样无法登录,我数据库中有相应的用户名和密码啊,account:15850779391/qwertyui
|
|