|
|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<view>
|
|
|
- <view class="bg-img" style="height: 563upx;" :style="{'backgroundImage':'url('+ boostDetail.cover +')'}">></view>
|
|
|
+ <view class="bg-img" style="height: 563upx;" :style="{'backgroundImage':'url('+ boostDetail.cover +')'}"></view>
|
|
|
<view class="head">
|
|
|
<view class="title">为{{boostDetail.nickName}}打榜</view>
|
|
|
<view class="flex justify-between align-center padding-lr">
|
|
|
@@ -15,7 +15,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="text-center">
|
|
|
- <button class="cu-btn round theme-bg-color text-white text-bold">
|
|
|
+ <button class="cu-btn round theme-bg-color text-white text-bold" @click="userBoost">
|
|
|
<text>打榜</text>
|
|
|
<text class="cuIcon-hot padding-lr-xs"></text>
|
|
|
<text>X{{boostDetail.activityHotValue}}</text>
|
|
|
@@ -78,7 +78,7 @@
|
|
|
<view class="text-gray text-sm">立白助力礼包A</view>
|
|
|
<view class="text-gray text-sm">可得300积分,可用于国信商城兑换</view>
|
|
|
<view class="padding">
|
|
|
- <u-button class="custom-style" shape="circle">去支付</u-button>
|
|
|
+ <u-button class="custom-style" shape="circle" @click="pay">去支付</u-button>
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-popup>
|
|
|
@@ -100,16 +100,36 @@
|
|
|
],
|
|
|
count: 1,
|
|
|
currentPresentSum: 0,
|
|
|
+ activityId: '',
|
|
|
+ senderId: '',
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
- this.getBoostDetail(options.activityId, options.userId);
|
|
|
+ this.activityId = optionss.activityId;
|
|
|
+ this.senderId = uni.getStorageSync("userId");
|
|
|
+ this.getBoostDetail(options.activityId, options.receiverId);
|
|
|
this.currentPresentSum = this.present[this.current].price;
|
|
|
},
|
|
|
methods: {
|
|
|
+ //打榜助力
|
|
|
+ userBoost() {
|
|
|
+ if (this.$u.test.isEmpty(senderId)) {
|
|
|
+ window.location.href = authUrl(this.activityId);
|
|
|
+ } else {
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //礼物支付
|
|
|
+ pay() {
|
|
|
+ if (this.$u.test.isEmpty(senderId)) {
|
|
|
+ window.location.href = authUrl(this.activityId);
|
|
|
+ } else {
|
|
|
+
|
|
|
+ }
|
|
|
+ },
|
|
|
//获取助力详情
|
|
|
- getBoostDetail(activityId, userId) {
|
|
|
- this.$u.api.user.boost({activityId: activityId,receiverId: userId, senderId: null}).then(res => {
|
|
|
+ getBoostDetail(activityId, receiverId) {
|
|
|
+ this.$u.api.user.boost({activityId: activityId, receiverId: receiverId, senderId: this.senderId}).then(res => {
|
|
|
this.boostDetail = res;
|
|
|
})
|
|
|
},
|