diff --git a/main.js b/main.js index bf77b46..d640b3d 100644 --- a/main.js +++ b/main.js @@ -14,7 +14,8 @@ uni.$http = $http Vue.prototype.$api = api $http.baseUrl = 'http://146.56.223.227:9527' -// $http.baseUrl = 'http://localhost:9527' +// $http.baseUrl = 'http://localhost:85' + $http.beforeRequest = function(options) { uni.showLoading({ diff --git a/pages.json b/pages.json index 875b656..a00cd52 100644 --- a/pages.json +++ b/pages.json @@ -11,7 +11,8 @@ "path": "pages/scan/scan", "style": { "navigationBarTitleText": "全民演练", - "enablePullDownRefresh": false + "enablePullDownRefresh": false, + "navigationStyle": "custom" } }, { diff --git a/pages/knowledge/knowledge.vue b/pages/knowledge/knowledge.vue index 3854284..be6b490 100644 --- a/pages/knowledge/knowledge.vue +++ b/pages/knowledge/knowledge.vue @@ -1,13 +1,26 @@ @@ -22,10 +35,41 @@ onShow() { this.page= "know" }, - components: {tabbar}, + + 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/static/base_css.css b/static/base_css.css index c5cfc99..699bc5a 100644 --- a/static/base_css.css +++ b/static/base_css.css @@ -255,12 +255,12 @@ h3.contit span { .subwrap { position: relative; - top: -5%; + top: 0; overflow: hidden; overflow-y: auto; padding: 1% 3%; width: 94%; - height: 70%; + height: 100%; } .mainwrap2, .mainwrap3, .tabwrap { diff --git a/utils/config.js b/utils/config.js index 584146f..5de34ef 100755 --- a/utils/config.js +++ b/utils/config.js @@ -1,3 +1,4 @@ let url_config = 'http://146.56.223.227:9527/' -// let url_config = 'http://localhost:9527/' +// let url_config = 'http://localhost:85/' + export default url_config \ No newline at end of file