From 2898325db11ed938f9891991198b88ea6a042d3d Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期二, 21 十一月 2023 09:51:39 +0800 Subject: [PATCH] 修改前端页面 --- src/components/page/Index.vue | 45 ++++++++++++++++++++++++++++++++------------- 1 files changed, 32 insertions(+), 13 deletions(-) diff --git a/src/components/page/Index.vue b/src/components/page/Index.vue index 6d26e79..e452fa7 100644 --- a/src/components/page/Index.vue +++ b/src/components/page/Index.vue @@ -8,8 +8,8 @@ <div class="weizhang-main-box"> <div class="weizhang-main-top"> <img class="logoPhone" src="../../assets/images/logoImg.png" alt=""> - <span class="money">锟{this.statisticData.money}}</span> <span class="weizhang">缃氭病閲戦</span> + <span class="money">锟{this.statisticData.money}}</span> </div> <div class="weizhang-main-bootom"> @@ -41,7 +41,7 @@ {{this.statisticData.remark}} </h1> </div> - <el-form-item style="display: flex;justify-content: center;margin-top: 4.498vh" label-width="0" v-if="showFlag"> + <el-form-item class="weizhang-footer-box" style="display: flex;justify-content: center;margin-top: 4.498vh" label-width="0" v-if="showFlag"> <el-button class="jiaofei-btn" type="primary" @click="pay()">鍘荤即璐�</el-button> </el-form-item> </el-form> @@ -70,24 +70,24 @@ var cs = url.split('?')[1]; var cs_arr = cs.split('&'); var cs={}; - for(var i=0;i<cs_arr.length;i++){聽 聽 聽 聽 聽 + for(var i=0;i<cs_arr.length;i++){ cs[cs_arr[i].split('=')[0]] = cs_arr[i].split('=')[1] } this.ticketId = cs.id; - this.$byutil.postData(this, this.$systemconfig.basePath + '/ticket/findById', {id:cs.id}, res => { - this.statisticData = res.obj; + this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/ticket/findById', {id:cs.id}, res => { + this.statisticData = res.data; }) }, methods: { pay(){ //window.location.href = "https://payapp.weixin.qq.com/life/index?fr=PSBC&pg=charge&ct=39&sv=20&wx=130100002001&bk=13040621E00000002330" - this.$byutil.postData(this, this.$systemconfig.basePath + '/ffPay/zhiFa', {id:this.ticketId}, res => { + this.$byutil.postData(this, this.$systemconfig.basePath + '/ffzf/ffPay/zhifa', {id:this.ticketId}, res => { this.$message({ - message: '10绉掑悗鑷姩璺宠浆鍒版敮浠橀〉闈紝闃叉鍐呭缃戞暟鎹悓姝ュ欢杩燂紝璇风◢绛�', + message: '2绉掑悗鑷姩璺宠浆鍒版敮浠橀〉闈紝闃叉鍐呭缃戞暟鎹悓姝ュ欢杩燂紝璇风◢绛�', type: 'success', - duration:10000, + duration:2000, }); - setTimeout(function(){window.location.href = res.obj;},10000); + setTimeout(function(){window.location.href = res.msg;},2000); this.showFlag = false; }) } @@ -103,7 +103,19 @@ border:none; } .el-form-item__label{ - color: #999999; + color: #000; + font-weight: 600; + } + } + .weizhang-footer-box{ + .el-form-item__content{ + width: 100%; + display: flex; + justify-content: center; + } + .el-button--small{ + padding: 11px 15px; + font-size: 0.347rem /* 26/75 */; } } @@ -148,13 +160,17 @@ flex-direction: column; justify-content: center; align-items: center; + border-bottom: 1px solid #f0f0f0; .money{ font-size: 6.93vw /* 52/7.5 */; font-weight: 550; } .weizhang{ - font-size: 4.8vw /* 36/7.5 */; + font-size: 0.4rem /* 30/75 */; + line-height: 2; + font-weight: normal; margin-top:1.33vw /* 10/7.5 */; + color: #000; } } .weizhang-main-form{ @@ -175,10 +191,13 @@ } .logoPhone{ margin-top: 0.67vw; - width: 20vw /* 180/7.5 */; - height: 20vw /* 180/7.5 */; + width: 1.333rem /* 100/75 */; + height: 1.333rem /* 100/75 */; } .el-form-item--mini.el-form-item, .el-form-item--small.el-form-item { margin-bottom: 10px; } +.weizhang-main-bootom{ + margin-top: 0.333rem /* 25/75 */; +} </style> -- Gitblit v1.9.1