list.vue 23 KB

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