/**
* 订单支付后续处理
* 接收参数
* 无需接收参数,从页面数据中取值
* 接口传参
* order_id:订单id
* order_code:订单编号
*/
_orderpaydealwith: function () {
let _this = this;
let order_id = _this.data.order_id;
let order_code = _this.data.order_code;
if (order_id && order_code) {
let postdata = {
order_id: order_id,
order_code: order_code
};
app._requestpost(_this, app.globaldata.config.shoporderpaydealwithurl, postdata,
function (res) {
app.showsuccess(res.msg, function () {
wx.redirectto({ url: res.url });
});
},
function (res) {
app.showerror(res.msg);
}
);
}
},