Commit a75dbe392061a2336eab4df1c159bed4888ae0b0

Authored by vking
1 parent de1185c5

caicai share

@@ -42,7 +42,7 @@ @@ -42,7 +42,7 @@
42 <view class="flex-lr share-view" wx:if="{{detail.type==1}}"> 42 <view class="flex-lr share-view" wx:if="{{detail.type==1}}">
43 <formids url="/pages/customer/detail_owner_invitation?id={{detail.id}}&hasInvitation=1&hasSellerShare=1&tplid=1" 43 <formids url="/pages/customer/detail_owner_invitation?id={{detail.id}}&hasInvitation=1&hasSellerShare=1&tplid=1"
44 class="share-but-view"> 44 class="share-but-view">
45 - <view class="share-but Regular">邀请同行的朋友</view> 45 + <view class="share-but Regular">邀请同行好友</view>
46 </formids> 46 </formids>
47 </view> 47 </view>
48 <view class="flex-lr share-view" wx:else=""> 48 <view class="flex-lr share-view" wx:else="">
@@ -150,4 +150,11 @@ Page({ @@ -150,4 +150,11 @@ Page({
150 url:url, 150 url:url,
151 }) 151 })
152 }, 152 },
  153 + gotoDetailHan(e){
  154 + console.log(util.attr(e,'id'))
  155 + let url='/pages/customer/detail_owner_invitation?id='+util.attr(e,'id')+'&hasInvitation=1&hasSellerShare=1&tplid=1'
  156 + wx.navigateTo({
  157 + url:url,
  158 + })
  159 + }
153 }) 160 })
@@ -25,11 +25,17 @@ @@ -25,11 +25,17 @@
25 <card hasListShare bindevent="gotoDetail" 25 <card hasListShare bindevent="gotoDetail"
26 seller="{{detail.seller}}" detail="{{detail}}"> 26 seller="{{detail.seller}}" detail="{{detail}}">
27 <view slot="listshare" style="height:52rpx;line-height:52rpx;margin-top:4rpx;"> 27 <view slot="listshare" style="height:52rpx;line-height:52rpx;margin-top:4rpx;">
28 - <userinfo-share  
29 - id="userinfo-share-{{detail.id}}"  
30 - binduserinfo="userinfo"  
31 - bindshare="share"  
32 - share="{{detail}}"> 28 + <userinfo wx:if="{{detail.hasOwner}}"
  29 + data-id="{{detail.id}}"
  30 + binduserinfo="gotoDetailHan">
  31 + <!--<view class="opt-button">{{detail.hasOwner?'邀请':'分享日程'}}</view>-->
  32 + <view class="opt-button">邀请同行好友</view>
  33 + </userinfo>
  34 + <userinfo-share wx:else="{{}}"
  35 + id="userinfo-share-{{detail.id}}"
  36 + binduserinfo="userinfo"
  37 + bindshare="share"
  38 + share="{{detail}}">
33 <!--<view class="opt-button">{{detail.hasOwner?'邀请':'分享日程'}}</view>--> 39 <!--<view class="opt-button">{{detail.hasOwner?'邀请':'分享日程'}}</view>-->
34 <view class="opt-button">发邀请函</view> 40 <view class="opt-button">发邀请函</view>
35 </userinfo-share> 41 </userinfo-share>
@@ -95,7 +95,7 @@ @@ -95,7 +95,7 @@
95 margin-left: 14rpx; 95 margin-left: 14rpx;
96 } 96 }
97 .opt-button{ 97 .opt-button{
98 - width: 120rpx; 98 + padding: 0 10rpx;
99 height: 40rpx; 99 height: 40rpx;
100 line-height: 40rpx; 100 line-height: 40rpx;
101 font-size: 26rpx; 101 font-size: 26rpx;