https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html 如果有帮助请帮忙点个"有用"谢谢↓↓
跳转app?小程序怎么跳转app
2020-04-23wx.request函数有三个回调 成功success失败fail完成complete 你可以尝试在相应的回调中进行打印日志检查下你的请求具体的问题 若有帮助请帮忙点个"有用"谢谢↓↓
wx.request 没有回调?部分请求可以发送成功,不成功的请求没有回调,在控制台可以看到requst begin、request end 输出
2020-04-23应该是你返回的数据children[0].tabbarbool可能存在异常导致的 你可能直接使用这个对象的属性实际却没有这个对象,使用的时候可以先判断undefined这样可以减少很多空报错 若有帮助请帮忙点个"有用"谢谢↓↓
版本每天都报错,这是什么情况呢?每天都有这个错误记录, undefined is not an object (evaluating 'e.$children[0].tabbarbool');at pages/cats/cats onLoad function;at setTimeout callback function https://usr//pages/cats/app-service.js:2400:14655 https://lib/WAServiceMainContext.js:2:127503 https://lib/WASubContext.js:2:92717 https://lib/WASubContext.js:2:99161 undefined is not an object (evaluating 'i.name') https://usr//pages/quick-shop/app-service.js:1301:6286 t@https://lib/WASubContext.js:2:65881 https://lib/WASubContext.js:2:66003 e@https://lib/WASubContext.js:2:68459 https://lib/WASubContext.js:2:32672 r@https://lib/WASubContext.js:2:32371 https://lib/WAServiceMainContext.js:2:128111 https://lib/WASubContext.js:2:93040 https://lib/WASubContext.js:2:99554
2020-04-23是这个效果吗(不知道你想要的效果是啥) /* 公告 */ @keyframes remindMessage { 0% { -webkit-transform: translateX(90%); } 100% { -webkit-transform: translateX(-180%); } } .notice-wrap { width: 100%; background: #ffebda; height: 100%; position: relative; color: #d09868; } .tongzhitext{ width: 90%; padding: 0 5%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tongzhi-text { font-size: 28rpx; animation: remindMessage 14s linear infinite; width: 90%; height: 60rpx; display: flex; align-items: center; } .closeView { width: 45rpx; background: #ffebda; height: 45rpx; line-height: 45rpx; position: absolute; right: 0rpx; top: 0rpx; text-align: center; font-size: 35rpx; position: absolute; z-index: 999; } 若有帮助请帮忙点个"有用"谢谢↓↓
relative定位后被遮挡使用z-index为什么无效?定位后被遮挡,我解决方案是用z-index,但是发现还是被遮挡,求助各位师傅。[图片] wxml: <view class="container"> <view class="page-body"> <swiper class="body-pic" indicator-dots="true" autoplay="ture" interval="2000"> <swiper-item> <image src='/images/bg7.jpg'></image></swiper-item> <swiper-item> <image src='/images/bg2.jpg'></image></swiper-item> <swiper-item> <image src='/images/bg3.jpg'></image></swiper-item> </swiper> </view> <view class='notice-wrap' hidden='{{hideNotice}}'> <view class='tongzhitext'> <text class="tongzhi-text">{{notice}}</text> </view> <text bindtap='switchNotice' class="closeView">x</text> </view> </view> wxss: .container { height: 100%; display: flex; flex-direction: column; padding: 0; box-sizing: border-box; } .page-body{ width: 100%; } .body-pic{ width: 100%; height: 250px; } .body-pic image{ width: 100%; height: 250px; } /* 公告 */ @keyframes remindMessage { 0% { -webkit-transform: translateX(90%); } 100% { -webkit-transform: translateX(-180%); } } .tongzhitext { margin-right:80rpx; margin-left: 10rpx; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; z-index:1; } .tongzhi-text { font-size: 28rpx; animation: remindMessage 14s linear infinite; width: 100%; color: #d09868; display: block; position: relative; top: -55px; z-index:9999; } .notice-wrap { background: #ffebda; width: 100%; height: 60rpx; line-height: 60rpx; color: #d09868; font-size: 28rpx; z-index:1; } .closeView { width: 45rpx; height: 45rpx; line-height: 45rpx; position: absolute; right: 20rpx; top: 5rpx; text-align: center; font-size: 35rpx; position: absolute; left:95%; top:245px; z-index:999; }
2020-04-23你可以这样尝试下 wx.setStorage({ key:"key", data:"value", success:function(res){ // 网络请求 } }) 若有帮助请帮忙点个"有用"谢谢↓↓
wx.setStorageSync 首次登录小程序,首次缓存数据后,马上获取不生效?小程序需要登陆其他系统,获取到token的数据。 http.postRequest 是将wx.request请求封装在http.js中。 http.js:wx.request头部的信息设置 var header = { 'content-type': 'application/x-www-form-urlencoded', 'Authorization': 'bearer ' + wx.getStorageSync('token'), 'version': '1.0.0', } function request(url, params, method, onSuccess, onFailed) { wx.request({ url: api + url, data: dealParams(params), method: method, header: header, success: function (res) { if (res.statusCode == 200) { onSuccess(res.data); } else { onFailed(res) } }, fail: function (error) { onFailed(""); } }) } 实例请求方法: http.postRequest("/token/get", params, function (res) { wx.setStorageSync('token', res.data.access_token) //该接口调用是需要token认证的 this.findByOpenId() }, function (err) { }); 首次登录小程序,首次缓存数据,this.findByOpenId() 在 wx.setStorageSync 之后并且需要token值,在http.js文件中 wx.getStorageSync('token') 是空值。
2020-04-23登入微信公众平台可以将版本撤回
第三方平台提交了,需要做其它改动,现在就卡在这里,希望提供撤回渠道?想要撤回重新修改
2020-04-23恩是需要重新上传版本的,这个时候需要把审核的版本撤回重新审核新版本 若有帮助请帮忙点个"有用"谢谢↓↓
关于提交审核的问题?请问一下,我在代码审核的时候改了新代码,需要二次提审来更新最新的代码吗?
2020-04-23谢邀: 你可以贴下代码片段才能容易排查问题
wx.chooseImage 无法调用图片?安卓华为 mate30 用此api无法选择图片 小程序appid wx3baa26205dc28796
2020-04-23你需要90天内存在支付的流水才能符合要求 若有帮助请帮忙点个"有用"谢谢↓↓
为什么条件符合,可是开通小程序直播时还是开通不了?开通小程序直播时提示:小程序近90天没有存在支付行为,不能申请开通 。小程序ID:wxc5decb3a2dd558ab [图片]
2020-04-22可以参考以下截图和链接 [图片] https://developers.weixin.qq.com/miniprogram/dev/reference/api/Page.html#onShareAppMessage-Object-object 若有帮助请帮忙点个"有用"谢谢↓↓
小程序转发到微信群,封面效果需要转发内容的缩略图。请问代码怎么写?请问要达到下图中的效果,代码如何写?是在onShareAppMessage那儿。万分感谢! [图片] [图片]
2020-04-22