对接支付宝小程序

This commit is contained in:
gyq
2025-05-21 16:52:47 +08:00
parent 5e08d13c0d
commit 681328f9e1
5 changed files with 325 additions and 291 deletions

View File

@@ -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) {