set-user-sex.vue 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. components: {},
  26. data() {
  27. return {
  28. sexList:['保密','男','女'],
  29. sexId: 0
  30. };
  31. },
  32. onLoad(data) {},
  33. mounted() {},
  34. methods: {
  35. setSex(index) {
  36. this.sexId = index
  37. }
  38. },
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. .content-box{
  43. padding: 20rpx 0 0 0;
  44. }
  45. .list-box{
  46. padding: 0 32rpx;
  47. }
  48. .item-box{
  49. height: 108rpx;
  50. line-height: 108rpx;
  51. border-bottom: 1rpx solid #EEEEEE;
  52. }
  53. .item-box:last-child {
  54. border: none;
  55. }
  56. .but-box{
  57. padding: 0 40rpx;
  58. }
  59. .but{
  60. width: 100%;
  61. height: 92rpx;
  62. line-height: 92rpx;
  63. }
  64. </style>