share-11:23

youmengting-dev
游梦婷 1 year ago
parent 77bd68ca63
commit b530d80471
  1. 4
      common/share.js

@ -30,8 +30,6 @@ export default {
that.localPath = window.location.href; that.localPath = window.location.href;
that.shareLink = app.globalData.h5url + '?accountId=0000016&key=&code=' + that.localPath.split('#')[1]; that.shareLink = app.globalData.h5url + '?accountId=0000016&key=&code=' + that.localPath.split('#')[1];
that.$set(this.shareH5,"link",that.shareLink)
console.log(that.shareLink,"that.shareLink");
let datas = { let datas = {
url: that.localPath.split('#')[0] url: that.localPath.split('#')[0]
} }
@ -55,6 +53,8 @@ export default {
if(!that.resVerifyWx){ if(!that.resVerifyWx){
return return
} }
that.$set(this.shareH5,"link",that.shareLink)
console.log(that.shareLink,"that.shareLink");
let wx = require('weixin-js-sdk'); let wx = require('weixin-js-sdk');
// console.log(that.resVerifyWx,"h5ShareMethod"); // console.log(that.resVerifyWx,"h5ShareMethod");
if (that.resVerifyWx.return_code == '000000') { if (that.resVerifyWx.return_code == '000000') {

Loading…
Cancel
Save