Commit 4850d457 by chenwq

分享

1 parent f729dc5b
...@@ -102,6 +102,11 @@ Component({ ...@@ -102,6 +102,11 @@ Component({
handleJumpIdx() { handleJumpIdx() {
wx.$router.go('pages.index') wx.$router.go('pages.index')
}, },
handleShare(e) {
let { idx } = e.currentTarget.dataset
var currentItem = this.data.list[idx]
console.log('分享----', currentItem)
},
handleJump(e) { handleJump(e) {
let { idx } = e.currentTarget.dataset let { idx } = e.currentTarget.dataset
var currentItem = this.data.list[idx] var currentItem = this.data.list[idx]
......
...@@ -129,6 +129,34 @@ ...@@ -129,6 +129,34 @@
} }
} }
.box.share {
margin-bottom: 0;
}
.box-share {
display: flex;
justify-content: space-between;
align-items: center;
box-sizing: border-box;
width: 100%;
padding: 12rpx 20rpx;
background: #FFF9F2;
border-radius: 0 0 8rpx 8rpx;
margin-bottom: 16rpx;
.btn-share {
width: 112rpx;
height: 56rpx;
line-height: 56rpx;
background: #3666FE;
border-radius: 28rpx;
font-size: 24rpx;
color: #FFFFFF;
text-align: center;
margin-left: 20rpx;
}
}
.end-txt { .end-txt {
font-size: 24rpx; font-size: 24rpx;
text-align: center; text-align: center;
......
...@@ -6,7 +6,8 @@ ...@@ -6,7 +6,8 @@
<text>总收益</text> <text>总收益</text>
<text class="price-txt">¥{{totalProfit}}</text> <text class="price-txt">¥{{totalProfit}}</text>
</view> </view>
<view class="box" wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}"> <view wx:for="{{list}}" wx:key="index" bindtap="handleJump" data-idx="{{index}}">
<view class="box share">
<view class="head flex-between"> <view class="head flex-between">
<view class="name ">{{item.merchantName}}</view> <view class="name ">{{item.merchantName}}</view>
<view class="price-txt ">¥{{item.totalMoney}}</view> <view class="price-txt ">¥{{item.totalMoney}}</view>
...@@ -40,6 +41,12 @@ ...@@ -40,6 +41,12 @@
</view> </view>
</view> </view>
</view> </view>
<!-- 分享海报 -->
<view class="box-share">
<view>360全景影像众筹活动正在进行,分享母链海报开展业务</view>
<view class="btn-share" catchtap="handleShare" data-idx="{{index}}">去分享</view>
</view>
</view>
<view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt"> <view wx:if="{{totalPages != -1 && pageObj.currentPage == totalPages}}" class="end-txt">
到底啦! 到底啦!
</view> </view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!