浏览代码

修改作者打赏和作品打赏的方法

hmp 4 年之前
父节点
当前提交
396d9b3340
共有 2 个文件被更改,包括 2 次插入21 次删除
  1. 1 10
      pages/activityList/activity/authorBoost.vue
  2. 1 11
      pages/activityList/activity/musicBoost.vue

+ 1 - 10
pages/activityList/activity/authorBoost.vue

@@ -326,16 +326,7 @@
 				let _this = this;
 				WeixinJSBridge.invoke('getBrandWCPayRequest', info, (res) => {
 					if (res.err_msg == "get_brand_wcpay_request:ok" ) {
-						_this.$u.api.boost.doReward({
-							activityId: _this.activityId,
-							presentId: _this.boostDetail.presentList[_this.current].id,
-							senderId: _this.senderId,
-							receiverId: _this.receiverId,
-							type: 3,
-							count: _this.count,
-						}).then(res => {
-							_this.successShow = true;
-						})
+						_this.successShow = true;
 					} else if (res.err_msg == "get_brand_wcpay_request:cancel") {
 						console.log("cancel");
 					} else {

+ 1 - 11
pages/activityList/activity/musicBoost.vue

@@ -337,17 +337,7 @@
 				let _this = this;
 				WeixinJSBridge.invoke('getBrandWCPayRequest', info, (res) => {
 					if (res.err_msg == "get_brand_wcpay_request:ok" ) {
-						_this.$u.api.boost.doReward({
-							activityId: _this.boostDetail.activityId,
-							productId:_this.productId,
-							presentId: _this.boostDetail.presentList[_this.current].id,
-							senderId: _this.userId,
-							receiverId: _this.boostDetail.userId,
-							type: 1,
-							count: _this.count,
-						}).then(res => {
-							_this.successShow = true;
-						})
+						_this.successShow = true;
 					} else if (res.err_msg == "get_brand_wcpay_request:cancel") {
 						console.log("cancel");
 					} else {