|
|
@@ -72,7 +72,7 @@
|
|
|
<input type="number" class="text-center input" v-model="count" />
|
|
|
<view class="padding-left-sm" @click="plus"> <u-icon name="plus-circle-fill" color="#5a3ee8" size="36"></u-icon> </view>
|
|
|
</view>
|
|
|
- <button style="width: 150upx;" class="margin-left cu-btn round theme-bg-color text-white text-sm" @click="dialogShow = true">助力</button>
|
|
|
+ <button style="width: 150upx;" class="margin-left cu-btn round theme-bg-color text-white text-sm" @click="presentBoost(boostDetail.presentList[current].id)">助力</button>
|
|
|
</view>
|
|
|
</view>
|
|
|
<u-popup v-model="shareShow" mode="bottom" height="460rpx" border-radius="30">
|
|
|
@@ -95,8 +95,8 @@
|
|
|
<view style="height: 120upx;"></view>
|
|
|
<u-avatar src="/static/avatar.png" size="160"></u-avatar>
|
|
|
<view class="margin-top" style="font-size: 24upx;font-family: PingFang SC;font-weight: bold;color: #323035;">你将为{{boostDetail.nickName}}增加{{+boostDetail.presentList[current].hotValue * count}}热力值</view>
|
|
|
- <view class="text-gray text-sm">公益勋章X1</view>
|
|
|
- <view class="text-gray text-sm">立白助力礼包A</view>
|
|
|
+ <view class="text-gray text-sm" v-if="presentDetail.isGiveMedal == 1">公益勋章X {{count}}</view>
|
|
|
+ <view class="text-gray text-sm" v-if="presentDetail.isSendGoods == 1">{{presentDetail.goodsName}} X {{count}}</view>
|
|
|
<view class="text-gray text-sm">可得{{+boostDetail.presentList[current].pointsValue * count}}积分,可用于国信商城兑换</view>
|
|
|
<view class="padding">
|
|
|
<u-button class="custom-style" shape="circle" @click="pay">去支付</u-button>
|
|
|
@@ -130,6 +130,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+ import {appId} from '@/common/conf/config.js';
|
|
|
import {authUrl} from '@/common/conf/config.js';
|
|
|
import {getUrlParams} from '@/common/utils/utils.js';
|
|
|
export default {
|
|
|
@@ -148,6 +149,7 @@
|
|
|
type: '',
|
|
|
presentId:'',
|
|
|
successShow: false,
|
|
|
+ presentDetail: {},
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -179,7 +181,7 @@
|
|
|
},
|
|
|
//礼物支付
|
|
|
async pay() {
|
|
|
- if (this.$u.test.isEmpty(this.userId)) {
|
|
|
+ if (this.$u.test.isEmpty(this.senderId)) {
|
|
|
let path = 'pages/activityList/activity/authorBoost?activityId=' + this.activityId + '&receiverId=' + this.receiverId;
|
|
|
window.location.href = authUrl(path);
|
|
|
} else {
|
|
|
@@ -194,7 +196,7 @@
|
|
|
"fundProcessType": "",
|
|
|
"goodsName": this.boostDetail.presentList[this.current].name,
|
|
|
"memo": "",
|
|
|
- "notifyUrl": "https://vote.guosen-fumao.cn/vote-h5/index.html",
|
|
|
+ "notifyUrl": "https://yyzs.nanyue6688.com/vote-h5/index.html",
|
|
|
"orderAmount": this.count * this.currentPresentSum,
|
|
|
"orderId": new Date().getTime(),
|
|
|
"payWay": "WECHAT_OFFIACCOUNT",
|
|
|
@@ -286,6 +288,7 @@
|
|
|
price: this.count * this.currentPresentSum,
|
|
|
presentId: this.presentId,
|
|
|
presentCount: this.count,
|
|
|
+ relationId: this.receiverId,
|
|
|
type: 2,
|
|
|
payStatus: 1,
|
|
|
}).then(res => {
|
|
|
@@ -315,6 +318,12 @@
|
|
|
console.log(res.err_msg);
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+ presentBoost(id) {
|
|
|
+ this.$u.api.boost.presentDetail({id: id}).then(res => {
|
|
|
+ this.presentDetail = res;
|
|
|
+ this.dialogShow = true;
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|