Commit 3644b2d1 by hank

分享

parent 7ba6c15d
......@@ -110,6 +110,12 @@ export default {
this.kongtuLock = false;
let id = this.$route.query.id;
window.wx.miniProgram.getEnv(function (res) {
if (res.miniprogram) {
// todo
window.wx.miniProgram.postMessage({data: {id: id, page: 'detail'}}); // 传的参数
}
})
this.currentId = id;
this.getPiceureDetail(id);
......@@ -340,8 +346,8 @@ export default {
var _this = this
window.wx.miniProgram.getEnv(function (res) {
if (res.miniprogram) {
// alert(res.miniprogram)
window.wx.miniProgram.postMessage({data: {id: '1234'}, page: 'detail'}); // 传的参数
// todo
window.wx.miniProgram.postMessage({data: {id: '1234', page: 'detail'}}); // 传的参数
} else {
_this.shareOnoff = true;
}
......
......@@ -101,7 +101,7 @@ export default new Vuex.Store({
}
}).then(res => {
window.localStorage.setItem('callbackurl', location.href)
alert('跳转')
// alert('跳转')
location.replace(res.data.data.url)
state.isAuth = false
})
......
......@@ -808,7 +808,6 @@ export default {
if (res.miniprogram) {
// alert(res.miniprogram)
window.wx.miniProgram.navigateTo({url: '/pages/upload/upload'});
window.wx.miniProgram.postMessage({data: {id: '1234'}}); // 传的参数
} else {
_this.$router.push({ path: '/imgup' });
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment