解决了吗,我的也是提示错误[图片]
开发者工具1.05.2201240出现$gwx is not a function 报错经常调试着出现这个报错,刷新一下又没了: [图片] Uncaught FrameworkError $gwx is not a function TypeError: $gwx is not a function at $73756270616765732f766572696669636174696f6e2f (<anonymous>:7:1) at <anonymous>:11849:47 at doWhenAllScriptLoaded (<anonymous>:11936:12) at HTMLScriptElement.scriptLoaded (<anonymous>:11958:5) at HTMLScriptElement.<anonymous> (<anonymous>:11983:22)(env: macOS,mp,1.05.2201240; lib: 2.14.1)
10-09manifest.json文件中这部分的配置为 [图片]
为何重新编译了一下代码就报错了 requiredPrivateInfos[3] 字段需为 ?[ app.json 文件内容错误] app.json: requiredPrivateInfos[3] 字段需为 chooseAddress,chooseLocation,choosePoi,getFuzzyLocation,getLocation,onLocationChange,startLocationUpdate,startLocationUpdateBackground(env: Windows,mp,1.06.2407101; lib: 3.4.5) [图片]
07-20<template> <view> <view class="lineView"></view> <view class="login-title">绑定手机号码</view> <view class="login-detail">信息将与当前账号绑定(用于身份验证)</view> <view class="bottomView"> <view style="width: 100%;"> <view style="height: 45px;margin-left: 30px;margin-right: 30px;"> <button v-if="!isTrue" @click.prevent="jumpss" style="background-color: #5E92C1;color: white;font-size: 15px;height: 46px;line-height: 46px;border-radius: 23px;">绑定手机号</button> <button v-else open-type="getPhoneNumber" @getphonenumber="PhoneNumber" style="background-color: #5E92C1;color: white;font-size: 15px;height: 46px;line-height: 46px;border-radius: 23px;">绑定手机号</button> </view> </view> </view> <view class="sel_view" style="display: flex; align-items: center;"> <radio color="#2D6EFC" class="radio" @click="radioChange" :checked="isTrue" :value="isTrue" style="transform:scale(0.7);color:#5E92C1" /> <view>勾选代表您已同意<text style="color:#5E92C1;" @click="xieyi1">《用户服务协议》</text>和<text style="color:#5E92C1;" @click="xieyi2">《隐私政策》</text></view> </view> </view> </template> <script> import http from "@/http.js" import api from "@/api.js" export default { data() { return { phone: '', sms: '', sendCode: '获取验证码', // 倒计时时间 time_count: 60, timer: null, isTrue: null, }; }, onLoad() { uni.setNavigationBarTitle({ title: '绑定手机号' }) }, methods: { xieyi1() { uni.navigateTo({ url: "/package_mine/protocol?type=1" }) }, xieyi2() { uni.navigateTo({ url: "/package_mine/protocol?type=2" }) }, jumpss() { if (this.isTrue != true) { uni.showToast({ title: "请勾选协议", icon: "none" }) return } }, onChangeTitle(e) { this.phone = e.detail.value console.log(this.phone) }, // 同意阅读 radioChange() { this.isTrue = this.isTrue ? false : true }, submitClick() { if (this.phone.length == 0) { uni.showToast({ title: '请先阅读协议', icon: "none" }) return } var prams = { 'phone': this.phone } http.post(api.smallLogin, prams).then(res => { uni.setStorageSync('token', res.data.token), uni.setStorageSync('userId', res.data.userId) uni.setStorageSync('phone', res.data.phone) uni.navigateBack({ delta: 1 }) }) }, PhoneNumber(e) { if (e.detail.code) { var prams = { 'code': e.detail.code } http.post(api.smallLogin, prams).then(res => { uni.setStorageSync('token', res.data.token), uni.setStorageSync('userId', res.data.userId) uni.setStorageSync('phone', res.data.phone) uni.navigateBack({ delta: 1 }) }) } }, } } </script>
微信授权手机号登录?微信小程序授权手机号登录获取token的时候,接口的返回时快时慢,大部分请求会超过一分钟导致授权失败,即使是清除小程序的缓存也会这样
05-08