你这个appid是测试号呀,你用邮箱申请一个正式的
我登录小程序页面之后只有id 没有其他选项。https://developers.weixin.qq.com/miniprogram/dev/framework/quickstart/getstart.html
2022-03-18试试把文件类型加上 /* 打开文档 * @param fileUrl: 文件地址 * @param filetype: 文件类型 */ openDocument(fileUrl, filetype) { filetype=filetype || ""; wx.showLoading({ title: '加载中...', }) wx.downloadFile({ url: fileUrl, success: res => { wx.hideLoading(); const filePath = res.tempFilePath; wx.openDocument({ showMenu:true, filePath: filePath, fileType: filetype, success: function (res) { console.log("打开成功") }, fail: function (res) { wx.showToast({title: '打开文档失败', icon: 'none', duration: 2000}) }, }) }, fail: res => { wx.hideLoading(); console.log(res); }, }); },
关于在小程序打开PDF 问题?有个需求需要在小程序中打开PDF,直接预览,然后在体验版或者真机预览都能直接预览PDF,但是在正式版本上没办法预览,下面是我的代码,相关业务域名都配置了 [图片]
2022-03-17 //说明:page:当前页数 last_page:总页数 当当前页数等于总页数的时候就停止请求 let that=this; if (that.data.page < that.data.last_page) { that.data.page++; that.getList(); }else{ wx.showToast({ title: '没有更多了', icon:"none" }) }
onReachBottom 怎么判断到了最底部呢?[图片] 都没有数据了,还在加载
2022-03-17.propertyBox{ display: flex; flex-wrap: nowrap; align-items: center; } .leftTitle{ flex:1; }
一行有两个view,怎么一个左对齐,一个右对齐?想要达到的效果: [图片] 目前效果: [图片] 代码和样式如下: [图片] [图片] [图片] 如果把rightTitle的flex-direction设成row-reverse,右边部分靠右了,但是里面的字体会颠倒,请问有什么解决办法?
2022-03-17[图片]
小程序改名后,为何分享的页面仍显示原有名称?[图片][图片][图片] 如图,小程序已改名为国网积分e+,但是在分享后仍显示原名称国网e+,上下名称不匹配,咨询了线上客服,说让我们开发者自己改,问在哪里改也不说。求大佬们有没有知道的,跪谢
2022-03-16公众号二维码在小程序内长按识别
小程序跳转公众号主页?小程序如果跳转微信公众号主页
2022-03-16怎么打不开呢?截图说明一下
请问为什么我的小程序发布后就打不开了?请问为什么我的小程序发布后就打不开了,我在开发工具测试和真机调试都可以打开小程序,但是审核发布后就打不开了。为此,我换了三个域名,搭建了好几次,本地测好,就上传,上传审核发布后就打不开,重复了三次了,好奇怪,请求帮看一下,而且审核是应该 可以打开小程序的吧,不然怎么审核呢……
2022-03-13别着急,审你两天也是正常的
写文章7个小时了还在审核中?啥意思https://developers.weixin.qq.com/community/develop/article/doc/0006e811eb8cb8c2de9d4495d53c13 怎么还没通过呢老是在审核中。。。。
2022-03-10截个图?
公众号小程序开发界面显示系统繁忙是怎么回事?[图片]
2022-03-10css里 justify-content: center; 这个删了
这里card的间距为什么这么大?该怎么解决?使用的是vant组件模板,之前在wxml写死数据的时候间距正常,尝试wx:for循环后成了这样[图片] 之前:[图片] wxml代码: <van-tabs active="{{ active }}" bind:change="onChange" animated> <van-tab title="未送达"> <scroll-view scroll-y="true" style="height: 900rpx; margin-top: 45rpx;"> <view class="order_box" style="height: 400px;opacity: 0.85;margin-top:5%;margin-left:16%;margin-bottom: 5%;" wx:for="{{orderList}}" wx:key="oid"> <van-card desc="订单号:{{item.oid}}" title="{{item.oname}}" num="{{item.count}}" price="{{item.money}}" desc-class="cardDesc" style="margin-bottom: 5%;" > <view slot="footer"> <button class="box_btn" bindtap="showDetailDialog" size="mini">详情</button> <button class="box_btn" size="mini" bindtap="orderReminder">催单</button> </view> </van-card> </view> </scroll-view> </van-tab> <van-tab title="待支付" dot="true"> <scroll-view scroll-y="true" style="height: 400px;"> <view class="order_box" style="height: 400px;opacity: 0.85;margin-top:5%;margin-left:16%;"> <view style="margin-bottom: 5%;"> </view> </view> </scroll-view> </van-tab> <van-tab title="待评价" dot="true"> <scroll-view scroll-y="true" style="height: 400px;"> <view class="order_box" style="height: 400px;opacity: 0.85;margin-top:5%;margin-left:16%;"> <view style="margin-bottom: 5%;"> </view> </view> </scroll-view> </van-tab> </van-tabs> wxss代码: .van-tab{} .van-tabs{} .van-card{ width: 80%; height: 35%; border-radius:7px } .order_box{ justify-content: center; height: 20%; } .scroll-view{} .cardDesc{ margin-top: 20rpx; }
2022-03-10