list.vue 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602
  1. <template>
  2. <view>
  3. <!-- 第一种样式 人员管理-->
  4. <block v-if="datainfo.length>0">
  5. <!-- 人员管理 -->
  6. <block v-if="type=='people'">
  7. <view class="carlist peolist" v-for="(ite,idx) in datainfo" :key="idx">
  8. <view class="ctop flexc">
  9. <image :src="house" class="imgs" v-if="ite.houseStatus==1"></image>
  10. <image :src="housea" class="imgs" v-if="ite.houseStatus==4"></image>
  11. <image :src="houseb" class="imgs" v-if="ite.houseStatus==2"></image>
  12. <image :src="housec" class="imgs" v-if="ite.houseStatus==3"></image>
  13. <!-- <image :src="hicoa" class="imgs" v-if="ite.type==1"></image>
  14. <image :src="hicob" class="imgs" v-if="ite.type==2"></image> -->
  15. <view class="tit">{{ite.detailedAddress}}</view>
  16. <view class="flex1"></view>
  17. <!-- <view class="txt ca" v-if="ite.type==1">业主</view>
  18. <view class="txt cb" v-if="ite.type==2">租户</view> -->
  19. <view class="txt ca" v-if="ite.houseStatus==1">自住</view>
  20. <view class="txt cb" v-if="ite.houseStatus==4">出租</view>
  21. <view class="txt cc" v-if="ite.houseStatus==2">空闲</view>
  22. <view class="txt co6" v-if="ite.houseStatus==3">代售</view>
  23. </view>
  24. <view class="plists" v-if="ite.residentInfoList&&ite.residentInfoList.length">
  25. <block v-for="(aite,aidx) in ite.residentInfoList">
  26. <view class="flexc pr mb12" :key="`peo${aidx}`" v-if="aidx==0" @click="getDetail(aite.residentId)"
  27. :data-idx="idx" :data-aidx="aidx" data-type="peo"
  28. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+aite.right+'px'"
  29. >
  30. <view class="plist flexc">
  31. <image :src="man" class="head" v-if="aite.residentGender==1"></image>
  32. <image :src="woman" class="head" v-else></image>
  33. <view class="flex1">
  34. <view class="ptit">{{aite.residentName}}
  35. <view class="btn btnc ml10" v-if="aite.isHouseholder=='Y'">户主</view>
  36. </view>
  37. <view class="ptxt">身份证号 | {{aite.residentIdCard}}</view>
  38. <view class="flexc">
  39. <view class="ptxt">性别 | {{aite.residentGender==1?'男':'女'}}</view>
  40. <view class="ptxt">年龄 | {{getAgeFromID(aite.residentIdCard)}}岁</view>
  41. </view>
  42. <view class="flexc" v-if="aite.residentAppearance">
  43. <view class="ptxt">人员面貌 | {{kaType(aite.residentAppearance,rymmList)}}</view>
  44. </view>
  45. </view>
  46. </view>
  47. <view class="spdel" v-if="aite.right>0&&checkPermi(['wuYe:residentInfo:remove'])" @click.stop="getDelFn(aite.residentId)">删除</view>
  48. </view>
  49. <view class="flexc pr mb12" :key="`peo${aidx}`" v-if="aidx>0&&ite.zhanflag" @click="getDetail(aite.residentId)"
  50. :data-idx="idx" :data-aidx="aidx" data-type="peo"
  51. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+aite.right+'px'"
  52. >
  53. <view class="plist flexc">
  54. <image :src="man" class="head" v-if="aite.residentGender==1"></image>
  55. <image :src="woman" class="head" v-else></image>
  56. <view class="flex1">
  57. <view class="ptit">{{aite.residentName}}
  58. <view class="btn btnc ml10" v-if="aite.isHouseholder=='Y'">户主</view>
  59. </view>
  60. <view class="ptxt">身份证号 | {{aite.residentIdCard}}</view>
  61. <view class="flexc">
  62. <view class="ptxt">性别 | {{aite.residentGender==1?'男':'女'}}</view>
  63. <view class="ptxt">年龄 | {{getAgeFromID(aite.residentIdCard)}}岁</view>
  64. </view>
  65. <view class="flexc" v-if="aite.residentAppearance">
  66. <view class="ptxt">人员面貌 | {{kaType(aite.residentAppearance,rymmList)}}</view>
  67. </view>
  68. </view>
  69. </view>
  70. <view class="spdel" v-if="aite.right>0&&checkPermi(['wuYe:residentInfo:remove'])" @click.stop="getDelFn(aite.residentId)">删除</view>
  71. </view>
  72. </block>
  73. <image :src="upimg" v-if="ite.residentInfoList.length>1" :class="ite.zhanflag?'act':''" class="upimg" @click="getZhan(idx)"></image>
  74. </view>
  75. <!-- 无数据 -->
  76. <view class="nodata" v-else>
  77. <image :src="noiconpimg" style="width: 200rpx;height: 200rpx;"></image>
  78. <view style="font-size: 26rpx;margin-bottom: 20rpx;">暂无人员</view>
  79. </view>
  80. </view>
  81. </block>
  82. <!-- 房屋下的人员 -->
  83. <block v-if="type=='fwpeople'">
  84. <view class="carlist peolist mb12 pr" v-for="(aite,idx) in datainfo" :key="idx" @click="getDetail(aite.residentId)"
  85. :data-idx="idx"
  86. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+aite.right+'px'"
  87. >
  88. <view class="plists pb10 delleft" >
  89. <view class="plist flexc">
  90. <image :src="man" class="head" v-if="aite.residentGender==1"></image>
  91. <image :src="woman" class="head" v-else></image>
  92. <view class="flex1">
  93. <view class="ptit">{{aite.residentName}}
  94. <view class="btn btnc ml10" v-if="aite.isHouseholder=='Y'">户主</view>
  95. </view>
  96. <view class="ptxt">身份证号 | {{aite.residentIdCard}}</view>
  97. <view class="flexc">
  98. <view class="ptxt">性别 | {{aite.residentGender==1?'男':'女'}}</view>
  99. <view class="ptxt">年龄 | {{getAgeFromID(aite.residentIdCard)}}岁</view>
  100. </view>
  101. <view class="flexc" v-if="aite.residentAppearance">
  102. <view class="ptxt">人员面貌 | {{kaType(aite.residentAppearance,rymmList)}}</view>
  103. </view>
  104. </view>
  105. </view>
  106. </view>
  107. <view class="spdel" v-if="aite.right>0&&checkPermi(['wuYe:residentInfo:remove'])" @click.stop="getDelFn(aite.residentId)">删除</view>
  108. </view>
  109. </block>
  110. <!-- 维修人员管理 -->
  111. <view v-if="type=='staff'||type=='rzstaff'" class="flecw">
  112. <view class="stafflist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail(ite.staffId)">
  113. <view class="statop">
  114. <image class="head" :src="baseUrl+ite.avatarPhoto" v-if="ite.avatarPhoto"></image>
  115. <block v-else>
  116. <image class="head" :src="man" v-if="ite.gender==1"></image>
  117. <image class="head" :src="woman" v-else></image>
  118. </block>
  119. <view class="flex1 over">
  120. <view class="statit over">{{ite.staffName}}</view>
  121. <view class="statxt flexc" :class="{'co06':ite.status==1,'coff':ite.status==2}"><text class="cir" :class="{'bga':ite.status==1,'bgb':ite.status==2}"></text>{{kaType(ite.status,ygztList)}}</view>
  122. <!-- <view class="statxt flexc cof6"><text class="cir bgb"></text>指派中</view> -->
  123. </view>
  124. <image :src="pdel" class="stadel" v-if="type=='rzstaff'&&ite.examine!=2&&checkPermi(['wuYe:staffManage:remove'])" @click.stop="getDelFn(ite)"></image>
  125. <image :src="pdel" class="stadel" v-if="type=='staff'&&checkPermi(['wuYe:staffManage:deleteStaffManage'])" @click.stop="getDelFn(ite)"></image>
  126. </view>
  127. <view class="stalist">
  128. <view class="imgs"><image :src="gzlx" class="gzlximg"></image></view>{{kaType(ite.staffCategory,yglbList)}}
  129. <view class="flex1"></view>
  130. <view class="flexcc eyes" @click.stop="getHideFn(idx)">
  131. <image :src="neye" class="neye" v-if="ite.hideflag"></image>
  132. <image :src="eye" class="eye" v-else></image>
  133. </view>
  134. </view>
  135. <view class="stalist">
  136. <view class="imgs"><image :src="mphone" class="mphone"></image></view>{{ite.hideflag?ite.phoneNumbera:ite.phoneNumber}}
  137. </view>
  138. <view class="stalist">
  139. <view class="imgs"><image :src="sfz" class="sfz"></image></view>{{ite.hideflag?ite.idCarda:ite.idCard}}
  140. </view>
  141. <view style="height: 20rpx;"></view>
  142. <view class="pshbox flexc" v-if="ite.examine==1&&checkPermi(['wuYe:staffManage:examine'])">
  143. <view class="btna" @click.stop="getShFn(ite,'3')">拒绝</view>
  144. <view class="btnb" @click.stop="getShFn(ite,'2')">同意</view>
  145. </view>
  146. </view>
  147. </view>
  148. <!-- 来访管理 -->
  149. <block v-if="type=='comepeo'">
  150. <view class="carlist peolist pr" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail(ite)"
  151. :data-idx="idx"
  152. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+ite.right+'px'"
  153. >
  154. <view class="pbr">
  155. <view class="ctop flexc">
  156. <image :src="hicoa" class="imgs"></image>
  157. <!-- <image :src="hicob" class="imgs" v-if="ite.type==2"></image> -->
  158. <view class="tit">{{ite.houseAddress}}</view>
  159. <!-- <view class="btn" :class="{'btnbga':ite.status==1,'btnbgc':ite.status==2}">{{kaType(ite.status,visitorType)}}</view> -->
  160. <!-- <view class="btn btnbgc">临时</view> -->
  161. <view class="flex1"></view>
  162. <view class="txt cc" v-if="ite.isCar=='Y'">驾车</view>
  163. </view>
  164. <view class="clists">
  165. <!-- <view class="clist"><view class="tit">预约时间</view>{{ite.reserveTime}}</view> -->
  166. <view class="clist"><view class="tit">来访时间</view>{{ite.visitorTime}}</view>
  167. <view class="w50 flexc">
  168. <view class="clist"><view class="tit">访客姓名</view>{{ite.name}}</view>
  169. <view class="clist"><view class="tit">来访人数</view>{{ite.num}}人</view>
  170. </view>
  171. <view class="w50 flexc">
  172. <view class="clist"><view class="tit">来访事由</view>{{ite.reason}}</view>
  173. <view class="clist"><view class="tit">车牌号码</view>{{ite.plateNumber}}</view>
  174. </view>
  175. <view class="clist"><view class="tit">手机号码</view>{{ite.mobileNumber}}</view>
  176. </view>
  177. </view>
  178. <view class="spdel" v-if="ite.right>0" @click.stop="getDelFn(ite)">删除</view>
  179. </view>
  180. </block>
  181. <view class="shax">{{wtdt}}</view>
  182. </block>
  183. <!-- 无数据 -->
  184. <view class="nodata" v-else>
  185. <image :src="noiconpimg"></image>
  186. <view>
  187. 暂无数据
  188. </view>
  189. </view>
  190. </view>
  191. </template>
  192. <script>
  193. import {selectDictValue} from "@/utils/common.js"
  194. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  195. import config from '@/config'
  196. export default{
  197. props:{
  198. datainfo: {
  199. type: Array,
  200. default () {
  201. return []
  202. }
  203. },
  204. wtdt:{
  205. type:String,
  206. default () {
  207. return ''
  208. }
  209. },
  210. type:{
  211. type:String,
  212. default () {
  213. return 0
  214. }
  215. },
  216. visitorType:{
  217. type:Array,
  218. default () {
  219. return []
  220. }
  221. },
  222. yglbList:{//员工类别
  223. type:Array,
  224. default () {
  225. return []
  226. }
  227. },
  228. ygztList:{//员工状态
  229. type:Array,
  230. default () {
  231. return []
  232. }
  233. },
  234. tabval:{
  235. type:[Number,String],
  236. default () {
  237. return ''
  238. }
  239. },
  240. rymmList:{//人员面貌
  241. type:Array,
  242. default () {
  243. return []
  244. }
  245. }
  246. },
  247. data(){
  248. return{
  249. house:require("@/work/static/manage/house.png"),
  250. housea:require("@/work/static/manage/housea.png"),
  251. houseb:require("@/work/static/manage/houseb.png"),
  252. housec:require("@/work/static/manage/housec.png"),
  253. noiconpimg:require("@/static/nodata.png"),
  254. car:require("@/car/static/car/car.png"),
  255. cara:require("@/car/static/car/cara.png"),
  256. carb:require("@/car/static/car/carb.png"),
  257. hicoa:require("@/people/static/people/hicoa.png"),
  258. hicob:require("@/people/static/people/hicob.png"),
  259. man:require("@/people/static/people/man.png"),
  260. woman:require("@/people/static/people/woman.png"),
  261. rimg:require("@/people/static/people/rimg.png"),
  262. pdel:require("@/people/static/people/pdel.png"),
  263. gzlx:require("@/people/static/people/gzlx.png"),
  264. mphone:require("@/people/static/people/mphone.png"),
  265. sfz:require("@/people/static/people/sfz.png"),
  266. eye:require("@/people/static/people/eye.png"),
  267. neye:require("@/people/static/people/neye.png"),
  268. time:require("@/work/static/manage/time.png"),
  269. house:require("@/work/static/manage/house.png"),
  270. home:require("@/service/static/service/home.png"),
  271. upimg:require("@/static/images/home/up.png"),
  272. star:require('@/manage/static/community/star.png'),
  273. stara:require('@/manage/static/community/stara.png'),
  274. baseUrl:config.baseUrl,
  275. delBtnWidth:66,//左滑默认宽度
  276. }
  277. },
  278. mounted() {
  279. },
  280. methods:{
  281. checkPermi, checkRole,
  282. kaType(data, list) {
  283. return selectDictValue(list, data);
  284. },
  285. getAgeFromID(idNumber) {
  286. if(idNumber){
  287. const birthDateStr = idNumber.substring(6, 14);
  288. const birthYear = parseInt(birthDateStr.substring(0, 4));
  289. const birthMonth = parseInt(birthDateStr.substring(4, 6));
  290. const birthDay = parseInt(birthDateStr.substring(6, 8));
  291. const today = new Date();
  292. const currentYear = today.getFullYear();
  293. const currentMonth = today.getMonth() + 1;
  294. const currentDay = today.getDate();
  295. let age = currentYear - birthYear;
  296. if (currentMonth < birthMonth || (currentMonth === birthMonth && currentDay < birthDay)) {
  297. age--;
  298. }
  299. return age;
  300. }
  301. },
  302. getShFn(ite,e){
  303. var obj={
  304. ite:ite,
  305. sh:e
  306. }
  307. this.$emit('getShFn',obj)
  308. },
  309. getDetail(e){
  310. this.$emit('getDetail',e)
  311. },
  312. getAddFn(e){
  313. this.$emit('getAddFn',e)
  314. },
  315. getReadlist(e){
  316. this.$emit('getReadlist',e)
  317. },
  318. getDelFn(e){
  319. var that=this;
  320. uni.showModal({
  321. title: '确认删除',
  322. content: "是否确认删除",
  323. cancelText: '取消',
  324. confirmText: '确认',
  325. success: function(res) {
  326. if (res.confirm) {
  327. that.$emit('getDelFn',e)
  328. } else if (res.cancel) {
  329. }
  330. }
  331. });
  332. },
  333. getZhan(idx){
  334. // var obj=JSON.parse(JSON.stringify(this.datainfo))[idx]
  335. // obj.zhanflag=!obj.zhanflag;
  336. // this.datainfo.splice(idx,1,obj);
  337. this.datainfo[idx].zhanflag=!this.datainfo[idx].zhanflag
  338. },
  339. getHideFn(idx){
  340. this.datainfo[idx].hideflag=!this.datainfo[idx].hideflag
  341. },
  342. getPreview(idx,arr) {
  343. var newArr=[];
  344. arr.forEach(ite=>{
  345. var ds=this.baseUrl+ite
  346. newArr.push(ds)
  347. })
  348. uni.previewImage({
  349. urls: newArr,
  350. current:idx,
  351. success: function(data) {},
  352. fail: function(err) {}
  353. });
  354. },
  355. //开始触摸滑动
  356. drawStart(e) {
  357. // console.log("开始触发");
  358. var touch = e.touches[0];
  359. this.startX = touch.clientX;
  360. },
  361. //触摸滑动
  362. drawMove(e) {
  363. var idx=e.currentTarget.dataset.idx
  364. var aidx=e.currentTarget.dataset.aidx
  365. var type=e.currentTarget.dataset.type;
  366. for (var index in this.datainfo) {
  367. if(type&&type=='peo'){
  368. for(var i in this.datainfo[idx].residentInfoList){
  369. this.$set(this.datainfo[idx].residentInfoList[i],'right',0);
  370. }
  371. }else{
  372. this.$set(this.datainfo[index],'right',0);
  373. }
  374. }
  375. var touch = e.touches[0];
  376. var item = this.datainfo[idx];
  377. var disX = this.startX - touch.clientX;
  378. if (disX >= 20) {
  379. if (disX > this.delBtnWidth) {
  380. disX = this.delBtnWidth;
  381. }
  382. if(type&&type=='peo'){
  383. this.$set(this.datainfo[idx].residentInfoList[aidx],'right',disX);
  384. }else{
  385. this.$set(this.datainfo[idx],'right',disX);
  386. }
  387. // this.csListArrl[idx].right=disX
  388. } else {
  389. // this.csListArrl[idx].right=0
  390. this.$set(this.datainfo[idx],'right',0);
  391. }
  392. },
  393. //触摸滑动结束
  394. drawEnd(e) {
  395. // console.log("滑动结束");
  396. var idx=e.currentTarget.dataset.idx
  397. var item = this.datainfo[idx];
  398. if (item.right >= this.delBtnWidth / 2) {
  399. // this.datainfo[idx].right=this.delBtnWidth
  400. // this.$set(this.datainfo[idx],'right',this.delBtnWidth);
  401. } else {
  402. this.datainfo[idx].right=0
  403. }
  404. },
  405. }
  406. }
  407. </script>
  408. <style lang="scss" scoped>
  409. .flex{display: flex;}
  410. .flexc{display: flex;align-items: center;}
  411. .mb10{margin-bottom: 20rpx;}
  412. .carlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;
  413. .ctop{border-bottom: 2rpx solid #E5E5E5;padding:26rpx 24rpx;
  414. .imgs{width: 40rpx;height: 42rpx;margin-right: 30rpx;}
  415. .tit{font-size: 32rpx;color: #272727;font-weight: bold;margin-right: 14rpx;}
  416. .txt{font-weight: 500;font-size: 26rpx;
  417. &.ca{color: #3565ED;}
  418. &.cb{color: #FE5A0E;}
  419. &.cc{color: #28C529;}
  420. }
  421. .txta{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  422. .num{font-size: 24rpx;color: #AAAAAA;}
  423. }
  424. .btn{height: 34rpx;border-radius: 18rpx;display: flex;align-items: center;justify-content: center;padding: 0 10rpx;font-size: 22rpx;margin-right: 24rpx;
  425. &.btna{border: 2rpx solid #06C770;color: #06C770;}
  426. &.btnb{border: 2rpx solid #3565ED;color: #3565ED;}
  427. &.btnc{border: 2rpx solid #FE5A0E;color: #FE5A0E;}
  428. &.btnbga{border: 1px solid #0156FE;color: #3565ED;background: #DFEAFF;height: 36rpx;}
  429. &.btnbgb{border: 1px solid #C1C1C1;color: #666666;background: #F1F1F1;height: 36rpx;}
  430. &.btnbgc{border: 1px solid #FE5A0E;color:#FE5A0E;background:#FFEEE6;height: 36rpx;}
  431. }
  432. .clists{padding: 24rpx 24rpx 8rpx;
  433. .clist{font-weight: 500;margin-bottom: 16rpx;
  434. font-size: 26rpx;color: #272727;display: flex;line-height: 34rpx;
  435. .tit{font-size: 26rpx;color: #AAAAAA;flex: 0 0 auto;margin-right: 16rpx;min-width: 108rpx;text-align-last: justify;}
  436. .imgas{display: flex;align-items: center;flex-wrap: wrap;
  437. image{width: 142rpx;height: 142rpx;margin-right: 30rpx;margin-top: 8rpx;}
  438. }
  439. }
  440. .w50{
  441. .clist{width: 50%;}
  442. }
  443. }
  444. }
  445. // 人员
  446. .peolist{
  447. .ctop{padding: 24rpx 24rpx 22rpx;}
  448. .imgs{margin-right: 16rpx !important;}
  449. .tit{font-size: 28rpx !important;}
  450. .plists{padding: 30rpx 24rpx 6rpx;
  451. .plist{background: linear-gradient(-90deg, #F2F5FF 0%, #FBFDFF 100%);border-radius: 20rpx;border: 2rpx solid #E6E6E6;padding: 18rpx 26rpx 4rpx;width: 100%;z-index: 1;
  452. .head{width: 96rpx;height: 98rpx;margin-right: 32rpx;flex: 0 0 auto;}
  453. .ptit{font-weight: bold;font-size: 30rpx;color: #272727;display: flex;align-items: center;margin-bottom: 14rpx;}
  454. .ptxt{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;margin-bottom: 14rpx;min-width: 176rpx;}
  455. }
  456. }
  457. .upimg{width: 26rpx;height: 22rpx;display: block;transform: rotate(180deg);transition: all 0.3s;margin: 0 auto 18rpx;
  458. &.act{transform: rotate(0deg);}
  459. }
  460. }
  461. // 物业费
  462. .mlistl{width: 40%;display: flex;flex-direction: column;align-items: center;flex: 0 0 auto;
  463. .mltit{font-weight: 500;font-size: 26rpx;color: #666666;margin-bottom: 18rpx;}
  464. .mltxt{font-weight: bold;font-size: 32rpx;color: #0156FE;}
  465. }
  466. .houselist{
  467. .clists{padding-bottom: 2rpx !important;}
  468. .clist{margin-bottom: 22rpx !important;}
  469. }
  470. // 巡更地点
  471. .patlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;padding: 0 24rpx 30rpx;
  472. .pattop{padding:22rpx 30rpx;margin-bottom: 2rpx;
  473. .imgs{width: 28rpx;height: 28rpx;margin-right: 12rpx;}
  474. .tit{font-size: 30rpx;color: #272727;font-weight: bold;margin-right: 14rpx;}
  475. .txt{font-weight: 500;font-size:24rpx;
  476. &.ca{color: #3565ED;}
  477. &.cb{color: #FE5A0E;}
  478. &.cc{color: #28C529;}
  479. &.cd{color: #FF6969;}
  480. }
  481. }
  482. .patlistr{background: #EFF4FF;border-radius: 20rpx;padding: 20rpx 32rpx;
  483. .clist{font-weight: 500;font-size: 26rpx;color: #272727;display: flex;line-height: 50rpx;
  484. .tit{font-size: 26rpx;flex: 0 0 auto;min-width: 108rpx;text-align-last: justify;font-weight: bold;}
  485. }
  486. }
  487. .patbtns{display: flex;justify-content: flex-end;align-items: center;flex-wrap: wrap;
  488. view{min-width: 156rpx;height: 52rpx;font-weight: 500;font-size: 26rpx;background: #FFFFFF;border-radius: 20rpx;box-sizing: border-box;display: flex;align-items: center;justify-content: center;padding: 0 10rpx;margin-left: 24rpx;margin-top: 24rpx;
  489. &.btna{border: 2rpx solid #0256FD;color: #0256FD;}
  490. &.btnb{background: #0256FD;color: #ffffff;}
  491. }
  492. }
  493. }
  494. // 报修
  495. .walists{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx; position: relative;
  496. .watop{
  497. padding: 0 36rpx 8rpx 38rpx;
  498. .watit{padding: 24rpx 0;margin-bottom: 4rpx;display: flex;
  499. .tit{font-weight: bold;font-size: 28rpx;color: #272727;flex: 1;
  500. .cir{width: 14rpx;margin-left: 8rpx;margin-bottom: 10rpx;height: 14rpx;display: inline-block;background: #FF6969;border-radius: 8rpx;}
  501. }
  502. .txt{font-weight: bold;font-size: 26rpx;flex: 0 0 auto;
  503. }
  504. }
  505. }
  506. .walist{display: flex;font-weight: 500;font-size: 24rpx;color: #666666;margin-bottom: 16rpx;
  507. .tit{min-width: 100rpx;text-align-last: justify}
  508. }
  509. .wabtn{display: flex;align-items: center;justify-content: space-between;border-top: 2rpx solid #E5E5E5;height: 80rpx;padding: 0 38rpx;
  510. view{font-weight: 500;font-size: 24rpx;color: #666666;}
  511. image{width: 16rpx;height: 28rpx;}
  512. }
  513. }
  514. // 维修人员
  515. .stafflist{width: 344rpx;min-height: 256rpx;background: #FFFFFF;border-radius: 20rpx;margin:0 12rpx 24rpx 12rpx;box-sizing: border-box;
  516. // &:nth-of-type(2n){margin-right: 0;}
  517. .statop{border-bottom: 2rpx solid #E5E5E5;display: flex;padding: 24rpx 24rpx 22rpx;
  518. .head{width: 80rpx;height: 82rpx;margin-right: 24rpx;flex: 0 0 auto;}
  519. .stadel{width: 30rpx;height: 30rpx;flex: 0 0 auto;margin-left: 12rpx;}
  520. .statit{font-weight: bold;font-size: 30rpx;color: #272727;margin-bottom: 4rpx;}
  521. .statxt{font-weight: 500;font-size: 26rpx;
  522. .cir{width: 10rpx;height: 10rpx;border-radius: 50%;margin-right: 14rpx;display: inline-block;
  523. &.bga{background: #06C770;}
  524. &.bgb{background: #FF6969;}
  525. }
  526. }
  527. }
  528. .stalist{font-weight: 500;font-size: 26rpx;color: #272727;display: flex;align-items: center;padding: 20rpx 24rpx 0;
  529. .imgs{width: 24rpx;height: 30rpx;margin-right: 22rpx;flex: 0 0 auto;display: flex;align-items: center;justify-content: center;
  530. .gzlximg{width: 24rpx;height: 28rpx;}
  531. .mphone{width: 18rpx;height: 30rpx;}
  532. .sfz{width: 20rpx;height: 18rpx;}
  533. }
  534. .eyes{width: 34rpx;height: 34rpx;
  535. .eye{width: 22rpx;height: 15rpx;}
  536. .neye{width: 24rpx;height: 24rpx;}
  537. }
  538. }
  539. .pshbox{border-top: 2rpx solid #E5E5E5;
  540. view{width: 50%;text-align: center;height: 72rpx;line-height: 72rpx;text-align: center;
  541. &.btna{color: #FF6969;border-right: 2rpx solid #E5E5E5;}
  542. &.btnb{color: #3565ED;}
  543. }
  544. }
  545. }
  546. .watopcom{background-color: #ffffff;border-radius: 20rpx;position: relative;z-index: 1;padding-bottom: 30rpx !important;
  547. .watopcoma{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;margin-bottom: 24rpx;}
  548. .watopcomb{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  549. }
  550. //资讯
  551. .newlists{
  552. background: #FFFFFF;padding: 22rpx 24rpx;margin-bottom: 24rpx;
  553. border-radius: 20rpx;
  554. .tit{font-size: 32rpx;font-weight: bold;color: #272727;line-height: 48rpx;margin-bottom:16rpx;}
  555. .txt{font-size: 24rpx;color: #666666;line-height: 36rpx;margin-bottom: 32rpx;}
  556. .stabox{
  557. .time{font-weight: 500;font-size: 24rpx;color: #AAAAAA;line-height: 36rpx;}
  558. .btns{font-weight: 500;font-size: 22rpx;color: #666666;line-height: 36rpx;min-width: 100rpx;box-sizing: border-box;margin-left: 20rpx;
  559. .imga{width: 24rpx;height: 22rpx;margin-right: 8rpx;}
  560. .imgb{width: 24rpx;height: 18rpx;margin-right: 10rpx;}
  561. }
  562. }
  563. }
  564. // 视频
  565. .videolists{
  566. background: #FFFFFF;margin-bottom: 24rpx;border-radius: 20rpx;
  567. .titbox{padding-top: 16rpx;padding-right: 38rpx;}
  568. .videos{width: 260rpx;height: 180rpx;}
  569. .tit{font-weight: bold;font-size: 14px;color: #272727;text-align: left;margin-bottom: 10rpx;}
  570. .num{font-weight: 500;font-size: 20rpx;color: #666666;min-width: 68rpx;padding: 0 8rpx;box-sizing: border-box;
  571. height: 28rpx;background: #E6E6E6;border-radius: 14rpx;line-height: 28rpx;text-align: center;}
  572. .time{font-weight: 500;font-size: 24rpx;color: #AAAAAA;margin-top: 44rpx;}
  573. }
  574. // 名单
  575. .readlist{background: #FFFFFF;border-radius: 20rpx;border: 2rpx solid #E6E6E6;margin-bottom: 24rpx;padding: 24rpx;display: flex;align-items: center;box-sizing: border-box;
  576. .head{width: 96rpx;height: 96rpx;margin-right: 28rpx;flex: 0 0 auto;}
  577. .tit{font-weight: bold;font-size: 30rpx;color: #272727;margin-bottom: 12rpx;}
  578. .time{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;
  579. text{margin-right: 12rpx;display: inline-block;}
  580. }
  581. }
  582. .spdel{width: 164rpx;background: #EA2D2D;font-weight: bold;font-size: 26rpx;color: #FFFFFF;display: flex;align-items: center;justify-content: center;position: absolute;right: -146rpx;top: 0;bottom: 0;padding-left: 14rpx;}
  583. // 无数据
  584. .nodata{display: flex;flex-direction: column;align-items: center;
  585. image{width: 440rpx;height: 440rpx;}
  586. view{font-size: 30rpx;color: #666666;font-weight: bold;}
  587. }
  588. </style>