mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-01-06 04:18:11 +00:00
40 lines
1001 B
JavaScript
40 lines
1001 B
JavaScript
var app = getApp();
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
parameter: {
|
|
'navbar': '1',
|
|
'return': '1',
|
|
'title': '支付成功'
|
|
},
|
|
orderId:'',
|
|
order_pay_info: { paid :1 }
|
|
},
|
|
onLoadFun:function(){
|
|
this.getOrderPayInfo();
|
|
},
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad: function (options) {
|
|
if (!options.order_id) return app.Tips({title:'缺少参数无法查看订单支付状态'},{tab:3,url:1});
|
|
this.setData({ orderId: options.order_id, status: options.status || 0, msg: options.msg || ''});
|
|
},
|
|
getOrderPayInfo:function(){
|
|
var that=this;
|
|
wx.showLoading({title: '正在加载中'});
|
|
app.baseGet(app.U({ c: 'auth_api', a: 'get_order_pay_info', q: { order_id: this.data.orderId}}),function(res){
|
|
wx.hideLoading();
|
|
that.setData({ order_pay_info: res.data, 'parameter.title': res.data.paid ? '支付成功' :'支付失败'});
|
|
},function(){
|
|
wx.hideLoading();
|
|
});
|
|
},
|
|
|
|
|
|
|
|
|
|
}) |