小程序
问下冷启动耗时中的访问场景“Android系统”,具体是什么场景啊? 这个场景耗时好长啊 [图片]
[图片]
短信法人没及时验证,再验证时就提示这个,重新发短信也不行,现在不知道该如何解决 信息都是填写对了的[图片]
[图片]微信端,快捷登录(包括QQ、微信、支付宝、微博等),在手机微信端快捷登录,提示“错误信息(-1,net::ERR_INVALID_ARGUMENT) 轻触屏幕重新”加载,才能跳转到QQ、微信、支付宝、微博等的快捷登录页面,大家有没有碰到过,什么原因,如何解决?
搞不懂了,一个认证,联系了多次,怎么都不行,真傻逼啊你们
着急使用,麻烦帮忙审核一下行吗
我的正式环境的订单获取不到
// utils/tq.js export const questions = [ { type: "多选题", question: "请选择所有偶数", options: ["1", "2", "3", "4"], correctAnswer: ["2", "4"] }, { type: "判断题", question: "水的化学式是 H2O。", correctAnswer: true } ]; <!-- pages/question/question.wxml --> <view class="container"> <view class="question-number"> <text>题目 {{currentQuestionIndex + 1}} / {{questions.length}}</text> </view> <view class="question"> <text>{{currentQuestion.question}}</text> </view> <view class="options"> <!-- 单选题 --> <block wx:if="{{currentQuestion.type === '单选题'}}"> <radio-group class="radio-group" bindchange="selectOption"> <block wx:for="{{currentQuestion.options}}" wx:key="index"> <label class="radio-label"> <radio value="{{item}}" checked="{{item === selectedAnswer}}" /> {{item}} </label> </block> </radio-group> </block> <!-- 多选题 --> <block wx:elif="{{currentQuestion.type === '多选题'}}"> <checkbox-group class="checkbox-group" bindchange="selectOption"> <block wx:for="{{currentQuestion.options}}" wx:key="index"> <label class="checkbox-label"> <checkbox value="{{item}}" checked="{{selectedAnswer.includes(item)}}" /> {{item}} </label> </block> </checkbox-group> </block> <!-- 判断题 --> <block wx:elif="{{currentQuestion.type === '判断题'}}"> <radio-group class="radio-group" bindchange="toggleJudgment"> <label class="radio-label"> <radio value="true" checked="{{selectedAnswer === true}}" /> 是 </label> <label class="radio-label"> <radio value="false" checked="{{selectedAnswer === false}}" /> 否 </label> </radio-group> </block> </view> <view class="result" wx:if="{{showResult}}"> <text>{{resultMessage}}</text> </view> <view class="controls"> <button bindtap="prevQuestion" wx:if="{{currentQuestionIndex > 0}}">上一题</button> <button bindtap="nextQuestion" wx:if="{{currentQuestionIndex < questions.length - 1}}">下一题</button> <button bindtap="checkAnswer" wx:if="{{currentQuestionIndex === questions.length - 1}}">提交答案</button> </view> </view> // pages/question/question.js const { questions } = require('../../utils/tq.js'); Page({ data: { questions: questions, currentQuestionIndex: 0, selectedAnswer: null, // 初始化为null showResult: false, resultMessage: "", }, onLoad() { this.setData({ currentQuestion: this.data.questions[this.data.currentQuestionIndex] }); }, selectOption(event) { const value = event.detail.value[0]; const { currentQuestion } = this.data; const valueArray = event.detail.value;// console.log("选中的值:", valueArray);// if (currentQuestion.type === "单选题") { this.setData({ selectedAnswer: value }); } else if (currentQuestion.type === "多选题") { let selected = this.data.selectedAnswer || []; const index = selected.indexOf(value); if (index === -1) { selected.push(value); } else { selected.splice(index, 1); } this.setData({ selectedAnswer: selected }); } }, toggleJudgment(event) { // 获取用户选择的值,并将其转换为布尔值 const value = event.detail.value === "true"; // 修正这里 this.setData({ selectedAnswer: value }); }, nextQuestion() { const { currentQuestion, selectedAnswer } = this.data; let isCorrect = false; if (currentQuestion.type === "单选题") { isCorrect = selectedAnswer === currentQuestion.correctAnswer[0]; } else if (currentQuestion.type === "多选题") { // 确保selectedAnswer是数组 if (!Array.isArray(selectedAnswer)) { this.setData({ showResult: true, resultMessage: "请选择至少一个选项" }); return; } isCorrect = JSON.stringify(selectedAnswer.sort()) === JSON.stringify(currentQuestion.correctAnswer.sort()); } else if (currentQuestion.type === "判断题") { isCorrect = selectedAnswer === currentQuestion.correctAnswer; } if (isCorrect) { // 如果答案正确,跳转到下一题 this.setData({ currentQuestionIndex: this.data.currentQuestionIndex + 1, selectedAnswer: null, // 重置答案 showResult: false }); if (this.data.currentQuestionIndex < this.data.questions.length) { this.setData({ currentQuestion: this.data.questions[this.data.currentQuestionIndex] }); } else { wx.showToast({ title: "已经完成所有题目!", icon: "success", duration: 2000 }); } } else { // 如果答案错误,显示正确答案 this.setData({ showResult: true, resultMessage: `很遗憾,回答错误。正确答案是:${this.getCorrectAnswer(currentQuestion)}` }); } }, prevQuestion() { if (this.data.currentQuestionIndex > 0) { this.setData({ currentQuestionIndex: this.data.currentQuestionIndex - 1, selectedAnswer: null, // 重置答案 showResult: true }); this.setData({ currentQuestion: this.data.questions[this.data.currentQuestionIndex] }); } }, checkAnswer() { const { currentQuestion, selectedAnswer } = this.data; let isCorrect = false; if (currentQuestion.type === "单选题") { isCorrect = selectedAnswer === currentQuestion.correctAnswer[0]; } else if (currentQuestion.type === "多选题") { if (!Array.isArray(selectedAnswer)) { this.setData({ showResult: true, resultMessage: "请选择至少一个选项" }); return; } isCorrect = JSON.stringify(selectedAnswer.sort()) === JSON.stringify(currentQuestion.correctAnswer.sort()); } else if (currentQuestion.type === "判断题") { isCorrect = selectedAnswer === currentQuestion.correctAnswer; } if (isCorrect) { wx.showToast({ title: "恭喜,答案正确!", icon: "success", duration: 2000 }); this.setData({ showResult: false // 清除错误提示 }); } else { this.setData({ showResult: true, resultMessage: `很遗憾,回答错误。正确答案是:${this.getCorrectAnswer(currentQuestion)}` }); } }, getCorrectAnswer(question) { if (question.type === "单选题" || question.type === "多选题") { return question.correctAnswer.join(", "); } else if (question.type === "判断题") { return question.correctAnswer ? "是" : "否"; } return ""; } }); /* pages/question/question.wxss */ .container { padding: 20px; } .question-number { font-size: 16px; color: #666; margin-bottom: 10px; text-align: center; } .question { font-size: 18px; margin-bottom: 10px; } .options { margin-bottom: 20px; } .option { margin-bottom: 10px; } .radio-group, .checkbox-group { display: flex; flex-direction: column; /* 确保选项竖直排列 */ } .radio-label, .checkbox-label { margin-right: 10px; margin-bottom: 15px;/* 调整选项之间的间距 */ } /* 自定义checkbox样式 */ .checkbox .wx-checkbox-input { width: 30rpx; height: 30rpx; border-radius: 50%; border: 1px solid #ccc; } .checkbox .wx-checkbox-input.wx-checkbox-input-checked { background-color: #007aff; border-color: #007aff; } .checkbox .wx-checkbox-input.wx-checkbox-input-checked::before { content: "\2713"; color: #fff; font-size: 20rpx; line-height: 30rpx; text-align: center; } .result { font-size: 16px; color: red; margin-bottom: 20px; } .controls { display: flex; justify-content: space-between; }
我的小程序主体在4.25号已经主体变更完成了,那我现在需要变更备案的话,需要先注销原有备案吗?还是提交了注销后就可以进行新的备案申请了?注销备案影响现在上线的业务场景吗?
[图片]
受限制的域名链接: https://img.vrupup.com/s/756/front/H5/index.html [图片] 之前网站被攻击注入了一些违规的内容,违规的链接已经清除,如下图所示 [图片] 但多次申诉依旧反馈是该链接有问题 申诉结果: [图片] 麻烦告知具体是什么原因,现已影响正常的业务进行,需要我们处理的,我们积极配合
wx.getFuzzyLocation 企微小程序不能使用,wx.getLocation 没权限? 应该怎么去定位
这域名是用来配置微信小程序扫码带参数进入的[图片][图片][图片][图片]
想做一块数据大屏,需要展示We分析中的数据,所以想找一下We分析有没有开放API。
我想获取当前微信用户手机号,除了使用button设置open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber"之外还有别的方式可以调用后端接口获取手机号么
[图片]链接是https://m.alltuu.com/album/2426267046/?from=qrCode,麻烦帮忙解决
AppId:wxdf37d8822e8b345a 我就是展示天气需要获取经纬度写的很清楚了,到底什么原因拒绝?每次拒绝理由也不写让人猜吗?我也有天气类目啊 怎么不行了?
个人视频号未认证 实名信息是A,管理信息是B 个人公众号未认证 实名信息是A 视频号切换公众号身份被提示主体不一致
[图片][图片]
发货管理后台接入的是测试环境的订单,这个接口在哪配置?