当前位置:   article > 正文

uniapp如何制作一个收缩通讯录(布局篇)_uniapp里怎么实现联系人的通讯录

uniapp里怎么实现联系人的通讯录

html

  1. <view class="search">
  2. <view class="search_padding">
  3. <u-search @change="search" placeholder="请输入成员名称" v-model="keyword"></u-search>
  4. </view>
  5. </view>
  6. <view class="" style="background-color: #ffffff;">
  7. <u-collapse>
  8. <u-collapse-item :open="item.open" @change="clicks(e)" :title="item.type_title"
  9. v-for="(item, index) in itemList" v-if="item.data.length != 0" :key="index">
  10. <view class="list" :style="items.status ? 'background-color: #F4F4F4;':''"
  11. v-for="(items,indexs) in item.data" :key="indexs" @click="click(index,indexs)">
  12. <image :src="items.img" mode="">
  13. </image>
  14. <view class="" style="line-height: 60rpx;text-align: start;width: 80%;">
  15. <p>{{items.note}}</p>
  16. <p>{{items.tel}}</p>
  17. </view>
  18. <u-checkbox-group>
  19. <u-checkbox :checked="items.status"></u-checkbox>
  20. </u-checkbox-group>
  21. </view>
  22. </u-collapse-item>
  23. </u-collapse>
  24. </view>

js

itemList: [],

css

  1. .search {
  2. width: 100%;
  3. background-color: #ffffff;
  4. }
  5. .search_padding {
  6. width: 94%;
  7. margin-left: 3%;
  8. padding: 10px 0px;
  9. }
  10. .u-search__action {
  11. display: none !important;
  12. }
  13. .list {
  14. width: 92%;
  15. display: flex;
  16. align-items: center;
  17. border: 1px solid #f4f4f4;
  18. padding: 8px 15px;
  19. justify-content: space-between;
  20. }
  21. .list image {
  22. width: 100rpx;
  23. height: 100rpx;
  24. border-radius: 10px;
  25. margin-right: 20rpx;
  26. }
  27. .u-collapse-item__content__text {
  28. padding: 0 !important;
  29. }

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/运维做开发/article/detail/873465
推荐阅读
相关标签
  

闽ICP备14008679号