<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ### 1、小程序wx.showToast()與wx.hideLoading()沖突的問題 ***** * 習慣性的使用`finally`引起的`showToast`閃退問題,**模擬器中可以顯示,但是在真機測試中就是不顯示**。 ``` xxx().then(({ code }) => { if(code!==200){ wx.showToast({ ... }) } }).finally(() => (wx.hideLoading())) ``` 小程序社區[鏈接](https://developers.weixin.qq.com/community/develop/doc/000e0ed76441089c9058848d651c00):同一層scope域中`wx.showToast()`與`wx.hideLoading()`沖突,只要同一級上wx.showModal()前面使用了 wx.showLoading() 彈框就不會顯示了。 * 解決方法: ``` xxx().then(({ code }) => { wx.hideLoading() // 在wx.showToast()執行之前關閉 if(code!==200){ wx.showToast({ ... }) } }).catch(() => (wx.hideLoading())) ``` ### 2、微信掃描普通鏈接二維碼跳轉小程序能力 ***** 需求背景:使用微信掃一掃二維碼,直接打開小程序,并帶入相應的參數,如`userId`和`orderId`的value值是動態,當打開小程序,則需要獲取該參數。其實,微信公眾平臺早已開放掃描普通鏈接二維碼跳轉小程序能力,[請查看](https://developers.weixin.qq.com/miniprogram/introduction/qrcode.html)。 ![](https://img.kancloud.cn/c4/ef/c4ef3da98225afb527ac8614ff39e62f_1276x339.png) 開始配置: 1、開發 -> 開發管理 -> 開發設置 -> 掃普通鏈接二維碼打開小程序 2、開發 -> 開發管理 -> 開發設置 -> 服務器域名 注:我遇到的問題,**證書無效導致二維碼規則一直不通過**,當場xxx!!!在提一點:規則生產的隨機碼文件需要放置項目的根目錄,可通過https://xxx.xxx.xxx/隨機文件.READMD。 到這里,開發和體驗版去掃描普通二維碼,還是不能跳轉到小程序,只有當**測試鏈接** 配置的完整鏈接(注意:完整鏈接,如果你改成`https://xxx.xxx.xxx?userId=123&orderId=124`,就跳不了了),去生成二維碼,再用微信掃一掃,就可以跳到小程序。心想我不可能只有五個鏈接的撒,也不可能每個都配置,畢竟`userId`和`orderId`的value值是不固定的,心里估計萬馬奔騰啊!!! **重點:** 其實這個不用擔心,域名和規則配置對了,再生產的版本中,只要二維碼中存在`https://xxx.xxx.xxx`,就可以正常的跳轉,并且解析url后面的參數,在`onLoad`中`options.q`,再附上解密方法`decodeURIComponent(options.q)`,解析URL方法,可查看parseUrlParams方法,點擊[這里](http://www.hmoore.net/vvmily_king/vvmily/2326096)。 ![](https://img.kancloud.cn/00/63/00630a0cad3c5de88fc2105851372be4_1055x576.png) 下面提供一種查看證數是否過期或者有效的方式,谷歌瀏覽器打開,如下圖: ![](https://img.kancloud.cn/a4/43/a44350d3a6aa9634ead9959c312461b8_449x406.png) ### 3、小程序navigationBarTitleText不生效問題 ***** `app.json` 中 `pages[]`沒有配置路由
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看