From df97e66f99cf081abf212a8d97fc32afe9c6e7a7 Mon Sep 17 00:00:00 2001 From: dengjunjie <dengjunjie@hnkhzn.com> Date: 星期五, 17 一月 2025 13:46:32 +0800 Subject: [PATCH] 更新配置文件PDA版本 --- 代码管理/淮安PDA/pages/index/index.vue | 44 +++++++++++++++----------------------------- 1 files changed, 15 insertions(+), 29 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/index/index.vue" "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/index/index.vue" index f7fec5c..4236ecb 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/index/index.vue" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/\346\267\256\345\256\211PDA/pages/index/index.vue" @@ -5,23 +5,7 @@ <u-grid :col="2"> <u-grid-item @tap="clickCoupon(item.url,item.menuId,item.description,item.menuName)" v-for="(item) in tree" :key="item.menuId"> - <!-- <u-icon v-if="item.menuName=='娌瑰ⅷ浠�'" :name="item.icon" custom-prefix="custom-icon" size="50" - color="#888888"></u-icon> - <u-icon v-else-if="item.menuName=='娴嬭瘯鏋朵粨'" name="ceshijiaguanli" custom-prefix="custom-icon" size="50" - color="#888888"></u-icon> - <u-icon v-else-if="item.menuName=='骞茶啘浠�'" name="zhijin" custom-prefix="custom-icon" size="50" - color="#888888"></u-icon> - <u-icon v-else-if="item.menuName=='杈呮枡浠�'" name="fuliaocangku" custom-prefix="custom-icon" size="50" - color="#888888"></u-icon> - <u-icon v-else-if="item.menuName=='鎴愬搧浠�'" name="chengpincangku" custom-prefix="custom-icon" size="50" - color="#888888"></u-icon> - <u-icon v-else-if="item.menuName=='鍩烘澘浠�'" name="bancaiwuliao" custom-prefix="custom-icon" size="50" - color="#888888"></u-icon> - <u-icon v-else-if="item.menuName=='PP浠�'" name="ppt" custom-prefix="custom-icon" size="50" - color="#888888"></u-icon> --> - <!-- <u-icon v-else="" name="home" :size="50"></u-icon> --> - <u-icon :name="item.icon" custom-prefix="custom-icon" size="50" - color="#888888"></u-icon> + <u-icon :name="item.icon" custom-prefix="custom-icon" size="50" color="#888888"> </u-icon> <view class="grid-text">{{item.menuName}}</view> </u-grid-item> </u-grid> @@ -46,16 +30,18 @@ } }, onShow() { - // uni.getSystemInfo({ - // success: (res) => { - // this.version = res.appWgtVersion; - // // console.log(res); - // //妫�娴嬪綋鍓嶅钩鍙帮紝濡傛灉鏄畨鍗撳垯鍚姩瀹夊崜鏇存柊 - // if (res.platform == "android") { - // this.AndroidCheckUpdate(); - // } - // } - // }); + console.log(); + + uni.getSystemInfo({ + success: (res) => { + this.version = res.appWgtVersion; + // console.log(res); + //妫�娴嬪綋鍓嶅钩鍙帮紝濡傛灉鏄畨鍗撳垯鍚姩瀹夊崜鏇存柊 + if (res.platform == "android") { + this.AndroidCheckUpdate(); + } + } + }); }, onLoad() { this.getCurrentTree(); @@ -67,7 +53,7 @@ AndroidCheckUpdate: function() { var _this = this; uni.request({ - url: 'http://10.1.211.101:9004/api/PDA/GetPDAVersion?version=' + this.version, + url: this.$u.http.config.baseUrl + '/api/PDA/GetPDAVersion?version=' + this.version, method: 'GET', data: {}, success: res => { @@ -80,7 +66,7 @@ icon: "none" }); var dtask = plus.downloader.createDownload( - "http://10.1.211.101:9004/api/PDA/DownLoadApp", {}, + this.$u.http.config.baseUrl + "/api/PDA/DownLoadApp", {}, function(d, status) { // 涓嬭浇瀹屾垚 if (status == 200) { -- Gitblit v1.9.3