From 69d93657e9df5375c037b0d5de6a2c6ccbaff295 Mon Sep 17 00:00:00 2001 From: JinxChen <2183691628@qq.com> Date: Sat, 19 Nov 2022 10:10:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=20=E9=A1=B5=E9=9D=A2ui?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- miniprogram/pages/home/home.js | 3 ++- miniprogram/pages/home/home.wxml | 6 +++--- miniprogram/pages/home/home.wxss | 4 +++- miniprogram/project.config.json | 28 +++++++++++++++++++++++++ miniprogram/project.private.config.json | 7 +++++++ 5 files changed, 43 insertions(+), 5 deletions(-) create mode 100644 miniprogram/project.config.json create mode 100644 miniprogram/project.private.config.json diff --git a/miniprogram/pages/home/home.js b/miniprogram/pages/home/home.js index f206306..e3c3340 100644 --- a/miniprogram/pages/home/home.js +++ b/miniprogram/pages/home/home.js @@ -5,7 +5,8 @@ Page({ * 页面的初始数据 */ data: { - wlanList: [], //当前wlan列表 + wlanList: [ + ], //当前wlan列表 isConnectWlan: null, //是否已经连接上WLAN connectWlanBssid: '', //当前连接WLAN的SSID }, diff --git a/miniprogram/pages/home/home.wxml b/miniprogram/pages/home/home.wxml index 7b7f460..6a11b37 100644 --- a/miniprogram/pages/home/home.wxml +++ b/miniprogram/pages/home/home.wxml @@ -12,9 +12,9 @@ - - (当前手机连接网络) - {{wlanList[index].SSID}} + + (当前手机连接网络) + {{wlanList[index].SSID}} diff --git a/miniprogram/pages/home/home.wxss b/miniprogram/pages/home/home.wxss index e3f3fce..89a6a49 100644 --- a/miniprogram/pages/home/home.wxss +++ b/miniprogram/pages/home/home.wxss @@ -37,11 +37,13 @@ } .body { height: calc(100vh - 205px); + width: 100%; overflow: auto; background-color: #f2f4f5; } .wlan-list { flex: 1; + width: 100%; background-color: #f2f4f5; overflow: auto; } @@ -65,7 +67,7 @@ button { .wlan-item { height: 65px; line-height: 65px; - padding-left: 20px; + padding: 0 20px; margin: 5px 0; background-color: #fff; white-space: nowrap; diff --git a/miniprogram/project.config.json b/miniprogram/project.config.json new file mode 100644 index 0000000..b2b834d --- /dev/null +++ b/miniprogram/project.config.json @@ -0,0 +1,28 @@ +{ + "appid": "wx7edd2168a73f701f", + "compileType": "miniprogram", + "libVersion": "2.27.3", + "packOptions": { + "ignore": [], + "include": [] + }, + "setting": { + "coverView": true, + "es6": true, + "postcss": true, + "minified": true, + "enhance": true, + "showShadowRootInWxmlPanel": true, + "packNpmRelationList": [], + "babelSetting": { + "ignore": [], + "disablePlugins": [], + "outputPath": "" + } + }, + "condition": {}, + "editorSetting": { + "tabIndent": "insertSpaces", + "tabSize": 4 + } +} \ No newline at end of file diff --git a/miniprogram/project.private.config.json b/miniprogram/project.private.config.json new file mode 100644 index 0000000..75b39f2 --- /dev/null +++ b/miniprogram/project.private.config.json @@ -0,0 +1,7 @@ +{ + "description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html", + "projectname": "miniprogramParentWeb", + "setting": { + "compileHotReLoad": true + } +} \ No newline at end of file