
微信公众号
微信公众号
杨葱儿
这个作者很懒,什么都没留下…
展开
-
微信公众号的配置项
1.一定要引入微信的线上js<script src="http://res.wx.qq.com/open/js/jweixin-1.6.0.js" type="text/javascript" charset="utf-8"></script>2.使用wx的功能要配置参数才可以使用jsApiList: ["updateAppMessageShareData","updateTimelineShareData","openLocation","chooseWXPay"].原创 2020-08-12 16:08:01 · 473 阅读 · 0 评论 -
微信公众号获取定位地图(有经纬度)
先配置参数:jsApiList: ["openLocation"]// 获取微信配置function getconfig(){ var urls = location.href; $.ajax({ url: "http://saas.juwoxing.com/order/api.php?s=/api/share/getSignPackage", type: "get", dataType: "json", data:{ url:urls, }, succe.原创 2020-08-12 16:03:18 · 2877 阅读 · 0 评论 -
微信公众号h5支付功能
首先要配置参数:jsApiList:["chooseWXPay"]// 获取微信配置function getconfig(){ var urls = location.href; $.ajax({ url: "http://saas.juwoxing.com/order/api.php?s=/api/share/getSignPackage", type: "get", dataType: "json", data:{ url:urls, }, succes原创 2020-08-12 16:01:00 · 320 阅读 · 0 评论 -
微信公众号分享到朋友 朋友圈
首先哈,我用的是uni-app写的代码,把分享也写在项目里不行,会报错,跨域问题 ,可能有解决方法,但目前我没有解决,希望能解决的可以告诉我方法然后用了另外一种方法,就是单独建个项目,建个H5页面,用原生写,说一下顺序:1.Sharing项目中有个点击事件,访问接口得到一个参数,跳转h5项目中的授权页cc.htmltapshare:function(id,i){ var _self = this; uni.request({ url: "http://saas.juwoxing.c原创 2020-08-12 15:56:02 · 687 阅读 · 0 评论 -
微信公众号授权方法
export default { data() { return { openid:'', } }, onLoad(op) { if(op.open_id!=undefined && op.open_id!=''&& typeof(op.open_id) != 'undefined'){ this.openid=op.open_id this.$openid.setTest(this.openid) }else{ this.op.原创 2020-08-12 15:35:22 · 816 阅读 · 0 评论