更换WIFI
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
Page({
|
||||
data: {
|
||||
|
||||
},
|
||||
|
||||
onLoad(options) {
|
||||
|
||||
},
|
||||
|
||||
onShow() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide() {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload() {
|
||||
|
||||
}
|
||||
})
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"navigationBarTitleText": "个人信息",
|
||||
"disableScroll": true
|
||||
}
|
||||
@@ -0,0 +1,71 @@
|
||||
<!-- <view class="device">
|
||||
<view>
|
||||
<view>智能蓝牙秤</view>
|
||||
<view>型号:{{deviceInfo && deviceInfo.type ? deviceInfo.type : '获取中...'}}</view>
|
||||
</view>
|
||||
<view>
|
||||
<view style="background-color: {{connectedDevice.color}};"></view>
|
||||
<view style="color: {{connectedDevice.color}};">{{connectedDevice.message}}</view>
|
||||
</view>
|
||||
</view> -->
|
||||
|
||||
<view class="form">
|
||||
<view>
|
||||
<view>姓名</view>
|
||||
<view>
|
||||
<input
|
||||
type="text"
|
||||
value="{{realname}}"
|
||||
bindinput="realnameInput"
|
||||
placeholder="请输入姓名"
|
||||
placeholder-class="placeholderClass" />
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>性别</view>
|
||||
<view class="arrowAfter">
|
||||
<picker bindchange="sexChange" value="{{sex.index}}" range="{{sex.data}}" range-key="name">
|
||||
{{sex.index === null ? '请选择性别' : sex.data[sex.index].name}}
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>生日</view>
|
||||
<view class="arrowAfter">
|
||||
<picker bindchange="birthdayChange" mode="date" value="{{birthday.value}}">
|
||||
{{birthday.value ? birthday.label : '请选择生日'}}
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<block wx:if="{{customerType === '1'}}">
|
||||
<view>
|
||||
<view>手机号</view>
|
||||
<view>
|
||||
<block wx:if="{{phone}}">
|
||||
{{phone}}
|
||||
</block>
|
||||
<block wx:else>
|
||||
<button open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">点击获取手机号</button>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<view>
|
||||
<view>身高</view>
|
||||
<view class="arrowAfter">
|
||||
<picker bindchange="heightChange" value="{{height.index}}" range="{{height.data}}">
|
||||
{{height.index === null ? '请选择身高' : height.data[height.index] + ' cm'}}
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view>
|
||||
<view>体重</view>
|
||||
<view class="arrowAfter">
|
||||
<picker bindchange="weightChange" value="{{weight.index}}" range="{{weight.data}}">
|
||||
{{weight.index === null ? '请选择体重' : weight.data[weight.index] + ' kg'}}
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="btn" bind:tap="submit">确定</view>
|
||||
@@ -0,0 +1,145 @@
|
||||
page {
|
||||
padding: 30rpx 30rpx 0;
|
||||
}
|
||||
|
||||
.device {
|
||||
width: 100%;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
padding: 35rpx 40rpx;
|
||||
border-radius: 24rpx;
|
||||
box-sizing: border-box;
|
||||
margin-bottom: 24rpx;
|
||||
background-color: #FFFFFF;
|
||||
justify-content: space-between;
|
||||
}
|
||||
|
||||
.device>view:nth-of-type(1)>view:nth-of-type(1) {
|
||||
color: #252535;
|
||||
height: 32rpx;
|
||||
font-weight: bold;
|
||||
font-size: 32rpx;
|
||||
line-height: 32rpx;
|
||||
margin-bottom: 22rpx;
|
||||
}
|
||||
|
||||
.device>view:nth-of-type(1)>view:nth-of-type(2) {
|
||||
color: #808080;
|
||||
height: 26rpx;
|
||||
font-size: 26rpx;
|
||||
line-height: 26rpx;
|
||||
}
|
||||
|
||||
.device>view:nth-of-type(2) {
|
||||
height: 28rpx;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.device>view:nth-of-type(2)>view:nth-of-type(1) {
|
||||
width: 14rpx;
|
||||
height: 14rpx;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.device>view:nth-of-type(2)>view:nth-of-type(2) {
|
||||
height: 28rpx;
|
||||
font-weight: bold;
|
||||
font-size: 28rpx;
|
||||
line-height: 28rpx;
|
||||
padding-left: 8rpx;
|
||||
}
|
||||
|
||||
.form {
|
||||
width: 100%;
|
||||
padding: 0 30rpx;
|
||||
border-radius: 16rpx;
|
||||
box-sizing: border-box;
|
||||
background-color: #FFFFFF;
|
||||
margin-bottom: 80rpx;
|
||||
}
|
||||
|
||||
.form>view {
|
||||
width: 100%;
|
||||
height: 120rpx;
|
||||
padding: 0 10rpx;
|
||||
display: flex;
|
||||
flex-wrap: nowrap;
|
||||
box-sizing: border-box;
|
||||
border-bottom: 1rpx solid #EAECF1;
|
||||
}
|
||||
|
||||
.form>view>view:first-of-type {
|
||||
color: #252535;
|
||||
height: 120rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
line-height: 120rpx;
|
||||
}
|
||||
|
||||
.form>view>view:last-of-type {
|
||||
flex: 1;
|
||||
width: 0;
|
||||
color: #B6B6B6;
|
||||
font-size: 28rpx;
|
||||
height: 120rpx;
|
||||
line-height: 120rpx;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.form>view>view:last-of-type.arrowAfter {
|
||||
padding-right: 30rpx;
|
||||
}
|
||||
|
||||
.form>view>view:last-of-type input {
|
||||
color: #252535;
|
||||
width: 100%;
|
||||
height: 120rpx;
|
||||
line-height: 120rpx;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.placeholderClass {
|
||||
color: #B6B6B6;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
|
||||
.form>view {
|
||||
border-bottom: 0;
|
||||
}
|
||||
|
||||
.btn {
|
||||
color: #FFFFFF;
|
||||
width: 580rpx;
|
||||
height: 88rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
line-height: 88rpx;
|
||||
text-align: center;
|
||||
border-radius: 44rpx;
|
||||
margin: 0 auto 50rpx;
|
||||
background-color: #1385FA;
|
||||
}
|
||||
|
||||
.tips {
|
||||
color: #77849E;
|
||||
width: 100%;
|
||||
font-size: 26rpx;
|
||||
line-height: 40rpx;
|
||||
padding: 0 30rpx;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.delBtn {
|
||||
color: #1385FA;
|
||||
width: 580rpx;
|
||||
height: 88rpx;
|
||||
font-size: 32rpx;
|
||||
font-weight: bold;
|
||||
line-height: 88rpx;
|
||||
text-align: center;
|
||||
border-radius: 44rpx;
|
||||
margin: 0 auto;
|
||||
}
|
||||
Reference in New Issue
Block a user