Explorar el Código

市场活动更新列表 添加更新total

xiaohaizhao hace 2 años
padre
commit
fe1bd6dfcf
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  1. 3 2
      packageA/activity/detail.js

+ 3 - 2
packageA/activity/detail.js

@@ -333,9 +333,10 @@ Page({
             "version": 1,
             "version": 1,
             content
             content
         }).then(res => {
         }).then(res => {
-            console.log("更新市场活动列表");
+            console.log("更新市场活动列表", res);
             if (res.msg == '成功') page.setData({
             if (res.msg == '成功') page.setData({
-                list: res.data
+                list: res.data,
+                "content.total": res.total
             })
             })
         })
         })
     }
     }