create the deatils page

kongweiyu_branch
孔维屿 1 year ago
parent e649f769f3
commit f0a3712530

@ -5,6 +5,7 @@ Page({
* 页面的初始数据
*/
data: {
currentTab: 0
},
/**

@ -5,8 +5,12 @@ Page({
//页面数据
data:{
avatarUrl: defaultAvatarUrl,
nickname: "昵称",
sex: null,
birthday: "",
region:"",
region: "",
contact: "请输入",
details: "请输入"
},
onLoad(options) {
@ -21,6 +25,12 @@ Page({
} catch (e) {
console.log(e);
}
db.get({
success:(res) => {
console.log(res)
}
})
},
//选择头像后存储头像地址

@ -5,25 +5,25 @@
</view>
<button class="avatar-wrapper" hover-class="none" open-type="chooseAvatar" bind:chooseavatar="onChooseAvatar">
<image class="avatar" src="{{avatarUrl}}"></image>
<image class="avatar" src="{{avatarUrl}}"/>
</button>
<form bindsubmit="submit">
<view class="section">
<view class="title">昵称:</view>
<input type="nickname" class="input" name="nickname" placeholder="昵称" />
<input type="nickname" class="input" name="nickname" placeholder="{{nickname}}" />
</view>
<view class="section">
<view class="title">性别:</view>
<radio-group class="mg" name="gender">
<label >
<radio value="man" />
<radio value="man" checked="{{sex}}"/>
</label>
<label >
<radio value="woman" />
<radio value="woman" checked="{{!sex && sex!=NULL}}"/>
</label>
</radio-group>

Loading…
Cancel
Save