Commit 0a654524 by mamingqun

去掉没用的接口

parent b47b7968
......@@ -15,7 +15,8 @@ export default new Vuex.Store({
activeInfo:'',
ruweiBoxScroll: 0,
publicActiveInfo: null,
publicShareInfo: null
publicShareInfo: null,
ruweigonggao: null
},
mutations: {
changeLastBoxScrollY(state, num) {
......@@ -53,6 +54,24 @@ export default new Vuex.Store({
}).catch((err) => {
console.log(err);
});
},
getRuweiInfo(state,num){
axios
.get('/contest/selected/list', {
params: {
page: 1,
type: 0,
}
}).then((res) => {
// console.log('res');
// console.log(res.data.data.memo);
state.ruweigonggao = res.data.data.memo;
})
},
changeRuweiInfo(state,num){
console.log('num');
console.log(num);
state.ruweigonggao = num;
}
}
})
\ No newline at end of file
......@@ -109,7 +109,7 @@
<ruwei></ruwei>
</div>
</div>
<div class="joinus" v-show="tabActive !== 3">
<div class="joinus" v-show="tabActive === 1 || tabActive === 2">
<div @click="goImgup">我要参与</div>
</div>
<div class="wangqiList"></div>
......@@ -236,7 +236,7 @@ export default {
_this.judgeShare();
_this.getIsAward();
_this.getActiveInfo();
// _this.getActiveInfo();
_this.getLastList();
// _this.getRenqiList();
//在getActiveInfo里请求了
......@@ -245,8 +245,10 @@ export default {
_this.getUserInfo();
_this.getRuweiList();
_this.getWeixinPowerShare();
// 请求入围信息,提前加载入围的信息防止入围公告闪烁
store.commit('getRuweiInfo');
}).catch((err) => {
console.log(err);
......
......@@ -44,7 +44,7 @@ export default {
created() {
// this.hiddenBar();
this.judgeShare()
this.getActiveInfo()
// this.getActiveInfo()
// store.commit('getPublicActiveInfo');
// store.commit('getPublicShareInfo');
......
......@@ -60,6 +60,8 @@ import api from '@/modules/js/api.js';
import tools from '@/modules/js/tools';
import $ from 'jquery';
export default {
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