小程序问题

  1. 小程序跳转其他小程序,需要两个小程序同时关联统一个微信公众号,即便两个小程序关联了同一个开放平台账号,即open账号,也是不行的

  2. 原跳转其他小程序接口 wx.navigateToMiniProgram 即将下线,建议均使用 navigator 组件替代

<navigator target="miniProgram" app-id="{{item.appId}}" version="develop"></navigator>

其中 target 指定 miniProgram, app-id 为跳转至小程序的 appid,version 指定跳转至小程序的版本,develop 为开发版,trial 为体验版,release 为正式版

无论该参数怎么设置,如果当前小程序是正式版,则打开的必定是正式版

  1. web-view 嵌套页面跳转

web-view 嵌套页面中可以使用 wx.miniProgram.navigateTo 进行小程序的跳转

但是当跳转的 url 参数中有中文时, ios 下会跳转失败,需要对中文做转义处理

  1. ios 特殊字符影响显示

web-viewurl 中出现特殊字符会影响页面的显示

从 ios 通讯录中复制的手机号会带有不占位不可见的特殊字符,转义后为 %E2%80%AD, %E2%80%AC

  1. webview 上传图片

微信内嵌网页使用 input 上传时属性配置与其他浏览器有所不同

<input class="upload_pic" type="file" accept="image/*" />

results matching ""

    No results matching ""