From 3f26b6e547759ce830fe79749945f010cc56a273 Mon Sep 17 00:00:00 2001 From: yanyan Date: Fri, 1 Mar 2024 17:41:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=AB=E4=B8=80=E6=89=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.js | 4 +- pages/knowledge/knowledge.vue | 51 +++++++++++++- pages/scan/scan.vue | 125 ++++++++++++++++++++++++++-------- utils/config.js | 4 +- 4 files changed, 150 insertions(+), 34 deletions(-) diff --git a/main.js b/main.js index ce5fa7e..9ae0e69 100644 --- a/main.js +++ b/main.js @@ -13,8 +13,8 @@ import * as filters from '@/utils/formatFilter' uni.$http = $http Vue.prototype.$api = api -// $http.baseUrl = 'http://146.56.223.227:9527' -$http.baseUrl = 'http://localhost:9527' +$http.baseUrl = 'http://146.56.223.227:9527' +// $http.baseUrl = 'http://localhost:85' $http.beforeRequest = function(options) { uni.showLoading({ diff --git a/pages/knowledge/knowledge.vue b/pages/knowledge/knowledge.vue index 4add765..49d0632 100644 --- a/pages/knowledge/knowledge.vue +++ b/pages/knowledge/knowledge.vue @@ -1,8 +1,9 @@ @@ -16,11 +17,55 @@ }, onShow() { this.page= "know" + }, + methods: { + }, components: {tabbar} } diff --git a/pages/scan/scan.vue b/pages/scan/scan.vue index 5dcd23f..7b062a0 100644 --- a/pages/scan/scan.vue +++ b/pages/scan/scan.vue @@ -1,48 +1,119 @@ \ No newline at end of file +/* 开关手电筒 */ +.scancodePic{ + background: transparent !important; + width: 100rpx; + height: 100rpx; + padding: 0 !important; +} +.scancodePic>image{ + width: 100%; + height: 100%; +} + diff --git a/utils/config.js b/utils/config.js index cca2440..7765cc0 100755 --- a/utils/config.js +++ b/utils/config.js @@ -1,3 +1,3 @@ -// let url_config = 'http://146.56.223.227:9527/' -let url_config = 'http://localhost:9527/' +let url_config = 'http://146.56.223.227:9527/' +// let url_config = 'http://localhost:85/' export default url_config \ No newline at end of file