首页 > TAG信息列表 > jweixin

uniapp app,小程序,公众号h5调用扫一扫

(app,小程序)   uni.scanCode({ onlyFromCamera: true, //只能通过相机扫码 success: function (res) { if(res.result.indexOf("%")!=-1){ var str = res.result.substr(50); let strs= str.split("-"); that.account = strs[

uni版分享H5

    onShow(){ this.getData(this.id) // #ifdef H5 var that = this var jweixin = require('jweixin-module') //npm安装的引用 var surl = window.location.href; // var surl = encodeURIComponent(window.location.href.split('#')[0]);

h5接入微信分享sdk,报错Cannot read property of undefined (reading 'title')

直接下载jweixin-1.6.0.js文件,引入文件 import wx from './jweixin-1.6.0.js';     解决方法: 将jweixin-1.6.0.js文件中的this改为window就可以了   其他方法,参考: https://blog.csdn.net/illlllllllllll/article/details/112789644  

uniapp h5页面引入企业微信js-sdk

我的项目是用vue-cli命令行创建的,里面有public/index。HTML模板文件,也可以加vue.config.js 1、引入js文件 <script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script> 直接将上面代码插入到index.html模板文件中 2、配置vue.config.js module.exports = { chainWe