myfamily1.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847
  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-sticky >
  5. <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>
  6. </u-sticky>
  7. <swiper class="swiper-box" :current="swiperCurrent" @change="swiperChange" >
  8. <swiper-item class="swiper-item">
  9. <scroll-view v-if="!this.$isEmpty(user_list)" scroll-y style="height: 100%" @scrolltolower="reachBottom">
  10. <view class="cu-list menu" @click="locationShow=true">
  11. <view class="cu-item" >
  12. <view class="content">
  13. <text >我的房屋</text>
  14. </view>
  15. <view class="action">
  16. <text >{{selectLabel?selectLabel:room_list[0].name}}</text>
  17. <text class="cuIcon-right padding-left-10"></text>
  18. </view>
  19. </view>
  20. </view>
  21. <view class="myFamily" >
  22. <view class="data" v-for="(item, index) in user_list" :key="index" style="border-bottom: 1rpx solid #b6b6b6;">
  23. <view class="top">
  24. <view class="left">
  25. <u-icon name="home" :size="30" color="rgb(94,94,94)"></u-icon>
  26. <view class="title">{{item.residentialName}}-{{item.buildingName}}-{{item.unitName}}-{{item.roomName}}</view>
  27. </view>
  28. </view>
  29. <view class="item">
  30. <view class="left">
  31. <view data-aid="undefined">
  32. <image v-if="item.imageUri" mode="aspectFill" :src="item.imageUri">
  33. </image>
  34. <image v-if="item.imageUri==null" mode="aspectFill" src="http://139.9.103.171:1888/img/image/head.png">
  35. </image>
  36. </view>
  37. <view class="content" data-aid="undefined">
  38. <view >姓名:{{item.name}}</view>
  39. <view >手机:{{item.tel}}</view>
  40. <view >创建时间:{{item.createDate}}</view>
  41. <view v-if="item.type==0">身份:业主</view>
  42. <view v-if="item.type==1">身份:成员</view>
  43. <view v-if="item.type==2">身份:租户</view>
  44. <view v-if="item.type==3">身份:访客</view>
  45. </view>
  46. </view>
  47. </view>
  48. <view class="bottom" >
  49. <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="">
  50. 编辑
  51. </navigator>
  52. <!-- 小程序审核时,不要出现人脸功能 -->
  53. <navigator v-if="appletType==1" :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/common/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%" @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.buildingName}}-{{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/common/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%;">
  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 class="margin-right-10 " style="margin-top: 2rpx;">
  138. <u-icon name="home" :size="30" color="rgb(94,94,94)"></u-icon>
  139. </view>
  140. <view class="">
  141. <text>{{item.residentialName}}-{{item.buildingName}}-{{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/common/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. name: '',
  211. data() {
  212. return {
  213. appletType:0,
  214. locationShow:false,
  215. selectLabel:'',
  216. //房屋成员
  217. user_list: null,
  218. //申请的认证列表
  219. apply_user_list: null,
  220. //审核列表
  221. auditList: [],
  222. //房屋id集合(业主)
  223. room_ids: [],
  224. //当前用户业主身份的房子
  225. own_room_list: null,
  226. //当前显示住户信息下标
  227. room_list_index: 0,
  228. //复制一份user_list用于筛选房屋列表
  229. user_lists: [] ,
  230. room_list: "",
  231. list: [
  232. {
  233. name: '审核通过'
  234. },
  235. {
  236. name: '申请记录'
  237. },
  238. {
  239. name: '住户审核'
  240. }
  241. ],
  242. current: 0,
  243. swiperCurrent: 0,
  244. };
  245. },
  246. onLoad() {
  247. },
  248. onShow() {
  249. this.appletType=uni.getStorageSync("appletType")
  250. this.initData()
  251. },
  252. methods:{
  253. initData(){
  254. this.geRoomByMemberId();
  255. this.getAllApplyUserByMemberId();
  256. // this.getAllApplyUserByRoomIds();
  257. },
  258. add(){
  259. uni.navigateTo({
  260. url:"./add/add"
  261. })
  262. },
  263. roomChange: function (e) {
  264. // 选中的房屋 id
  265. let id=e[0].value
  266. //选中的房屋名字
  267. this.selectLabel=e[0].label
  268. //选中的房屋列表的下标
  269. let index= this.room_list.findIndex(value => value.id===id)
  270. // let index=e.detail.value
  271. let list = [];
  272. this.user_lists.map(item => {
  273. if (this.room_list[index].name == item.roomName) {
  274. list.push(item);
  275. }
  276. }); //拿到当前选择的房间,判断是否该显示添加家人按钮
  277. let room_list = [];
  278. room_list.push(this.room_list[index]);
  279. this.ownRoomLists(room_list);
  280. this.setData({
  281. room_list_index: index,
  282. user_list: list
  283. });
  284. console.log(index)
  285. },
  286. //删除我的家人
  287. deleteUserById: function (event) {
  288. let that = this;
  289. app.globalData.twoFailHint("确认删除该住户吗?", function () {
  290. //住户id
  291. let user_id = event.target.dataset.user_id;
  292. let params = {};
  293. params['member_id'] = app.globalData.member.id;
  294. params['user_id'] = user_id;
  295. let operation = 'user/deleteUserById';
  296. app.globalData.postRequest(params, operation, function (res) {
  297. console.info("获取成功" + res.data.result_msg); //删除成功
  298. if (res.data.result_code == 1) {
  299. app.globalData.autoFailHint(res.data.result_msg, function () {
  300. //重新获取列表
  301. that.getAllUserByMemberId();
  302. });
  303. } else {
  304. app.globalData.oneFailHint(res.data.result_msg);
  305. }
  306. });
  307. });
  308. },
  309. //根据会员id获取我的家人列表
  310. getAllUserByMemberId: function () {
  311. let that = this;
  312. let params = {
  313. "pageNum":"0",
  314. "pageSize":"15"
  315. };
  316. params['member_id'] = app.globalData.member.id;
  317. let operation = 'user/getAllUserByMemberId';
  318. app.globalData.postRequest(params, operation, function (res) {
  319. //获取成功
  320. if (res.data.result_code == 1) {
  321. let user_list = res.data.list; //业主身份的房子
  322. let own_room_list = that.own_room_list;
  323. for (let index in user_list) {
  324. user_list[index].createDate = util.formatTime(user_list[index].createDate);
  325. if (!that.$isEmpty(own_room_list)) {
  326. for (let i in own_room_list) {
  327. //该成员有被会员修改的权限
  328. if (user_list[index].roomId == own_room_list[i].id) {
  329. //显示 编辑
  330. user_list[index]['isShowEdit'] = true; //自己不能删除自己 且业主身份也不能删除
  331. if (user_list[index].type != 0) {
  332. user_list[index]['isShowDelete'] = true;
  333. }
  334. }
  335. }
  336. } else {
  337. if (app.globalData.member.name == user_list[index].name) {
  338. //显示 编辑
  339. user_list[index]['isShowEdit'] = true;
  340. }
  341. }
  342. } //过滤掉其他小区,保留选择小区
  343. let list = [];
  344. if (uni.getStorageSync('plotName')) {
  345. user_list.map(item => {
  346. if (item.residentialName == uni.getStorageSync('plotName')) {
  347. list.push(item);
  348. }
  349. });
  350. } else {
  351. list = user_list;
  352. list = user_lists;
  353. }
  354. that.setData({
  355. user_list: list,
  356. user_lists: list
  357. });
  358. } else {
  359. console.info("获取失败:" + res.data.result_msg);
  360. }
  361. });
  362. },
  363. //根据会员id获取我的申请列表
  364. getAllApplyUserByMemberId: function () {
  365. let that = this;
  366. let params = {
  367. pageSize:200,
  368. pageNum:0
  369. };
  370. params['member_id'] = app.globalData.member.id;
  371. ;
  372. let operation = 'applyUser/getAllApplyUserByMemberId';
  373. app.globalData.postRequest(params, operation, function (res) {
  374. //获取成功
  375. if (res.data.result_code == 1) {
  376. //业主身份的房子
  377. let own_room_list = that.own_room_list;
  378. let apply_user_list = res.data.list;
  379. for (let index in apply_user_list) {
  380. //格式化日期
  381. apply_user_list[index].createDate = util.formatTime(apply_user_list[index].createDate);
  382. if (!that.$isEmpty(own_room_list)) {
  383. //有业主身份的房子
  384. for (let i in own_room_list) {
  385. //该成员有被会员修改的权限--审核不通过
  386. if (apply_user_list[index].checkState == 2 && apply_user_list[index].roomId == own_room_list[i].id) {
  387. //显示 编辑
  388. apply_user_list[index]['isShow'] = true;
  389. }
  390. }
  391. } else {
  392. //没有业主身份的房子
  393. if (app.globalData.member.name == apply_user_list[index].name && apply_user_list[index].checkState == 2) {
  394. //显示 编辑
  395. apply_user_list[index]['isShow'] = true;
  396. }
  397. }
  398. } //过滤掉其他小区,保留选择小区
  399. let list = [];
  400. if (uni.getStorageSync('plotName')) {
  401. apply_user_list.map(item => {
  402. if (item.residentialName == uni.getStorageSync('plotName')) {
  403. list.push(item);
  404. }
  405. });
  406. } else {
  407. list = apply_user_list;
  408. }
  409. that.setData({
  410. apply_user_list: list
  411. });
  412. } else {
  413. console.info("获取失败:" + res.data.result_msg);
  414. }
  415. });
  416. },
  417. //根据会员id获取我的房屋列表
  418. geRoomByMemberId() {
  419. let that = this;
  420. let params = {};
  421. params['member_id'] = app.globalData.member.id;
  422. console.log(params)
  423. let operation = 'estate/getRoomByMemberId';
  424. app.globalData.postRequest(params, operation, function (res) {
  425. console.info("获取成功" + res.data.result_msg); //获取成功
  426. // if (res.data.result_code == 1) {
  427. // that.setData({
  428. // room_list: res.data.list
  429. // })
  430. // app.room_list = res.data.list;
  431. // that.ownRoomList(res.data.list);
  432. // }
  433. if (res.data.result_code == 1) {
  434. let list = [];
  435. if (uni.getStorageSync('plotName')) {
  436. if (!that.$isEmpty(that.room_ids)) {
  437. that.room_ids.splice(0, that.room_ids.length);
  438. }
  439. res.data.list.map(item => {
  440. if (item.residentialName == uni.getStorageSync('plotName')) {
  441. list.push(item);
  442. }
  443. if (item.residentialName == uni.getStorageSync('plotName') && item.relationshipType == 0) {
  444. that.room_ids.push(item.id);
  445. }
  446. });
  447. } else {
  448. list = res.data.list;
  449. }
  450. that.setData({
  451. room_list: list,
  452. room_ids: that.room_ids //获取我的房屋id集合(业主)
  453. });
  454. that.getAllApplyUserByRoomIds();
  455. app.globalData.room_list = list;
  456. that.ownRoomList(list);
  457. }
  458. });
  459. },
  460. //获取审核列表
  461. getAllApplyUserByRoomIds: function () {
  462. let that = this;
  463. let params = {
  464. pageSize:"200",
  465. pageNum:"0"
  466. };
  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">
  536. .wrap {
  537. display: flex;
  538. flex-direction: column;
  539. height: calc(100vh - var(--window-top));
  540. width: 100%;
  541. }
  542. .container {
  543. width: 100%;
  544. height: calc(100vh);
  545. background-color: #F6F6F6;
  546. padding: 90rpx 0rpx 0rpx;
  547. .tabs {
  548. height: 90rpx;
  549. position: fixed;
  550. top: 0rpx;
  551. left: 0;
  552. right: 0;
  553. width: 100%;
  554. z-index: 3;
  555. }
  556. }
  557. .swiper-box {
  558. flex: 1
  559. }
  560. .swiper-item {
  561. height: 100%;
  562. }
  563. .container {
  564. height: 100%;
  565. display: flex;
  566. flex-direction: column;
  567. box-sizing: border-box;
  568. }
  569. .nav {
  570. display: flex;
  571. height: 80rpx;
  572. border-bottom: 1rpx solid #c7c7c9;
  573. background: #fff;
  574. }
  575. .nav view {
  576. flex: 1;
  577. text-align: center;
  578. height: 80rpx;
  579. line-height: 80rpx;
  580. color: #4a586a;
  581. }
  582. .nav view.active {
  583. color: $base-btn-color;
  584. border-bottom: 4rpx solid $base-btn-color;
  585. }
  586. .wrapCity {
  587. flex: 1;
  588. }
  589. .wrapCity swiper {
  590. height: 100%;
  591. }
  592. scroll-view {
  593. display: box;
  594. height: 100%;
  595. }
  596. .myFamily {
  597. width: 100%;
  598. padding-bottom: 100rpx;
  599. }
  600. .nav_list {
  601. padding: 20rpx;
  602. border-radius: 10rpx;
  603. background: #fff;
  604. margin-top: 4rpx;
  605. }
  606. .myFamily_items {
  607. display: flex;
  608. flex-direction: row;
  609. justify-content: space-between;
  610. padding: 30rpx;
  611. position: relative;
  612. }
  613. .myFamily_items .section_image {
  614. width: 120rpx;
  615. height: 120rpx;
  616. position: absolute;
  617. top: 50%;
  618. transform: translate(0, -50%);
  619. }
  620. .myFamily_items .identity {
  621. font-size: 24rpx;
  622. color: #d24a58;
  623. }
  624. .myFamily_items .section_image image {
  625. width: 100%;
  626. height: 100%;
  627. }
  628. .myFamily_items .section_cont {
  629. font-size: 24rpx;
  630. color: #666;
  631. margin-left: 140rpx;
  632. }
  633. .reason{
  634. text-overflow: -o-ellipsis-lastline;
  635. overflow: hidden;
  636. text-overflow: ellipsis;
  637. display: -webkit-box;
  638. -webkit-line-clamp: 2;
  639. -webkit-box-orient: vertical;
  640. }
  641. .myFamily_items .section_cont .section_cont_intro {
  642. white-space: normal;
  643. display: -webkit-box;
  644. -webkit-line-clamp: 2;
  645. -webkit-box-orient: vertical;
  646. }
  647. .myFamily_items .section_cont .section_cont_sub {
  648. font-size: 28rpx;
  649. line-height: 50rpx;
  650. color: #666;
  651. margin-bottom: 10rpx;
  652. }
  653. .myFamily_items .section_cont .section_cont_tel {
  654. font-size: 28rpx;
  655. color: #666;
  656. line-height: 50rpx;
  657. margin-bottom: 10rpx;
  658. }
  659. .myFamily_items .section_cont .section_cont_state {
  660. font-size: 28rpx;
  661. }
  662. .myFamily_items .section_edit {
  663. font-size: 24rpx;
  664. position: absolute;
  665. top: 50%;
  666. right: 20rpx;
  667. transform: translate(0, -50%);
  668. }
  669. .figure {
  670. color: #d24a58;
  671. border: 1px solid #d24a58;
  672. border-radius: 6rpx;
  673. font-size: 24rpx;
  674. padding: 0 6rpx;
  675. margin-left: 10rpx;
  676. }
  677. .figure.renter {
  678. color: $base-btn-color;
  679. border: 1px solid $base-btn-color;
  680. }
  681. .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;}
  682. .edit_btn{
  683. background: $base-btn-color;
  684. color: #fff;
  685. height: 50rpx;
  686. line-height: 50rpx;
  687. border-radius: 10rpx;
  688. padding:0 16rpx;
  689. margin:6rpx;
  690. text-align: center;
  691. }
  692. .delete_btn{
  693. background: #d24a58;
  694. color: #fff;
  695. }
  696. .col_red{
  697. color: #d24a58;
  698. }
  699. .form_group {
  700. display: flex;
  701. flex-direction: row;
  702. justify-content: space-between;
  703. padding: 0 20rpx;
  704. background: #fff;
  705. line-height: 100rpx;
  706. position: relative;
  707. font-size: 26rpx;
  708. border-bottom: 2rpx solid #ddd;
  709. }
  710. .my-item .iconfont.arrow {
  711. position: absolute;
  712. right: 0;
  713. top: 50%;
  714. transform: translate(0, -50%);
  715. font-size: 32rpx;
  716. vertical-align: top;
  717. }
  718. .my-item {
  719. width: 100%;
  720. position: relative;
  721. background: #fff;
  722. font-size: 28rpx;
  723. box-sizing: border-box;
  724. }
  725. .my-item .status {
  726. position: absolute;
  727. right: 35rpx;
  728. top: 50%;
  729. transform: translate(0, -50%);
  730. font-size: 28rpx;
  731. }
  732. .cu-btn.sm {
  733. padding: 0 24upx;
  734. font-size: 24upx;
  735. height: 54upx;
  736. }
  737. .data {
  738. background-color: #FFFFFF;
  739. width: 720rpx;
  740. margin:10rpx auto;
  741. border-radius: 6rpx;
  742. box-sizing: border-box;
  743. padding: 20rpx;
  744. font-size: 28rpx;
  745. .top {
  746. display: flex;
  747. justify-content: space-between;
  748. .left {
  749. display: flex;
  750. align-items: center;
  751. .title {
  752. margin: 0 10rpx;
  753. font-size: 32rpx;
  754. }
  755. }
  756. }
  757. .item {
  758. display: flex;
  759. flex-direction: row;
  760. justify-content: space-between;
  761. margin: 40rpx 0 20rpx 0;
  762. .left {
  763. display: flex;
  764. image {
  765. width: 130rpx;
  766. height: 130rpx;
  767. border-radius: 50%;
  768. }
  769. .content {
  770. padding-left: 30rpx;
  771. view{
  772. padding-bottom: 16rpx;
  773. }
  774. }
  775. }
  776. }
  777. .bottom {
  778. display: flex;
  779. margin-top: 20rpx;
  780. justify-content: flex-end;
  781. align-items: center;
  782. }
  783. }
  784. </style>