|
@@ -100,7 +100,7 @@ Page({
|
|
|
let data= apiReturnData.data.swNotificationAnnouncementDos.filter(data=>{
|
|
|
return data.homepageslider=='1';
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
_this.setData({
|
|
|
billInfo:{
|
|
|
totalAmount:apiReturnData.data.duFees, // 总计应缴
|
|
@@ -140,7 +140,7 @@ Page({
|
|
|
wx.showLoading({
|
|
|
title: '加载中...',
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
// 检查token是否存在
|
|
|
if(!app.globalData.userWxInfo.token){
|
|
|
wx.hideLoading();
|
|
@@ -158,7 +158,7 @@ Page({
|
|
|
success(res) {
|
|
|
wx.hideLoading();
|
|
|
let apiReturnData = res.data;
|
|
|
-
|
|
|
+
|
|
|
// 更新页面数据
|
|
|
_this.setData({
|
|
|
billInfo: {
|
|
@@ -247,10 +247,10 @@ Page({
|
|
|
amountDue:this.data.billInfo.totalAmount, // 总计应缴
|
|
|
balance: this.data.billInfo.balance // 账户余额
|
|
|
};
|
|
|
-
|
|
|
+
|
|
|
// 编码账单信息并传递到缴费页面
|
|
|
const billInfoStr = encodeURIComponent(JSON.stringify(billInfo));
|
|
|
-
|
|
|
+
|
|
|
wx.navigateTo({
|
|
|
url: `/pages/lijijiaofei/lijijiaofei?billInfo=${billInfoStr}`
|
|
|
});
|
|
@@ -266,18 +266,9 @@ Page({
|
|
|
// 跳转到通知详情页面
|
|
|
goToNoticeDetail: function() {
|
|
|
const currentNotice = this.data.noticeList[this.data.currentIndex];
|
|
|
- // 将整个通知对象序列化并编码
|
|
|
- const noticeData = encodeURIComponent(JSON.stringify({
|
|
|
- id: currentNotice.id,
|
|
|
- title: currentNotice.title,
|
|
|
- content: currentNotice.scrollingcontent,
|
|
|
- date: currentNotice.date,
|
|
|
- type: currentNotice.type,
|
|
|
- source: currentNotice.source
|
|
|
- }));
|
|
|
|
|
|
wx.navigateTo({
|
|
|
- url: `/pages/tzxq/tzxq?noticeData=${noticeData}`
|
|
|
+ url: `/pages/tzxq/tzxq?id=${currentNotice.id}`
|
|
|
});
|
|
|
},
|
|
|
|
|
@@ -292,7 +283,7 @@ Page({
|
|
|
let data= (this.data.noticeList||[]).filter(data=>{
|
|
|
return data.homepageslider=='1';
|
|
|
});
|
|
|
-
|
|
|
+
|
|
|
const content = data[this.data.currentIndex].scrollingcontent;
|
|
|
const title = data[this.data.currentIndex].noticetitle;
|
|
|
// 将系数从0.3减小到0.1以加快滚动速度
|
|
@@ -323,7 +314,7 @@ Page({
|
|
|
// 加载账户和账单信息
|
|
|
loadAccountInfo: function() {
|
|
|
const accountInfo = app.globalData.currentAccountInfo || {};
|
|
|
-
|
|
|
+
|
|
|
this.setData({
|
|
|
currentAccountInfo: accountInfo
|
|
|
});
|