|
|
@@ -66,6 +66,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
confimTopUp() {
|
|
|
+ let that = this
|
|
|
if (!this.price) {
|
|
|
appEv.errTips("充值不能为0");
|
|
|
return;
|
|
|
@@ -73,19 +74,9 @@ export default {
|
|
|
appEv.errTips("请阅读并同意相关协议");
|
|
|
return;
|
|
|
} else {
|
|
|
- let type = "H5";
|
|
|
- // #ifdef H5
|
|
|
- type = "H5";
|
|
|
- // #endif
|
|
|
- // #ifdef APP
|
|
|
- type = "app";
|
|
|
- // #endif
|
|
|
- // #ifdef MP-WEIXIN
|
|
|
- type = "jsapi";
|
|
|
- // #endif
|
|
|
let data = {
|
|
|
type: this.type == "local" ? 2 : 1,
|
|
|
- trade_type: type,
|
|
|
+ trade_type: "jsapi",
|
|
|
amount: this.price,
|
|
|
};
|
|
|
|
|
|
@@ -94,9 +85,9 @@ export default {
|
|
|
if (!rea) {
|
|
|
// 支付成功
|
|
|
appEv.errTips("支付成功");
|
|
|
- this.price = undefined;
|
|
|
- if(this.type == "local") this.getLU();
|
|
|
- else this.getuserInfo();
|
|
|
+ that.$set(that,"price","");
|
|
|
+ if(that.type == "local") that.getLU();
|
|
|
+ else that.getuserInfo();
|
|
|
} else {
|
|
|
// 支付失败
|
|
|
appEv.errTips("支付已取消");
|