list.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705
  1. <template>
  2. <view>
  3. <!-- 第一种样式 人员管理-->
  4. <block v-if="datainfo.length>0">
  5. <!-- 车辆管控 -->
  6. <block v-if="type=='car'">
  7. <view class="carlist" v-for="(ite,idx) in datainfo" :key="idx">
  8. <view class="ctop flexc">
  9. <image :src="cara" class="imgs" v-if="ite.type==1"></image>
  10. <image :src="carb" class="imgs" v-if="ite.type==2"></image>
  11. <view class="tit">皖A IC520</view>
  12. <view class="btn btna">新能源</view>
  13. <view class="btn btnb">小型车</view>
  14. <view class="flex1"></view>
  15. <view class="txt ca" v-if="ite.type==1">小区车辆</view>
  16. <view class="txt cb" v-if="ite.type==2">外来车辆</view>
  17. </view>
  18. <view class="clists">
  19. <view class="clist"><view class="tit">车库名称</view>地下停车场</view>
  20. <view class="clist"><view class="tit">进入时间</view>2024-11-27 16:27:48</view>
  21. <block v-if="topval=='sl'">
  22. <view class="clist"><view class="tit">驶离时间</view>2024-11-27 16:27:48</view>
  23. <view class="clist"><view class="tit">停车时长</view>3小时19分钟</view>
  24. </block>
  25. <view class="clist"><view class="tit">{{ite.type==1?'门户号 ':'来访门户'}}</view>8#303</view>
  26. <view class="clist"><view class="tit">手机号码</view>13656788668</view>
  27. </view>
  28. </view>
  29. </block>
  30. <!-- 车辆违规 -->
  31. <block v-if="type=='carpark'">
  32. <view class="carlist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  33. <view class="ctop flexc">
  34. <image :src="cara" class="imgs" v-if="ite.type==1"></image>
  35. <image :src="carb" class="imgs" v-if="ite.type==2"></image>
  36. <view class="tit">皖A IC520</view>
  37. <view class="num" :class="ite.heiflag?'coff':''">(本年度2次)</view>
  38. <view class="flex1"></view>
  39. <view class="txt ca" v-if="ite.type==1">小区车辆</view>
  40. <view class="txt cb" v-if="ite.type==2">外来车辆</view>
  41. </view>
  42. <view class="clists">
  43. <view class="clist"><view class="tit">关联房号</view>12#1403</view>
  44. <view class="clist"><view class="tit">手机号码</view>13656788668</view>
  45. <view class="clist"><view class="tit">登记时间</view>2024-11-27 17:30:55</view>
  46. <view class="clist"><view class="tit">违停拍照</view>
  47. <view class="imgas">
  48. <image :src="cara" @click="getPreview(idx,cara)"></image>
  49. <image :src="cara"></image>
  50. <image :src="cara"></image>
  51. <image :src="cara"></image>
  52. </view>
  53. </view>
  54. </view>
  55. </view>
  56. </block>
  57. <!-- 人员管理 -->
  58. <block v-if="type=='people'">
  59. <view class="carlist peolist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  60. <view class="ctop flexc">
  61. <image :src="hicoa" class="imgs" v-if="ite.type==1"></image>
  62. <image :src="hicob" class="imgs" v-if="ite.type==2"></image>
  63. <view class="tit">一号楼3单元1101</view>
  64. <view class="flex1"></view>
  65. <view class="txt ca" v-if="ite.type==1">业主</view>
  66. <view class="txt cb" v-if="ite.type==2">租户</view>
  67. </view>
  68. <view class="plists">
  69. <view class="plist flexc">
  70. <image :src="man" class="head" v-if="ite.sex==0"></image>
  71. <image :src="woman" class="head" v-else></image>
  72. <view class="flex1">
  73. <view class="ptit">张伟<view class="btn btnc ml10" v-if="ite.hzflag">户主</view></view>
  74. <view class="ptxt">身份证号 | 41072719880603022X</view>
  75. <view class="flexc">
  76. <view class="ptxt">性别 | {{ite.sex==0?'男':'女'}}</view>
  77. <view class="ptxt">年龄 | 36岁</view>
  78. </view>
  79. </view>
  80. </view>
  81. <view class="plist flexc" v-if="ite.zhanflag">
  82. <image :src="man" class="head" v-if="ite.sex==0"></image>
  83. <image :src="woman" class="head" v-else></image>
  84. <view class="flex1">
  85. <view class="ptit">张伟<view class="btn btnc ml10" v-if="ite.hzflag">户主</view></view>
  86. <view class="ptxt">身份证号 | 41072719880603022X</view>
  87. <view class="flexc">
  88. <view class="ptxt">性别 | {{ite.sex==0?'男':'女'}}</view>
  89. <view class="ptxt">年龄 | 36岁</view>
  90. </view>
  91. </view>
  92. </view>
  93. <image :src="upimg" :class="ite.zhanflag?'act':''" class="upimg" @click="getZhan(idx)"></image>
  94. </view>
  95. </view>
  96. </block>
  97. <!-- 维修人员管理 -->
  98. <view v-if="type=='staff'" class="flecw">
  99. <view class="stafflist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  100. <view class="statop">
  101. <image class="head" :src="man" v-if="ite.sex==0"></image>
  102. <image class="head" :src="woman" v-else></image>
  103. <view class="flex1">
  104. <view class="statit">张伟</view>
  105. <view class="statxt flexc co06" v-if="ite.hzflag"><text class="cir bga"></text>空闲中</view>
  106. <view class="statxt flexc cof6" v-else><text class="cir bgb"></text>指派中</view>
  107. </view>
  108. <image :src="pdel" class="stadel"></image>
  109. </view>
  110. <view class="stalist">
  111. <view class="imgs"><image :src="gzlx" class="gzlximg"></image></view>电梯维修
  112. </view>
  113. <view class="stalist">
  114. <view class="imgs"><image :src="mphone" class="mphone"></image></view>158****0088
  115. </view>
  116. </view>
  117. </view>
  118. <!-- 来访管理 -->
  119. <block v-if="type=='comepeo'">
  120. <view class="carlist peolist" v-for="(ite,idx) in datainfo" :key="idx">
  121. <view class="ctop flexc">
  122. <image :src="hicoa" class="imgs"></image>
  123. <!-- <image :src="hicob" class="imgs" v-if="ite.type==2"></image> -->
  124. <view class="tit">幸福小区12#301</view>
  125. <view class="btn btnbga">预约</view>
  126. <view class="btn btnbgb">已来访</view>
  127. <view class="btn btnbgc">待来访</view>
  128. <view class="flex1"></view>
  129. <view class="txt cc" v-if="ite.type==1">驾车</view>
  130. </view>
  131. <view class="clists">
  132. <view class="clist"><view class="tit">预约时间</view>2024-11-25 10:00:00</view>
  133. <view class="clist"><view class="tit">来访时间</view>2024-11-27 16:27:48</view>
  134. <view class="w50 flexc">
  135. <view class="clist"><view class="tit">访客姓名</view>刘女士</view>
  136. <view class="clist"><view class="tit">来访人数</view>1人</view>
  137. </view>
  138. <view class="w50 flexc">
  139. <view class="clist"><view class="tit">来访事由</view>亲友</view>
  140. <view class="clist"><view class="tit">车牌号码</view>皖A 86KY2</view>
  141. </view>
  142. <view class="clist"><view class="tit">手机号码</view>13656788668</view>
  143. </view>
  144. </view>
  145. </block>
  146. <!-- 房屋管理 -->
  147. <block v-if="type=='comehouse'">
  148. <view class="carlist houselist" v-for="(ite,idx) in datainfo" :key="idx">
  149. <view class="ctop flexc">
  150. <image :src="house" class="imgs" v-if="ite.type==1"></image>
  151. <image :src="housea" class="imgs" v-if="ite.type==2"></image>
  152. <view class="tit">幸福小区12#1101室</view>
  153. <!-- view class="btn btnbga">预约</view>
  154. <view class="btn btnbgb">已来访</view>
  155. <view class="btn btnbgc">待来访</view> -->
  156. <view class="flex1"></view>
  157. <view class="txt ca" v-if="ite.type==1">业主</view>
  158. <view class="txt cb" v-if="ite.type==2">租户</view>
  159. </view>
  160. <view class="clists">
  161. <view class="w50 flexc">
  162. <view class="clist"><view class="tit">房屋所属</view>袁玥</view>
  163. <view class="clist"><view class="tit">建筑面积</view>121.3m²</view>
  164. </view>
  165. <view class="w50 flexc">
  166. <view class="clist"><view class="tit">房型</view>3室1厅</view>
  167. <view class="clist"><view class="tit">居住人口</view>3口人</view>
  168. </view>
  169. <view class="w50 flexc">
  170. <view class="clist"><view class="tit">有无车位 </view>有</view>
  171. </view>
  172. <!-- <view class="clist"><view class="tit">手机号码</view>13656788668</view> -->
  173. </view>
  174. </view>
  175. </block>
  176. <!-- 物业费管理 -->
  177. <block v-if="type=='money'">
  178. <view class="carlist peolist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  179. <view class="ctop flexc" style="padding: 26rpx 24rpx 24rpx;">
  180. <image :src="hicoa" class="imgs"></image>
  181. <view class="tit">幸福小区12#301</view>
  182. <view class="flex1"></view>
  183. <view class="txta">2024/01 -2024/12</view>
  184. </view>
  185. <view class="clists flexc">
  186. <view class="mlistl">
  187. <view class="mltit">应缴总额 /元</view>
  188. <view class="mltxt">4307.20</view>
  189. </view>
  190. <view class="mlistr">
  191. <view class="clist"><view class="tit">物业费用:</view>3247.20元</view>
  192. <view class="clist"><view class="tit">车位费用:</view>960.00元</view>
  193. <view class="clist"><view class="tit">能耗费用:</view>100.00元</view>
  194. </view>
  195. </view>
  196. </view>
  197. </block>
  198. <!-- 历史账单 -->
  199. <block v-if="type=='moneybill'">
  200. <view class="carlist peolist" v-for="(ite,idx) in datainfo" :key="idx">
  201. <view class="ctop flexc" style="padding: 26rpx 24rpx 24rpx;">
  202. <image :src="time" class="imgs"></image>
  203. <view class="tit">2024/01 -2024/12</view>
  204. <view class="btn btnbgb" v-if="ite.type==1">已缴费</view>
  205. <view class="btn btnbgc" v-else>未缴费</view>
  206. <view class="flex1"></view>
  207. <view class="txta">1号楼3单元1102</view>
  208. </view>
  209. <view class="clists flexc">
  210. <view class="mlistl">
  211. <view class="mltit">应缴总额 /元</view>
  212. <view class="mltxt">4307.20</view>
  213. </view>
  214. <view class="mlistr">
  215. <view class="clist"><view class="tit">物业费用:</view>3247.20元</view>
  216. <view class="clist"><view class="tit">车位费用:</view>960.00元</view>
  217. <view class="clist"><view class="tit">能耗费用:</view>100.00元</view>
  218. </view>
  219. </view>
  220. </view>
  221. </block>
  222. <!-- 巡更地点patrol -->
  223. <block v-if="type=='patrol'">
  224. <view class="patlist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  225. <view class="pattop flexc">
  226. <image :src="home" class="imgs"></image>
  227. <view class="tit">幸福小区1栋2单元电梯间</view>
  228. <view class="flex1"></view>
  229. <view class="txt cd" v-if="ite.type==1">未巡更</view>
  230. <view class="txt cc" v-if="ite.type==2">已巡更</view>
  231. </view>
  232. <view class="patlistr">
  233. <view class="clist"><view class="tit">巡检类型</view>:设备维修</view>
  234. <view class="clist"><view class="tit">巡检时间</view>:2024-11-27 10:00</view>
  235. <view class="clist"><view class="tit">巡检人</view>:刘兵琦</view>
  236. </view>
  237. <view class="patbtns">
  238. <view class="btna" @click.stop="getDetail">查看</view>
  239. <view class="btnb" @click.stop="getAddFn">去巡更</view>
  240. </view>
  241. </view>
  242. </block>
  243. <!-- 报修管理 -->
  244. <block v-if="type=='warranty'">
  245. <view class="walists" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  246. <view class="watop ">
  247. <view class="watit">
  248. <view class="tit">一号楼3单元12楼楼梯间灯不亮</view>
  249. <view class="txt co01" v-if="ite.type==1">待分派</view>
  250. <view class="txt coa" v-if="ite.type==3">已完成</view>
  251. <view class="txt co28" v-if="ite.type==2">处理中</view>
  252. </view>
  253. <view class="walist"><view class="tit">小区名称</view>:幸福小区</view>
  254. <view class="walist"><view class="tit">报修门户</view>:3号楼1单元406</view>
  255. <view class="walist"><view class="tit">报修时间</view>:2024-11-14 17:16:31</view>
  256. <view class="walist" v-if="ite.type==3"><view class="tit" >完成时间</view>:2024-11-14 18:16:31</view>
  257. </view>
  258. <view class="wabtn">
  259. <view>查看详情</view>
  260. <image :src="rimg"></image>
  261. </view>
  262. </view>
  263. </block>
  264. <!-- 投诉建议 -->
  265. <block v-if="type=='complaint'">
  266. <view class="walists" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail"
  267. :data-idx="idx"
  268. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+ite.right+'px'"
  269. >
  270. <view class="watop watopcom">
  271. <view class="watit">
  272. <view class="tit">小区电梯老化</view>
  273. <view class="txt co01" v-if="ite.type==1">待回复</view>
  274. <view class="txt coa" v-if="ite.type==2">已回复</view>
  275. </view>
  276. <view class="watopcoma overtwo">小区电梯时常发生问题,请物业派维修人员进行安全检 查,若无法排除问题,建议更换小区的电梯设备,避…</view>
  277. <view class="watopcomb">2024-11-18 08:16:54</view>
  278. </view>
  279. <!-- -->
  280. <view class="spdel" v-if="ite.right>0" @click.stop="getDelFn()">删除</view>
  281. </view>
  282. <!-- checkPermi(['system:menuFood:remove'])&& -->
  283. </block>
  284. <!-- 党建资讯 -->
  285. <block v-if="type=='newsdj'">
  286. <view class="newlists" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail"
  287. >
  288. <view class="tit">潜山:多举措建优非公党建工作指导员队伍</view>
  289. <view class="txt overtwo">如何不断激发非公企业和社会组织党建工作新活力?潜山市委社 会工作部发挥考核的指挥棒作用,“三点发力”推动党建工作部…</view>
  290. <view class="stabox flexc">
  291. <view class="time flex1">2024-11-18 08:16:54</view>
  292. <view class="btns">
  293. <!-- <image :src="star" class="imga"></image>42 -->
  294. <image :src="stara" class="imga"></image>42
  295. </view>
  296. <view class="btns">
  297. <image :src="eye" class="imgb"></image>1361
  298. </view>
  299. </view>
  300. </view>
  301. <!-- checkPermi(['system:menuFood:remove'])&& -->
  302. </block>
  303. <!-- 社区资讯 -->
  304. <block v-if="type=='newssq'">
  305. <view class="walists" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  306. <view class="watop watopcom">
  307. <view class="watit">
  308. <view class="tit">物业服务费缴费公告<text class="cir"></text></view>
  309. </view>
  310. <view class="watopcoma overtwo">尊敬的各位业主:为更好地提供优质小区环境,保障小区 公共区域设施设备正常的运行,现收取2024年度物业…</view>
  311. <view class="watopcomb">2024-11-18 08:16:54</view>
  312. </view>
  313. <view class="wabtn">
  314. <view>查看详情</view>
  315. <image :src="rimg"></image>
  316. </view>
  317. </view>
  318. </block>
  319. <!-- 员工图文 -->
  320. <block v-if="type=='ystv'">
  321. <view class="walists" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  322. <view class="watop watopcom" style="padding-bottom: 22rpx !important;">
  323. <view class="watit">
  324. <view class="tit">1.3 业务流程与工作规范</view>
  325. </view>
  326. <view class="watopcoma overtwo">业主入住与退房流程、维修报修流程、安全防范措施与应
  327. 急处理、公共区域维护与清洁、物业费收缴与开支管理…</view>
  328. <view class="flexcj">
  329. <view class="watopcomb">2024-11-18 08:16:54</view>
  330. <!-- 管理员 -->
  331. <view class="f12 cofe fw5" @click="getReadlist">已读名单</view>
  332. <!-- 员工 -->
  333. <view class="f12 co27 fw5" >进度:100%</view>
  334. </view>
  335. </view>
  336. </view>
  337. </block>
  338. <!-- 员工视频 -->
  339. <block v-if="type=='ygsp'">
  340. <view class="videolists flex" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  341. <view class="flex0 mr12">
  342. <video class="videos" id="myVideo" src="https://qiniu-web-assets.dcloud.net.cn/unidoc/zh/2minute-demo.mp4"
  343. @error="videoErrorCallback" :danmu-list="danmuList" enable-danmu danmu-btn controls></video>
  344. </view>
  345. <view class="flex1 over titbox">
  346. <view class="tit over">1.3 业务流程与工作规范</view>
  347. <view class="flexcj">
  348. <view class="num">03:41</view>
  349. <!-- 管理员 -->
  350. <view class="f12 cofe fw5" @click="getReadlist">已读名单</view>
  351. <!-- 员工 -->
  352. <view class="f12 co27 fw5" >进度:100%</view>
  353. </view>
  354. <view class="time">2024-11-18 08:16:54</view>
  355. </view>
  356. </view>
  357. </block>
  358. <!-- 阅读名单 -->
  359. <block v-if="type=='readlist'" >
  360. <view class="readlist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  361. <image class="head" :src="man" v-if="ite.sex==0"></image>
  362. <image class="head" :src="woman" v-else></image>
  363. <view class="flex1">
  364. <view class="tit">袁玥</view>
  365. <view class="time"><text>阅读时间 |</text> 2024-12-01 18:37:56</view>
  366. </view>
  367. </view>
  368. </block>
  369. <block v-if="type=='readcount'" >
  370. <view class="readlist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  371. <image class="head" :src="man" v-if="ite.sex==0"></image>
  372. <image class="head" :src="woman" v-else></image>
  373. <view class="flex1">
  374. <view class="tit">袁玥</view>
  375. <view class="time"><text>阅读总时长 |</text> 8小时54分31秒</view>
  376. </view>
  377. </view>
  378. </block>
  379. <view class="shax">{{wtdt}}</view>
  380. </block>
  381. <!-- 无数据 -->
  382. <view class="nodata" v-else>
  383. <image :src="noiconpimg"></image>
  384. <view>
  385. 暂无数据
  386. </view>
  387. </view>
  388. </view>
  389. </template>
  390. <script>
  391. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  392. import config from '@/config'
  393. export default{
  394. props:{
  395. datainfo: {
  396. type: Array,
  397. default () {
  398. return []
  399. }
  400. },
  401. wtdt:{
  402. type:String,
  403. default () {
  404. return ''
  405. }
  406. },
  407. type:{
  408. type:String,
  409. default () {
  410. return 0
  411. }
  412. },
  413. topval:{
  414. type:String,
  415. default () {
  416. return ''
  417. }
  418. }
  419. },
  420. data(){
  421. return{
  422. noiconpimg:require("@/static/nodata.png"),
  423. car:require("@/work/static/car/car.png"),
  424. cara:require("@/work/static/car/cara.png"),
  425. carb:require("@/work/static/car/carb.png"),
  426. hicoa:require("@/work/static/people/hicoa.png"),
  427. hicob:require("@/work/static/people/hicob.png"),
  428. man:require("@/work/static/people/man.png"),
  429. woman:require("@/work/static/people/woman.png"),
  430. rimg:require("@/work/static/people/rimg.png"),
  431. pdel:require("@/work/static/people/pdel.png"),
  432. gzlx:require("@/work/static/people/gzlx.png"),
  433. mphone:require("@/work/static/people/mphone.png"),
  434. time:require("@/work/static/manage/time.png"),
  435. house:require("@/work/static/manage/house.png"),
  436. housea:require("@/work/static/manage/housea.png"),
  437. home:require("@/work/static/service/home.png"),
  438. upimg:require("@/static/images/home/up.png"),
  439. star:require('@/manage/static/community/star.png'),
  440. stara:require('@/manage/static/community/stara.png'),
  441. eye:require('@/manage/static/community/eye.png'),
  442. baseUrl:config.baseUrl,
  443. delBtnWidth:66,//左滑默认宽度
  444. }
  445. },
  446. mounted() {
  447. },
  448. methods:{
  449. checkPermi, checkRole,
  450. getDetail(e){
  451. this.$emit('getDetail',e)
  452. },
  453. getAddFn(e){
  454. this.$emit('getAddFn',e)
  455. },
  456. getReadlist(e){
  457. this.$emit('getReadlist',e)
  458. },
  459. getZhan(idx){
  460. // var obj=JSON.parse(JSON.stringify(this.datainfo))[idx]
  461. // obj.zhanflag=!obj.zhanflag;
  462. // this.datainfo.splice(idx,1,obj);
  463. this.datainfo[idx].zhanflag=!this.datainfo[idx].zhanflag
  464. },
  465. getPreview(idx,arr) {
  466. var newArr=[];
  467. arr.forEach(ite=>{
  468. var ds=this.baseUrl+ite
  469. newArr.push(ds)
  470. })
  471. uni.previewImage({
  472. urls: newArr,
  473. current:idx,
  474. success: function(data) {},
  475. fail: function(err) {}
  476. });
  477. },
  478. //开始触摸滑动
  479. drawStart(e) {
  480. // console.log("开始触发");
  481. var touch = e.touches[0];
  482. this.startX = touch.clientX;
  483. },
  484. //触摸滑动
  485. drawMove(e) {
  486. // console.log("滑动");
  487. for (var index in this.datainfo) {
  488. // this.csListArrl[index].right=0
  489. this.$set(this.datainfo[index],'right',0);
  490. }
  491. var idx=e.currentTarget.dataset.idx
  492. var touch = e.touches[0];
  493. var item = this.datainfo[idx];
  494. var disX = this.startX - touch.clientX;
  495. if (disX >= 20) {
  496. if (disX > this.delBtnWidth) {
  497. disX = this.delBtnWidth;
  498. }
  499. // this.csListArrl[idx].right=disX
  500. this.$set(this.datainfo[idx],'right',disX);
  501. } else {
  502. // this.csListArrl[idx].right=0
  503. this.$set(this.datainfo[idx],'right',0);
  504. }
  505. },
  506. //触摸滑动结束
  507. drawEnd(e) {
  508. // console.log("滑动结束");
  509. var idx=e.currentTarget.dataset.idx
  510. var item = this.datainfo[idx];
  511. if (item.right >= this.delBtnWidth / 2) {
  512. // this.datainfo[idx].right=this.delBtnWidth
  513. this.$set(this.datainfo[idx],'right',this.delBtnWidth);
  514. } else {
  515. this.datainfo[idx].right=0
  516. }
  517. },
  518. }
  519. }
  520. </script>
  521. <style lang="scss" scoped>
  522. .flex{display: flex;}
  523. .flexc{display: flex;align-items: center;}
  524. .mb10{margin-bottom: 20rpx;}
  525. .carlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;
  526. .ctop{border-bottom: 2rpx solid #E5E5E5;padding:26rpx 24rpx;
  527. .imgs{width: 40rpx;height: 42rpx;margin-right: 30rpx;}
  528. .tit{font-size: 32rpx;color: #272727;font-weight: bold;margin-right: 14rpx;}
  529. .txt{font-weight: 500;font-size: 26rpx;
  530. &.ca{color: #3565ED;}
  531. &.cb{color: #FE5A0E;}
  532. &.cc{color: #28C529;}
  533. }
  534. .txta{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  535. .num{font-size: 24rpx;color: #AAAAAA;}
  536. }
  537. .btn{height: 34rpx;border-radius: 18rpx;display: flex;align-items: center;justify-content: center;padding: 0 10rpx;font-size: 22rpx;margin-right: 24rpx;
  538. &.btna{border: 2rpx solid #06C770;color: #06C770;}
  539. &.btnb{border: 2rpx solid #3565ED;color: #3565ED;}
  540. &.btnc{border: 2rpx solid #FE5A0E;color: #FE5A0E;}
  541. &.btnbga{border: 1px solid #0156FE;color: #3565ED;background: #DFEAFF;height: 36rpx;}
  542. &.btnbgb{border: 1px solid #C1C1C1;color: #666666;background: #F1F1F1;height: 36rpx;}
  543. &.btnbgc{border: 1px solid #FE5A0E;color:#FE5A0E;background:#FFEEE6;height: 36rpx;}
  544. }
  545. .clists{padding: 24rpx 24rpx 8rpx;
  546. .clist{font-weight: 500;margin-bottom: 16rpx;
  547. font-size: 26rpx;color: #272727;display: flex;line-height: 34rpx;
  548. .tit{font-size: 26rpx;color: #AAAAAA;flex: 0 0 auto;margin-right: 16rpx;min-width: 108rpx;text-align-last: justify;}
  549. .imgas{display: flex;align-items: center;flex-wrap: wrap;
  550. image{width: 142rpx;height: 142rpx;margin-right: 30rpx;margin-top: 8rpx;}
  551. }
  552. }
  553. .w50{
  554. .clist{width: 50%;}
  555. }
  556. }
  557. }
  558. // 人员
  559. .peolist{
  560. .ctop{padding: 24rpx 24rpx 22rpx;}
  561. .imgs{margin-right: 16rpx !important;}
  562. .tit{font-size: 28rpx !important;}
  563. .plists{padding: 30rpx 24rpx 6rpx;
  564. .plist{background: linear-gradient(-90deg, #F2F5FF 0%, #FBFDFF 100%);border-radius: 20rpx;border: 2rpx solid #E6E6E6;margin-bottom: 24rpx;padding: 18rpx 26rpx 4rpx;
  565. .head{width: 96rpx;height: 98rpx;margin-right: 32rpx;flex: 0 0 auto;}
  566. .ptit{font-weight: bold;font-size: 30rpx;color: #272727;display: flex;align-items: center;margin-bottom: 14rpx;}
  567. .ptxt{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;margin-bottom: 14rpx;min-width: 176rpx;}
  568. }
  569. }
  570. .upimg{width: 26rpx;height: 22rpx;display: block;transform: rotate(180deg);transition: all 0.3s;margin: 0 auto 18rpx;
  571. &.act{transform: rotate(0deg);}
  572. }
  573. }
  574. // 物业费
  575. .mlistl{width: 40%;display: flex;flex-direction: column;align-items: center;flex: 0 0 auto;
  576. .mltit{font-weight: 500;font-size: 26rpx;color: #666666;margin-bottom: 18rpx;}
  577. .mltxt{font-weight: bold;font-size: 32rpx;color: #0156FE;}
  578. }
  579. .houselist{
  580. .clists{padding-bottom: 2rpx !important;}
  581. .clist{margin-bottom: 22rpx !important;}
  582. }
  583. // 巡更地点
  584. .patlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;padding: 0 24rpx 30rpx;
  585. .pattop{padding:22rpx 30rpx;margin-bottom: 2rpx;
  586. .imgs{width: 28rpx;height: 28rpx;margin-right: 12rpx;}
  587. .tit{font-size: 30rpx;color: #272727;font-weight: bold;margin-right: 14rpx;}
  588. .txt{font-weight: 500;font-size:24rpx;
  589. &.ca{color: #3565ED;}
  590. &.cb{color: #FE5A0E;}
  591. &.cc{color: #28C529;}
  592. &.cd{color: #FF6969;}
  593. }
  594. }
  595. .patlistr{background: #EFF4FF;border-radius: 20rpx;padding: 20rpx 32rpx;
  596. .clist{font-weight: 500;font-size: 26rpx;color: #272727;display: flex;line-height: 50rpx;
  597. .tit{font-size: 26rpx;flex: 0 0 auto;min-width: 108rpx;text-align-last: justify;font-weight: bold;}
  598. }
  599. }
  600. .patbtns{display: flex;justify-content: flex-end;align-items: center;flex-wrap: wrap;
  601. 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;
  602. &.btna{border: 2rpx solid #0256FD;color: #0256FD;}
  603. &.btnb{background: #0256FD;color: #ffffff;}
  604. }
  605. }
  606. }
  607. // 报修
  608. .walists{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx; position: relative;
  609. .watop{
  610. padding: 0 36rpx 8rpx 38rpx;
  611. .watit{padding: 24rpx 0;margin-bottom: 4rpx;display: flex;
  612. .tit{font-weight: bold;font-size: 28rpx;color: #272727;flex: 1;
  613. .cir{width: 14rpx;margin-left: 8rpx;margin-bottom: 10rpx;height: 14rpx;display: inline-block;background: #FF6969;border-radius: 8rpx;}
  614. }
  615. .txt{font-weight: bold;font-size: 26rpx;flex: 0 0 auto;
  616. }
  617. }
  618. }
  619. .walist{display: flex;font-weight: 500;font-size: 24rpx;color: #666666;margin-bottom: 16rpx;
  620. .tit{min-width: 100rpx;text-align-last: justify}
  621. }
  622. .wabtn{display: flex;align-items: center;justify-content: space-between;border-top: 2rpx solid #E5E5E5;height: 80rpx;padding: 0 38rpx;
  623. view{font-weight: 500;font-size: 24rpx;color: #666666;}
  624. image{width: 16rpx;height: 28rpx;}
  625. }
  626. }
  627. // 维修人员
  628. .stafflist{width: 344rpx;min-height: 256rpx;background: #FFFFFF;border-radius: 20rpx;margin:0 12rpx 24rpx 12rpx;padding-bottom: 20rpx;box-sizing: border-box;
  629. // &:nth-of-type(2n){margin-right: 0;}
  630. .statop{border-bottom: 2rpx solid #E5E5E5;display: flex;padding: 24rpx 24rpx 22rpx;
  631. .head{width: 80rpx;height: 82rpx;margin-right: 24rpx;flex: 0 0 auto;}
  632. .stadel{width: 30rpx;height: 30rpx;flex: 0 0 auto;margin-left: 12rpx;}
  633. .statit{font-weight: bold;font-size: 30rpx;color: #272727;margin-bottom: 4rpx;}
  634. .statxt{font-weight: 500;font-size: 26rpx;
  635. .cir{width: 10rpx;height: 10rpx;border-radius: 50%;margin-right: 14rpx;display: inline-block;
  636. &.bga{background: #06C770;}
  637. &.bgb{background: #FF6969;}
  638. }
  639. }
  640. }
  641. .stalist{font-weight: 500;font-size: 26rpx;color: #272727;display: flex;align-items: center;padding: 20rpx 24rpx 0;
  642. .imgs{width: 24rpx;height: 30rpx;margin-right: 22rpx;flex: 0 0 auto;display: flex;align-items: center;justify-content: center;
  643. .gzlximg{width: 24rpx;height: 28rpx;}
  644. .mphone{width: 18rpx;height: 30rpx;}
  645. }
  646. }
  647. }
  648. .watopcom{background-color: #ffffff;border-radius: 20rpx;position: relative;z-index: 1;padding-bottom: 30rpx !important;
  649. .watopcoma{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;margin-bottom: 24rpx;}
  650. .watopcomb{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  651. }
  652. //资讯
  653. .newlists{
  654. background: #FFFFFF;padding: 22rpx 24rpx;margin-bottom: 24rpx;
  655. border-radius: 20rpx;
  656. .tit{font-size: 32rpx;font-weight: bold;color: #272727;line-height: 48rpx;margin-bottom:16rpx;}
  657. .txt{font-size: 24rpx;color: #666666;line-height: 36rpx;margin-bottom: 32rpx;}
  658. .stabox{
  659. .time{font-weight: 500;font-size: 24rpx;color: #AAAAAA;line-height: 36rpx;}
  660. .btns{font-weight: 500;font-size: 22rpx;color: #666666;line-height: 36rpx;min-width: 100rpx;box-sizing: border-box;margin-left: 20rpx;
  661. .imga{width: 24rpx;height: 22rpx;margin-right: 8rpx;}
  662. .imgb{width: 24rpx;height: 18rpx;margin-right: 10rpx;}
  663. }
  664. }
  665. }
  666. // 视频
  667. .videolists{
  668. background: #FFFFFF;margin-bottom: 24rpx;border-radius: 20rpx;
  669. .titbox{padding-top: 16rpx;padding-right: 38rpx;}
  670. .videos{width: 260rpx;height: 180rpx;}
  671. .tit{font-weight: bold;font-size: 14px;color: #272727;text-align: left;margin-bottom: 10rpx;}
  672. .num{font-weight: 500;font-size: 20rpx;color: #666666;min-width: 68rpx;padding: 0 8rpx;box-sizing: border-box;
  673. height: 28rpx;background: #E6E6E6;border-radius: 14rpx;line-height: 28rpx;text-align: center;}
  674. .time{font-weight: 500;font-size: 24rpx;color: #AAAAAA;margin-top: 44rpx;}
  675. }
  676. // 名单
  677. .readlist{background: #FFFFFF;border-radius: 20rpx;border: 2rpx solid #E6E6E6;margin-bottom: 24rpx;padding: 24rpx;display: flex;align-items: center;box-sizing: border-box;
  678. .head{width: 96rpx;height: 96rpx;margin-right: 28rpx;flex: 0 0 auto;}
  679. .tit{font-weight: bold;font-size: 30rpx;color: #272727;margin-bottom: 12rpx;}
  680. .time{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;
  681. text{margin-right: 12rpx;display: inline-block;}
  682. }
  683. }
  684. .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;}
  685. // 无数据
  686. .nodata{display: flex;flex-direction: column;align-items: center;
  687. image{width: 440rpx;height: 440rpx;}
  688. view{font-size: 30rpx;color: #666666;font-weight: bold;}
  689. }
  690. </style>