Parcourir la source

更新 我的信息

wzh il y a 3 ans
Parent
commit
46320ad5f1
1 fichiers modifiés avec 2 ajouts et 4 suppressions
  1. 2 4
      miniprogram/pages/me/me.js

+ 2 - 4
miniprogram/pages/me/me.js

@@ -14,10 +14,7 @@ Page({
     shipOwnerNum: '-',
   },
   async getCargoOwnerInfo() {
-    let res = await postApi("/user/wx/login", {
-      openId: wx.getStorageSync('openId'),
-      phone: wx.getStorageSync('loginPhone')
-    })
+    let res = await postApi("/user/wx/myInfo", {})
     if (res.data.status == 0) {
       let data = res.data.result
       Object.keys(data).forEach(function (key) {
@@ -73,6 +70,7 @@ Page({
         voyageNum,
         shipOwnerNum
       })
+      this.getCargoOwnerInfo()
     } else {
       wx.showToast({
         icon: "none",