| xqd
@@ -281,6 +281,17 @@
|
|
|
break;
|
|
|
}
|
|
|
},
|
|
|
+ wechatPay: function (config) {
|
|
|
+ var that = this;
|
|
|
+ mapleWx($jssdk(), function () {
|
|
|
+ this.chooseWXPay(config, function () {
|
|
|
+ that.successOrder();
|
|
|
+ }, {
|
|
|
+ fail: that.extendOrder,
|
|
|
+ cancel: that.extendOrder
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
successOrder: function (msg) {
|
|
|
var that = this;
|
|
|
$h.showMsg({
|
| xqd
@@ -316,7 +327,7 @@
|
|
|
$h.pushMsg(msg, function () {
|
|
|
that.payDialogOpen = false;
|
|
|
if (that.orderId) {
|
|
|
- app.baseGet($h.U({c: 'plan', a: 'del_order', q: {orderId: that.orderId}}));
|
|
|
+ store.baseGet($h.U({c: 'studyplan', a: 'del_order', q: {orderId: that.orderId}}));
|
|
|
}
|
|
|
});
|
|
|
},
|