ソースを参照

fix[litemall-wx]: 进一步修复订单详情里面的支付问题。
当支付成功以后,应该在页面显示时重新加载订单列表信息,从而获取订单支付成功信息。

Junling Bu 7 年 前
コミット
ca41f9f38b
1 ファイル変更1 行追加1 行削除
  1. 1 1
      litemall-wx/pages/ucenter/order/order.js

+ 1 - 1
litemall-wx/pages/ucenter/order/order.js

@@ -8,7 +8,6 @@ Page({
   },
   onLoad:function(options){
     // 页面初始化 options为页面跳转所带来的参数
-    this.getOrderList();
   },
   getOrderList(){
     let that = this;
@@ -33,6 +32,7 @@ Page({
   },
   onShow:function(){
     // 页面显示
+    this.getOrderList();
   },
   onHide:function(){
     // 页面隐藏