From b7b4cb32f94622fbb91a8a5b1c7ea22bdbb19995 Mon Sep 17 00:00:00 2001 From: 付延余 <f-yanyu@outlook.com> Date: 星期五, 19 八月 2022 11:09:53 +0800 Subject: [PATCH] 正式域名配置 --- pages/home/home.vue | 40 ++++++++++++++++++++++++++++++++++++---- 1 files changed, 36 insertions(+), 4 deletions(-) diff --git a/pages/home/home.vue b/pages/home/home.vue index bfac91d..f52e647 100644 --- a/pages/home/home.vue +++ b/pages/home/home.vue @@ -4,7 +4,15 @@ <view class="home_swipe"><u-swiper :list="list3" indicator indicatorMode="line" circular></u-swiper></view> <!-- 鍥捐〃 --> <combined-title title="鐓や粨搴撳瓨鏄庣粏"></combined-title> - <view class="charts-box"><qiun-data-charts type="pie" :opts="opts" :chartData="chartData" /></view> + <view class="charts-box"> + <qiun-data-charts type="pie" :opts="opts" :chartData="chartData" v-if="uchartsData.length > 0" /> + <u-empty + mode="data" + icon="http://cdn.uviewui.com/uview/empty/data.png" + v-if="uchartsData.length == 0" + > + </u-empty> + </view> <!-- 鎴戠殑鐢宠 --> <combined-title title="鎴戠殑鐢宠" detailsPath="/pages/my-application/my-application" v-if="shenqingMenu"></combined-title> <view class="card-group"> @@ -303,6 +311,7 @@ <script> import { timeConsuming } from '@/utils/nowDate.js'; +import { BaseUrl } from '@/utils/request.js'; // import popupMenu from '@/components/common/popup-menu/popup-menu.vue'; import combinedTitle from '@/components/common/combined-title/combined-title.vue'; import combinationCard from '@/components/common/combination-card/combination-card.vue'; @@ -344,7 +353,7 @@ statusColor: ['#dd8b8c', '#FF9900', '#007AFF', '#06BE00'], result: ['鏈彁浜�', '澶勭悊涓�', '閫氳繃', '椹冲洖'], resultColor: ['#dd8b8c', '#FF9900', '#06BE00', '#be2b2d'], - list3: ['https://cdn.uviewui.com/uview/swiper/swiper3.png', 'https://cdn.uviewui.com/uview/swiper/swiper2.png', 'https://cdn.uviewui.com/uview/swiper/swiper1.png'], + list3: ['../../../../static/groupAppTotalImg/banner.png'], // 鎾ゅ洖妯℃�佹 withDrawShow: false, fyData: [], @@ -423,8 +432,27 @@ // }, // 鐐瑰嚮瀵艰埅鏍忚彍鍗曞悗 onNavigationBarButtonTap(e) { - console.log(e); + console.log('閫�鍑哄鑸爮鎸夐挳浜嬩欢',e); // this.$refs.menuRef.menuClick(); + }, + // 鐩戝惉宸︿笂瑙掔殑鍥為��浜嬩欢 + onUnload(event){ //澶氬眰绾ц烦杞箣鍚庯紝鐩戝惉宸︿笂瑙掕繑鍥炰簨浠讹紝鐩存帴閫�鍥炲埌index + console.log('鐩戝惉宸︿笂瑙�',event); + uni.request({ + url: `${BaseUrl}/auth/token/logout`, + method: 'DELETE', + header: { + 'TENANT-ID': 5, + Authorization: 'Bearer ' + uni.getStorageSync('access_token'), + VERSION: 'zzl' + } + }).then(res=>{ + console.log('缂撳瓨娓呯悊鎴愬姛'); + }).catch(err => { + uni.showToast({ + title: '缂撳瓨娓呯悊澶辫触锛�', + }) + }) }, onShow() { // 鑿滃崟娉ㄩ噴锛坅pp寰呯敤锛� @@ -444,7 +472,7 @@ this.getProcessDataList(); // 鐢宠鍒楄〃 this.todoList(); // 鎴戠殑寰呭姙 this.doneList(); // 鎴戠殑宸插姙 - this.xscarshippingdayplan(); //鏃ヨ鍒� + this.xscarshippingdayplan(); // 鏃ヨ鍒� }, getUserInfo() { this.$reqGet('getUserInfo').then(res => { @@ -458,6 +486,7 @@ }); }, getServerData() { + console.log('鍔犺浇鍥捐〃',this.uchartsData); //妯℃嫙浠庢湇鍔″櫒鑾峰彇鏁版嵁鏃剁殑寤舵椂 setTimeout(() => { //妯℃嫙鏈嶅姟鍣ㄨ繑鍥炴暟鎹紝濡傛灉鏁版嵁鏍煎紡鍜屾爣鍑嗘牸寮忎笉鍚岋紝闇�鑷鎸変笅闈㈢殑鏍煎紡鎷兼帴 @@ -791,6 +820,9 @@ width: 91%; height: vww(330); margin: 0 auto; + .u-empty{ + height:100%; + } } .u-input { -- Gitblit v1.9.1