欧美三级国产三级日韩三级_亚洲熟妇丰满大屁股熟妇_欧美亚洲成人一区二区三区_国产精品久久久久久模特

微信公眾號(hào)禁用右上角分享 - 新聞資訊 - 云南小程序開發(fā)|云南軟件開發(fā)|云南網(wǎng)站建設(shè)-昆明葵宇信息科技有限公司

159-8711-8523

云南網(wǎng)建設(shè)/小程序開發(fā)/軟件開發(fā)

知識(shí)

不管是網(wǎng)站,軟件還是小程序,都要直接或間接能為您產(chǎn)生價(jià)值,我們?cè)谧非笃湟曈X表現(xiàn)的同時(shí),更側(cè)重于功能的便捷,營(yíng)銷的便利,運(yùn)營(yíng)的高效,讓網(wǎng)站成為營(yíng)銷工具,讓軟件能切實(shí)提升企業(yè)內(nèi)部管理水平和效率。優(yōu)秀的程序?yàn)楹笃谏?jí)提供便捷的支持!

您當(dāng)前位置>首頁(yè) » 新聞資訊 » 公眾號(hào)相關(guān) >

微信公眾號(hào)禁用右上角分享

發(fā)表時(shí)間:2020-9-29

發(fā)布人:葵宇科技

瀏覽次數(shù):62

// 禁用分享(請(qǐng)求后臺(tái)接口獲取appid,簽名,時(shí)間戳等數(shù)據(jù))
    getJSSDK () {
      const that = this
      const url = api.getJSSDK
      const routerPath = window.location.href.split('#')[0]
      console.log(routerPath, 'routerPath')
      that.$POST(url, { url: routerPath }, res => {
        console.log(res, 'getJSSDK')
        if (res.errorCode === 0) {
          if (res.body) {
            window.wx.config({
              debug: false,
              appId: res.body.appId,
              timestamp: res.body.timestamp,
              nonceStr: res.body.nonceStr,
              signature: res.body.signature,
              jsApiList: ['hideMenuItems'],
              success: function (res) {
                alert('成功')
                console.log(res, '成功')
              },
              fail: function (res) {
                alert('失敗失敗')
                console.log(res, '失敗')
              },
              complete: function (res) {
                alert('complete')
                console.log(res, '777777777777')
              }
            })
            window.wx.ready(function () {
              console.log('禁止分享')
              window.wx.hideMenuItems({ // 要隱藏的菜單項(xiàng),只能隱藏“傳播類”和“保護(hù)類”按鈕,所有menu項(xiàng)見附錄3
                menuList: ['menuItem:share:appMessage', 'menuItem:share:timeline', 'menuItem:share:timeline', 'menuItem:share:qq', 'menuItem:favorite', 'menuItem:share:QZone', 'menuItem:openWithSafari', 'menuItem:copyUrl', 'menuItem:share:email']
              })
            })
          }
        }
      })
    },

相關(guān)案例查看更多