|
@@ -14,10 +14,7 @@ Page({
|
|
|
shipOwnerNum: '-',
|
|
shipOwnerNum: '-',
|
|
|
},
|
|
},
|
|
|
async getCargoOwnerInfo() {
|
|
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) {
|
|
if (res.data.status == 0) {
|
|
|
let data = res.data.result
|
|
let data = res.data.result
|
|
|
Object.keys(data).forEach(function (key) {
|
|
Object.keys(data).forEach(function (key) {
|
|
@@ -73,6 +70,7 @@ Page({
|
|
|
voyageNum,
|
|
voyageNum,
|
|
|
shipOwnerNum
|
|
shipOwnerNum
|
|
|
})
|
|
})
|
|
|
|
|
+ this.getCargoOwnerInfo()
|
|
|
} else {
|
|
} else {
|
|
|
wx.showToast({
|
|
wx.showToast({
|
|
|
icon: "none",
|
|
icon: "none",
|