myFamily.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827
  1. <template>
  2. <view :class="$isEmpty(user_list)||$isEmpty(apply_user_list)||$isEmpty(auditList)?'empty-wrap':''" :style="swiperCurrent==0?'':'background-color: #FFFFFF;'">
  3. <view class="wrap">
  4. <!-- <u-select v-model="show" :list="list"></u-select> -->
  5. <u-sticky>
  6. <u-tabs :list="list" font-size="29" active-color="#2f7ff5" inactive-color="#a6a6a6" bar-width="80" :is-scroll="false" :current="current" @change="change"></u-tabs>
  7. </u-sticky>
  8. <swiper class="swiper-box" :current="swiperCurrent" @change="swiperChange" >
  9. <swiper-item class="swiper-item">
  10. <scroll-view v-if="!this.$isEmpty(user_list)" scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
  11. <view class="cu-list menu" @click="locationShow=true">
  12. <view class="cu-item" >
  13. <view class="content">
  14. <text >我的房屋</text>
  15. </view>
  16. <view class="action">
  17. <text >{{selectLabel?selectLabel:room_list[0].name}}</text>
  18. <text class="cuIcon-right padding-left-10"></text>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="myFamily" >
  23. <view class="data" v-for="(item, index) in user_list" :key="index" style="border-bottom: 1rpx solid #b6b6b6;">
  24. <view class="top">
  25. <view class="left">
  26. <u-icon name="home" :size="30" color="rgb(94,94,94)"></u-icon>
  27. <view class="title">{{item.residentialName}}{{item.unitName}}{{item.roomName}}</view>
  28. </view>
  29. </view>
  30. <view class="item">
  31. <view class="left">
  32. <view data-aid="undefined">
  33. <image v-if="item.imageUri" mode="aspectFill" :src="item.imageUri">
  34. </image>
  35. <image v-if="item.imageUri==null" mode="aspectFill" src="http://139.9.103.171:1888/img/image/head.png">
  36. </image>
  37. </view>
  38. <view class="content" data-aid="undefined">
  39. <view >姓名:{{item.name}}</view>
  40. <view >手机:{{item.tel}}</view>
  41. <view >创建时间:{{item.createDate}}</view>
  42. <view v-if="item.type==0">身份:业主</view>
  43. <view v-if="item.type==1">身份:成员</view>
  44. <view v-if="item.type==2">身份:租户</view>
  45. <view v-if="item.type==3">身份:访客</view>
  46. </view>
  47. </view>
  48. </view>
  49. <view class="bottom" >
  50. <navigator :url="'/pages/myFamily/editFamily/editFamily?user_id=' + item.id + '&name=' + item.name + '&tel=' + item.tel + '&room_name=' + item.roomName + '&type=' + item.type + '&id_card=' + (item.idCard==null?'':item.idCard) + '&sex=' + item.sex + '&nationality=' + (item.nationality==null?'':item.nationality) + '&image_uri=' + (item.imageUri==null?'':item.imageUri) + '&passport_img_uri=' + (item.passportImgUri==null?'':item.passportImgUri) + '&entry_img_uri=' + (item.entryImgUri==null?'':item.entryImgUri)" class="cu-btn line-btn round sm margin-right-sm" @click.stop="">
  51. 编辑
  52. </navigator>
  53. <navigator :url="'/pages/myFamily/activateFace/activateFace?room_id=' + item.roomId + '&user_id=' + item.id + '&name=' + item.name + '&tel=' + item.tel + '&room_name=' + item.roomName + '&type=' + item.type + '&id_card=' + (item.idCard==null?'':item.idCard) + '&sex=' + item.sex + '&nationality=' + (item.nationality==null?'':item.nationality) + '&image_uri=' + (item.imageUri==null?'':item.imageUri) + '&passport_img_uri=' + (item.passportImgUri==null?'':item.passportImgUri) + '&entry_img_uri=' + (item.entryImgUri==null?'':item.entryImgUri)" class="cu-btn line-btn round sm margin-right-sm" @click.stop="">
  54. 人面激活
  55. </navigator>
  56. <view v-if="item.isShowDelete" :data-user_id="item.id" class="cu-btn bg-btn sm round" @click.stop="deleteUserById">
  57. 删除
  58. </view>
  59. </view>
  60. </view>
  61. </view>
  62. </scroll-view>
  63. <view class="default" v-else>
  64. <image src="/static/empty.png" mode="heightFix"></image>
  65. <view>
  66. <text>没有相关信息</text>
  67. </view>
  68. </view>
  69. </swiper-item>
  70. <swiper-item class="swiper-item">
  71. <scroll-view v-if="!$isEmpty(apply_user_list)" scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
  72. <view class="myFamily">
  73. <view style="border-bottom: 1rpx solid #b6b6b6;" v-for="(item, index) in apply_user_list" :key="index" class="nav_list" hover-class="none">
  74. <view class="flex">
  75. <view class="margin-right-10 " style="margin-top: 2rpx;">
  76. <u-icon name="home" :size="30" color="rgb(94,94,94)"></u-icon>
  77. </view>
  78. <view class="">
  79. <text>{{item.residentialName}}{{item.unitName}}{{item.roomName}}</text>
  80. </view>
  81. </view>
  82. <view class="myFamily_items">
  83. <view class="section_image" data-aid="undefined">
  84. <image style="border-radius: 50%;" v-if="item.imageUri" mode="aspectFill" :src="item.imageUri">
  85. </image>
  86. <image style="border-radius: 50%;" v-if="item.imageUri==null" mode="aspectFill" src="http://139.9.103.171:1888/img/image/head.png">
  87. </image>
  88. </view>
  89. <view class="section_cont" data-aid="undefined">
  90. <view class="section_cont_sub">
  91. <text>姓名:{{item.name}}</text>
  92. <text class="figure renter" v-if="item.type==0">身份:业主</text>
  93. <text class="figure renter" v-else-if="item.type==1">身份:成员</text>
  94. <text class="figure renter" v-else-if="item.type==2">身份:租客</text>
  95. <text class="figure renter" v-else-if="item.type==2">身份:访客</text>
  96. </view>
  97. <view class="section_cont_tel">
  98. <text>手机:{{item.tel}}</text>
  99. </view>
  100. <view class="section_cont_tel">
  101. <text>申请时间:{{item.createDate}}</text>
  102. </view>
  103. <view class="section_cont_tel">
  104. <view class data-aid="undefined">
  105. <text>状态:</text>
  106. <text v-if="item.checkState==0" class="col_red">待审核</text>
  107. <text v-if="item.checkState==1" class="col_red">审核通过</text>
  108. <text v-if="item.checkState==2" class="col_red">审核不通过</text>
  109. </view>
  110. <view class="section_cont_reason" v-if="item.checkState==2">
  111. <text class="reason">原因:<text class="col_red">{{item.checkOpinion}}</text> </text>
  112. </view>
  113. </view>
  114. </view>
  115. <!--审核不通过时显示 且会员有权限-->
  116. <view class="section_edit" v-if="item.isShow">
  117. <navigator :url="'/pages/myFamily/editApplyFamily/editApplyFamily?apply_user_id=' + item.id + '&name=' + item.name + '&tel=' + item.tel + '&room_name=' + item.roomName + '&type=' + item.type + '&id_card=' + (item.idCard==null?'':item.idCard) + '&sex=' + item.sex + '&nationality=' + item.nationality + '&image_uri=' + (item.imageUri==null?'':item.imageUri) + '&passport_img_uri=' + (item.passportImgUri==null?'':item.passportImgUri) + '&entry_img_uri=' + (item.entryImgUri==null?'':item.entryImgUri)">
  118. <view class="edit_btn">编辑</view>
  119. </navigator>
  120. </view>
  121. </view>
  122. </view>
  123. </view>
  124. </scroll-view>
  125. <view class="default" v-else>
  126. <image src="/static/empty.png" mode="heightFix"></image>
  127. <view>
  128. <text>没有相关信息</text>
  129. </view>
  130. </view>
  131. </swiper-item>
  132. <swiper-item class="swiper-item">
  133. <scroll-view v-if="!$isEmpty(auditList)" scroll-y style="height: 100%;width: 100%;">
  134. <view class="myFamily">
  135. <view style="border-bottom: 1rpx solid #b6b6b6;" v-for="(item, index) in auditList" :key="index" class="nav_list" hover-class="none">
  136. <view class="flex">
  137. <view style="width: 40rpx;height: 40rpx;padding-right: 10rpx;">
  138. <image src="http://139.9.103.171:1888/img/image/building.png"></image>
  139. </view>
  140. <view class="">
  141. <text>{{item.residentialName}}{{item.unitName}}{{item.roomName}}</text>
  142. </view>
  143. </view>
  144. <view class="myFamily_items">
  145. <view class="section_image" data-aid="undefined">
  146. <image v-if="item.imageUri" mode="aspectFill" :src="item.imageUri">
  147. </image>
  148. <image v-if="item.imageUri==null" mode="aspectFill" src="http://139.9.103.171:1888/img/image/head.png">
  149. </image>
  150. </view>
  151. <view class="section_cont" data-aid="undefined">
  152. <view class="section_cont_sub">
  153. <text>姓名:{{item.name}}</text>
  154. <text class="figure renter" v-if="item.type==0">身份:业主</text>
  155. <text class="figure renter" v-else-if="item.type==1">身份:成员</text>
  156. <text class="figure renter" v-else-if="item.type==2">身份:租客</text>
  157. <text class="figure renter" v-else-if="item.type==2">身份:访客</text>
  158. </view>
  159. <view class="section_cont_tel">
  160. <text>手机:{{item.tel}}</text>
  161. </view>
  162. <view class="section_cont_tel">
  163. <text>申请时间:{{item.createDate}}</text>
  164. </view>
  165. <view class="section_cont_tel">
  166. <view class data-aid="undefined">
  167. <text>状态:</text>
  168. <text v-if="item.checkState==0" class="col_red">待审核</text>
  169. <text v-if="item.checkState==1" class="col_red">审核通过</text>
  170. <text v-if="item.checkState==2" class="col_red">审核不通过</text>
  171. </view>
  172. <view class="section_cont_reason" v-if="item.checkState==2">
  173. <text class="reason">原因:<text class="col_red">{{item.checkOpinion}}</text> </text>
  174. </view>
  175. </view>
  176. </view>
  177. <!--审核不通过时显示 且会员有权限-->
  178. <view class="section_edit">
  179. <navigator :url="'/pages/myFamily/editApplyFamily/editApplyFamily?apply_user_id=' + item.id + '&name=' + item.name + '&tel=' + item.tel + '&room_name=' + item.roomName + '&type=' + item.type + '&id_card=' + (item.idCard==null?'':item.idCard) + '&sex=' + item.sex + '&nationality=' + item.nationality + '&image_uri=' + (item.imageUri==null?'':item.imageUri) + '&passport_img_uri=' + (item.passportImgUri==null?'':item.passportImgUri) + '&entry_img_uri=' + (item.entryImgUri==null?'':item.entryImgUri) + '&waitAudit=true'">
  180. <view class="edit_btn">审核</view>
  181. </navigator>
  182. </view>
  183. </view>
  184. </view>
  185. </view>
  186. </scroll-view>
  187. <view class="default" v-else>
  188. <image src="/static/empty.png" mode="heightFix"></image>
  189. <view>
  190. <text>没有相关信息</text>
  191. </view>
  192. </view>
  193. </swiper-item>
  194. </swiper>
  195. </view>
  196. <u-select z-index="9999999" mode="single-column" value-name="id" label-name="name" v-model="locationShow" :list="room_list" @confirm="roomChange"></u-select>
  197. <view style="height: 10rpx;"></view>
  198. <view @click="add" v-if="!$isEmpty(own_room_list)" class=" footer-fixed" >
  199. <view class="cu-btn flex text-lg bg-red-btn" style="padding: 46rpx 0;">
  200. 添加家人
  201. </view>
  202. </view>
  203. </view>
  204. </template>
  205. <script>
  206. //获取app实例
  207. var app = getApp();
  208. var util = require("../../utils/util.js");
  209. export default {
  210. data() {
  211. return {
  212. locationShow:false,
  213. selectLabel:'',
  214. //房屋成员
  215. user_list: null,
  216. //申请的认证列表
  217. apply_user_list: null,
  218. //审核列表
  219. auditList: [],
  220. //房屋id集合(业主)
  221. room_ids: [],
  222. //当前用户业主身份的房子
  223. own_room_list: null,
  224. //当前显示住户信息下标
  225. room_list_index: 0,
  226. //复制一份user_list用于筛选房屋列表
  227. user_lists: [] ,
  228. room_list: "",
  229. list: [
  230. {
  231. name: '审核通过'
  232. },
  233. {
  234. name: '申请记录'
  235. },
  236. {
  237. name: '住户审核'
  238. }
  239. ],
  240. current: 0,
  241. swiperCurrent: 0,
  242. };
  243. },
  244. onLoad() {
  245. this.initData()
  246. },
  247. onShow() {
  248. this.initData()
  249. },
  250. methods: {
  251. initData(){
  252. this.geRoomByMemberId();
  253. this.getAllApplyUserByMemberId();
  254. this.getAllApplyUserByRoomIds();
  255. },
  256. add(){
  257. uni.navigateTo({
  258. url:"./add/add"
  259. })
  260. },
  261. roomChange: function (e) {
  262. // 选中的房屋 id
  263. let id=e[0].value
  264. //选中的房屋名字
  265. this.selectLabel=e[0].label
  266. //选中的房屋列表的下标
  267. let index= this.room_list.findIndex(value => value.id===id)
  268. // let index=e.detail.value
  269. let list = [];
  270. this.user_lists.map(item => {
  271. if (this.room_list[index].name == item.roomName) {
  272. list.push(item);
  273. }
  274. }); //拿到当前选择的房间,判断是否该显示添加家人按钮
  275. let room_list = [];
  276. room_list.push(this.room_list[index]);
  277. this.ownRoomLists(room_list);
  278. this.setData({
  279. room_list_index: index,
  280. user_list: list
  281. });
  282. console.log(index)
  283. },
  284. //删除我的家人
  285. deleteUserById: function (event) {
  286. let that = this;
  287. app.globalData.twoFailHint("确认删除该住户吗?", function () {
  288. //住户id
  289. let user_id = event.target.dataset.user_id;
  290. let params = {};
  291. params['member_id'] = app.globalData.member.id;
  292. params['user_id'] = user_id;
  293. let operation = 'user/deleteUserById';
  294. app.globalData.postRequest(params, operation, function (res) {
  295. console.info("获取成功" + res.data.result_msg); //删除成功
  296. if (res.data.result_code == 1) {
  297. app.globalData.autoFailHint(res.data.result_msg, function () {
  298. //重新获取列表
  299. that.getAllUserByMemberId();
  300. });
  301. } else {
  302. app.globalData.oneFailHint(res.data.result_msg);
  303. }
  304. });
  305. });
  306. },
  307. //根据会员id获取我的家人列表
  308. getAllUserByMemberId: function () {
  309. let that = this;
  310. let params = {
  311. "pageNum":0,
  312. "pageSize":15
  313. };
  314. params['member_id'] = app.globalData.member.id;
  315. let operation = 'user/getAllUserByMemberId';
  316. app.globalData.postRequest(params, operation, function (res) {
  317. //获取成功
  318. if (res.data.result_code == 1) {
  319. let user_list = res.data.list; //业主身份的房子
  320. let own_room_list = that.own_room_list;
  321. for (let index in user_list) {
  322. user_list[index].createDate = util.formatTime(user_list[index].createDate);
  323. if (!that.$isEmpty(own_room_list)) {
  324. for (let i in own_room_list) {
  325. //该成员有被会员修改的权限
  326. if (user_list[index].roomId == own_room_list[i].id) {
  327. //显示 编辑
  328. user_list[index]['isShowEdit'] = true; //自己不能删除自己 且业主身份也不能删除
  329. if (user_list[index].type != 0) {
  330. user_list[index]['isShowDelete'] = true;
  331. }
  332. }
  333. }
  334. } else {
  335. if (app.globalData.member.name == user_list[index].name) {
  336. //显示 编辑
  337. user_list[index]['isShowEdit'] = true;
  338. }
  339. }
  340. } //过滤掉其他小区,保留选择小区
  341. let list = [];
  342. if (uni.getStorageSync('plotName')) {
  343. user_list.map(item => {
  344. if (item.residentialName == uni.getStorageSync('plotName')) {
  345. list.push(item);
  346. }
  347. });
  348. } else {
  349. list = user_list;
  350. list = user_lists;
  351. }
  352. that.setData({
  353. user_list: list,
  354. user_lists: list
  355. });
  356. } else {
  357. console.info("获取失败:" + res.data.result_msg);
  358. }
  359. });
  360. },
  361. //根据会员id获取我的申请列表
  362. getAllApplyUserByMemberId: function () {
  363. let that = this;
  364. let params = {
  365. pageSize:200,
  366. pageNum:0
  367. };
  368. params['member_id'] = app.globalData.member.id;
  369. ;
  370. let operation = 'applyUser/getAllApplyUserByMemberId';
  371. app.globalData.postRequest(params, operation, function (res) {
  372. //获取成功
  373. if (res.data.result_code == 1) {
  374. //业主身份的房子
  375. let own_room_list = that.own_room_list;
  376. let apply_user_list = res.data.list;
  377. for (let index in apply_user_list) {
  378. //格式化日期
  379. apply_user_list[index].createDate = util.formatTime(apply_user_list[index].createDate);
  380. if (!that.$isEmpty(own_room_list)) {
  381. //有业主身份的房子
  382. for (let i in own_room_list) {
  383. //该成员有被会员修改的权限--审核不通过
  384. if (apply_user_list[index].checkState == 2 && apply_user_list[index].roomId == own_room_list[i].id) {
  385. //显示 编辑
  386. apply_user_list[index]['isShow'] = true;
  387. }
  388. }
  389. } else {
  390. //没有业主身份的房子
  391. if (app.globalData.member.name == apply_user_list[index].name && apply_user_list[index].checkState == 2) {
  392. //显示 编辑
  393. apply_user_list[index]['isShow'] = true;
  394. }
  395. }
  396. } //过滤掉其他小区,保留选择小区
  397. let list = [];
  398. if (uni.getStorageSync('plotName')) {
  399. apply_user_list.map(item => {
  400. if (item.residentialName == uni.getStorageSync('plotName')) {
  401. list.push(item);
  402. }
  403. });
  404. } else {
  405. list = apply_user_list;
  406. }
  407. that.setData({
  408. apply_user_list: list
  409. });
  410. } else {
  411. console.info("获取失败:" + res.data.result_msg);
  412. }
  413. });
  414. },
  415. //根据会员id获取我的房屋列表
  416. geRoomByMemberId() {
  417. let that = this;
  418. let params = {};
  419. params['member_id'] = app.globalData.member.id;
  420. console.log(params)
  421. let operation = 'estate/getRoomByMemberId';
  422. app.globalData.postRequest(params, operation, function (res) {
  423. console.info("获取成功" + res.data.result_msg); //获取成功
  424. // if (res.data.result_code == 1) {
  425. // that.setData({
  426. // room_list: res.data.list
  427. // })
  428. // app.room_list = res.data.list;
  429. // that.ownRoomList(res.data.list);
  430. // }
  431. if (res.data.result_code == 1) {
  432. let list = [];
  433. if (uni.getStorageSync('plotName')) {
  434. if (!that.$isEmpty(that.room_ids)) {
  435. that.room_ids.splice(0, that.room_ids.length);
  436. }
  437. res.data.list.map(item => {
  438. if (item.residentialName == uni.getStorageSync('plotName')) {
  439. list.push(item);
  440. }
  441. if (item.residentialName == uni.getStorageSync('plotName') && item.relationshipType == 0) {
  442. that.room_ids.push(item.id);
  443. }
  444. });
  445. } else {
  446. list = res.data.list;
  447. }
  448. that.setData({
  449. room_list: list,
  450. room_ids: that.room_ids //获取我的房屋id集合(业主)
  451. });
  452. that.getAllApplyUserByRoomIds();
  453. app.globalData.room_list = list;
  454. that.ownRoomList(list);
  455. }
  456. });
  457. },
  458. //获取审核列表
  459. getAllApplyUserByRoomIds: function () {
  460. let that = this;
  461. let params = {};
  462. params['room_ids'] = that.room_ids;
  463. params['check_states'] = "0";
  464. let operation = 'applyUser/getAllApplyUserByRoomIds';
  465. app.globalData.postRequest(params, operation, function (res) {
  466. //获取成功
  467. if (res.data.result_code == 1) {
  468. that.setData({
  469. auditList: res.data.list
  470. });
  471. }
  472. });
  473. },
  474. //业主身份的房子
  475. ownRoomList: function (room_list) {
  476. let own_room_list = new Array();
  477. for (let index in room_list) {
  478. //是业主身份的房子
  479. if (room_list[index].relationshipType == 0) {
  480. //业主
  481. own_room_list.push(room_list[index]);
  482. }
  483. }
  484. this.setData({
  485. own_room_list: own_room_list
  486. }); //不常变数据保存到全局变量
  487. app.globalData.own_room_list = own_room_list; //家庭成员
  488. this.getAllUserByMemberId();
  489. },
  490. ownRoomLists: function (room_list) {
  491. let own_room_list = new Array();
  492. for (let index in room_list) {
  493. //是业主身份的房子
  494. if (room_list[index].relationshipType == 0) {
  495. //业主
  496. own_room_list.push(room_list[index]);
  497. }
  498. }
  499. this.setData({
  500. own_room_list: own_room_list
  501. }); //不常变数据保存到全局变量
  502. app.globalData.own_room_list = own_room_list;
  503. },
  504. reachBottom() {
  505. },
  506. // 轮播菜单
  507. swiperChange(e){
  508. this.swiperCurrent=e.detail.current
  509. this.current = e.detail.current
  510. // this.fetchData()
  511. },
  512. change(index){
  513. this.swiperCurrent=index
  514. this.current = index;
  515. // this.fetchData()
  516. },
  517. fetchData(){
  518. let index=this.current
  519. if(index==0){
  520. this.geRoomByMemberId();
  521. }else if(index==1){
  522. this.getAllApplyUserByMemberId();
  523. }else if(index==2){
  524. this.getAllApplyUserByRoomIds();
  525. }
  526. }
  527. }
  528. };
  529. </script>
  530. <style lang="scss" scoped>
  531. .wrap {
  532. display: flex;
  533. flex-direction: column;
  534. height: calc(100vh - var(--window-top));
  535. width: 100%;
  536. }
  537. .swiper-box {
  538. flex: 1;
  539. }
  540. .swiper-item {
  541. height: 100%;
  542. }
  543. /* pages/myHome/myHome.wxss */
  544. .container {
  545. height: 100%;
  546. display: flex;
  547. flex-direction: column;
  548. box-sizing: border-box;
  549. }
  550. .nav {
  551. display: flex;
  552. height: 80rpx;
  553. border-bottom: 1rpx solid #c7c7c9;
  554. background: #fff;
  555. }
  556. .nav view {
  557. flex: 1;
  558. text-align: center;
  559. height: 80rpx;
  560. line-height: 80rpx;
  561. color: #4a586a;
  562. }
  563. .nav view.active {
  564. color: $base-btn-color;
  565. border-bottom: 4rpx solid $base-btn-color;
  566. }
  567. .wrapCity {
  568. flex: 1;
  569. }
  570. .wrapCity swiper {
  571. height: 100%;
  572. }
  573. scroll-view {
  574. display: box;
  575. height: 100%;
  576. }
  577. .myFamily {
  578. width: 100%;
  579. padding-bottom: 100rpx;
  580. }
  581. .nav_list {
  582. padding: 20rpx;
  583. border-radius: 10rpx;
  584. background: #fff;
  585. margin-top: 4rpx;
  586. }
  587. .myFamily_items {
  588. display: flex;
  589. flex-direction: row;
  590. justify-content: space-between;
  591. padding: 30rpx;
  592. position: relative;
  593. }
  594. .myFamily_items .section_image {
  595. width: 120rpx;
  596. height: 120rpx;
  597. position: absolute;
  598. top: 50%;
  599. transform: translate(0, -50%);
  600. }
  601. .myFamily_items .identity {
  602. font-size: 24rpx;
  603. color: #d24a58;
  604. }
  605. .myFamily_items .section_image image {
  606. width: 100%;
  607. height: 100%;
  608. }
  609. .myFamily_items .section_cont {
  610. font-size: 24rpx;
  611. color: #666;
  612. margin-left: 140rpx;
  613. }
  614. .reason{
  615. text-overflow: -o-ellipsis-lastline;
  616. overflow: hidden;
  617. text-overflow: ellipsis;
  618. display: -webkit-box;
  619. -webkit-line-clamp: 2;
  620. -webkit-box-orient: vertical;
  621. }
  622. .myFamily_items .section_cont .section_cont_intro {
  623. white-space: normal;
  624. display: -webkit-box;
  625. -webkit-line-clamp: 2;
  626. -webkit-box-orient: vertical;
  627. }
  628. .myFamily_items .section_cont .section_cont_sub {
  629. font-size: 28rpx;
  630. line-height: 50rpx;
  631. color: #666;
  632. margin-bottom: 10rpx;
  633. }
  634. .myFamily_items .section_cont .section_cont_tel {
  635. font-size: 28rpx;
  636. color: #666;
  637. line-height: 50rpx;
  638. margin-bottom: 10rpx;
  639. }
  640. .myFamily_items .section_cont .section_cont_state {
  641. font-size: 28rpx;
  642. }
  643. .myFamily_items .section_edit {
  644. font-size: 24rpx;
  645. position: absolute;
  646. top: 50%;
  647. right: 20rpx;
  648. transform: translate(0, -50%);
  649. }
  650. .figure {
  651. color: #d24a58;
  652. border: 1px solid #d24a58;
  653. border-radius: 6rpx;
  654. font-size: 24rpx;
  655. padding: 0 6rpx;
  656. margin-left: 10rpx;
  657. }
  658. .figure.renter {
  659. color: $base-btn-color;
  660. border: 1px solid $base-btn-color;
  661. }
  662. .default { text-align: center; position: fixed; left: 50%; top: 40%; transform: translate(-50%, -50%); } .default text{ color: #AAAAAA; } .default image { height: 250rpx; display: inline-block; } .empty-wrap{ background-color: #FFFFFF; min-height: 100vh; }
  663. .edit_btn{
  664. background: $base-btn-color;
  665. color: #fff;
  666. height: 50rpx;
  667. line-height: 50rpx;
  668. border-radius: 10rpx;
  669. padding:0 16rpx;
  670. margin:6rpx;
  671. text-align: center;
  672. }
  673. .delete_btn{
  674. background: #d24a58;
  675. color: #fff;
  676. }
  677. .col_red{
  678. color: #d24a58;
  679. }
  680. .form_group {
  681. display: flex;
  682. flex-direction: row;
  683. justify-content: space-between;
  684. padding: 0 20rpx;
  685. background: #fff;
  686. line-height: 100rpx;
  687. position: relative;
  688. font-size: 26rpx;
  689. border-bottom: 2rpx solid #ddd;
  690. }
  691. .my-item .iconfont.arrow {
  692. position: absolute;
  693. right: 0;
  694. top: 50%;
  695. transform: translate(0, -50%);
  696. font-size: 32rpx;
  697. vertical-align: top;
  698. }
  699. .my-item {
  700. width: 100%;
  701. position: relative;
  702. background: #fff;
  703. font-size: 28rpx;
  704. box-sizing: border-box;
  705. }
  706. .my-item .status {
  707. position: absolute;
  708. right: 35rpx;
  709. top: 50%;
  710. transform: translate(0, -50%);
  711. font-size: 28rpx;
  712. }
  713. .cu-btn.sm {
  714. padding: 0 24upx;
  715. font-size: 24upx;
  716. height: 54upx;
  717. }
  718. .data {
  719. background-color: #FFFFFF;
  720. width: 720rpx;
  721. margin:10rpx auto;
  722. border-radius: 6rpx;
  723. box-sizing: border-box;
  724. padding: 20rpx;
  725. font-size: 28rpx;
  726. .top {
  727. display: flex;
  728. justify-content: space-between;
  729. .left {
  730. display: flex;
  731. align-items: center;
  732. .title {
  733. margin: 0 10rpx;
  734. font-size: 32rpx;
  735. font-weight: bold;
  736. }
  737. }
  738. }
  739. .item {
  740. display: flex;
  741. flex-direction: row;
  742. justify-content: space-between;
  743. margin: 40rpx 0 20rpx 0;
  744. .left {
  745. display: flex;
  746. image {
  747. width: 130rpx;
  748. height: 130rpx;
  749. border-radius: 50%;
  750. }
  751. .content {
  752. padding-left: 30rpx;
  753. view{
  754. padding-bottom: 16rpx;
  755. }
  756. }
  757. }
  758. }
  759. .bottom {
  760. display: flex;
  761. margin-top: 20rpx;
  762. justify-content: flex-end;
  763. align-items: center;
  764. }
  765. }
  766. </style>