set-user-sex.vue 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <template>
  2. <view class="flex-common-css">
  3. <Nav title="性别设置" titleColor="#333" bgckgroundBox='#fff'></Nav>
  4. <scroll-view :scroll-y="true" class="scroll-view-css">
  5. <view class="content-box">
  6. <view class="list-box box-border-box mb-80 bgc-f">
  7. <view class="item-box flex-justify-space" v-for="(item,index) in sexList" :key="index" @click="setSex(index)">
  8. <view class="fs-32 fc-3">
  9. {{item}}
  10. </view>
  11. <uni-icons v-show="sexId == index" color="#57CAFF" type="checkbox-filled" size="25"></uni-icons>
  12. </view>
  13. </view>
  14. <view class="but-box box-border-box">
  15. <view class="but fs-32 fc-f fw-600 b-rad-200 bgc-41ABF5 text-align-center">
  16. 保存
  17. </view>
  18. </view>
  19. </view>
  20. </scroll-view>
  21. </view>
  22. </template>
  23. <script>
  24. export default {
  25. data() {
  26. return {
  27. sexList:['保密','男','女'],
  28. sexId: 0
  29. };
  30. },
  31. methods: {
  32. setSex(index) {
  33. this.sexId = index
  34. }
  35. },
  36. }
  37. </script>
  38. <style lang="scss" scoped>
  39. .content-box{
  40. padding: 20rpx 0 0 0;
  41. }
  42. .list-box{
  43. padding: 0 32rpx;
  44. }
  45. .item-box{
  46. height: 108rpx;
  47. line-height: 108rpx;
  48. border-bottom: 1rpx solid #EEEEEE;
  49. }
  50. .item-box:last-child {
  51. border: none;
  52. }
  53. .but-box{
  54. padding: 0 40rpx;
  55. }
  56. .but{
  57. width: 100%;
  58. height: 92rpx;
  59. line-height: 92rpx;
  60. }
  61. </style>