list.vue 24 KB

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