小程序
小游戏
企业微信
微信支付
扫描小程序码分享
微信工具里可以,手机上就报错
2 个回答
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
机型:vivo
微信版本:不懂
自定义组件里的:
num: function(e) {
this.setData({
input: e.detail.value
})
},
btn: function() {
var www = ''
if (this.data.input) {
wx.navigateTo({
url: '../../pages/select/select'
wx.setStorageSync(www, this.data.input)
}
页面里的
data: {
mv: [],
onLoad: function(options) {
var that = this;
var www = '';
var it = wx.getStorageSync(www);
console.log(it)
wx.request({
url: 'https://v.cjveg.com/api/search?pagesize=20&pageindex=1?',
query: it
method: "GET",
header: {
'Content-Type': 'json'
success: function(res, cb) {
console.log(res.data);
that.setData({
mv: res.data.data
内容中可能包含密钥、AppSecret等私密参数,泄漏会有安全风险,请检查内容并确认。
麻烦按照教程提供可复现问题的代码片段:https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
wechatide://minicode/d2XbpvmA7o2e
你好,请提供一下出现问题的机型和微信版本,以及能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
机型:vivo
微信版本:不懂
自定义组件里的:
num: function(e) {
this.setData({
input: e.detail.value
})
},
btn: function() {
var www = ''
if (this.data.input) {
wx.navigateTo({
url: '../../pages/select/select'
})
wx.setStorageSync(www, this.data.input)
}
},
页面里的
data: {
mv: [],
},
onLoad: function(options) {
var that = this;
var www = '';
var it = wx.getStorageSync(www);
console.log(it)
wx.request({
url: 'https://v.cjveg.com/api/search?pagesize=20&pageindex=1?',
data: {
query: it
},
method: "GET",
header: {
'Content-Type': 'json'
},
success: function(res, cb) {
console.log(res.data);
that.setData({
mv: res.data.data
})
},
})
},
麻烦按照教程提供可复现问题的代码片段:https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html
wechatide://minicode/d2XbpvmA7o2e