|
@@ -43,28 +43,37 @@
|
|
|
<info :id="id" :bgcolor="fetch.button.bgcolor" :color="fetch.button.color" @hideInfo="hideInfo"></info>
|
|
|
</view>
|
|
|
|
|
|
- <dever-share ref="share" :id="id" :code="fetch.code" :data="fetch.share" v-if="fetch.share"></dever-share>
|
|
|
+ <dever-share ref="share" :id="id" :code="fetch.code" :data="fetch.share" v-if="fetch.share && fetch.code"></dever-share>
|
|
|
|
|
|
- <view class="mask buy-layer" v-if="inviteState && fetch.share_user">
|
|
|
+ <view class="mask buy-layer" v-if="inviteState && fetch.share_user && fetch.share_user.code">
|
|
|
<view class="buytip-layer layer " catchtap="handleStop">
|
|
|
<view class="buy-tit buy-user"><image :src="fetch.share_user.avatar" mode="widthFix"></image></view>
|
|
|
- <view class="buy-tit" style="margin-top: 10rpx;">{{fetch.share_user.username}}赠送</view>
|
|
|
+ <view class="buy-tit" style="margin-top: 10rpx;">{{fetch.share_user.username}}赠送{{fetch.info.ticket_name}}</view>
|
|
|
<view v-if="fetch.share_user.ticket && fetch.share_user.ticket.desc">
|
|
|
<text class="p">“{{fetch.share_user.ticket.desc}}”</text>
|
|
|
- <text class="p">——“他”是这么说的</text>
|
|
|
- </view>
|
|
|
-
|
|
|
- <view v-else>
|
|
|
- <text class="p">“{{fetch.share.content}}”</text>
|
|
|
- <text class="p">——{{fetch.share.title}}</text>
|
|
|
+ <text class="p">—“他”是这么说的</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view v-else>
|
|
|
+ <text class="p">“{{fetch.share.content}}”</text>
|
|
|
+ <text class="p">—{{fetch.share.title}}</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view v-if="fetch.share_ticket">
|
|
|
+ <text class="p">“{{fetch.share_ticket}}”</text>
|
|
|
+ <text class="p">—你已拥有{{fetch.info.ticket_name}},你这么回复“他”吧</text>
|
|
|
</view>
|
|
|
-
|
|
|
- <view class="btn-wrapper">
|
|
|
+
|
|
|
+ <view class="btn-wrapper" v-if="!fetch.share_ticket">
|
|
|
<view class="button cancel" @click="hideInvite">不要
|
|
|
</view>
|
|
|
- <view class="button primary" :style="fetch.button.bgcolor" @click="hideInvite">收下
|
|
|
+ <view class="button primary" :style="fetch.button.bgcolor" @click="saveTicket(fetch.share_user.code)">收下
|
|
|
<button formType="submit"></button>
|
|
|
</view>
|
|
|
+ </view>
|
|
|
+
|
|
|
+ <view class="btn-wrapper" v-if="fetch.share_ticket">
|
|
|
+ <view class="button primary" style="margin: 0 auto;" @click="hideInvite" :style="fetch.button.bgcolor">关闭</view>
|
|
|
</view>
|
|
|
|
|
|
</view>
|
|
@@ -138,6 +147,13 @@ export default{
|
|
|
hideInvite : function() {
|
|
|
this.inviteState = false;
|
|
|
},
|
|
|
+ saveTicket : function(code) {
|
|
|
+ var self = this;
|
|
|
+ this.Dever.post('app/user/?l=api.saveTicket', {code:code}, function(t) {
|
|
|
+ self.Dever.alert('已收下');
|
|
|
+ self.hideInvite();
|
|
|
+ });
|
|
|
+ },
|
|
|
showBuy : function() {
|
|
|
this.buyState = true;
|
|
|
},
|
|
@@ -536,7 +552,7 @@ swiper-item image{
|
|
|
object-fit: cover;
|
|
|
object-position: center;
|
|
|
position: absolute;
|
|
|
- top: -20%;
|
|
|
+ top: -16%;
|
|
|
left: 208rpx;
|
|
|
}
|
|
|
.buy-user image {
|