Explorar el Código

避免拿到空结果

xiaohaizhao hace 1 año
padre
commit
c5abda016e
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      pages/index/market/index.js

+ 4 - 0
pages/index/market/index.js

@@ -126,6 +126,10 @@ Component({
         content
       }).then(res => {
         console.log("商品列表", res)
+        if (res.msg != '成功') return wx.showToast({
+          title: res.msg,
+          icon: "none"
+        })
         this.selectComponent('#ListBox').RefreshToComplete();
         content.pageNumber = res.pageNumber + 1;
         content.pageTotal = res.pageTotal;