From aff94579d33c07675ab160652b6d8ce49ed2e154 Mon Sep 17 00:00:00 2001 From: yangan <yangan0921@163.com> Date: 星期五, 24 一月 2025 15:56:46 +0800 Subject: [PATCH] fix:更改请求地址 --- pages/public-page/dataStatistics/index.vue | 33 ++++++++++++++++++++++++++------- 1 files changed, 26 insertions(+), 7 deletions(-) diff --git a/pages/public-page/dataStatistics/index.vue b/pages/public-page/dataStatistics/index.vue index 5fc09a9..32e4726 100644 --- a/pages/public-page/dataStatistics/index.vue +++ b/pages/public-page/dataStatistics/index.vue @@ -1,24 +1,38 @@ <template> -<div class="warp" :style="{backgroundImage:`url(${bg})`}"> +<div class="warp" :style="{backgroundImage:`url(${onlineurl}/appimg/image/dataStatistics/dataStatisticsbanner.jpg)`}"> <!-- 鍐呭鍖哄煙 --> <div class="conter"> 杩欎竴骞�,<br/> - 浣犳�诲叡鎷変簡101娆¤揣,<br/> - 鎬诲惃鏁�30281.2鍏噷,<br/> - 瓒呰繃浜嗗悓琛�99.8%鐨勪汉銆�<br/> + 浣犳�诲叡鎷変簡<span class="font">{{fontObj.times}}</span>娆¤揣,<br/> + 鎬诲惃鏁� <span class="font"> {{fontObj.weights}}鍚�</span>锛�<br/> + 瓒呰繃浜嗗悓琛�<span class="font">{{fontObj.percentage}}</span> 鐨勪汉銆�<br/> </div> </div> </template> <script> -import bg from '@/static/image/鏃犱汉鍊煎畧/鏁版嵁缁熻/鏁版嵁缁熻.jpg' + import { onlineurl } from '@/api/request.js' +// import bg from '@/static/image/鏃犱汉鍊煎畧/鏁版嵁缁熻/鏁版嵁缁熻.jpg' export default { data() { return { - bg, + onlineurl, + fontObj:{ + percentage: "", + times: '', + weights: '' + } } }, + onShow(){ + this.$reqGet('getStatistics',{userId:uni.getStorageSync('userId')}).then(res=>{ + if(res.data){ + this.fontObj = res.data; + } + + }) + } } @@ -40,7 +54,12 @@ line-height: 50rpx; top: 38%; left: 20%; - font-size: 28rpx; + font-size: 26rpx; + } + .font{ + color: #E27000; + font-size: 30rpx; + font-weight: bold; } } -- Gitblit v1.9.1