对接支付宝小程序
This commit is contained in:
@@ -182,7 +182,7 @@
|
||||
this.init_config();
|
||||
|
||||
// 数据加载
|
||||
// this.init();
|
||||
this.init();
|
||||
},
|
||||
|
||||
onShow() {
|
||||
@@ -232,10 +232,15 @@
|
||||
// 获取数据
|
||||
init() {
|
||||
var user = app.globalData.get_user_info(this, 'init');
|
||||
console.log('user===', user);
|
||||
if (user != false) {
|
||||
this.setData({
|
||||
// pay_url: app.globalData.get_request_url('pay', 'order'),
|
||||
// #ifdef MP-ALIPAY
|
||||
pay_url: app.globalData.get_request_url('pay', 'order'),
|
||||
// #endif
|
||||
// #ifdef MP-WEIXIN
|
||||
pay_url: app.globalData.get_request_url('getpayment', 'xo'),
|
||||
// #endif
|
||||
qrcode_url: app.globalData.get_request_url('paycheck', 'order'),
|
||||
});
|
||||
|
||||
@@ -258,6 +263,8 @@
|
||||
|
||||
// 获取数据
|
||||
get_data_list(is_mandatory) {
|
||||
console.log('is_mandatory===', is_mandatory);
|
||||
|
||||
// 分页是否还有数据
|
||||
if ((is_mandatory || 0) == 0) {
|
||||
if (this.data_bottom_line_status == true) {
|
||||
|
||||
Reference in New Issue
Block a user