This commit is contained in:
XiaoMo 2025-06-24 18:56:29 +08:00
parent 93a3cb9b58
commit e6c9b1b01d

View File

@ -17,10 +17,10 @@ Page({
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onShow(options) {
var a = this; var a = this;
// 等待全局接口执行完成后再初始化页面 // 等待全局接口执行完成后再初始化页面
e.pageStart(t).then(function() { e.pageStart(t).then(function () {
a.initPage(); a.initPage();
}); });
}, },
@ -93,7 +93,7 @@ Page({
mask: true mask: true
}); });
e.request('/v2/miniprogram/substituteWash/pay', {token: a.data.token}, true).then(function (res) { e.request('/v2/miniprogram/substituteWash/pay', { token: a.data.token }, true).then(function (res) {
wx.hideLoading(); wx.hideLoading();
if (res.code === 200) { if (res.code === 200) {
@ -145,7 +145,7 @@ Page({
// 如果不是支付成功状态,则重新初始化页面 // 如果不是支付成功状态,则重新初始化页面
if (!this.data.paySuccess) { if (!this.data.paySuccess) {
var a = this; var a = this;
e.pageStart(t).then(function() { e.pageStart(t).then(function () {
a.initPage(); a.initPage();
}); });
} }
@ -170,7 +170,7 @@ Page({
*/ */
onPullDownRefresh() { onPullDownRefresh() {
var a = this; var a = this;
e.pageStart(t).then(function() { e.pageStart(t).then(function () {
a.initPage(); a.initPage();
wx.stopPullDownRefresh(); wx.stopPullDownRefresh();
}); });