优化
This commit is contained in:
@@ -17,10 +17,7 @@ Page({
|
||||
amount_total_month: "",
|
||||
withdrawal_amount_month: "",
|
||||
bill: [],
|
||||
years: [
|
||||
{ label: '2023年', value: '2023' },
|
||||
{ label: '2024年', value: '2024' },
|
||||
],
|
||||
years: [],
|
||||
seasons: [
|
||||
{ label: '1月', value: '1' },
|
||||
{ label: '2月', value: '2' },
|
||||
@@ -36,6 +33,17 @@ Page({
|
||||
{ label: '12月', value: '12' },
|
||||
]
|
||||
},
|
||||
onLoad(){
|
||||
let now_year = (new Date()).Format("yyyy");
|
||||
let begin_year = 2022;
|
||||
let years = [];
|
||||
for(let i=begin_year;i<=now_year;i++){
|
||||
years.push({label: i+"年", value: i+""})
|
||||
}
|
||||
this.setData({
|
||||
years: years
|
||||
})
|
||||
},
|
||||
onShow(){
|
||||
let now_date = new Date();
|
||||
let now_datearr = util.getDateArr(now_date);
|
||||
@@ -108,5 +116,9 @@ Page({
|
||||
let date = this.data.dateValue[0]+"-"+md;
|
||||
console.log(date);
|
||||
app.go(url+"?date="+date);
|
||||
}
|
||||
},
|
||||
go(e){
|
||||
let url = e.currentTarget.dataset.url;
|
||||
app.go(url);
|
||||
},
|
||||
})
|
||||
@@ -23,7 +23,7 @@
|
||||
<van-empty description="暂无账单" wx:if="{{ bill.length == 0 }}" />
|
||||
</view>
|
||||
|
||||
<van-image style="position: fixed; right: 0;bottom: 262rpx;" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/account_rule.png" fit="heightFix" height="84rpx" aria-label="role" />
|
||||
<van-image bind:click="go" data-url="/Pages/yishi/agreement_detail/index?agreement_id=13" style="position: fixed; right: 0;bottom: 262rpx;" src="https://gdxz-hospital.oss-cn-chengdu.aliyuncs.com/applet/doctor/static/images/yishi/account_rule.png" fit="heightFix" height="84rpx" aria-label="role" />
|
||||
|
||||
<t-picker
|
||||
visible="{{dateVisible}}"
|
||||
|
||||
Reference in New Issue
Block a user