Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
dev
/
lilejia-f2mb-pro
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
7a3ca91c
authored
2019-08-19 20:03:18 +0800
by
joe
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
53687232
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
65 additions
and
44 deletions
src/pages/list/components/ListView.vue
src/pages/list/components/MemberWorksView.vue
src/pages/list/components/WorksListView.vue
src/pages/list/index.vue
src/pages/sign/components/ImageClipper.vue
src/pages/sign/components/UploadItem.vue
src/pages/sign/components/ViewModel.vue
src/pages/list/components/ListView.vue
View file @
7a3ca91
...
...
@@ -9,20 +9,22 @@
<van-row>
<van-list
v-model=
"isLoading"
:finished=
"!hasMore"
finished-text
@
load=
"refreshMore"
>
<van-cell
v-for=
"(itemList,index1) in worksList"
:key=
"index1"
>
<van-col
span=
"12"
v-for=
"(item,index2) in itemList"
:key=
"index2"
>
<div
class=
"worksItem"
@
click=
"toWorksViewHandler(item.worksCode)"
>
<div
class=
"worksThumb"
v-bind:style=
"
{backgroundImage:'url(' + (item.worksList
&&
item.worksList[0] ? item.worksList[0].worksUrl : '') + ')'}"
>
</div>
<div
class=
"worksDescription"
>
<div
class=
"worksNo"
>
{{
item
.
worksNo
}}
</div>
<div
class=
"worksName"
>
{{
item
.
name
}}
</div>
<div
class=
"worksPriaseNo"
>
{{
item
.
praiseNumber
}}
</div>
<div
class=
"worksPraise"
></div>
<div
class=
"cell"
>
<div
v-for=
"(item,index2) in itemList"
:key=
"index2"
>
<div
class=
"worksItem"
@
click=
"toWorksViewHandler(item.worksCode)"
>
<div
class=
"worksThumb"
v-bind:style=
"
{backgroundImage:'url(' + (item.worksList
&&
item.worksList[0] ? item.worksList[0].worksUrl : '') + ')'}"
>
</div>
<div
class=
"worksDescription"
>
<div
class=
"worksNo"
>
{{
item
.
worksNo
}}
</div>
<div
class=
"worksName"
>
{{
item
.
name
}}
</div>
<div
class=
"worksPriaseNo"
>
{{
item
.
praiseNumber
}}
</div>
<div
class=
"worksPraise"
></div>
</div>
</div>
</div>
</
van-col
>
</
div
>
</van-cell>
<van-col
span=
"24"
v-if=
"worksList.length == 0 && !isLoading"
>
...
...
@@ -33,6 +35,8 @@
<div
class=
"empty-message"
>
没有搜到任何作品 !
</div>
</div>
</van-col>
<div
class=
"bottom-line"
></div>
</van-list>
</van-row>
</div>
...
...
@@ -175,10 +179,10 @@ export default {
.input-panel
{
width
:
450px
;
height
:
5
2
px
;
height
:
5
5
px
;
border
:
2px
solid
#82acae
;
background-color
:
#e8e8e8
;
line-height
:
5
4
px
;
line-height
:
5
5
px
;
border-radius
:
26px
;
display
:
flex
;
input
{
...
...
@@ -212,19 +216,25 @@ export default {
.van-cell
{
padding
:
0
;
}
.cell
{
padding
:
0
;
margin
:
0
;
display
:
flex
;
justify-content
:
space-between
;
}
.worksItem
{
margin
:
0
auto
2
0px
auto
;
width
:
300
px
;
height
:
2
7
5px
;
margin
:
0
auto
3
0px
auto
;
width
:
298
px
;
height
:
2
1
5px
;
border
:
solid
1px
#d1d0d0
;
box-shadow
:
2px
2px
2px
#d1d0d0
;
box-shadow
:
0
0
2px
#d1d0d0
;
border-radius
:
20px
;
overflow
:
hidden
;
.worksThumb
{
width
:
300px
;
height
:
215
px
;
height
:
168
px
;
background-size
:
cover
;
}
.worksDescription
{
...
...
@@ -234,30 +244,33 @@ export default {
div
{
font-size
:
22px
;
height
:
60
px
;
line-height
:
60
px
;
height
:
47
px
;
line-height
:
47
px
;
text-align
:
left
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
font-weight
:
6
00
;
font-weight
:
4
00
;
}
.worksNo
{
padding-left
:
10px
;
width
:
55px
;
}
.worksName
{
width
:
133px
;
flex
:
1
;
padding
:
0
10px
;
}
.worksPriaseNo
{
width
:
60px
;
text-align
:
right
;
padding-right
:
5
px
;
padding-right
:
10
px
;
}
.worksPraise
{
width
:
28px
;
height
:
24px
;
background
:
url(../../../assets/imgs/list-heart-red.png)
no-repeat
;
background-size
:
100%
;
margin-right
:
10px
;
}
}
}
...
...
@@ -274,4 +287,7 @@ export default {
color
:
#a1a1a1
;
}
}
.bottom-line
{
height
:
200px
;
}
</
style
>
...
...
src/pages/list/components/MemberWorksView.vue
View file @
7a3ca91
...
...
@@ -160,20 +160,20 @@ export default {
.swipe
{
width
:
630px
;
height
:
451
px
;
height
:
320
px
;
margin
:
auto
;
border
:
2px
solid
#82acae
;
border-radius
:
30px
;
overflow
:
hidden
;
.img
{
height
:
451
px
;
height
:
320
px
;
width
:
630px
;
background-size
:
cover
;
}
video
{
height
:
451
px
;
height
:
320
px
;
width
:
630px
;
}
}
...
...
@@ -292,10 +292,11 @@ export default {
.btn-tips
{
width
:
640px
;
text-align
:
left
;
text-align
:
center
;
font-size
:
24px
;
color
:
#303531
;
margin
:
auto
;
margin-top
:
18px
;
}
.btn-back
{
...
...
src/pages/list/components/WorksListView.vue
View file @
7a3ca91
...
...
@@ -200,8 +200,8 @@ export default {
}
.swipe
{
width
:
2
65
px
;
height
:
200
px
;
width
:
2
93
px
;
height
:
196
px
;
border
:
2px
solid
#45a402
;
border-radius
:
20px
;
margin
:
32px
;
...
...
@@ -209,21 +209,21 @@ export default {
div
{
line-height
:
200px
;
height
:
200px
;
text-align
:
center
;
width
:
265px
;
width
:
293px
;
height
:
196px
;
}
.img
{
margin
:
auto
;
//
width
:
235px
;
height
:
190
px
;
width
:
265
px
;
width
:
293
px
;
height
:
196
px
;
background-size
:
cover
;
}
video
{
height
:
190
px
;
width
:
265
px
;
width
:
293
px
;
height
:
196
px
;
}
}
...
...
src/pages/list/index.vue
View file @
7a3ca91
...
...
@@ -5,7 +5,7 @@
<works-list-view
v-model=
"formData"
v-if=
"init
&& listVisiabled
"
v-if=
"init"
v-show=
"listVisiabled"
v-on:showRule=
"showRuleHandler"
v-on:worksDetail=
"showWorksDetail"
...
...
@@ -21,7 +21,7 @@
<biz-model
v-model=
"model"
></biz-model>
<
div
class=
"bottom-line"
></div
>
<
!--
<div
class=
"bottom-line"
></div>
--
>
<!-- 分享蒙层 -->
<div
class=
"shareModel"
v-if=
"shareModelVisiable"
@
click=
"shareModelVisiable = false"
>
...
...
src/pages/sign/components/ImageClipper.vue
View file @
7a3ca91
...
...
@@ -12,6 +12,7 @@
<!-- 底部操作栏 -->
<div
class=
"action-bar"
>
<div
class=
"button"
@
click=
"_cancel"
>
取消
</div>
<div
class=
"button"
@
click=
"_clipper"
>
确认
</div>
</div>
...
...
@@ -70,7 +71,10 @@
height
:
80px
;
line-height
:
80px
;
border-top
:
1px
solid
rgba
(
256
,
256
,
256
,
0.3
);
display
:
flex
;
justify-content
:
center
;
.button
{
width
:
50%
;
line-height
:
80px
;
height
:
80px
;
font-size
:
26px
;
...
...
@@ -189,7 +193,7 @@ export default {
// }
clipperWidth
=
clipperClientRect
.
width
;
clipperHeight
=
clipperWidth
/
1.
3
75
;
clipperHeight
=
clipperWidth
/
1.
968
75
;
// if (clipperHeight < 0 || clipperHeight > clipperClientRect.height) {
// clipperHeight = 100
...
...
@@ -441,7 +445,7 @@ export default {
// console.log("this.actionBarHeight===", this.actionBarHeight)
if
(
w
<
maxW
&&
h
<
maxH
)
{
if
(
w
>
1.
3
75
*
h
)
{
if
(
w
>
1.
968
75
*
h
)
{
eH
=
maxH
;
eW
=
(
w
/
h
)
*
maxH
;
}
else
{
...
...
src/pages/sign/components/UploadItem.vue
View file @
7a3ca91
...
...
@@ -21,7 +21,7 @@
v-if=
"imageData.show"
:img=
"imageData.data"
:clipper-img-width=
"750"
:clipper-img-height=
"
537
"
:clipper-img-height=
"
380.95
"
@
ok=
"imageClipperHandler"
@
cancel=
"imageData.show=false"
></image-clipper>
...
...
src/pages/sign/components/ViewModel.vue
View file @
7a3ca91
...
...
@@ -166,7 +166,7 @@ export default {
.swipe
{
width
:
630px
;
height
:
451
px
;
height
:
320
px
;
margin
:
auto
;
margin-top
:
15px
;
border
:
2px
solid
#82acae
;
...
...
@@ -174,13 +174,13 @@ export default {
overflow
:
hidden
;
.img
{
height
:
451
px
;
height
:
320
px
;
width
:
630px
;
background-size
:
cover
;
}
video
{
height
:
451
px
;
height
:
320
px
;
width
:
630px
;
}
}
...
...
Please
register
or
sign in
to post a comment