|
@@ -65,6 +65,16 @@ Page({
|
|
|
paymentChannel: null as any,
|
|
|
},
|
|
|
|
|
|
+ onTimeing() {
|
|
|
+ if (!app.globalData.isLogin) {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.onTimeing()
|
|
|
+ }, 500);
|
|
|
+ } else {
|
|
|
+ this.getDetail()
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
/**
|
|
|
* 生命周期函数--监听页面加载
|
|
|
*/
|
|
@@ -85,8 +95,7 @@ Page({
|
|
|
if (options.orderNo) {
|
|
|
this.setData({
|
|
|
orderNo: options.orderNo
|
|
|
- })
|
|
|
- this.getDetail()
|
|
|
+ }, () => { this.onTimeing() })
|
|
|
}
|
|
|
},
|
|
|
async getDetail(callback?: any) {
|