|
@ -177,24 +177,6 @@ |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 支付成功 |
|
|
|
|
|
paySuccess(){ |
|
|
|
|
|
|
|
|
|
|
|
let data = { |
|
|
|
|
|
...this.form, |
|
|
|
|
|
isCard : 'Y', |
|
|
|
|
|
image : this.fileList.map((item) => item.url).join(","), |
|
|
|
|
|
isTop : this.form.topId ? 'Y' : 'N', |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
this.$api('infoReleaseTrends', data, |
|
|
|
|
|
res => { |
|
|
|
|
|
if(res.code == 200){ |
|
|
|
|
|
this.$refs.confirmationPopupUpload.open() |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
// 发起支付 |
|
|
// 发起支付 |
|
|
payOrder(){ |
|
|
payOrder(){ |
|
|
let self = this |
|
|
let self = this |
|
@ -238,30 +220,6 @@ |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|
|
|
|
|
|
// this.$api('payOrder', res => { |
|
|
|
|
|
// console.log(); |
|
|
|
|
|
// if(res.code == 200){ |
|
|
|
|
|
// uni.requestPayment({ |
|
|
|
|
|
// provider: 'wxpay', // 服务提提供商 |
|
|
|
|
|
// timeStamp: res.result.timeStamp, // 时间戳 |
|
|
|
|
|
// nonceStr: res.result.nonceStr, // 随机字符串 |
|
|
|
|
|
// package: res.result.packageValue, |
|
|
|
|
|
// signType: res.result.signType, // 签名算法 |
|
|
|
|
|
// paySign: res.result.paySign, // 签名 |
|
|
|
|
|
// success: function (res) { |
|
|
|
|
|
// console.log('支付成功',res); |
|
|
|
|
|
// self.paySuccess() |
|
|
|
|
|
// }, |
|
|
|
|
|
// fail: function (err) { |
|
|
|
|
|
// console.log('支付失败',err); |
|
|
|
|
|
// uni.showToast({ |
|
|
|
|
|
// icon:'none', |
|
|
|
|
|
// title:"支付失败" |
|
|
|
|
|
// }) |
|
|
|
|
|
// } |
|
|
|
|
|
// }); |
|
|
|
|
|
// } |
|
|
|
|
|
// }) |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
// 提交 |
|
|
// 提交 |
|
@ -286,7 +244,7 @@ |
|
|
this.$refs.confirmationPopup.open() |
|
|
this.$refs.confirmationPopup.open() |
|
|
}else{ |
|
|
}else{ |
|
|
// 没有选择付费 |
|
|
// 没有选择付费 |
|
|
this.paySuccess() |
|
|
|
|
|
|
|
|
this.payOrder() |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
preview(){}, |
|
|
preview(){}, |
|
|