Commit 82a7ab62 by 柳士祥

买家秀仿抖音滑动

parent 6b88bad1
...@@ -20,6 +20,7 @@ Component({ ...@@ -20,6 +20,7 @@ Component({
waterfallRightList:[], waterfallRightList:[],
loaded : true, loaded : true,
pageNum : 1, pageNum : 1,
current: 0,
tabId : 1, tabId : 1,
iconStyleList: [ iconStyleList: [
{ {
...@@ -112,12 +113,15 @@ Component({ ...@@ -112,12 +113,15 @@ Component({
}) })
if(res.data.code == '200'){ if(res.data.code == '200'){
let data = res.data.data let data = res.data.data
if(res.data.pages <= res.data.current){ if(res.data.pages <= res.data.current){
this.setData({ this.setData({
getListFinish : true getListFinish : true
}) })
} }
this.setData({
current: res.data.current
})
if(type == 0){ if(type == 0){
this.setData({ this.setData({
...@@ -307,11 +311,17 @@ Component({ ...@@ -307,11 +311,17 @@ Component({
}, },
buyingShowHandle(e){ buyingShowHandle(e){
let id = e.currentTarget.dataset.id 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) console.log(id)
app.trackCpn(e, this.data.datas.componentName, e.currentTarget.dataset) app.trackCpn(e, this.data.datas.componentName, e.currentTarget.dataset)
app.$themeToLink({ app.$themeToLink({
type: 1, type: 1,
link: '/buyerShow/showDetail?buyingShowId=' + id link: `/buyerShow/showDetail?buyingShowId=${id}&index=${index}&current=${current}&activityId=${activityId}&sortType=${sortType}&pageNum=${pageNum}&pageSize=${pageSize}`
}) })
}, },
viewMore(e){ viewMore(e){
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
<view class="waterfall-wrap"> <view class="waterfall-wrap">
<view class="waterfall-l" style="padding-right:{{datas.componentData.proGap}}rpx"> <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"> <view class="img-wrap">
<image src="{{item.coverImg}}" mode="widthFix"></image> <image src="{{item.coverImg}}" mode="widthFix"></image>
<i class="iconfont-common common-iconbofang2 icon{{datas.componentData['playBtnPosition']}}" wx:if="{{item.checkMP4Status}}"></i> <i class="iconfont-common common-iconbofang2 icon{{datas.componentData['playBtnPosition']}}" wx:if="{{item.checkMP4Status}}"></i>
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</view> </view>
</view> </view>
<view class="waterfall-r" style="padding-left:{{datas.componentData.proGap}}rpx"> <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"> <view class="img-wrap">
<image src="{{item.coverImg}}" mode="widthFix"></image> <image src="{{item.coverImg}}" mode="widthFix"></image>
<i class="iconfont-common common-iconbofang2 icon{{datas.componentData['playBtnPosition']}}" wx:if="{{item.checkMP4Status}}"></i> <i class="iconfont-common common-iconbofang2 icon{{datas.componentData['playBtnPosition']}}" wx:if="{{item.checkMP4Status}}"></i>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment