个人案例
看我有趣不
娱乐
看看see扫码体验
[图片]代码太多了,不知道这个bug对你是否有影响
cover-view 内wx:for中的内容在真机上无法显示。已填加代码片段cover-view内wx:for中的内容在真机上不显示 wxml文件: <view class="custom" style="padding-top:0px"> <image src='/pages/images/head2.png'></image> <view class='tarbar'> <view class='tarbar-1'> <view class='goback' bindtap='goback' ><image src='/pages/images/goback.png' style='width:8px;height:14px'></image></view> <view style='font-size:13px;margin-left:40rpx;text-align:center;'>{{onsiteName}}——{{offsiteName}}</view> <view></view> </view> </view> </view> <!--<view class="empty_custom" style="padding-top:{{statusBarHeight}}px"></view>--> <view class='container' style='margin-top:105px;'> <map id="map" longitude="{{cenLng}}" latitude="{{cenLat}}" scale="13" controls="{{controls}}" bindcontroltap="controltap" markers="{{markers}}" bindmarkertap="markertap" polyline="{{polyline}}" bindregionchange="regionchange" show-location style="width: 100%; height: {{mheight}}px;"> </map> <cover-view class='modal-dialog'> <cover-view class='lineinfo'> <cover-view class='lineinfo-im'> <cover-view style='margin-top:10rpx;'><cover-image src='/pages/images/line/lineon.png' style='width:25px;height:28px;'></cover-image></cover-view> <cover-view style='margin-top:10rpx;'>{{onsiteName}}</cover-view> </cover-view> <cover-view class='lineinfo-cen'> <cover-view class='lineinfo-cen-on' style='border-bottom: 1px solid #fff;'> <cover-view>{{start_time}}</cover-view> <cover-view>¥{{price}}</cover-view> </cover-view> <cover-view class='lineinfo-cen-on'> <cover-view>{{mileage}}公里</cover-view> <cover-view>{{}}站</cover-view> <cover-view>{{take_time}}分钟</cover-view> </cover-view> </cover-view> <cover-view class='lineinfo-im'> <cover-view style='margin-top:10rpx;'><cover-image src='/pages/images/line/lineoff.png' style='width:25px;height:28px;'></cover-image></cover-view> <cover-view style='margin-top:10rpx;'>{{offsiteName}}</cover-view> </cover-view> </cover-view> <cover-view class='arrowdown' hidden='{{arrowdown}}'> <cover-image src='/pages/images/line/arrow-down.png' bindtap='open_down' style='width:16px;height:9px;margin-top:20rpx;'></cover-image> </cover-view> <cover-view class='line-site' hidden='{{!arrowdown}}'> <cover-view wx:for="{{markers}}" wx:key="id"> <cover-view class='tuijian' bindtap='switch' data-id='{{item.id}}' > <cover-view class='map-line-text' style='width:95%;margin-top:20rpx;'> <cover-view style='width:10%;'><cover-image src="{{item.iconPath}}" style='{{item.style}}' /></cover-view> <cover-view style='width:70%;padding-top:5px;'>{{item.name}}</cover-view> <cover-view style='width:20%;color:666;text-align:right;padding-top:5px;'>{{item.site_time}}</cover-view> </cover-view> </cover-view> </cover-view> <cover-view class='up-img' hidden='{{!arrowdown}}'> <cover-image src="/pages/images/line/arrow-line-route.png" bindtap='kindToggle' style="width:16px;height:15px;z-index:99px"></cover-image> </cover-view> </cover-view> </cover-view> <cover-view class='nav1' bindtap='{{tickstu?"tpticket":""}}'> <cover-view class='nav'> <cover-view class='bt' style='margin-left:30rpx;'>日票</cover-view> </cover-view> </cover-view> <cover-view class='tickdate' hidden='{{dateflag}}'> <cover-view class='dateBox' style='height:80rpx;padding-top:10rpx;'> <cover-view class='boxwn'><cover-image src='/pages/images/line/arrow-left.png' bindtap='lastmonth' style='width:9px;height:16px;'></cover-image> </cover-view> <cover-view style='width:80%;'>{{ year }} 年 {{ month}}月</cover-view> <cover-view class='boxwn'><cover-image src='/pages/images/line/arrow-right.png' bindtap='nextmonth' style='width:9px;height:16px;'></cover-image></cover-view> </cover-view> <cover-view class="week"> <cover-view style='display: flex;flex-direction: row;font-size:14px,width:100%;'> <cover-view style='width: {{ sysW+1 }}px; height: 80rpx; line-height: {{ sysW }}px;text-align:center;'>日</cover-view> <cover-view style='width: {{ sysW+1 }}px; height: 80rpx; line-height: {{ sysW }}px;text-align:center;'>一</cover-view> <cover-view style='width: {{ sysW+1 }}px; height: 80rpx; line-height: {{ sysW }}px;text-align:center;'>二</cover-view> <cover-view style='width: {{ sysW+1 }}px; height: 80rpx; line-height: {{ sysW }}px;text-align:center;'>三</cover-view> <cover-view style='width: {{ sysW+1 }}px; height: 80rpx; line-height: {{ sysW }}px;text-align:center;'>四</cover-view> <cover-view style='width: {{ sysW+1 }}px; height: 80rpx; line-height: {{ sysW }}px;text-align:center;'>五</cover-view> <cover-view style='width: {{ sysW+1 }}px; height: 80rpx; line-height: {{ sysW }}px;text-align:center;'>六</cover-view> </cover-view> </cover-view> <cover-view style='width:100%;' > <cover-view class='box1' style='width: {{ (sysW+1) * 7 }}px;'> //wx:for块内的内容在真机上都不显示,模拟器上正常 <block wx:for='{{ arr }}'> <cover_view data-id='cch_{{item.id}}' bindtap='{{item.state==1&&!item.state1 ? "choose" : ""}}' style='background:{{item.bkcolor}};width: {{ sysW }}px; height: {{ sysW }}px; border-right:1rpx solid #ccc;border-bottom:1px solid #ccc;margin-top:5rpx;font-size:26rpx;text-align:center' > <cover_view style='display:flex;flex-direction:column;width: {{ sysW }}px; height: {{ sysW }}px;' wx:if='{{item.state==1}}'> <cover_view style='display:flex;flex-direction:row;height:40px;width:100%'><cover_view style="width:40%;text-align:center;">{{ item.day }}</cover_view><cover_view style="width:60%;text-align:center;color:{{item.color}}">{{item.name}}</cover_view></cover_view> <cover_view style='color:#fff;height:40px;'>¥{{item.curprice}}</cover_view> </cover_view> <cover_view style="line-height: {{ sysW }}px;" wx:else>{{item.day}}</cover_view> </cover_view> </block> </cover-view> </cover-view> <cover-view class='buytick'> <cover-view class='ticklan'> <cover-view style='width:30%;font-size:14px;margin-top:15rpx;'>¥{{total_price}}.00</cover-view> <cover-view style='width:20%;font-size:12px;margin-top:25rpx;'>共{{tickets}}张</cover-view> <cover-view class='bul'> <cover-view class='but' bindtap='{{etflag?"buyticket":""}}' style='font-size:15px;padding-top:15rpx;'>购票</cover-view> </cover-view> </cover-view> </cover-view> </cover-view> </view> 在真机调试实数据监测是正常的。监测数据如下 [图片] 真机显示截屏: [图片] 模拟器显示: [图片] 有哪位大侠帮我看看,谢谢了!
2019-05-08我记得我们开发时:必须是当前小程序的当前用户生成的formid才能用,不能交叉使用,比如A小程序生成formid,发模板消息时的appid是B小程序的,但是formid却是A小程序的,会报错。不知道对你有没有帮助
发模板消息时,报41028错误,确认提交数据无误错误反馈:{"errcode":41028,"errmsg":"invalid form id hint: [9Jp2Ca04188641]"} 提交的数据是这样的,可以确定的是 openid正确,是用户在小程序里面对应的 formid是通过统一下单接口获取的prepay_id,并且这个是没有截断的,反复对比了,并且这个订单已经支付成功,我是在支付成功后几分钟内提交的, 所以form_id正确,也没过期 模板ID也对了几遍 下面是提交的数据,找很久实在找不出去来问题了,我想问的是这个是不是prepay_id在获取是要额外增加什么参数吗 补充说明下:其中prepay_id生成的的时候用的交易类型是:JSAPI 不知道是否与这个有关系 { "touser": "oVLDH5S65S2vv_s-tGIuDmjqRasg", "formId": "wx081401595012400e9f1142a43781463542", "template_id": "6OR4PXLJ5WvYM1jB8M5b1kgIXnebGiMVy9CORBy-CS0", "page": "pages/index/index?u=1", "emphasis_keyword": "keyword1.DATA", "data": { "keyword1": { "value": "190508140158904455" }, "keyword2": { "value": "2019-05-08 14:02:06" }, "keyword3": { "value": "A127065.芭芭鸭babaya休闲透气网布运动鞋【仿超纤/灰色】.35" }, "keyword4": { "value": "62.00" }, "keyword5": { "value": "湖北武汉洪山区关山大道" }, "keyword6": { "value": "亲,您的宝贝会尽快发货,请耐心等待哦!" } } }
2019-05-08我是通过errMsg判断的,期待有别的方法! if (e.detail.errMsg == 'getPhoneNumber:ok') { } else { }
微信小程序的getPhoneNumber点击确定和拒绝 有相对应的事件吗???因为点击一键登录时需要接口,但是发现点击取消和确定都会调用接口,如何让用户在点击拒绝授权后不触发调用接口事件
2019-05-08word-break:break-all;
为什么文字后面跟文字不会换行,文字后面跟着数字就换行了?小程序的bug吗?[图片] [图片]
2019-05-08楼主后来怎么解决的?
小程序JSSDK接口图像、音频、摇一摇、地理位置等信息接口用不了????????你想反馈一个 Bug 还是 提一个需求? 如果是 Bug: {"errMsg":"openLocation:fail, the permission value is offline verifying"} 这个错误 或者回事 url domain 是什么情况啊 求解??????????????
2018-11-02先下载nodejs,http://nodejs.cn/download/ 重新创建node.js云函数,弹出提示框,点击“是”,下载wx-server-sdk就行了
微信小程序云开发的测试云函数调用失败- 当前 Bug 的表现(可附上截图) 微信小程序云开发的测试云函数调用失败, sum下的index.js编辑如下 [图片] addFunction.js的测试函数调用部分如下 [图片] 出现的错误如下: [图片] - 预期表现 - 复现路径 - 提供一个最简复现 Demo
2018-09-27我之前复制错了,在xml中把bindgetphonenumber写成了bindgetuserinfo, 就会导致不走回调,检查半天才看到
getPhoneNumber没有回调bindgetphonenumbergetPhoneNumber点击授权后,有时候会没有回调bindgetphonenumber,导致授权不了手机号,有时候正常的。 应该不单单这个微信版本和基础库,其他版本也一样
2018-09-05cancelBoolean为 true 时,表示用户点击了取消(用于 Android 系统区分点击蒙层关闭还是点击取消按钮关闭)[代码]wx.showModal({ title: '提示', content: '这是一个模态弹窗',[代码][代码] success: function(res) { [代码] [代码] if (res.confirm) { [代码] [代码] console.log('用户点击确定')[代码] [代码] } else if (res.cancel) { [代码] [代码] console.log('用户点击取消')[代码] [代码] } else {[代码] [代码] console.log('用户点击蒙层') [代码] [代码] } [代码][代码] [代码] [代码] }[代码][代码]})[代码] 加一句加粗部分
使用wx.showModal如何在安卓手机里点击蒙层不消失- 需求的场景描述(希望解决的问题) 微信小程序使用wx.showModal弹框,在安卓手机里点击蒙层就会消失。如何使用wx.showModal点击蒙层不消失,只有点击确定取消按钮,蒙层才消失? PS:不是要自定义组件弹窗这一方法。 - 希望提供的能力
2018-07-10第二次出现,怎么破
APP-SERVICE-SDK:setStorageSync:fail;数据缓存接口(失败),这是客户端的问题还是小程序代码的问题呢,有遇到的没
2018-05-31