Browse Source

修改 页面ui

feat
JinxChen 2 years ago
parent
commit
69d93657e9
5 changed files with 43 additions and 5 deletions
  1. +2
    -1
      miniprogram/pages/home/home.js
  2. +3
    -3
      miniprogram/pages/home/home.wxml
  3. +3
    -1
      miniprogram/pages/home/home.wxss
  4. +28
    -0
      miniprogram/project.config.json
  5. +7
    -0
      miniprogram/project.private.config.json

+ 2
- 1
miniprogram/pages/home/home.js View File

@@ -5,7 +5,8 @@ Page({
* 页面的初始数据 * 页面的初始数据
*/ */
data: { data: {
wlanList: [], //当前wlan列表
wlanList: [
], //当前wlan列表
isConnectWlan: null, //是否已经连接上WLAN isConnectWlan: null, //是否已经连接上WLAN
connectWlanBssid: '', //当前连接WLAN的SSID connectWlanBssid: '', //当前连接WLAN的SSID
}, },


+ 3
- 3
miniprogram/pages/home/home.wxml View File

@@ -12,9 +12,9 @@
<view class="body"> <view class="body">
<view class="wlan-list" wx:if="{{wlanList.length > 0}}"> <view class="wlan-list" wx:if="{{wlanList.length > 0}}">
<view class="wlan-item" wx:for="{{wlanList}}" wx:key="index"> <view class="wlan-item" wx:for="{{wlanList}}" wx:key="index">
<view bindtap="onSave" data-name="{{wlanList[index]}}" class="{{index === 0 && isConnectWlan ? 'isConnect' : ''}}">
<text class="wlan-item-text" wx:if="{{index === 0 && isConnectWlan}}">(当前手机连接网络)</text>
{{wlanList[index].SSID}}
<view bindtap="onSave" data-name="{{wlanList[index]}}" class="{{ index === 0 && isConnectWlan ? 'isConnect' : ''}}">
<text class="wlan-item-text" wx:if="{{index === 0 && isConnectWlan}}">(当前手机连接网络)</text>
{{wlanList[index].SSID}}
</view> </view>
</view> </view>
</view> </view>


+ 3
- 1
miniprogram/pages/home/home.wxss View File

@@ -37,11 +37,13 @@
} }
.body { .body {
height: calc(100vh - 205px); height: calc(100vh - 205px);
width: 100%;
overflow: auto; overflow: auto;
background-color: #f2f4f5; background-color: #f2f4f5;
} }
.wlan-list { .wlan-list {
flex: 1; flex: 1;
width: 100%;
background-color: #f2f4f5; background-color: #f2f4f5;
overflow: auto; overflow: auto;
} }
@@ -65,7 +67,7 @@ button {
.wlan-item { .wlan-item {
height: 65px; height: 65px;
line-height: 65px; line-height: 65px;
padding-left: 20px;
padding: 0 20px;
margin: 5px 0; margin: 5px 0;
background-color: #fff; background-color: #fff;
white-space: nowrap; white-space: nowrap;


+ 28
- 0
miniprogram/project.config.json View File

@@ -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
}
}

+ 7
- 0
miniprogram/project.private.config.json View File

@@ -0,0 +1,7 @@
{
"description": "项目私有配置文件。此文件中的内容将覆盖 project.config.json 中的相同字段。项目的改动优先同步到此文件中。详见文档:https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html",
"projectname": "miniprogramParentWeb",
"setting": {
"compileHotReLoad": true
}
}

Loading…
Cancel
Save