myFamily.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833
  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="apply_user_list.length>0" scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom">
  72. <view class="myFamily" v-if="apply_user_list.length>0">
  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-if="apply_user_list==null || apply_user_list.length==0">
  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 scroll-y style="height: 100%;width: 100%;">
  134. <view class="myFamily" v-if="auditList.length>0">
  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-if="auditList==null || auditList.length==0">
  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. <!-- <navigator url="/pages/myFamily/addFamily/addFamily" v-if="own_room_list.length>0" class="bg-white footer-fixed padding-10" >
  199. <view class="cu-btn flex radius text-lg" style="padding: 46rpx 0;background-color: #5db5fe;color: #FFFFFF;">
  200. 添加家人
  201. </view>
  202. </navigator> -->
  203. <view @click="add" v-if="own_room_list.length>0" class=" footer-fixed" >
  204. <view class="cu-btn flex text-lg bg-red-btn" style="padding: 46rpx 0;">
  205. 添加家人
  206. </view>
  207. </view>
  208. </view>
  209. </template>
  210. <script>
  211. //获取app实例
  212. var app = getApp();
  213. var util = require("../../utils/util.js");
  214. export default {
  215. data() {
  216. return {
  217. locationShow:false,
  218. selectLabel:'',
  219. //房屋成员
  220. user_list: null,
  221. //申请的认证列表
  222. apply_user_list: null,
  223. //审核列表
  224. auditList: [],
  225. //房屋id集合(业主)
  226. room_ids: [],
  227. //当前用户业主身份的房子
  228. own_room_list: null,
  229. //当前显示住户信息下标
  230. room_list_index: 0,
  231. //复制一份user_list用于筛选房屋列表
  232. user_lists: [] ,
  233. room_list: "",
  234. list: [
  235. {
  236. name: '审核通过'
  237. },
  238. {
  239. name: '申请记录'
  240. },
  241. {
  242. name: '住户审核'
  243. }
  244. ],
  245. current: 0,
  246. swiperCurrent: 0,
  247. };
  248. },
  249. onLoad() {
  250. this.initData()
  251. },
  252. onShow() {
  253. this.initData()
  254. },
  255. methods: {
  256. initData(){
  257. this.geRoomByMemberId();
  258. this.getAllApplyUserByMemberId();
  259. this.getAllApplyUserByRoomIds();
  260. },
  261. add(){
  262. uni.navigateTo({
  263. url:"./add/add"
  264. })
  265. },
  266. roomChange: function (e) {
  267. // 选中的房屋 id
  268. let id=e[0].value
  269. //选中的房屋名字
  270. this.selectLabel=e[0].label
  271. //选中的房屋列表的下标
  272. let index= this.room_list.findIndex(value => value.id===id)
  273. // let index=e.detail.value
  274. let list = [];
  275. this.user_lists.map(item => {
  276. if (this.room_list[index].name == item.roomName) {
  277. list.push(item);
  278. }
  279. }); //拿到当前选择的房间,判断是否该显示添加家人按钮
  280. let room_list = [];
  281. room_list.push(this.room_list[index]);
  282. this.ownRoomLists(room_list);
  283. this.setData({
  284. room_list_index: index,
  285. user_list: list
  286. });
  287. console.log(index)
  288. },
  289. //删除我的家人
  290. deleteUserById: function (event) {
  291. let that = this;
  292. app.globalData.twoFailHint("确认删除该住户吗?", function () {
  293. //住户id
  294. let user_id = event.target.dataset.user_id;
  295. let params = {};
  296. params['member_id'] = app.globalData.member.id;
  297. params['user_id'] = user_id;
  298. let operation = 'user/deleteUserById';
  299. app.globalData.postRequest(params, operation, function (res) {
  300. console.info("获取成功" + res.data.result_msg); //删除成功
  301. if (res.data.result_code == 1) {
  302. app.globalData.autoFailHint(res.data.result_msg, function () {
  303. //重新获取列表
  304. that.getAllUserByMemberId();
  305. });
  306. } else {
  307. app.globalData.oneFailHint(res.data.result_msg);
  308. }
  309. });
  310. });
  311. },
  312. //根据会员id获取我的家人列表
  313. getAllUserByMemberId: function () {
  314. let that = this;
  315. let params = {
  316. "pageNum":0,
  317. "pageSize":15
  318. };
  319. params['member_id'] = app.globalData.member.id;
  320. let operation = 'user/getAllUserByMemberId';
  321. app.globalData.postRequest(params, operation, function (res) {
  322. //获取成功
  323. if (res.data.result_code == 1) {
  324. let user_list = res.data.list; //业主身份的房子
  325. let own_room_list = that.own_room_list;
  326. for (let index in user_list) {
  327. user_list[index].createDate = util.formatTime(user_list[index].createDate);
  328. if (own_room_list.length > 0) {
  329. for (let i in own_room_list) {
  330. //该成员有被会员修改的权限
  331. if (user_list[index].roomId == own_room_list[i].id) {
  332. //显示 编辑
  333. user_list[index]['isShowEdit'] = true; //自己不能删除自己 且业主身份也不能删除
  334. if (user_list[index].type != 0) {
  335. user_list[index]['isShowDelete'] = true;
  336. }
  337. }
  338. }
  339. } else {
  340. if (app.globalData.member.name == user_list[index].name) {
  341. //显示 编辑
  342. user_list[index]['isShowEdit'] = true;
  343. }
  344. }
  345. } //过滤掉其他小区,保留选择小区
  346. let list = [];
  347. if (uni.getStorageSync('plotName')) {
  348. user_list.map(item => {
  349. if (item.residentialName == uni.getStorageSync('plotName')) {
  350. list.push(item);
  351. }
  352. });
  353. } else {
  354. list = user_list;
  355. list = user_lists;
  356. }
  357. that.setData({
  358. user_list: list,
  359. user_lists: list
  360. });
  361. } else {
  362. console.info("获取失败:" + res.data.result_msg);
  363. }
  364. });
  365. },
  366. //根据会员id获取我的申请列表
  367. getAllApplyUserByMemberId: function () {
  368. let that = this;
  369. let params = {
  370. pageSize:200,
  371. pageNum:0
  372. };
  373. params['member_id'] = app.globalData.member.id;
  374. ;
  375. let operation = 'applyUser/getAllApplyUserByMemberId';
  376. app.globalData.postRequest(params, operation, function (res) {
  377. //获取成功
  378. if (res.data.result_code == 1) {
  379. //业主身份的房子
  380. let own_room_list = that.own_room_list;
  381. let apply_user_list = res.data.list;
  382. for (let index in apply_user_list) {
  383. //格式化日期
  384. apply_user_list[index].createDate = util.formatTime(apply_user_list[index].createDate);
  385. if (own_room_list.length > 0) {
  386. //有业主身份的房子
  387. for (let i in own_room_list) {
  388. //该成员有被会员修改的权限--审核不通过
  389. if (apply_user_list[index].checkState == 2 && apply_user_list[index].roomId == own_room_list[i].id) {
  390. //显示 编辑
  391. apply_user_list[index]['isShow'] = true;
  392. }
  393. }
  394. } else {
  395. //没有业主身份的房子
  396. if (app.globalData.member.name == apply_user_list[index].name && apply_user_list[index].checkState == 2) {
  397. //显示 编辑
  398. apply_user_list[index]['isShow'] = true;
  399. }
  400. }
  401. } //过滤掉其他小区,保留选择小区
  402. let list = [];
  403. if (uni.getStorageSync('plotName')) {
  404. apply_user_list.map(item => {
  405. if (item.residentialName == uni.getStorageSync('plotName')) {
  406. list.push(item);
  407. }
  408. });
  409. } else {
  410. list = apply_user_list;
  411. }
  412. that.setData({
  413. apply_user_list: list
  414. });
  415. } else {
  416. console.info("获取失败:" + res.data.result_msg);
  417. }
  418. });
  419. },
  420. //根据会员id获取我的房屋列表
  421. geRoomByMemberId() {
  422. let that = this;
  423. let params = {};
  424. params['member_id'] = app.globalData.member.id;
  425. console.log(params)
  426. let operation = 'estate/getRoomByMemberId';
  427. app.globalData.postRequest(params, operation, function (res) {
  428. console.info("获取成功" + res.data.result_msg); //获取成功
  429. // if (res.data.result_code == 1) {
  430. // that.setData({
  431. // room_list: res.data.list
  432. // })
  433. // app.room_list = res.data.list;
  434. // that.ownRoomList(res.data.list);
  435. // }
  436. if (res.data.result_code == 1) {
  437. let list = [];
  438. if (uni.getStorageSync('plotName')) {
  439. if (that.room_ids.length > 0) {
  440. that.room_ids.splice(0, that.room_ids.length);
  441. }
  442. res.data.list.map(item => {
  443. if (item.residentialName == uni.getStorageSync('plotName')) {
  444. list.push(item);
  445. }
  446. if (item.residentialName == uni.getStorageSync('plotName') && item.relationshipType == 0) {
  447. that.room_ids.push(item.id);
  448. }
  449. });
  450. } else {
  451. list = res.data.list;
  452. }
  453. that.setData({
  454. room_list: list,
  455. room_ids: that.room_ids //获取我的房屋id集合(业主)
  456. });
  457. that.getAllApplyUserByRoomIds();
  458. app.globalData.room_list = list;
  459. that.ownRoomList(list);
  460. }
  461. });
  462. },
  463. //获取审核列表
  464. getAllApplyUserByRoomIds: function () {
  465. let that = this;
  466. let params = {};
  467. params['room_ids'] = that.room_ids;
  468. params['check_states'] = "0";
  469. let operation = 'applyUser/getAllApplyUserByRoomIds';
  470. app.globalData.postRequest(params, operation, function (res) {
  471. //获取成功
  472. if (res.data.result_code == 1) {
  473. that.setData({
  474. auditList: res.data.list
  475. });
  476. }
  477. });
  478. },
  479. //业主身份的房子
  480. ownRoomList: function (room_list) {
  481. let own_room_list = new Array();
  482. for (let index in room_list) {
  483. //是业主身份的房子
  484. if (room_list[index].relationshipType == 0) {
  485. //业主
  486. own_room_list.push(room_list[index]);
  487. }
  488. }
  489. this.setData({
  490. own_room_list: own_room_list
  491. }); //不常变数据保存到全局变量
  492. app.globalData.own_room_list = own_room_list; //家庭成员
  493. this.getAllUserByMemberId();
  494. },
  495. ownRoomLists: function (room_list) {
  496. let own_room_list = new Array();
  497. for (let index in room_list) {
  498. //是业主身份的房子
  499. if (room_list[index].relationshipType == 0) {
  500. //业主
  501. own_room_list.push(room_list[index]);
  502. }
  503. }
  504. this.setData({
  505. own_room_list: own_room_list
  506. }); //不常变数据保存到全局变量
  507. app.globalData.own_room_list = own_room_list;
  508. },
  509. reachBottom() {
  510. },
  511. // 轮播菜单
  512. swiperChange(e){
  513. this.swiperCurrent=e.detail.current
  514. this.current = e.detail.current
  515. // this.fetchData()
  516. },
  517. change(index){
  518. this.swiperCurrent=index
  519. this.current = index;
  520. // this.fetchData()
  521. },
  522. fetchData(){
  523. let index=this.current
  524. if(index==0){
  525. this.geRoomByMemberId();
  526. }else if(index==1){
  527. this.getAllApplyUserByMemberId();
  528. }else if(index==2){
  529. this.getAllApplyUserByRoomIds();
  530. }
  531. }
  532. }
  533. };
  534. </script>
  535. <style lang="scss" scoped>
  536. .wrap {
  537. display: flex;
  538. flex-direction: column;
  539. height: calc(100vh - var(--window-top));
  540. width: 100%;
  541. }
  542. .swiper-box {
  543. flex: 1;
  544. }
  545. .swiper-item {
  546. height: 100%;
  547. }
  548. /* pages/myHome/myHome.wxss */
  549. .container {
  550. height: 100%;
  551. display: flex;
  552. flex-direction: column;
  553. box-sizing: border-box;
  554. }
  555. .nav {
  556. display: flex;
  557. height: 80rpx;
  558. border-bottom: 1rpx solid #c7c7c9;
  559. background: #fff;
  560. }
  561. .nav view {
  562. flex: 1;
  563. text-align: center;
  564. height: 80rpx;
  565. line-height: 80rpx;
  566. color: #4a586a;
  567. }
  568. .nav view.active {
  569. color: $base-btn-color;
  570. border-bottom: 4rpx solid $base-btn-color;
  571. }
  572. .wrapCity {
  573. flex: 1;
  574. }
  575. .wrapCity swiper {
  576. height: 100%;
  577. }
  578. scroll-view {
  579. display: box;
  580. height: 100%;
  581. }
  582. .myFamily {
  583. width: 100%;
  584. padding-bottom: 100rpx;
  585. }
  586. .nav_list {
  587. padding: 20rpx;
  588. border-radius: 10rpx;
  589. background: #fff;
  590. margin-top: 4rpx;
  591. }
  592. .myFamily_items {
  593. display: flex;
  594. flex-direction: row;
  595. justify-content: space-between;
  596. padding: 30rpx;
  597. position: relative;
  598. }
  599. .myFamily_items .section_image {
  600. width: 120rpx;
  601. height: 120rpx;
  602. position: absolute;
  603. top: 50%;
  604. transform: translate(0, -50%);
  605. }
  606. .myFamily_items .identity {
  607. font-size: 24rpx;
  608. color: #d24a58;
  609. }
  610. .myFamily_items .section_image image {
  611. width: 100%;
  612. height: 100%;
  613. }
  614. .myFamily_items .section_cont {
  615. font-size: 24rpx;
  616. color: #666;
  617. margin-left: 140rpx;
  618. }
  619. .reason{
  620. text-overflow: -o-ellipsis-lastline;
  621. overflow: hidden;
  622. text-overflow: ellipsis;
  623. display: -webkit-box;
  624. -webkit-line-clamp: 2;
  625. -webkit-box-orient: vertical;
  626. }
  627. .myFamily_items .section_cont .section_cont_intro {
  628. white-space: normal;
  629. display: -webkit-box;
  630. -webkit-line-clamp: 2;
  631. -webkit-box-orient: vertical;
  632. }
  633. .myFamily_items .section_cont .section_cont_sub {
  634. font-size: 28rpx;
  635. line-height: 50rpx;
  636. color: #666;
  637. margin-bottom: 10rpx;
  638. }
  639. .myFamily_items .section_cont .section_cont_tel {
  640. font-size: 28rpx;
  641. color: #666;
  642. line-height: 50rpx;
  643. margin-bottom: 10rpx;
  644. }
  645. .myFamily_items .section_cont .section_cont_state {
  646. font-size: 28rpx;
  647. }
  648. .myFamily_items .section_edit {
  649. font-size: 24rpx;
  650. position: absolute;
  651. top: 50%;
  652. right: 20rpx;
  653. transform: translate(0, -50%);
  654. }
  655. .figure {
  656. color: #d24a58;
  657. border: 1px solid #d24a58;
  658. border-radius: 6rpx;
  659. font-size: 24rpx;
  660. padding: 0 6rpx;
  661. margin-left: 10rpx;
  662. }
  663. .figure.renter {
  664. color: $base-btn-color;
  665. border: 1px solid $base-btn-color;
  666. }
  667. .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; }
  668. .edit_btn{
  669. background: $base-btn-color;
  670. color: #fff;
  671. height: 50rpx;
  672. line-height: 50rpx;
  673. border-radius: 10rpx;
  674. padding:0 16rpx;
  675. margin:6rpx;
  676. text-align: center;
  677. }
  678. .delete_btn{
  679. background: #d24a58;
  680. color: #fff;
  681. }
  682. .col_red{
  683. color: #d24a58;
  684. }
  685. .form_group {
  686. display: flex;
  687. flex-direction: row;
  688. justify-content: space-between;
  689. padding: 0 20rpx;
  690. background: #fff;
  691. line-height: 100rpx;
  692. position: relative;
  693. font-size: 26rpx;
  694. border-bottom: 2rpx solid #ddd;
  695. }
  696. .my-item .iconfont.arrow {
  697. position: absolute;
  698. right: 0;
  699. top: 50%;
  700. transform: translate(0, -50%);
  701. font-size: 32rpx;
  702. vertical-align: top;
  703. }
  704. .my-item {
  705. width: 100%;
  706. position: relative;
  707. background: #fff;
  708. font-size: 28rpx;
  709. box-sizing: border-box;
  710. }
  711. .my-item .status {
  712. position: absolute;
  713. right: 35rpx;
  714. top: 50%;
  715. transform: translate(0, -50%);
  716. font-size: 28rpx;
  717. }
  718. .cu-btn.sm {
  719. padding: 0 24upx;
  720. font-size: 24upx;
  721. height: 54upx;
  722. }
  723. .data {
  724. background-color: #FFFFFF;
  725. width: 720rpx;
  726. margin:10rpx auto;
  727. border-radius: 6rpx;
  728. box-sizing: border-box;
  729. padding: 20rpx;
  730. font-size: 28rpx;
  731. .top {
  732. display: flex;
  733. justify-content: space-between;
  734. .left {
  735. display: flex;
  736. align-items: center;
  737. .title {
  738. margin: 0 10rpx;
  739. font-size: 32rpx;
  740. font-weight: bold;
  741. }
  742. }
  743. }
  744. .item {
  745. display: flex;
  746. flex-direction: row;
  747. justify-content: space-between;
  748. margin: 40rpx 0 20rpx 0;
  749. .left {
  750. display: flex;
  751. image {
  752. width: 130rpx;
  753. height: 130rpx;
  754. border-radius: 50%;
  755. }
  756. .content {
  757. padding-left: 30rpx;
  758. view{
  759. padding-bottom: 16rpx;
  760. }
  761. }
  762. }
  763. }
  764. .bottom {
  765. display: flex;
  766. margin-top: 20rpx;
  767. justify-content: flex-end;
  768. align-items: center;
  769. }
  770. }
  771. </style>