From c5ce0e20f31b18a7f783088006e49a9a0dee2aa1 Mon Sep 17 00:00:00 2001
From: chenhaozhe <cgz@hz-kingdee.com>
Date: 星期一, 22 九月 2025 16:39:03 +0800
Subject: [PATCH] 添加 余姚兴达起动器 地址
---
manifest.json | 4 +-
pages/index/login.vue | 70 +++++++++++++++++++----------------
2 files changed, 40 insertions(+), 34 deletions(-)
diff --git a/manifest.json b/manifest.json
index d52a847..de69559 100644
--- a/manifest.json
+++ b/manifest.json
@@ -2,8 +2,8 @@
"name" : "鏅轰簯LMES",
"appid" : "__UNI__B002F49",
"description" : "",
- "versionName" : "1.0.82",
- "versionCode" : 182,
+ "versionName" : "1.0.83",
+ "versionCode" : 183,
"transformPx" : false,
/* 5+App鐗规湁鐩稿叧 */
"app-plus" : {
diff --git a/pages/index/login.vue b/pages/index/login.vue
index 04f5812..3ac4a53 100644
--- a/pages/index/login.vue
+++ b/pages/index/login.vue
@@ -45,17 +45,18 @@
<view class="apibtn" @tap="changeApi=true">淇敼鏈嶅姟鍣ㄥ湴鍧�</view> -->
</view>
</view>
- <uni-popup ref="popup" type="center">
- <uni-popup-dialog title="鏈嶅姟鍣ㄨ缃�" mode="input" @confirm="confirmHandler" :before-close="true" @close="close">
- <view class="popup-content">
- <input type="text" v-model="serverUrlName" placeholder="璇疯緭鍏ユ湇鍔″櫒鍚嶇О">
- </view>
- </uni-popup-dialog>
- </uni-popup>
-
+ <uni-popup ref="popup" type="center">
+ <uni-popup-dialog title="鏈嶅姟鍣ㄨ缃�" mode="input" @confirm="confirmHandler" :before-close="true"
+ @close="close">
+ <view class="popup-content">
+ <input type="text" v-model="serverUrlName" placeholder="璇疯緭鍏ユ湇鍔″櫒鍚嶇О">
+ </view>
+ </uni-popup-dialog>
+ </uni-popup>
+
<view class="btn" @tap="submit">鐧� 褰�</view>
- <view class="btn apibtn" @click="openServerSettingHandler">鏈嶅姟鍣ㄨ缃�</view>
-
+ <view class="btn apibtn" @click="openServerSettingHandler">鏈嶅姟鍣ㄨ缃�</view>
+
</view>
</view>
</template>
@@ -78,10 +79,15 @@
CommonUtils,
arrayDataBases: [],
DataBases: '',
-
- serverUrlandName:{"娴欐睙鏅轰簯杩堟��":'http://47.96.97.237/API/',"娓╁窞娴疯瘹鍏夊":'http://122.228.39.234:7177/API/',"瀹佹尝鎯犲悍宸ヤ笟":'http://172.16.72.30:6699/API/'},
- serverUrlName:'娴欐睙鏅轰簯杩堟��',
-
+
+ serverUrlandName: {
+ "娴欐睙鏅轰簯杩堟��": 'http://47.96.97.237/API/',
+ "娓╁窞娴疯瘹鍏夊": 'http://122.228.39.234:7177/API/',
+ "瀹佹尝鎯犲悍宸ヤ笟": 'http://172.16.72.30:6699/API/',
+ "浣欏鍏磋揪璧峰姩鍣�": 'http://121.37.133.104/API/',
+ },
+ serverUrlName: '娴欐睙鏅轰簯杩堟��',
+
arrayOrganization: [],
Organization: '',
HOrgNameList: [],
@@ -124,24 +130,24 @@
},
confirmHandler() {
console.log(this.serverUrlName)
- console.log(this.serverUrlandName[this.serverUrlName])
- let url = this.serverUrlandName[this.serverUrlName];
- if(url!=undefined){
- uni.setStorageSync('serverUrl', url)
- this.serverUrl = url
- this.changeApi = false
- this.getOrganization()
- this.$refs.popup.close()
- }else{
- uni.showToast({
- title: '鏈嶅姟鍣ㄥ悕绉伴敊璇閲嶆柊杈撳叆',
- icon: 'none',
- })
- }
+ console.log(this.serverUrlandName[this.serverUrlName])
+ let url = this.serverUrlandName[this.serverUrlName];
+ if (url != undefined) {
+ uni.setStorageSync('serverUrl', url)
+ this.serverUrl = url
+ this.changeApi = false
+ this.getOrganization()
+ this.$refs.popup.close()
+ } else {
+ uni.showToast({
+ title: '鏈嶅姟鍣ㄥ悕绉伴敊璇閲嶆柊杈撳叆',
+ icon: 'none',
+ })
+ }
},
- close(){
- this.$refs.popup.close()
- },
+ close() {
+ this.$refs.popup.close()
+ },
openServerSettingHandler() {
this.$refs.popup.open()
},
@@ -170,7 +176,7 @@
},
getOrganization() {
- this.arrayOrganization = []
+ this.arrayOrganization = []
uni.request({
url: this.serverUrl + '/Web/GetOrganizations',
success: (res) => {
--
Gitblit v1.9.1