| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- <template>
- <view class="flex-common-css">
- <Nav title="性别设置" titleColor="#333" bgckgroundBox='#fff'></Nav>
- <scroll-view :scroll-y="true" class="scroll-view-css">
- <view class="content-box">
- <view class="list-box box-border-box mb-80 bgc-f">
- <view class="item-box flex-justify-space" v-for="(item,index) in sexList" :key="index" @click="setSex(index)">
- <view class="fs-32 fc-3">
- {{item}}
- </view>
- <uni-icons v-show="sexId == index" color="#57CAFF" type="checkbox-filled" size="25"></uni-icons>
- </view>
- </view>
- <view class="but-box box-border-box">
- <view class="but fs-32 fc-f fw-600 b-rad-200 bgc-41ABF5 text-align-center">
- 保存
- </view>
- </view>
- </view>
- </scroll-view>
- </view>
- </template>
- <script>
- export default {
- components: {},
- data() {
- return {
- sexList:['保密','男','女'],
- sexId: 0
- };
- },
- onLoad(data) {},
- mounted() {},
- methods: {
- setSex(index) {
- this.sexId = index
- }
- },
- }
- </script>
- <style lang="scss" scoped>
- .content-box{
- padding: 20rpx 0 0 0;
- }
- .list-box{
- padding: 0 32rpx;
- }
- .item-box{
- height: 108rpx;
- line-height: 108rpx;
- border-bottom: 1rpx solid #EEEEEE;
- }
- .item-box:last-child {
- border: none;
- }
- .but-box{
- padding: 0 40rpx;
- }
- .but{
- width: 100%;
- height: 92rpx;
- line-height: 92rpx;
- }
- </style>
|