- 公众号接口新增草稿,传html字符串,为什么上传后ol结构会被修改?
html源码显示效果 [图片] html代码 <section id="nice" style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif; font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5em; word-spacing: 0em; letter-spacing: 0em; word-break: break-word; overflow-wrap: break-word; text-align: left;"> <h2 style="border-bottom-color: rgb(239, 112, 96); margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; align-items: unset; background-attachment: scroll; background-clip: border-box; background-color: unset; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: solid; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 2px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; display: flex; flex-direction: unset; float: unset; height: auto; justify-content: unset; line-height: 1.1em; overflow-x: unset; overflow-y: unset; position: relative; text-align: left; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;"> <span class="prefix" style="display: none;"> </span> <span class="content" style="font-size: 22px; color: rgb(255, 255, 255); background-color: rgb(239, 112, 96); line-height: 1.5em; letter-spacing: 0em; align-items: unset; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; display: inline-block; font-weight: bold; flex-direction: unset; float: unset; height: auto; justify-content: unset; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 5px; overflow-x: unset; overflow-y: unset; padding-top: 3px; padding-bottom: 1px; padding-left: 10px; padding-right: 10px; position: relative; text-align: left; text-indent: 0em; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;"> 一、引言 </span> <span class="suffix" style="display: none;"> </span> <span style="border-bottom-color: rgb(239, 235, 233); align-items: unset; background-attachment: scroll; background-clip: border-box; background-color: unset; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: solid; border-left-style: none; border-right-style: solid; border-top-width: 1px; border-bottom-width: 36px; border-left-width: 1px; border-right-width: 20px; border-top-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: transparent; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; color: rgb(0, 0, 0); display: inline-block; font-size: 16px; font-weight: bold; flex-direction: unset; float: unset; height: auto; justify-content: unset; letter-spacing: 0px; line-height: 1.1em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; overflow-x: unset; overflow-y: unset; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; position: relative; text-align: left; text-indent: 0em; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset;"> </span> </h2> <ol style="list-style-type: decimal; margin-top: 8px; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; color: rgb(0, 0, 0);"> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> <strong style="color: rgb(0, 0, 0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0, 0, 0, 0.4); border-bottom-color: rgba(0, 0, 0, 0.4); border-left-color: rgba(0, 0, 0, 0.4); border-right-color: rgba(0, 0, 0, 0.4); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;"> 背景概述 </strong> <ul style="list-style-type: disc; margin-top: 8px; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; color: rgb(0, 0, 0);"> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> 自考作为我国终身教育体系的重要组成部分(2023年报考人数突破2700万) </section> </li> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> 学历认可度:国家承认学历,学信网可查,与统招学历具有同等法律效力 </section> </li> </ul> </section> </li> </ol> </section> 上传到草稿后显示 [图片] 查看源代码 <section style="margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 10px; padding-right: 10px; background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif; font-size: 16px; color: rgb(0, 0, 0); line-height: 1.5em; word-spacing: 0em; letter-spacing: 0em; word-break: break-word; overflow-wrap: break-word; text-align: left;"> <h2 style=" border-bottom-color: rgb(239, 112, 96); margin-top: 30px; margin-bottom: 15px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; align-items: unset; background-attachment: scroll; background-clip: border-box; background-color: unset; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: solid; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 2px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; display: flex; flex-direction: unset; float: unset; height: auto; justify-content: unset; line-height: 1.1em; overflow-x: unset; overflow-y: unset; text-align: left; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset; "> <span class="prefix" style="display: none;"> </span> <span class="content" style=" font-size: 22px; color: rgb(255, 255, 255); background-color: rgb(239, 112, 96); line-height: 1.5em; letter-spacing: 0em; align-items: unset; background-attachment: scroll; background-clip: border-box; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-right-width: 1px; border-top-color: rgb(0, 0, 0); border-bottom-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: rgb(0, 0, 0); border-top-left-radius: 3px; border-top-right-radius: 3px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; display: inline-block; font-weight: bold; flex-direction: unset; float: unset; height: auto; justify-content: unset; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 5px; overflow-x: unset; overflow-y: unset; padding-top: 3px; padding-bottom: 1px; padding-left: 10px; padding-right: 10px; text-align: left; text-indent: 0em; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset; "> <span leaf=""> 一、引言 </span> </span> <span class="suffix" style="display: none;"> </span> <span style=" border-bottom-color: rgb(239, 235, 233); align-items: unset; background-attachment: scroll; background-clip: border-box; background-color: unset; background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; border-top-style: none; border-bottom-style: solid; border-left-style: none; border-right-style: solid; border-top-width: 1px; border-bottom-width: 36px; border-left-width: 1px; border-right-width: 20px; border-top-color: rgb(0, 0, 0); border-left-color: rgb(0, 0, 0); border-right-color: transparent; border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; box-shadow: none; color: rgb(0, 0, 0); display: inline-block; font-size: 16px; font-weight: bold; flex-direction: unset; float: unset; height: auto; justify-content: unset; letter-spacing: 0px; line-height: 1.1em; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; overflow-x: unset; overflow-y: unset; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; text-align: left; text-indent: 0em; text-shadow: none; transform: none; width: auto; -webkit-box-reflect: unset; "> </span> </h2> <ol style="list-style-type: decimal; margin-top: 8px; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; color: rgb(0, 0, 0);" class="list-paddingleft-1"> <li> <section> <span leaf=""> <br class="ProseMirror-trailingBreak"> </span> </section> </li> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> <strong style="color: rgb(0, 0, 0); font-weight: bold; background-attachment: scroll; background-clip: border-box; background-color: rgba(0, 0, 0, 0); background-image: none; background-origin: padding-box; background-position-x: 0%; background-position-y: 0%; background-repeat: no-repeat; background-size: auto; width: auto; height: auto; margin-top: 0px; margin-bottom: 0px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 0px; padding-right: 0px; border-top-style: none; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-width: 3px; border-bottom-width: 3px; border-left-width: 3px; border-right-width: 3px; border-top-color: rgba(0, 0, 0, 0.4); border-bottom-color: rgba(0, 0, 0, 0.4); border-left-color: rgba(0, 0, 0, 0.4); border-right-color: rgba(0, 0, 0, 0.4); border-top-left-radius: 0px; border-top-right-radius: 0px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;"> <span leaf=""> 背景概述 </span> </strong> </section> </li> <ul style="list-style-type: disc; margin-top: 8px; margin-bottom: 8px; margin-left: 0px; margin-right: 0px; padding-top: 0px; padding-bottom: 0px; padding-left: 25px; padding-right: 0px; color: rgb(0, 0, 0);" class="list-paddingleft-1"> <li> <section> <span leaf=""> <br class="ProseMirror-trailingBreak"> </span> </section> </li> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> <span leaf=""> 自考作为我国终身教育体系的重要组成部分(2023年报考人数突破2700万) </span> </section> </li> <li> <section style="margin-top: 5px; margin-bottom: 5px; color: rgb(1, 1, 1); font-size: 16px; line-height: 1.8em; letter-spacing: 0em; text-align: left; font-weight: normal;"> <span leaf=""> 学历认可度:国家承认学历,学信网可查,与统招学历具有同等法律效力 </span> </section> </li> </ul> </ol> </section>
07-08 - 安卓手机,多个input组件来回切换后input组件无法输入问题
在2019-5-25上午发现这个问题,然后疯狂的找问题的原因,找不到,只有wxml代码,在论坛里找,没有一个相关的问题,是不是放假,没人反馈问题呀 在2019-5-26陆续出现了相关问题,真无语,我测试安卓手机出现,苹果手机没这问题 WeChatLib:2.7.1(2019.5.24 11:50:59) System:Android 9,Wechat 7.0.4.1420 - 当前 Bug 的表现(可附上截图) 下图是初始状态 [图片] 多次在input之间切换(快速很容易重现) 在请第上图中,在文本input和密码input切换时,input会变成无法输入状态 如下图 [图片] - 预期表现 应该都可以正常输入 - 复现路径 - 提供一个最简复现 Demo 以下是所有代码 1.index.wxml <view> 多次input之间切换,input会变成无法输入状态 <input type='text' placeholder="请输入"></input> <input type='text' placeholder="请输入"></input> <input type='text' placeholder="请输入"></input> <input type='text' placeholder="请输入"></input> 只要密码类型都会变成无法输入状态 <input type='text' placeholder="请输入密码" password></input> <input type='text' placeholder="请输入密码" password></input> <input type='text' placeholder="请输入密码" password></input> </view> 2.index.wxss input{ border: 1px solid #ccc; } 3.index.js Page({ data: { }, onLoad: function () { }, }) 4.index.json { "usingComponents": {} } 视频内的黑屏是由于在录制屏幕时弹出键盘引起的 [视频]
2019-05-26 - 小程序虚拟支付的几点疑问
1.教育类型的小程序里面有录制的视频课程我们需要收费,应该怎么样做? a.是否可以使用微信支付(目前我的小程序审核不通过了,说是虚拟支付,之前版本一直都是审核通过的), 我看到"知乎LIve"小程序是有这功能的,为什么他们不涉及虚拟支付? b.是否可以使用线下支付,线下支付的可以观看,未支付的不可以观看 2.关于虚拟支付有哪些需要注意的,总不能像现在一样,17年11月到18年4月前都是可以正常审核通过的,突然在18年4月4号就审核不通过,这样让我们造成很大的损失,不得不把支付功能下线重新提交审核, 真的是有点坑
2018-04-04 - 多次使用拍照功能,小程序会白屏或自动退出
有些手机用了几次拍照功能后就直接白屏或退出微信返回桌面, 我拿其它小程序和官方的"小程序示例"都可以重现出bug 我使用"小程序示例"重复拍照和选择照片也一样白屏了,你们可以试一试,反反复复拍照 步骤:小程序示例->接口->媒体->图片->点那个上传按钮->拍照(有时一次就会出现,)->白屏或自动退出 [图片] 拍照一次就出现,结果如下 [图片] 再次测试,拍照3次出现如下结果,我再次打开小程序也是白屏,一定要删除小程序再打开才正常 [图片] 其它反馈:每次提bug都没有官方的回答,不知道要等多久,真的很急,严重影响我们的业务了.还有审核时,有时几个小时就可以审核成功了,有时4天了还没有审核,后提交的小程序都审核了,之前提交的还没有审核,不知道是什么情况,审核时间范围是多久
2018-03-14 - 第三方平台草稿箱ID相同
下图第一个图片第一条数据代表a小程序,第二个代码b小程序 代码模板库管理的接口返回数据都是空的,无法操作,今天再测试,发现"获取草稿箱内的所有临时代码草稿" 返回的数据中draft_id相同,当我提交a小程序(v1.0.2)到模板库时,结果提交的是v0.3的版本,这是什么情况? 情况一:a小程序上传过n次的版本,b小程序是第1次上传 返回结果draft_id相同 [图片] {"errcode":0,"errmsg":"ok","draft_list":[{"create_time":1504144458,"user_version":"v0.3","user_desc":"无效版本","draft_id":2},{"create_time":1511163562,"user_version":"v1.0.2","user_desc":"到店宝用户端基础演示版本","draft_id":2}]} 情况二:a小程序不上传,b小程序再上传一次代码,第二个小程序返回的id就不同了,这是正常的 [图片] {"errcode":0,"errmsg":"ok","draft_list":[{"create_time":1504144458,"user_version":"v0.3","user_desc":"无效版本","draft_id":2},{"create_time":1511163562,"user_version":"v1.0.3","user_desc":"用户端基础演示版本","draft_id":3}]}
2017-11-24 - web-view组件提示 invalid url domain
业务域名配置如下 [图片] 小程序端代码 [图片] 网页代码 [图片] 编译运行结果 [图片] 开发工具绑定的appid和业务域名的appid是同一个小程序 这是什么原因
2017-11-04 - input 获取焦点,键盘会把小程序的标题顶上去
当input在底部时, 获取焦点,键盘会把小程序的标题顶上去,下面第一张图是顶上去的,第二张图是正常的 [图片] [图片]
2017-01-14 - websocket连接问题
服务端启用了ssl,在开发工具上运行正常.也验证了,开发工具设置如下图所示,域名也全部在公众平台配置了 [图片] 但在真机上预览时,安卓手机提示:连接失败, 苹果上测试提示: [图片] ---------------------------------------------------------------------------------------------- 晚上把原来的wss商品由2012改为443后,在开发工具中也正常使用, 在苹果上提示下图所示,textarea显示正常 [图片] 在安卓上websocket正常,但textarea不刷新数据
2016-12-14