소스 검색

更新 参数

wzh 3 년 전
부모
커밋
ca7954d32a
3개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      .cloudbase/container/debug.json
  2. 4 0
      miniprogram/components/voyages/voyages.js
  3. 1 1
      miniprogram/pages/index/index.js

+ 1 - 0
.cloudbase/container/debug.json

@@ -0,0 +1 @@
+{"containers":[],"config":{}}

+ 4 - 0
miniprogram/components/voyages/voyages.js

@@ -98,6 +98,10 @@ Component({
         }
 
       } else {
+        this.setData({
+          list: [],
+          total: 0
+        })
         wx.showToast({
           icon: "none",
           title: res.data.msg,

+ 1 - 1
miniprogram/pages/index/index.js

@@ -11,7 +11,7 @@ Page({
   async getIndexInfo() {
     if (wx.getStorageSync('isClient')) return
     let res = await postApi('/voyage/index', {
-      cargoOwnerId: wx.getStorageSync('cargoOwnerId'),
+      loginAccountId: wx.getStorageSync('loginAccountId'),
       isClient: wx.getStorageSync('isClient'),
     })
     this.setData({