6 changed files with 328 additions and 8 deletions
-
4components/lf-nolanPhoto/lf-nolanPhoto.vue
-
12pages.json
-
179pages/my/basicInformation.vue
-
8pages/my/editInfo.vue
-
66pages/my/innerMonologue.vue
-
67pages/test/test.vue
@ -0,0 +1,179 @@ |
|||
<template> |
|||
<view class="content"> |
|||
<view class="card"> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">个人昵称</text> |
|||
</view> |
|||
<view> |
|||
<input class="input" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">性别</text> |
|||
</view> |
|||
<view> |
|||
<input class="input" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">婚姻状况</text> |
|||
</view> |
|||
<view class="picker-w"> |
|||
<picker mode="selector" @change="getValue('marriage', $event)" :range="marriage" :value="marriage_index"> |
|||
<text>{{ marriage[marriage_index] || '请选择' }}</text> |
|||
</picker> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">户籍地</text> |
|||
</view> |
|||
<view class="picker-w"> |
|||
<picker mode="selector" @change="getValue('marriage', $event)" :range="marriage" :value="marriage_index"> |
|||
<text>{{ marriage[marriage_index] || '请选择' }}</text> |
|||
</picker> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">学历</text> |
|||
</view> |
|||
<view class="picker-w"> |
|||
<picker mode="selector" @change="getValue('marriage', $event)" :range="marriage" :value="marriage_index"> |
|||
<text>{{ marriage[marriage_index] || '请选择' }}</text> |
|||
</picker> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">身高</text> |
|||
</view> |
|||
<view> |
|||
<input class="input" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">体重</text> |
|||
</view> |
|||
<view> |
|||
<input class="input" placeholder="请输入" /> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">生日</text> |
|||
</view> |
|||
<view class="picker-w"> |
|||
<picker mode="date" @change="e => birth_date = e.detail.value"> |
|||
<text>{{ birth_date || '请选择' }}</text> |
|||
</picker> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">属相</text> |
|||
</view> |
|||
<view class="picker-w"> |
|||
<picker mode="selector" @change="getValue('marriage', $event)" :range="marriage" :value="marriage_index"> |
|||
<text>{{ marriage[marriage_index] || '请选择' }}</text> |
|||
</picker> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-color-primary">*</text> |
|||
<text class="lf-font-28 lf-color-333">星座</text> |
|||
</view> |
|||
<view class="picker-w"> |
|||
<picker mode="selector" @change="getValue('marriage', $event)" :range="marriage" :value="marriage_index"> |
|||
<text>{{ marriage[marriage_index] || '请选择' }}</text> |
|||
</picker> |
|||
</view> |
|||
</view> |
|||
<view class="lf-row-between lf-m-b-30"> |
|||
<view> |
|||
<text class="lf-font-28 lf-color-333 lf-m-l-14">外貌</text> |
|||
</view> |
|||
<view class="picker-w"> |
|||
<picker mode="selector" @change="getValue('marriage', $event)" :range="marriage" :value="marriage_index"> |
|||
<text>{{ marriage[marriage_index] || '请选择' }}</text> |
|||
</picker> |
|||
</view> |
|||
</view> |
|||
<button class="btn" hover-class="lf-opacity">保存</button> |
|||
</view> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data(){ |
|||
return { |
|||
marriage: ['已婚', '未婚'], |
|||
marriage_index: null, |
|||
birth_date: '' |
|||
} |
|||
}, |
|||
onLoad(){ |
|||
|
|||
}, |
|||
methods: { |
|||
getValue(current, event){ |
|||
this[current +'_index'] = event.detail.value; |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style> |
|||
page{ |
|||
background-color: #F5F5F5; |
|||
} |
|||
</style> |
|||
<style lang="scss" scoped="scoped"> |
|||
.content{ |
|||
padding: 30rpx 32rpx; |
|||
width: 750rpx; |
|||
height: max-content; |
|||
box-sizing: border-box; |
|||
.card{ |
|||
width: 686rpx; |
|||
height: max-content; |
|||
background-color: #FFFFFF; |
|||
border-radius: 10rpx; |
|||
padding: 30rpx; |
|||
box-sizing: border-box; |
|||
.input{ |
|||
width: 400rpx; |
|||
text-align: right; |
|||
} |
|||
.picker-w{ |
|||
width: 400rpx; |
|||
text-align: right; |
|||
} |
|||
.btn{ |
|||
width: 100%; |
|||
height: 90rpx; |
|||
line-height: 90rpx; |
|||
margin-top: 60rpx; |
|||
padding-bottom: 10rpx; |
|||
background: #E21196; |
|||
border-radius: 46rpx; |
|||
color: #FFFFFF; |
|||
} |
|||
} |
|||
} |
|||
</style> |
|||
@ -0,0 +1,66 @@ |
|||
<template> |
|||
<view class="content"> |
|||
<view class="textarea-box"> |
|||
<textarea class="textarea" placeholder="展现自己,也可说出您的故事~" maxlength="200"></textarea> |
|||
<view class="tips-num">0/200</view> |
|||
</view> |
|||
<view class="tips-content">!小提示:谈谈你对爱情、婚姻的想法,简单介绍下自己的生后工作或者你希望中的那个ta,最好能让对方更了解你,还能快速拉近两人的距离哟~</view> |
|||
<button class="btn" hover-class="lf-opacity">保存</button> |
|||
</view> |
|||
</template> |
|||
|
|||
<script> |
|||
export default { |
|||
data(){ |
|||
return { |
|||
|
|||
} |
|||
}, |
|||
onLoad(){ |
|||
|
|||
}, |
|||
methods: { |
|||
|
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style lang="scss" scoped="scoped"> |
|||
.content{ |
|||
padding: 30rpx 32rpx; |
|||
width: 750rpx; |
|||
height: max-content; |
|||
box-sizing: border-box; |
|||
.textarea-box{ |
|||
position: relative; |
|||
.tips-num{ |
|||
position: absolute; |
|||
bottom: 30rpx; |
|||
right: 30rpx; |
|||
font-size: 28rpx; |
|||
color: #999999; |
|||
} |
|||
} |
|||
.textarea{ |
|||
width: 686rpx; |
|||
height: 350rpx; |
|||
border-radius: 10rpx; |
|||
background-color: #F5F5F5; |
|||
box-sizing: border-box; |
|||
padding: 30rpx; |
|||
font-size: 28rpx; |
|||
padding-bottom: 80rpx; |
|||
} |
|||
.tips-content{ |
|||
font-size: 24rpx; |
|||
color: #777777; |
|||
margin-top: 45rpx; |
|||
} |
|||
.btn{ |
|||
margin-top: 40rpx; |
|||
background-color: #E21196; |
|||
border-radius: 46rpx; |
|||
color: #FFFFFF; |
|||
} |
|||
} |
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue