Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
viitto
mallapp
Commits
5295d4aa
Commit
5295d4aa
authored
Sep 04, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
e755fe72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
6 deletions
+52
-6
goods.vue
pages/goods/goods.vue
+32
-2
share-team.vue
pages/share-team/share-team.vue
+20
-4
No files found.
pages/goods/goods.vue
View file @
5295d4aa
...
...
@@ -2,7 +2,7 @@
<view
class=
"goods"
>
<view
class=
"u-skeleton"
v-if=
"isExsitGoods"
>
<view
class=
"u-skeleton-rect"
>
<u-swiper
<!--
<u-swiper
:list=
"g.pic_url"
height=
"100"
unit=
"vw"
...
...
@@ -10,7 +10,22 @@
name=
"pic_url"
:border-radius=
"0"
@
click=
"previewImage"
></u-swiper>
></u-swiper>
-->
<swiper
indicator-dots
:autoplay=
"false"
:interval=
"1000"
style=
"height:100vw;"
>
<block
v-for=
"(item, index) in g.pic_url"
:key=
"index"
>
<swiper-item>
<video
@
click=
"startPlay(item)"
style=
"width:100%;height:100%"
id=
"myVideo"
v-if=
"item.type==1"
:src=
"item.pic_url"
:autoplay=
"false"
loop
muted
show-play-btn
:enable-progress-gesture=
"true"
:controls=
"true"
:show-progress=
"true"
:show-mute-btn=
"true"
objectFit=
"cover"
></video>
<image
@
click=
"previewImage(index)"
style=
"width:100%;height:100%;"
v-else
:src=
"item.pic_url"
mode=
""
></image>
</swiper-item>
</block>
</swiper>
<!-- TODO 分销价格未做 is_share_price -->
<view
class=
"is_share"
v-if=
"g.share > 0"
style=
"top:240px;"
>
<image
...
...
@@ -752,6 +767,10 @@ export default {
url: url,
});
},
//点击跳转
startPlay(item){
uni.navigateTo({ url: '
/
pages
/
video
/
index
?
GoodsId
=
'+this.id+'
&
VideoUrl
=
'+item.pic_url })
}
},
};
</
script
>
...
...
@@ -939,4 +958,15 @@ export default {
margin-right
:
5
rpx
;
border-radius
:
4px
;
}
.goods
.screen-swiper
{
min-height
:
375
upx
;
}
.goods
.screen-swiper
image
,
.goods
.screen-swiper
video
{
width
:
100%
;
display
:
block
;
height
:
100%
;
margin
:
0
;
pointer-events
:
none
;
}
</
style
>
pages/share-team/share-team.vue
View file @
5295d4aa
...
...
@@ -3,8 +3,15 @@
<view
style=
"width: 100%;height: 100%;"
>
<u-tabs
:list=
"list"
name=
"GradeName"
:is-scroll=
"false"
:current=
"current"
@
change=
"change"
:active-color=
'mainColor'
></u-tabs>
<view
style=
"width:100%;background:#fff;padding:20px 20px 0 20px;"
>
<u-search
:show-action=
"true"
v-model=
"msg2.Name"
placeholder=
"请输入用户昵称"
action-text=
"搜索"
@
custom=
"init2(1)"
@
search=
"init2(1)"
radius=
"40"
></u-search>
<view
style=
"display:flex;align-items: center;"
>
<u-search
:show-action=
"true"
style=
"width:80%"
v-model=
"msg2.Name"
placeholder=
"请输入用户昵称"
action-text=
"搜索"
@
custom=
"init2(1)"
@
search=
"init2(1)"
radius=
"40"
></u-search>
<view
style=
"font-size:13px;margin-left:10px;"
>
<u-checkbox-group
size=
"30"
:active-color=
"mainColor"
>
<u-checkbox
@
change=
"getDirest"
v-model=
"isCheckIn"
>
直属
</u-checkbox>
</u-checkbox-group>
</view>
</view>
<view
class=
"cteam_Search"
>
<view
class=
"ctem_item"
@
click=
"getSort(0,0)"
:style=
"
{ color: msg2.SortNum == 0 || msg2.SortNum == 1 ? mainColor : '#222'}">
<text>
时间
</text>
...
...
@@ -97,7 +104,8 @@
pageSize
:
10
,
FXGradeId
:
0
,
Name
:
''
,
//昵称
SortNum
:
0
// 0时间降序 1时间升序 2人数倒序 3人数升序
SortNum
:
0
,
// 0时间降序 1时间升序 2人数倒序 3人数升序
IsDirect
:
0
//1直属下线 0不是
},
page_count
:
1
,
status
:
"loadmore"
,
...
...
@@ -107,6 +115,7 @@
nomore
:
"没有更多了"
,
},
IsEnableFXGrade
:
0
,
isCheckIn
:
false
,
//是否选中
}
},
...
...
@@ -118,7 +127,6 @@
},
onLoad
(
option
){
console
.
log
(
option
)
if
(
option
&&
option
.
IsEnableFXGrade
){
this
.
IsEnableFXGrade
=
option
.
IsEnableFXGrade
;
}
...
...
@@ -147,6 +155,14 @@
});
},
methods
:
{
getDirest
(){
if
(
this
.
isCheckIn
){
this
.
msg2
.
IsDirect
=
1
;
}
else
{
this
.
msg2
.
IsDirect
=
0
;
}
this
.
init2
(
1
);
},
getUserMyTeamTitelListForFX
(){
uni
.
showLoading
({
title
:
'加载中'
...
...
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