其他人无法正常使用小程序?

小程序 文章 2020-07-31 23:01 518 0 全屏看文

AI助手支持GPT4.0

其他人无法正常使用小程序?

小程序只有登录页面和一个首页。。使用开发者的微信号可以正常登录。可是其他微信号只能打开登录页面,点击登录无法跳转到首页!请问下各位大神这个是在哪里设置有问题呀?

The applet has only a login page and a home page.. Use the developer's micro signal to log in normally. But other micro signals can only open the login page, click login can not jump to the home page! I would like to ask the next gods where this is set there is a problem?

回答:

坨坨:
  login: function() {    var that = this;    wx.showLoading({      title: '服务器连接中',    }),    wx.request({      url: 'https://www.ailaiyun.com/login.php',      method: "post",      header: {        "Content-Type": "application/x-www-form-urlencoded"      },      data: {        name: that.data.name,        password: that.data.password,      },            success(res) {        wx.hideLoading();        if (res.data != null) {          wx.setStorage({            key:"user_info",            data:res.data          });          wx.navigateTo({            url: '../index/index',          });     } else {          wx.showToast({            title: "用户名或密码错误",            icon: 'none',          })        }      }    })  }
坨坨:登录就这个代码,很简单的。。request也设置了域名。。
坨坨:
Distance:

登录用到了请求接口?request域名没配置?

拾忆:

不发代码猜不出来

-EOF-

AI助手支持GPT4.0