Commit b47b7968 by mamingqun

修复了微信接口没有system的问题

parent c3268cb3
......@@ -40,7 +40,7 @@ export default new Vuex.Store({
axios.get('http://web-comment.canskj.cn/wandah5/activity/info').then((result) => {
state.publicActiveInfo = result.data.data
axios.defaults.headers.common['systemtype'] =state.publicActiveInfo.system_type;
// axios.defaults.headers.common['systemtype'] =state.publicActiveInfo.system_type;
$('title').text(result.data.data.title);
}).catch((err) => {
......
......@@ -38,8 +38,8 @@ export default {
}
},
created() {
store.commit('getPublicActiveInfo');
store.commit('getPublicShareInfo');
// store.commit('getPublicActiveInfo');
// store.commit('getPublicShareInfo');
},
mounted() {
// var tar_userinfo = localStorage.getItem('tar_userinfo');
......
......@@ -214,6 +214,7 @@ export default {
axios.get('http://web-comment.canskj.cn/wandah5/activity/info').then((result) => {
console.log('活动的data');
console.log(result.data.data);
......@@ -230,6 +231,9 @@ export default {
axios.defaults.headers.common['systemtype'] = type;
$('title').text(result.data.data.title);
store.commit('getPublicActiveInfo');
store.commit('getPublicShareInfo');
_this.judgeShare();
_this.getIsAward();
_this.getActiveInfo();
......@@ -240,7 +244,10 @@ export default {
_this.userCenter = window.windowUserCenterHref
_this.getUserInfo();
_this.getRuweiList();
_this.getWeixinPowerShare();
}).catch((err) => {
console.log(err);
});
......@@ -257,7 +264,7 @@ export default {
this.tongbudianzan(this.huojiang, data);
});
this.getWeixinPowerShare();
this.watchEventBus();
......
......@@ -46,8 +46,8 @@ export default {
this.judgeShare()
this.getActiveInfo()
store.commit('getPublicActiveInfo');
store.commit('getPublicShareInfo');
// store.commit('getPublicActiveInfo');
// store.commit('getPublicShareInfo');
},
activated(){
// this.hiddenBar();
......
......@@ -95,17 +95,23 @@ export default {
axios.defaults.headers.common['systemtype'] = type;
$('title').text(result.data.data.title);
store.commit('getPublicActiveInfo');
store.commit('getPublicShareInfo');
_this.getUserInfo();
_this.getUserImgList();
_this.indexHref = window.windowIndexHref;
this.getWeixinPowerShare();
}).catch((err) => {
console.log(err);
});
},
mounted() {
this.getWeixinPowerShare();
// this.getWeixinPowerShare();
$eventbus.$on('dianzanle', data => {
this.tongbudianzan(this.userList, data);
......
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