💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、豆包、星火、月之暗面及文生图、文生视频 广告
# 小程序的手机验证码登录 bindLoginMobilecode: function (e) { var that=this console.log(e.detail.value.code) console.log(e.detail.value.mobile) wx.request({ url:`${app.globalData.API_URL}/verify/checkVerify`, data: { mobile:e.detail.value.mobile, verify:e.detail.value.code }, method: 'post', header: { "content-type":"application/x-www-form-urlencoded" }, // 设置请求的 header success: function(res){ console.log(res) if(res.data==1){ wx.navigateTo({ url: '../successInfo/successInfo', }) }else{ wx.showToast({ title: '验证码错误,请重新发送验证!', icon: 'fail', duration: 2000 }) } that.setData({ codevalue:[] }) }, fail: function() { // fail }, complete: function() { // complete } }) },