提交 f5939358 authored 作者: lihuihui's avatar lihuihui

uodate

上级 e8d2407c
......@@ -3,13 +3,13 @@ import httpRequest from './axios'
export default function useWXShare() {
httpRequest
.post('https://node-server.ezijing.com/share/getsignature', {
appId: 'wxa41d0081d4889921',
appId: 'wx451c01d40d090d7a',
url: location.href.split('#').pop()
})
.then(result => {
wx.config({
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: 'wxa41d0081d4889921', // 必填,公众号的唯一标识
appId: 'wx451c01d40d090d7a', // 必填,公众号的唯一标识
timestamp: result.timestamp, // 必填,生成签名的时间戳
nonceStr: result.noncestr, // 必填,生成签名的随机串
signature: result.token, // 必填,签名
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论