Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
html
/
h5wandahuijia
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
0a654524
authored
Mar 01, 2019
by
mamingqun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉没用的接口
parent
b47b7968
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
175 additions
and
56 deletions
+175
-56
src/modules/store/index.js
+21
-1
src/pages/index/Shouye.vue
+5
-3
src/pages/index/ruwei.vue
+146
-51
src/pages/user/App.vue
+1
-1
src/pages/user/User.vue
+2
-0
No files found.
src/modules/store/index.js
View file @
0a654524
...
...
@@ -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
src/pages/index/Shouye.vue
View file @
0a654524
...
...
@@ -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
);
...
...
src/pages/index/ruwei.vue
View file @
0a654524
This diff is collapsed.
Click to expand it.
src/pages/user/App.vue
View file @
0a654524
...
...
@@ -44,7 +44,7 @@ export default {
created
()
{
// this.hiddenBar();
this
.
judgeShare
()
this
.
getActiveInfo
()
//
this.getActiveInfo()
// store.commit('getPublicActiveInfo');
// store.commit('getPublicShareInfo');
...
...
src/pages/user/User.vue
View file @
0a654524
...
...
@@ -60,6 +60,8 @@ import api from '@/modules/js/api.js';
import
tools
from
'@/modules/js/tools'
;
import
$
from
'jquery'
;
export
default
{
data
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment