From 1618162f712fc414702bce924ff367397ff8ec1d Mon Sep 17 00:00:00 2001 From: 819527061@qq.com <123456> Date: 星期三, 08 一月 2025 08:49:11 +0800 Subject: [PATCH] 月卡 --- src/components/page/MonthFeePay.vue | 73 ++++++++++++++++++++---------------- 1 files changed, 40 insertions(+), 33 deletions(-) diff --git a/src/components/page/MonthFeePay.vue b/src/components/page/MonthFeePay.vue index 8f40f13..9787191 100644 --- a/src/components/page/MonthFeePay.vue +++ b/src/components/page/MonthFeePay.vue @@ -1,12 +1,12 @@ <template> <div class="weizhang-box yuezucard-wrap"> -<!-- <div class="weizhang-main-top"> - <h1 class="title">鏈堢杞﹀姙鐞�</h1> - </div>--> +<!-- <div class="weizhang-main-top">--> +<!-- <h1 class="title">鏈堢杞﹀姙鐞�</h1>--> +<!-- </div>--> <div class="weizhang-main-box"> <div class="weizhang-main-bootom"> <div class="weizhang-main-form"> - <el-form label-width="100px" :model="statisticData" ref="statisticData" :rules="rules" label-position="left"> + <el-form label-width="110px" :model="statisticData" ref="statisticData" :rules="rules" label-position="left"> <el-form-item label="杞︾墝鍙凤細" style="margin-left: 25px;" prop="carNo"> <el-input readonly @focus="isShow=true" v-model="statisticData.carNo" ></el-input> </el-form-item> @@ -34,8 +34,8 @@ </div> <div class="yuezu-box" v-if="searchShow"> <div> - <div class="current-box" v-if="startTime && endTime">鍓╀綑浣跨敤鏃堕棿锛�<span class="utilTime">{{untilToday}}澶╋紙{{endTime}}缁撴潫锛�</span></div> - <div class="current-box" v-else>鍓╀綑浣跨敤鏃堕棿锛氭殏鏈紑閫氭湀绁�</div> + <div class="current-box" v-if="startTime && endTime">鏈堢エ鍓╀綑鏃堕棿锛�<span class="utilTime">{{untilToday}}澶╋紙{{endTime}} 缁撴潫锛�</span></div> + <div class="current-box" v-else>鏈堢エ鍓╀綑鏃堕棿锛氭殏鏈紑閫氭湀绁�</div> </div> <!-- <div class="current-box" v-if="startTime && endTime"> <span class="title">褰撳墠浣跨敤鏃堕棿锛�</span> @@ -152,6 +152,7 @@ } }, created(){ + document.title = "鏈堢杞﹀姙鐞�"; var url = window.location.href; var cs = url.split('?')[1]; var cs_arr = cs.split('&'); @@ -168,27 +169,6 @@ pay(){ this.$refs.statisticData.validate((valid) => { if(valid) { - this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/monthFeePay/pay', this.statisticData, res => { - console.log(res,'res====') - if(res.code == 0){ - this.searchShow = true - this.activeIndex = '' //閲嶇疆 - this.money = null - this.compStartTime = '' - this.compEndTime = '' - //鏈煡璇㈠埌鏈堢エ锛屽彲姝e父缂磋垂 - if(res.data) { - this.startTime = res.data.startTime - this.endTime = res.data.endTime - }else { - this.startTime = '' - this.endTime = '' - } - }else { - - } - }) - this.getYuezuMoney() } }) @@ -198,12 +178,36 @@ parkId:this.statisticData.parkId, type:this.statisticData.allFlag } - this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/whiteListRule/getByPark', params, res => { - if(res.code == 0){ - this.yueZuObj = res.data - }else { + this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/whiteListRule/getByPark', params, res => { + console.log(res,'res====111') + if(res.code == 0){ + this.yueZuObj = res.data + this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/monthFeePay/pay', this.statisticData, res => { + console.log(res,'res====') + if(res.code == 0){ + this.searchShow = true + this.activeIndex = '' //閲嶇疆 + this.money = null + this.compStartTime = '' + this.compEndTime = '' + //鏈煡璇㈠埌鏈堢エ锛屽彲姝e父缂磋垂 + if(res.data) { + this.startTime = res.data.startTime + this.endTime = res.data.endTime + }else { + this.startTime = '' + this.endTime = '' + } + }else { + + } + }) + }else { + this.searchShow = false + this.$message.error(res.msg) } + }) }, handleSelect(key) { @@ -326,6 +330,9 @@ height: 5.33vw /* 40/7.5 */; line-height: 5.33vw; } + .el-select{ + width: 100%; + } } .weizhang-main-bootom{ .el-input__inner{ @@ -423,8 +430,8 @@ .title{ font-size: 4.27vw /* 32/7.5 */; font-weight: bolder; - height: 10.67vw /* 80/7.5 */; - line-height: 10.67vw /* 80/7.5 */; + height: 11.73vw /* 88/7.5 */; + line-height: 11.73vw /* 88/7.5 */; } .money{ font-size: 6.93vw /* 52/7.5 */; -- Gitblit v1.9.1