index.vue 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <template>
  2. <view :style="{ minHeight: sys.windowHeight + 'px' }"
  3. :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
  4. <tm-menubars title="用户新增/切换" :shadow="0" :showback="true"></tm-menubars>
  5. <div class="zhuti">
  6. <tm-sheet class="kuang">
  7. <view class="mt-2 flex-between flex-center dingwei pt-20 pb-20">
  8. <view class="touxiang">
  9. <image class="ml-20" style="vertical-align: middle;" src="/static/img/53.png" mode="widthFix"></image>
  10. <text style="vertical-align: middle;" class="text-size-g text-white">Hahhhnxsm_</text>
  11. </view>
  12. <view >
  13. <text class="text-size-g you" style="vertical-align: middle;">(当前用户)</text>
  14. <tm-checkbox class="you" v-model="checked1" label=""></tm-checkbox>
  15. </view>
  16. </view>
  17. </tm-sheet>
  18. <tm-sheet class="kuang" v-for="item in userList">
  19. <view class="mt-2 flex-between flex-center dingwei pt-20 pb-20">
  20. <view class="touxiang">
  21. <image class="ml-20" style="vertical-align: middle;" src="/static/img/61.png" mode="widthFix"></image>
  22. <text style="vertical-align: middle;" class="text-size-g text-white">{{item.name}}</text>
  23. </view>
  24. <view >
  25. <text class="text-size-g you" style="vertical-align: middle;">(家庭成员)</text>
  26. <tm-checkbox class="you" label=""></tm-checkbox>
  27. </view>
  28. </view>
  29. </tm-sheet>
  30. <tm-sheet class="kuang">
  31. <view class="mt-2 flex-between flex-center dingwei pt-20 pb-20">
  32. <view class="touxiang">
  33. <image class="ml-20" style="vertical-align: middle;" src="/static/img/54.png" mode="widthFix"></image>
  34. <text style="vertical-align: middle;" class="text-size-g text-white">新增家庭成员</text>
  35. </view>
  36. </view>
  37. </tm-sheet>
  38. </div>
  39. </view>
  40. </template>
  41. <script>
  42. import{myRequest} from '@/api/request.js'
  43. export default {
  44. data() {
  45. return {
  46. checked1:true,
  47. checked2:false,
  48. userList:[
  49. {name:'爸爸'},
  50. {name:'妈妈'},
  51. {name:'儿子'}
  52. ]
  53. };
  54. },
  55. onLoad() {
  56. },
  57. created() {
  58. this.sys = uni.getSystemInfoSync();
  59. },
  60. methods: {
  61. },
  62. }
  63. </script>
  64. <style lang="scss">
  65. /deep/ .tm-menubars .body{
  66. background-color: #1b1b1b !important;
  67. }
  68. .dingwei{width: 100%;margin: 0 auto;margin-top: 10px;}
  69. .dingwei image{width: 55px;margin-right: 10px; }
  70. /deep/ .border-primary-a-1{border-color: #303440;background: #303440;}
  71. /deep/ .shuru .grey-darken-5{
  72. background-color: #0d0d0d!important;
  73. padding: 0px !important;
  74. }
  75. .you{text-align: right;}
  76. </style>