Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
82a7ab62
Commit
82a7ab62
authored
Feb 23, 2022
by
柳士祥
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
买家秀仿抖音滑动
parent
6b88bad1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
static/nativeComponents/SharePicture/index.js
+12
-2
static/nativeComponents/SharePicture/index.wxml
+2
-2
No files found.
static/nativeComponents/SharePicture/index.js
View file @
82a7ab62
...
...
@@ -20,6 +20,7 @@ Component({
waterfallRightList
:[],
loaded
:
true
,
pageNum
:
1
,
current
:
0
,
tabId
:
1
,
iconStyleList
:
[
{
...
...
@@ -112,12 +113,15 @@ Component({
})
if
(
res
.
data
.
code
==
'200'
){
let
data
=
res
.
data
.
data
if
(
res
.
data
.
pages
<=
res
.
data
.
current
){
this
.
setData
({
getListFinish
:
true
})
}
this
.
setData
({
current
:
res
.
data
.
current
})
if
(
type
==
0
){
this
.
setData
({
...
...
@@ -307,11 +311,17 @@ Component({
},
buyingShowHandle
(
e
){
let
id
=
e
.
currentTarget
.
dataset
.
id
let
index
=
e
.
currentTarget
.
dataset
.
index
let
current
=
this
.
data
.
current
let
activityId
=
this
.
data
.
datas
.
componentData
.
activityFlag
[
0
].
id
||
4
let
sortType
=
this
.
data
.
tabId
let
pageNum
=
this
.
data
.
pageNum
let
pageSize
=
+
this
.
data
.
datas
.
componentData
[
"quantity"
]
console
.
log
(
id
)
app
.
trackCpn
(
e
,
this
.
data
.
datas
.
componentName
,
e
.
currentTarget
.
dataset
)
app
.
$themeToLink
({
type
:
1
,
link
:
'/buyerShow/showDetail?buyingShowId='
+
id
link
:
`/buyerShow/showDetail?buyingShowId=
${
id
}
&index=
${
index
}
¤t=
${
current
}
&activityId=
${
activityId
}
&sortType=
${
sortType
}
&pageNum=
${
pageNum
}
&pageSize=
${
pageSize
}
`
})
},
viewMore
(
e
){
...
...
static/nativeComponents/SharePicture/index.wxml
View file @
82a7ab62
...
...
@@ -9,7 +9,7 @@
<view class="waterfall-wrap">
<view class="waterfall-l" style="padding-right:{{datas.componentData.proGap}}rpx">
<view class="item" wx:for="{{waterfallLeftList}}" wx:key="index" style="border-width:{{datas.componentData['borderColorShow'] ? '1px' : ''}};border-style:{{datas.componentData['borderColorShow'] ? 'solid' : ''}};border-color:{{datas.componentData['borderColorShow'] ? datas.componentData['borderColor'] : ''}}" bindtap="buyingShowHandle" data-id="{{item.id}}">
<view class="item" wx:for="{{waterfallLeftList}}" wx:key="index" style="border-width:{{datas.componentData['borderColorShow'] ? '1px' : ''}};border-style:{{datas.componentData['borderColorShow'] ? 'solid' : ''}};border-color:{{datas.componentData['borderColorShow'] ? datas.componentData['borderColor'] : ''}}" bindtap="buyingShowHandle" data-id="{{item.id}}"
data-index="{{index}}"
>
<view class="img-wrap">
<image src="{{item.coverImg}}" mode="widthFix"></image>
<i class="iconfont-common common-iconbofang2 icon{{datas.componentData['playBtnPosition']}}" wx:if="{{item.checkMP4Status}}"></i>
...
...
@@ -33,7 +33,7 @@
</view>
</view>
<view class="waterfall-r" style="padding-left:{{datas.componentData.proGap}}rpx">
<view class="item" wx:for="{{waterfallRightList}}" wx:key="index" style="border-width:{{datas.componentData['borderColorShow'] ? '1px' : ''}};border-style:{{datas.componentData['borderColorShow'] ? 'solid' : ''}};border-color:{{datas.componentData['borderColorShow'] ? datas.componentData['borderColor'] : ''}}" bindtap="buyingShowHandle" data-id="{{item.id}}">
<view class="item" wx:for="{{waterfallRightList}}" wx:key="index" style="border-width:{{datas.componentData['borderColorShow'] ? '1px' : ''}};border-style:{{datas.componentData['borderColorShow'] ? 'solid' : ''}};border-color:{{datas.componentData['borderColorShow'] ? datas.componentData['borderColor'] : ''}}" bindtap="buyingShowHandle" data-id="{{item.id}}"
data-index="{{index}}"
>
<view class="img-wrap">
<image src="{{item.coverImg}}" mode="widthFix"></image>
<i class="iconfont-common common-iconbofang2 icon{{datas.componentData['playBtnPosition']}}" wx:if="{{item.checkMP4Status}}"></i>
...
...
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