|
@@ -17,7 +17,8 @@ Page({
|
|
|
accountNumber: "",
|
|
|
address: ""
|
|
|
},
|
|
|
-
|
|
|
+ //企业地址信息
|
|
|
+ enterPriseAddress:"",
|
|
|
// 账单信息
|
|
|
billInfo: {
|
|
|
totalAmount: "", // 总计应缴
|
|
@@ -114,7 +115,7 @@ Page({
|
|
|
wx.request({
|
|
|
url: app.globalData.interfaceUrls.homePageInfo + app.globalData.currentAccountInfo.usernumber,
|
|
|
method: 'GET',
|
|
|
- header: {
|
|
|
+ header: {
|
|
|
'content-type': 'application/json', // 默认值
|
|
|
'token': app.globalData.userWxInfo.token,
|
|
|
'source': "wc",
|
|
@@ -163,7 +164,6 @@ Page({
|
|
|
unreadCount: unreadCount
|
|
|
});
|
|
|
}
|
|
|
-
|
|
|
// 更新页面数据
|
|
|
_this.setData({
|
|
|
billInfo: {
|
|
@@ -175,7 +175,8 @@ Page({
|
|
|
name: apiReturnData.data.username,
|
|
|
accountNumber: apiReturnData.data.usernumber,
|
|
|
address: apiReturnData.data.address
|
|
|
- }
|
|
|
+ },
|
|
|
+ enterPriseAddress:apiReturnData.data.enterPriseAddress
|
|
|
});
|
|
|
},
|
|
|
fail(error) {
|
|
@@ -325,7 +326,8 @@ Page({
|
|
|
name: apiReturnData.data.username,
|
|
|
accountNumber: apiReturnData.data.usernumber,
|
|
|
address: apiReturnData.data.address
|
|
|
- }
|
|
|
+ },
|
|
|
+ enterPriseAddress:apiReturnData.data.enterPriseAddress
|
|
|
});
|
|
|
},
|
|
|
fail(error) {
|
|
@@ -682,7 +684,8 @@ Page({
|
|
|
// 计算未读消息数量
|
|
|
const unreadCount = app.globalData.userNoticesList.filter(notice => notice.readstate === '2').length;
|
|
|
_this.setData({
|
|
|
- unreadCount: unreadCount
|
|
|
+ unreadCount: unreadCount,
|
|
|
+ enterPriseAddress:apiReturnData.data.enterPriseAddress
|
|
|
});
|
|
|
}
|
|
|
}
|
|
@@ -749,6 +752,7 @@ Page({
|
|
|
accountNumber: apiReturnData.data.usernumber,
|
|
|
address: apiReturnData.data.address
|
|
|
},
|
|
|
+ enterPriseAddress:apiReturnData.data.enterPriseAddress,
|
|
|
noticeList: data,
|
|
|
isScrolling: true
|
|
|
});
|
|
@@ -768,5 +772,18 @@ Page({
|
|
|
});
|
|
|
}
|
|
|
});
|
|
|
+ },
|
|
|
+
|
|
|
+ // 显示地址弹窗并提供复制功能
|
|
|
+ showAddressPopup(e) {
|
|
|
+ const address = e.currentTarget.dataset.address;
|
|
|
+ if (!address) return;
|
|
|
+
|
|
|
+ wx.showModal({
|
|
|
+ title: '地址信息',
|
|
|
+ content: address,
|
|
|
+ showCancel: false,
|
|
|
+ confirmText: '确定'
|
|
|
+ });
|
|
|
}
|
|
|
})
|