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
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
<
template
>
<div
class=
"ruweiBox"
>
<div
class=
"prizeList"
>
<div
class=
"content"
>
<div
class=
"newBox"
>
<div
class=
"topBox123"
>
<div
class=
"title"
>
<!--
<div
class=
"mainTitle"
>
云上丹寨摄影月赛
<br>
<span>
1月份入围作品
</span></div>
-->
<div
class=
"mainTitle"
>
入围作品公告
</div>
<div
class=
"ruweiWrap"
>
<div
class=
"ruweiBox"
>
<div
class=
"prizeList"
>
<div
class=
"content"
>
<div
class=
"newBox"
>
<div
v-html=
"ruweiText"
>
<!--
<div
class=
"topBox123"
>
<div
class=
"title"
>
<div
class=
"mainTitle"
>
1月份入围作品公告
</div>
</div>
</div>
<ul
class=
"listArr"
>
<li
class=
"middleBox"
>
<p>
一月份参赛作品征集:
<span
class=
"jiacu"
>
1月1日-1月20日
</span>
</p>
<p>
一月份入围作品公布:
<span
class=
"jiacu"
>
1月25日
</span>
</p>
<p>
一月份获奖作品公布:
<span
class=
"jiacu"
>
1月31日
</span>
</p>
<p
class=
"lineHeight150"
>
云上丹寨摄影月赛,每月从参赛作品中由专业评委选出20幅照片作为入围作品(排名不分先后),公示一周后,每月月底由评委再选出金银铜奖各一幅,各获奖金1万、5千、3千。当月点赞最多的作品颁发最具人气奖,奖金1千。
</p>
</li>
</ul>
-->
</div>
<div
class=
"bottomBox"
></div>
</div>
<ul
class=
"listArr"
>
<li
class=
"middleBox"
>
<p>
征集时间 :
<span
class=
"jiacu"
>
2019.1.28-2019.2.25
</span>
</p>
<p>
入围作品公布时间:
<span
class=
"jiacu"
>
2019.2.25
</span>
</p>
<p>
最终结果公布时间:
<span
class=
"jiacu"
>
2019.2.28
</span>
(敬请关注)
</p>
<!--
<p
class=
"fontSize24"
>
(敬请关注)
</p>
-->
<p
class=
"lineHeight150"
>
我们将在参赛作品中,由专业评委选出20幅照片作为入围作品(排名不分先后),月底由评委再选出金银铜奖各一幅,各获得奖品现金2000元、价值1000元万达影城电影卡、价值600元万达影城电影卡。当月点赞最多的10幅作品颁发人气奖,奖励万达影院电影票2张。
</p>
</li>
</ul>
<div
class=
"bottomBox"
></div>
</div>
</div>
<ul
class=
"contentBox123"
v-if=
"ruwei"
>
<li
v-for=
"(item, index) in ruwei"
:key=
"index"
>
<router-link
tag=
"a"
class=
"bigA"
:to=
"
{path:'/detail',query:{id:item.id}}">
<div
class=
"detailInfo"
>
<div
class=
"author"
>
No.
{{
index
+
1
}}
《
{{
item
.
desc
}}
》
</div>
<!--
<div
class=
"title"
>
作品:
{{
item
.
title
}}
</div>
-->
</div>
<img
:src=
"item.image"
alt
>
<!--
<img
v-lazy=
"item.image"
alt
>
-->
<div
class=
"pictureInfo"
>
<!--
<div
class=
"text"
>
{{
item
.
desc
}}
</div>
-->
<div
class=
"text"
>
作者:
{{
item
.
real_name
}}
</div>
<div
class=
"dianzan"
>
{{
item
.
point_num
}}
</div>
</div>
</router-link>
</li>
</ul>
</div>
<ul
class=
"contentBox123"
v-if=
"ruwei"
>
<li
v-for=
"(item, index) in ruwei"
:key=
"index"
>
<router-link
tag=
"a"
class=
"bigA"
:to=
"
{path:'/detail',query:{id:item.id}}">
<div
class=
"detailInfo"
>
<div
class=
"author"
>
No.
{{
index
+
1
}}
《
{{
item
.
desc
}}
》
</div>
<!--
<div
class=
"title"
>
作品:
{{
item
.
title
}}
</div>
-->
</div>
<img
:src=
"item.image"
alt
>
<!--
<img
v-lazy=
"item.image"
alt
>
-->
<div
class=
"pictureInfo"
>
<!--
<div
class=
"text"
>
{{
item
.
desc
}}
</div>
-->
<div
class=
"text"
>
作者:
{{
item
.
nickname
}}
</div>
<div
class=
"dianzan"
>
{{
item
.
point_num
}}
</div>
</div>
</router-link>
</li>
</ul>
<div
class=
"wangqi"
@
click=
"ruweipassOpen"
>
<span
class=
"qita"
>
往期入围作品
<div
id=
"trangle"
></div>
</span>
</div>
<mt-actionsheet
:actions=
"ruweipassTitle"
v-model=
"ruweipass"
></mt-actionsheet>
</div>
</
template
>
...
...
@@ -54,7 +65,8 @@
import
axios
from
'axios'
;
import
CardPrize
from
'../../components/CardPrize'
;
import
$
from
'jquery'
;
import
{
clearTimeout
}
from
'timers'
;
import
{
clearTimeout
,
clearInterval
}
from
'timers'
;
import
store
from
'../../modules/store/index.js'
;
export
default
{
data
()
{
...
...
@@ -62,40 +74,77 @@ export default {
ruwei
:
''
,
ruweiPage
:
1
,
ruweiPhotoTypeActive
:
0
,
ruweiList
:
[]
ruweiList
:
[],
// 往期入围作品开关
ruweipass
:
false
,
// 往期列表
ruweipassList
:
null
,
//公告
ruweiText
:
null
}
},
computed
:
{
ruweipassTitle
()
{
if
(
this
.
ruweipassList
)
{
var
arr
=
[];
this
.
ruweipassList
.
forEach
(
ele
=>
{
var
obj
=
{
name
:
ele
.
title
,
method
:
this
.
wuweiClose
(
ele
.
activity_id
),
id
:
ele
.
activity_id
};
arr
.
push
(
obj
);
});
return
arr
;
}
}
},
created
()
{
// this.getRuweiList();
this
.
ruweiText
=
store
.
state
.
ruweigonggao
},
mounted
()
{
this
.
getData
();
},
methods
:
{
async
getData
()
{
async
getData
(
activeId
)
{
var
data
=
'1'
while
(
data
.
length
)
{
data
=
await
this
.
getRuweiList
();
data
=
await
this
.
getRuweiList
(
activeId
);
this
.
ruweiList
.
push
(
data
);
}
},
getRuweiList
(
type
)
{
getRuweiList
(
activeId
,
type
)
{
var
activeId
=
activeId
||
null
;
return
new
Promise
((
reslove
,
reject
)
=>
{
var
photoType
=
type
||
0
;
// var photoType = 1;
axios
.
get
(
'/contest/selected/list'
,
{
params
:
{
page
:
this
.
ruweiPage
,
type
:
photoType
type
:
photoType
,
activity_id
:
activeId
}
})
.
then
(
res
=>
{
var
arr
=
res
.
data
.
data
.
data
;
var
newArr
=
this
.
addSrc
(
arr
);
if
(
!
this
.
ruweipassList
)
{
this
.
ruweipassList
=
res
.
data
.
data
.
activity
;
}
this
.
ruweiText
=
res
.
data
.
data
.
memo
;
// console.log(res.data.data.memo);
// store.commit('changeRuweiInfo', res.data.data.memo)
reslove
(
newArr
);
var
totalPage
=
Math
.
ceil
(
...
...
@@ -144,6 +193,24 @@ export default {
});
return
arr
;
},
ruweipassOpen
()
{
this
.
ruweipass
=
true
;
},
wuweiClose
(
activeId
)
{
var
_this
=
this
;
let
num
=
activeId
return
function
(
num
)
{
_this
.
ruweiPage
=
1
;
_this
.
ruwei
=
''
;
setTimeout
(()
=>
{
$
(
'#ruweiBox'
).
animate
({
scrollTop
:
2
},
'slow'
);
},
500
);
_this
.
getData
(
num
.
id
);
}
}
},
components
:
{
CardPrize
...
...
@@ -151,7 +218,35 @@ export default {
}
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
>
.wangqi
{
width
:
100%
;
height
:
90px
;
line-height
:
90px
;
text-align
:
center
;
color
:
white
;
background
:
#2358a7
;
font-size
:
33px
;
margin-top
:
60px
;
position
:
relative
;
bottom
:
-3px
;
.qita
{
position
:
relative
;
#trangle
{
height
:
0
;
width
:
0
;
border-right
:
12px
solid
transparent
;
border-bottom
:
12px
solid
white
;
border-left
:
12px
solid
transparent
;
position
:
absolute
;
top
:
46%
;
right
:
-30px
;
}
}
}
.prizeList
{
width
:
710px
;
//
height
:
1450px
;
...
...
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