|
|
|
@ -22,7 +22,6 @@
|
|
|
|
url
|
|
|
|
url
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
this.$u.vuex('vuex_share', true)
|
|
|
|
this.$u.vuex('vuex_share', true)
|
|
|
|
this.$isResolve()
|
|
|
|
|
|
|
|
jwx.config({
|
|
|
|
jwx.config({
|
|
|
|
debug: false, // 开启调试模式,调用的所有 api 的返回值会在客户端 alert 出来,若要查看传入的参数,可以在 pc 端打开,参数信息会通过 log 打出,仅在 pc 端时才会打印。
|
|
|
|
debug: false, // 开启调试模式,调用的所有 api 的返回值会在客户端 alert 出来,若要查看传入的参数,可以在 pc 端打开,参数信息会通过 log 打出,仅在 pc 端时才会打印。
|
|
|
|
appId: res.appId,
|
|
|
|
appId: res.appId,
|
|
|
|
@ -36,7 +35,7 @@
|
|
|
|
title: '阵地有声 理响通安', // 分享标题
|
|
|
|
title: '阵地有声 理响通安', // 分享标题
|
|
|
|
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
|
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
|
desc: '点击查看',
|
|
|
|
desc: '点击查看',
|
|
|
|
imgUrl: 'https://vr.langye.net/storage/files/170899758665dd3bd2c88c7.png', // 分享图标
|
|
|
|
imgUrl: 'https://vr.langye.net/storage/files/170951606765e52523351d8.jpg', // 分享图标
|
|
|
|
success: () => {
|
|
|
|
success: () => {
|
|
|
|
console.log(
|
|
|
|
console.log(
|
|
|
|
'updateAppMessageShareData-success'
|
|
|
|
'updateAppMessageShareData-success'
|
|
|
|
@ -48,7 +47,7 @@
|
|
|
|
title: '阵地有声 理响通安', // 分享标题
|
|
|
|
title: '阵地有声 理响通安', // 分享标题
|
|
|
|
desc: '点击查看',
|
|
|
|
desc: '点击查看',
|
|
|
|
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
|
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
|
imgUrl: 'https://vr.langye.net/storage/files/170899758665dd3bd2c88c7.png', // 分享图标
|
|
|
|
imgUrl: 'https://vr.langye.net/storage/files/170951606765e52523351d8.jpg', // 分享图标
|
|
|
|
success: () => {
|
|
|
|
success: () => {
|
|
|
|
console.log(
|
|
|
|
console.log(
|
|
|
|
'updateTimelineShareData-success'
|
|
|
|
'updateTimelineShareData-success'
|
|
|
|
@ -56,6 +55,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
this.$isResolve()
|
|
|
|
// console.log("123---to")
|
|
|
|
// console.log("123---to")
|
|
|
|
// uni.reLaunch({
|
|
|
|
// uni.reLaunch({
|
|
|
|
// url: '/pages/index/index',
|
|
|
|
// url: '/pages/index/index',
|
|
|
|
@ -73,7 +73,6 @@
|
|
|
|
url
|
|
|
|
url
|
|
|
|
}).then(res => {
|
|
|
|
}).then(res => {
|
|
|
|
this.$u.vuex('vuex_share', true)
|
|
|
|
this.$u.vuex('vuex_share', true)
|
|
|
|
this.$isResolve()
|
|
|
|
|
|
|
|
jwx.config({
|
|
|
|
jwx.config({
|
|
|
|
debug: false, // 开启调试模式,调用的所有 api 的返回值会在客户端 alert 出来,若要查看传入的参数,可以在 pc 端打开,参数信息会通过 log 打出,仅在 pc 端时才会打印。
|
|
|
|
debug: false, // 开启调试模式,调用的所有 api 的返回值会在客户端 alert 出来,若要查看传入的参数,可以在 pc 端打开,参数信息会通过 log 打出,仅在 pc 端时才会打印。
|
|
|
|
appId: res.appId,
|
|
|
|
appId: res.appId,
|
|
|
|
@ -87,7 +86,7 @@
|
|
|
|
title: '阵地有声 理响通安', // 分享标题
|
|
|
|
title: '阵地有声 理响通安', // 分享标题
|
|
|
|
desc: '点击查看',
|
|
|
|
desc: '点击查看',
|
|
|
|
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
|
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
|
imgUrl: 'https://vr.langye.net/storage/files/170899758665dd3bd2c88c7.png', // 分享图标
|
|
|
|
imgUrl: 'https://vr.langye.net/storage/files/170951606765e52523351d8.jpg', // 分享图标
|
|
|
|
success: () => {
|
|
|
|
success: () => {
|
|
|
|
console.log(
|
|
|
|
console.log(
|
|
|
|
'updateAppMessageShareData-success'
|
|
|
|
'updateAppMessageShareData-success'
|
|
|
|
@ -99,7 +98,7 @@
|
|
|
|
title: '阵地有声 理响通安', // 分享标题
|
|
|
|
title: '阵地有声 理响通安', // 分享标题
|
|
|
|
desc: '点击查看',
|
|
|
|
desc: '点击查看',
|
|
|
|
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
|
link: link, // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
|
|
|
|
imgUrl: 'https://vr.langye.net/storage/files/170899758665dd3bd2c88c7.png', // 分享图标
|
|
|
|
imgUrl: 'https://vr.langye.net/storage/files/170951606765e52523351d8.jpg', // 分享图标
|
|
|
|
success: () => {
|
|
|
|
success: () => {
|
|
|
|
console.log(
|
|
|
|
console.log(
|
|
|
|
'updateTimelineShareData-success'
|
|
|
|
'updateTimelineShareData-success'
|
|
|
|
@ -107,6 +106,7 @@
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
this.$isResolve()
|
|
|
|
// console.log("123---to")
|
|
|
|
// console.log("123---to")
|
|
|
|
// uni.reLaunch({
|
|
|
|
// uni.reLaunch({
|
|
|
|
// url: '/pages/index/index',
|
|
|
|
// url: '/pages/index/index',
|
|
|
|
@ -120,12 +120,13 @@
|
|
|
|
// let that = this
|
|
|
|
// let that = this
|
|
|
|
// setInterval(function(){
|
|
|
|
// setInterval(function(){
|
|
|
|
// console.log("asd-------------")
|
|
|
|
// console.log("asd-------------")
|
|
|
|
// that.$u.vuex('vuex_token', "8801|764nhDiiWEGvu0TPh0wyhl3Pfq01Oozhgu8X8Cvl")
|
|
|
|
// that.$u.vuex('vuex_token', "8849|gyvzzL2oj23cjFEHLkL3R6D3nG1G2LjkXj9j6NfP")
|
|
|
|
// that.$u.vuex('vuex_share', true)
|
|
|
|
// that.$u.vuex('vuex_share', true)
|
|
|
|
// },10000)
|
|
|
|
// },10000)
|
|
|
|
|
|
|
|
// this.$u.vuex('vuex_token', "8849|gyvzzL2oj23cjFEHLkL3R6D3nG1G2LjkXj9j6NfP")
|
|
|
|
this.$u.api.getAppId().then(res => {
|
|
|
|
this.$u.api.getAppId().then(res => {
|
|
|
|
let redirect = encodeURIComponent(link.replace(/#\//, ""))
|
|
|
|
let redirect = encodeURIComponent(link.replace(/#\//, ""))
|
|
|
|
|
|
|
|
console.log(redirect)
|
|
|
|
window.location.href =
|
|
|
|
window.location.href =
|
|
|
|
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${res.appid}&redirect_uri=${redirect}&response_type=code&scope=snsapi_base#wechat_redirect`
|
|
|
|
`https://open.weixin.qq.com/connect/oauth2/authorize?appid=${res.appid}&redirect_uri=${redirect}&response_type=code&scope=snsapi_base#wechat_redirect`
|
|
|
|
})
|
|
|
|
})
|
|
|
|
@ -134,7 +135,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onShow: function() {
|
|
|
|
onShow: function() {
|
|
|
|
console.log('App Show')
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onHide: function() {
|
|
|
|
onHide: function() {
|
|
|
|
console.log('App Hide')
|
|
|
|
console.log('App Hide')
|
|
|
|
|