小程序只有登录页面和一个首页。。使用开发者的微信号可以正常登录。可是其他微信号只能打开登录页面,点击登录无法跳转到首页!请问下各位大神这个是在哪里设置有问题呀?
小程序只有登录页面和一个首页。。使用开发者的微信号可以正常登录。可是其他微信号只能打开登录页面,点击登录无法跳转到首页!请问下各位大神这个是在哪里设置有问题呀?
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?
回答:
登录用到了请求接口?request域名没配置?
不发代码猜不出来
原文出处:其他人无法正常使用小程序?
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', }) } } }) }