list.vue 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  1. <template>
  2. <view>
  3. <!-- 第一种样式 人员管理-->
  4. <block v-if="datainfo.length>0">
  5. <block v-if="type=='mycar'">
  6. <view class="carlist pr" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail(ite.carId)"
  7. :data-idx="idx"
  8. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+ite.right+'px'"
  9. >
  10. <view class="delleft" style="padding: 0 24rpx;">
  11. <view class="carltop flexc">
  12. <view class="flex1">
  13. <view class="tit mb6 flexc" :class="ite.vehicleEnergy=='新能源'?'co16':'co01'">{{ite.plateNumber}}
  14. <text class="cir"></text>
  15. <text v-if="ite.vehicleColour">{{ite.vehicleColour}}</text>
  16. </view>
  17. <view class="txt flexc">
  18. {{ite.vehicleBrand}}
  19. <view class="txtbtn flexcc" v-if="ite.vehicleEnergy=='新能源'">{{ite.vehicleEnergy}}</view>
  20. <!-- <view class="txtbtn flexcc" v-if="ite.vehicleType==2">新能源</view> -->
  21. </view>
  22. </view>
  23. <image :src="carb" class="carb" v-if="ite.vehicleEnergy=='新能源'"></image>
  24. <image :src="cara" class="cara" v-else></image>
  25. </view>
  26. <view class="carlf">
  27. <view class="clflist">发动机号码 :{{ite.engineNumber}}</view>
  28. <view class="clflist">车辆识别代号:{{ite.identificationNumber}}</view>
  29. <view class="flexc">
  30. <view class="clflist w50">注册日期:{{ite.registrationDate}}</view>
  31. <view class="clflist w50">发证日期:{{ite.issueDate}}</view>
  32. </view>
  33. </view>
  34. </view>
  35. <view class="spdel" v-if="ite.right>0&&checkPermi(['wuYe:car:remove'])" @click.stop="getDelFn(ite.carId)">删除</view>
  36. </view>
  37. </block>
  38. <!-- 地址 -->
  39. <block v-if="type=='address'">
  40. <view class="adrlist flexc" :class="ite.isdefault?'act':''" v-for="(ite,idx) in datainfo" :key="idx">
  41. <view class="adrl flex1">
  42. <view class="tit mb5">安徽省 合肥市 蜀山区 高新技术产业开发区</view>
  43. <view class="txt mb5">幸福大街88号幸福小区12#1304</view>
  44. <view class="txts flexc">袁玥 <text class="ml8">18305687768</text>
  45. <text class="ml8 btns" v-if="ite.isdefault">默认</text>
  46. <text class="ml8 btns" v-if="ite.isuser">最近使用</text>
  47. </view>
  48. </view>
  49. <view class="adrr flexcc">
  50. <image :src="edit"></image>
  51. </view>
  52. </view>
  53. </block>
  54. <!-- 快递 -->
  55. <block v-if="type=='delivery'">
  56. <view class="kdlists flex" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  57. <image :src="noiconpimg" class="kdll"></image>
  58. <view class="kdlr over flex1">
  59. <view class="over tit">已发货</view>
  60. <view class="over tits">包裹正在等待揽收</view>
  61. <view class="over txt">淘宝 | 白色晚礼服平时可穿毕业洋装小白裙…</view>
  62. </view>
  63. </view>
  64. </block>
  65. <!-- 步骤条 -->
  66. <block v-if="type=='kdstep'">
  67. <view class="hfstep">
  68. <view class="hfslist flex">
  69. <view class="limg flexccc">
  70. <image :src="cira" class="imga"></image>
  71. </view>
  72. <view class="flex1">
  73. <view class="hfstit co01">运输中 11-25 12:24</view>
  74. <view class="hfstxt co27">【合肥市】快件已到达 合肥蜀山新产业园</view>
  75. </view>
  76. </view>
  77. <view class="hfslist flex">
  78. <view class="limg flexccc">
  79. <image :src="cirb" class="imgb"></image>
  80. </view>
  81. <view class="flex1">
  82. <view class="hfstit">11-25 07:23</view>
  83. <view class="hfstxt">【合肥市】快件已发往 合肥蜀山新产业园</view>
  84. </view>
  85. </view>
  86. <view class="hfslist flex">
  87. <view class="limg flexccc">
  88. <image :src="cirb" class="imgb"></image>
  89. </view>
  90. <view class="flex1">
  91. <view class="hfstit">11-25 07:20</view>
  92. <view class="hfstxt">【合肥市】快件已到达 合肥转运中心</view>
  93. </view>
  94. </view>
  95. </view>
  96. </block>
  97. <!-- 房屋管理 -->
  98. <block v-if="type=='comehouse'">
  99. <view class="carlist houselist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail(ite.houseId)">
  100. <view class="ctop flexc">
  101. <image :src="house" class="imgs" v-if="ite.houseStatus==1"></image>
  102. <image :src="housea" class="imgs" v-if="ite.houseStatus==4"></image>
  103. <image :src="houseb" class="imgs" v-if="ite.houseStatus==2"></image>
  104. <image :src="housec" class="imgs" v-if="ite.houseStatus==3"></image>
  105. <view class="tit">{{ite.communityName}}{{ite.detailedAddress}}</view>
  106. <!-- view class="btn btnbga">预约</view>
  107. <view class="btn btnbgb">已来访</view>
  108. <view class="btn btnbgc">待来访</view> -->
  109. <image :src="hedit" class="hedit"></image>
  110. <view class="flex1"></view>
  111. <view class="txt ca" v-if="ite.houseStatus==1">自住</view>
  112. <view class="txt cb" v-if="ite.houseStatus==4">出租</view>
  113. <view class="txt cc" v-if="ite.houseStatus==2">空闲</view>
  114. <view class="txt co6" v-if="ite.houseStatus==3">代售</view>
  115. </view>
  116. <view class="clists">
  117. <view class="clist"><view class="tit">房屋坐落</view>{{ite.location}}</view>
  118. <view class="flexc">
  119. <view class="clist w50"><view class="tit">房屋所属</view>{{ite.ownerName}}</view>
  120. <view class="clist w50"><view class="tit">建筑面积</view>{{ite.area}}m²</view>
  121. </view>
  122. <view class="flexc">
  123. <view class="clist w50"><view class="tit">有无车位</view>{{ite.hasParkingSpace=='Y'?'有':'无'}}</view>
  124. </view>
  125. <image :src="sha" class="shimg"></image>
  126. <!-- <image :src="shb" class="shimg"></image> -->
  127. </view>
  128. </view>
  129. </block>
  130. <!-- 人员管理 -->
  131. <block v-if="type=='people'">
  132. <view class="carlist peolist" v-for="(ite,idx) in datainfo" :key="idx">
  133. <view class="ctop flexc">
  134. <image :src="house" class="imgs" v-if="ite.houseStatus==1"></image>
  135. <image :src="housea" class="imgs" v-if="ite.houseStatus==4"></image>
  136. <image :src="houseb" class="imgs" v-if="ite.houseStatus==2"></image>
  137. <image :src="housec" class="imgs" v-if="ite.houseStatus==3"></image>
  138. <view class="tit">{{ite.detailedAddress}}</view>
  139. <view class="flex1"></view>
  140. <view class="txt ca" v-if="ite.houseStatus==1">自住</view>
  141. <view class="txt cb" v-if="ite.houseStatus==4">出租</view>
  142. <view class="txt cc" v-if="ite.houseStatus==2">空闲</view>
  143. <view class="txt co6" v-if="ite.houseStatus==3">代售</view>
  144. </view>
  145. <view class="plists">
  146. <block v-for="(aite,aidx) in ite.residentInfoList">
  147. <view class="flexc pr mb12" :key="`peo${aidx}`" v-if="aidx==0" @click="getDetail(aite.residentId)"
  148. :data-idx="idx" :data-aidx="aidx" data-type="peo"
  149. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+aite.right+'px'"
  150. >
  151. <view class="plist flexc">
  152. <image :src="man" class="head" v-if="aite.residentGender==1"></image>
  153. <image :src="woman" class="head" v-else></image>
  154. <view class="flex1">
  155. <view class="ptit">{{aite.residentName}}
  156. <view class="btn btnc ml10" v-if="aite.isHouseholder=='Y'">户主</view>
  157. </view>
  158. <view class="ptxt">身份证号 | {{aite.residentIdCard}}</view>
  159. <view class="flexc">
  160. <view class="ptxt">性别 | {{aite.residentGender==1?'男':'女'}}</view>
  161. <view class="ptxt">年龄 | {{getAgeFromID(aite.residentIdCard)}}岁</view>
  162. </view>
  163. <view class="flexc" v-if="aite.residentAppearance">
  164. <view class="ptxt">人员面貌 | {{kaType(aite.residentAppearance,rymmList)}}</view>
  165. </view>
  166. </view>
  167. </view>
  168. <view class="spdel" v-if="aite.right>0&&checkPermi(['wuYe:residentInfo:remove'])" @click.stop="getDelFn(aite.residentId)">删除</view>
  169. </view>
  170. <view class="flexc pr mb12" :key="`peo${aidx}`" v-if="aidx>0&&ite.zhanflag" @click="getDetail(aite.residentId)"
  171. :data-idx="idx"
  172. :data-aidx="aidx" data-type="peo"
  173. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+aite.right+'px'"
  174. >
  175. <view class="plist flexc">
  176. <image :src="man" class="head" v-if="aite.residentGender==1"></image>
  177. <image :src="woman" class="head" v-else></image>
  178. <view class="flex1">
  179. <view class="ptit">{{aite.residentName}}
  180. <view class="btn btnc ml10" v-if="aite.isHouseholder=='Y'">户主</view>
  181. </view>
  182. <view class="ptxt">身份证号 | {{aite.residentIdCard}}</view>
  183. <view class="flexc">
  184. <view class="ptxt">性别 | {{aite.residentGender==1?'男':'女'}}</view>
  185. <view class="ptxt">年龄 | {{getAgeFromID(aite.residentIdCard)}}岁</view>
  186. </view>
  187. <view class="flexc" v-if="aite.residentAppearance">
  188. <view class="ptxt">人员面貌 | {{kaType(aite.residentAppearance,rymmList)}}</view>
  189. </view>
  190. </view>
  191. </view>
  192. <view class="spdel" v-if="aite.right>0&&checkPermi(['wuYe:residentInfo:remove'])" @click.stop="getDelFn(aite.residentId)">删除</view>
  193. </view>
  194. </block>
  195. <image :src="upimg" v-if="ite.residentInfoList.length>1" :class="ite.zhanflag?'act':''" class="upimg" @click="getZhan(idx)"></image>
  196. </view>
  197. </view>
  198. </block>
  199. <!-- 我的互动 -->
  200. <block v-if="type=='myhd'">
  201. <view class="mb12 pr" v-for="(ite,idx) in datainfo" :key="idx">
  202. <view class="hdlist pd12 flex">
  203. <image :src="man" class="mhead flex0"></image>
  204. <view class="flex1 overh">
  205. <view class="flexc mb6">
  206. <view class="name flex1 over">{{ite.nickName}}</view>
  207. <view class="tit flex0 ml10">
  208. <block v-if="ite.targetType==1">评论了你的文章</block>
  209. <block v-if="ite.targetType==2">点赞了你的文章</block>
  210. <block v-if="ite.targetType==3">收藏了你的文章</block>
  211. <block v-if="ite.targetType==4">回复了你的评论</block>
  212. <block v-if="ite.targetType==5">点赞了你的评论</block>
  213. </view>
  214. <view class="time flex0 ml10">{{ite.createTime}}</view>
  215. </view>
  216. <view class="flexc overh mb4">
  217. <view class="line bga"></view>
  218. <view class="txt over flex1">{{ite.targetTitle}}</view>
  219. <image :src="rimg" class="rimg ml10"></image>
  220. </view>
  221. </view>
  222. </view>
  223. </view>
  224. </block>
  225. <block v-if="type=='plsh'">
  226. <view class="mb12 pr" v-for="(ite,idx) in datainfo" :key="idx"
  227. :data-idx="idx"
  228. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+ite.right+'px'"
  229. >
  230. <view class="hdlist ">
  231. <view class="pd12 flex">
  232. <image :src="ite.avatar?baseUrl+ite.avatar:man" class="mhead flex0"></image>
  233. <view class="flex1 overh">
  234. <view class="flexc mb6">
  235. <view class="name flex1 over">{{ite.nickName}}</view>
  236. <view class="time flex0 ml10">02-26</view>
  237. </view>
  238. <view class="txt mb8">{{ite.commentContent}}</view>
  239. <view class="flexc overh mb2">
  240. <view class="line bgd"></view>
  241. <view class="txta over flex1">{{ite.communityTitle}}</view>
  242. <image :src="rimg" class="rimg ml10"></image>
  243. </view>
  244. </view>
  245. </view>
  246. <view class="shbtns flexc pd12" >
  247. <view class="btn bga" @click="getSh('4',ite)">不予展示</view>
  248. <view class="flex1"></view>
  249. <view class="btn bgb" @click="getSh('3',ite)">不通过</view>
  250. <view class="btn bgc" @click="getSh('2',ite)">通过</view>
  251. </view>
  252. </view>
  253. <view class="spdel" v-if="ite.right>0&&checkPermi(['wuYe:residentInfo:remove'])" @click.stop="getDelFn(ite.residentId)">删除</view>
  254. </view>
  255. </block>
  256. <!-- 我的点赞,收藏,评论 :data-idx="idx"
  257. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="'right:'+ite.right+'px'"-->
  258. <block v-if="type=='wdhd'">
  259. <view class="mb12 pr" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail(ite)">
  260. <view class="hdlist ">
  261. <view class="pd12 flex">
  262. <image :src="ite.avatar?baseUrl+ite.avatar:man" class="mhead flex0"></image>
  263. <view class="flex1 overh">
  264. <view class="flexc mb6">
  265. <view class="name flex1 over">{{ite.nickName}}</view>
  266. <view class="time flex0 ml10">{{ite.createTime}}</view>
  267. </view>
  268. <view class="txt mb8">{{ite.commentContent}}</view>
  269. <view class="flexc overh mb2">
  270. <view class="line bgd"></view>
  271. <view class="txta over flex1" v-if="tabval=='mypl'">{{ite.communityTitle}}</view>
  272. <view class="txta over flex1" v-else>{{ite.targetTitle}}</view>
  273. <image :src="rimg" class="rimg ml10"></image>
  274. </view>
  275. </view>
  276. </view>
  277. </view>
  278. <!-- <view class="spdel" v-if="ite.right>0&&checkPermi(['wuYe:residentInfo:remove'])" @click.stop="getDelFn(ite.residentId)">删除</view> -->
  279. </view>
  280. </block>
  281. <!-- 车辆违规 -->
  282. <block v-if="type=='carpark'">
  283. <view class="carlist pr" v-for="(ite,idx) in datainfo" :key="ite.illegalParkingId" @click="getDetail(ite.illegalParkingId)"
  284. :data-idx="idx"
  285. @touchstart="drawStart" @touchmove="drawMove" @touchend="drawEnd" :style="checkPermi(['wuYe:illegalParking:remove'])?'right:'+ite.right+'px':''"
  286. >
  287. <view class="delleft">
  288. <view class="ctop flexc">
  289. <image :src="caraa" class="imgs" v-if="ite.carType==1"></image>
  290. <image :src="carbb" class="imgs" v-if="ite.carType==2"></image>
  291. <view class="tit">{{ite.plateNumber}}</view>
  292. <view class="num coff" v-if="ite.isBlack=='Y'">(已登黑名单)</view>
  293. <view class="flex1"></view>
  294. <block v-if="ite.carType">
  295. <view class="txt " :class="ite.carType==1?'ca':'cb'">{{kaType(ite.carType,carType)}}</view>
  296. </block>
  297. <!-- <view class="txt cb" v-if="ite.type==2">外来车辆</view> -->
  298. </view>
  299. <view class="clists">
  300. <block v-if="ite.carType==1">
  301. <view class="clist"><view class="tit">关联房号</view>{{ite.visitPortal}}</view>
  302. <view class="clist"><view class="tit">手机号码</view>{{ite.mobileNumber}}</view>
  303. </block>
  304. <view class="clist"><view class="tit">登记时间</view>{{ite.createTime}}</view>
  305. <view class="clist"><view class="tit">违停拍照</view>
  306. <view class="imgas" v-if="ite.illegalPhoto">
  307. <image :src="baseUrl+aite" v-for="(aite,aidx) in kaPhoto(ite.illegalPhoto)" :key="aidx" @click.stop="getPreview(aidx,ite.illegalPhoto)"></image>
  308. </view>
  309. </view>
  310. </view>
  311. </view>
  312. <view class="spdel" v-if="ite.right>0&&checkPermi(['wuYe:illegalParking:remove'])" @click.stop="getDelFn(ite.illegalParkingId)">删除</view>
  313. </view>
  314. </block>
  315. <view class="shax" v-if="wtdt">{{wtdt}}</view>
  316. </block>
  317. <!-- 无数据 -->
  318. <view class="nodata" v-else>
  319. <image :src="noiconpimg"></image>
  320. <view>
  321. 暂无数据
  322. </view>
  323. </view>
  324. </view>
  325. </template>
  326. <script>
  327. import {selectDictValue} from "@/utils/common.js"
  328. import { checkPermi, checkRole } from "@/utils/permission"; // 权限判断函数
  329. import config from '@/config'
  330. export default{
  331. props:{
  332. datainfo: {
  333. type: Array,
  334. default () {
  335. return []
  336. }
  337. },
  338. wtdt:{
  339. type:String,
  340. default () {
  341. return ''
  342. }
  343. },
  344. type:{
  345. type:String,
  346. default () {
  347. return 0
  348. }
  349. },
  350. clcxList:{
  351. type: Array,
  352. default () {
  353. return []
  354. }
  355. },
  356. rymmList:{
  357. type: Array,
  358. default () {
  359. return []
  360. }
  361. },
  362. carType:{
  363. type: Array,
  364. default () {
  365. return []
  366. }
  367. },
  368. tabval:{
  369. type:String,
  370. default () {
  371. return ''
  372. }
  373. }
  374. },
  375. data(){
  376. return{
  377. house:require("@/health/static/house.png"),
  378. housea:require("@/health/static/housea.png"),
  379. houseb:require("@/health/static/houseb.png"),
  380. housec:require("@/health/static/housec.png"),
  381. noiconpimg:require("@/static/images/nodata.png"),
  382. upimg:require("@/mine/static/house/up.png"),
  383. cara:require("@/mine/static/house/cara.png"),
  384. carb:require("@/mine/static/house/carb.png"),
  385. caraa:require("@/mine/static/house/caraa.png"),
  386. carbb:require("@/mine/static/house/carbb.png"),
  387. hedit:require("@/mine/static/house/hedit.png"),
  388. sha:require("@/mine/static/house/sha.png"),
  389. shb:require("@/mine/static/house/shb.png"),
  390. edit:require("@/mine/static/edit.png"),
  391. cira:require('@/news/static/complaint/cira.png'),
  392. cirb:require('@/news/static/complaint/cirb.png'),
  393. man:require("@/health/static/man.png"),
  394. woman:require("@/health/static/woman.png"),
  395. rimg:require("@/static/images/rimga.png"),
  396. baseUrl:config.baseUrl,
  397. delBtnWidth:66,//左滑默认宽度
  398. }
  399. },
  400. mounted() {
  401. },
  402. methods:{
  403. checkPermi, checkRole,
  404. kaType(data, list) {
  405. return selectDictValue(list, data);
  406. },
  407. kaPhoto(data){
  408. return data.split(',');
  409. },
  410. getDetail(e){
  411. this.$emit('getDetail',e)
  412. },
  413. getDelFn(e){
  414. var that=this;
  415. uni.showModal({
  416. title: '确认删除',
  417. content: "是否确认删除",
  418. cancelText: '取消',
  419. confirmText: '确认',
  420. success: function(res) {
  421. if (res.confirm) {
  422. that.$emit('getDelFn',e)
  423. } else if (res.cancel) {
  424. }
  425. }
  426. });
  427. },
  428. getSh(type,ite){
  429. var that=this;
  430. var str="";
  431. if(type=='2'){
  432. str="通过"
  433. }else if(type=='3'){
  434. str="不通过"
  435. }else if(type=='4'){
  436. str="下架"
  437. }
  438. uni.showModal({
  439. title: '确认'+str,
  440. content: "是否确认"+str,
  441. cancelText: '取消',
  442. confirmText: '确认',
  443. success: function(res) {
  444. if (res.confirm) {
  445. var obj={
  446. status:type,
  447. contentId:ite.contentId,
  448. commentId:ite.commentId,
  449. }
  450. that.$emit('getSh',obj)
  451. } else if (res.cancel) {
  452. }
  453. }
  454. });
  455. },
  456. getZhan(idx){
  457. // var obj=JSON.parse(JSON.stringify(this.datainfo))[idx]
  458. // obj.zhanflag=!obj.zhanflag;
  459. // this.datainfo.splice(idx,1,obj);
  460. this.datainfo[idx].zhanflag=!this.datainfo[idx].zhanflag
  461. },
  462. getDelFn(id){
  463. var that=this;
  464. uni.showModal({
  465. title: '确认删除',
  466. content: "是否确认删除",
  467. cancelText: '取消',
  468. confirmText: '确认',
  469. success: function(res) {
  470. if (res.confirm) {
  471. that.$emit('getDelFn',id)
  472. } else if (res.cancel) {
  473. }
  474. }
  475. });
  476. },
  477. getAgeFromID(idNumber) {
  478. if(idNumber){
  479. const birthDateStr = idNumber.substring(6, 14);
  480. const birthYear = parseInt(birthDateStr.substring(0, 4));
  481. const birthMonth = parseInt(birthDateStr.substring(4, 6));
  482. const birthDay = parseInt(birthDateStr.substring(6, 8));
  483. const today = new Date();
  484. const currentYear = today.getFullYear();
  485. const currentMonth = today.getMonth() + 1;
  486. const currentDay = today.getDate();
  487. let age = currentYear - birthYear;
  488. if (currentMonth < birthMonth || (currentMonth === birthMonth && currentDay < birthDay)) {
  489. age--;
  490. }
  491. return age;
  492. }
  493. },
  494. getPreview(idx,arr) {
  495. var newArr=[];
  496. var list=arr.split(',')
  497. list.forEach(ite=>{
  498. var ds=this.baseUrl+ite
  499. newArr.push(ds)
  500. })
  501. uni.previewImage({
  502. urls: newArr,
  503. current:idx,
  504. success: function(data) {},
  505. fail: function(err) {}
  506. });
  507. },
  508. //开始触摸滑动
  509. drawStart(e) {
  510. // console.log("开始触发");
  511. var touch = e.touches[0];
  512. this.startX = touch.clientX;
  513. },
  514. //触摸滑动
  515. drawMove(e) {
  516. var idx=e.currentTarget.dataset.idx
  517. var aidx=e.currentTarget.dataset.aidx
  518. var type=e.currentTarget.dataset.type;
  519. for (var index in this.datainfo) {
  520. if(type&&type=='peo'){
  521. for(var i in this.datainfo[idx].residentInfoList){
  522. this.$set(this.datainfo[idx].residentInfoList[i],'right',0);
  523. }
  524. }else{
  525. this.$set(this.datainfo[index],'right',0);
  526. }
  527. }
  528. var touch = e.touches[0];
  529. var item = this.datainfo[idx];
  530. var disX = this.startX - touch.clientX;
  531. if (disX >= 20) {
  532. if (disX > this.delBtnWidth) {
  533. disX = this.delBtnWidth;
  534. }
  535. if(type&&type=='peo'){
  536. this.$set(this.datainfo[idx].residentInfoList[aidx],'right',disX);
  537. }else{
  538. this.$set(this.datainfo[idx],'right',disX);
  539. }
  540. // this.csListArrl[idx].right=disX
  541. } else {
  542. // this.csListArrl[idx].right=0
  543. this.$set(this.datainfo[idx],'right',0);
  544. }
  545. },
  546. //触摸滑动结束
  547. drawEnd(e) {
  548. // console.log("滑动结束");
  549. var idx=e.currentTarget.dataset.idx
  550. var item = this.datainfo[idx];
  551. if (item.right >= this.delBtnWidth / 2) {
  552. // this.datainfo[idx].right=this.delBtnWidth
  553. // this.$set(this.datainfo[idx],'right',this.delBtnWidth);
  554. } else {
  555. this.datainfo[idx].right=0
  556. }
  557. },
  558. }
  559. }
  560. </script>
  561. <style lang="scss" scoped>
  562. .flex{display: flex;}
  563. .flexc{display: flex;align-items: center;}
  564. .mb10{margin-bottom: 20rpx;}
  565. .carlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;
  566. .carltop{min-height: 154rpx;border-bottom: 2rpx solid #E5E5E5;
  567. .cir{width: 8rpx;height: 8rpx;border-radius: 50%;margin: 0 8rpx;display: inline-block;}
  568. .co16{
  569. .cir{background: #16BE7F;}
  570. }
  571. .co01{
  572. .cir{background: #0156FE;}
  573. }
  574. .tit{font-weight: bold;font-size: 32rpx;}
  575. .txt{font-weight: 500;font-size: 26rpx;color: #272727;}
  576. .txtbtn{min-width: 82rpx;
  577. height: 32rpx;font-weight: 500;font-size: 20rpx;color: #45CB99;
  578. border-radius: 16rpx;border: 1px solid #45CB99;margin-left: 12rpx;}
  579. .cara{flex: 0 0 auto;width: 232rpx;height: 74rpx;margin-right: 40rpx;}
  580. .carb{flex: 0 0 auto;width: 278rpx;height: 130rpx;}
  581. }
  582. .carlf{padding:26rpx 0 10rpx;
  583. .clflist{font-weight: 500;font-size: 26rpx;color: #666666;margin-bottom: 16rpx;}
  584. }
  585. }
  586. .carlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;
  587. .ctop{border-bottom: 2rpx solid #E5E5E5;padding:26rpx 24rpx;
  588. .imgs{width: 40rpx;height: 42rpx;margin-right: 30rpx;}
  589. .tit{font-size: 32rpx;color: #272727;font-weight: bold;margin-right: 14rpx;}
  590. .txt{font-weight: 500;font-size: 26rpx;
  591. &.ca{color: #3565ED;}
  592. &.cb{color: #FE5A0E;}
  593. &.cc{color: #28C529;}
  594. }
  595. .txta{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  596. .num{font-size: 24rpx;color: #AAAAAA;}
  597. }
  598. .btn{height: 34rpx;border-radius: 18rpx;display: flex;align-items: center;justify-content: center;padding: 0 10rpx;font-size: 22rpx;margin-right: 24rpx;
  599. &.btna{border: 2rpx solid #06C770;color: #06C770;}
  600. &.btnb{border: 2rpx solid #3565ED;color: #3565ED;}
  601. &.btnc{border: 2rpx solid #FE5A0E;color: #FE5A0E;}
  602. &.btnbga{border: 1px solid #0156FE;color: #3565ED;background: #DFEAFF;height: 36rpx;}
  603. &.btnbgb{border: 1px solid #C1C1C1;color: #666666;background: #F1F1F1;height: 36rpx;}
  604. &.btnbgc{border: 1px solid #FE5A0E;color:#FE5A0E;background:#FFEEE6;height: 36rpx;}
  605. }
  606. .clists{padding: 24rpx 24rpx 8rpx;
  607. .clist{font-weight: 500;margin-bottom: 16rpx;
  608. font-size: 26rpx;color: #272727;display: flex;line-height: 34rpx;
  609. .tit{font-size: 26rpx;color: #AAAAAA;flex: 0 0 auto;margin-right: 16rpx;min-width: 108rpx;text-align-last: justify;}
  610. .imgas{display: flex;align-items: center;flex-wrap: wrap;
  611. image{width: 142rpx;height: 142rpx;margin-right: 30rpx;margin-top: 8rpx;}
  612. }
  613. }
  614. .w50{
  615. .clist{width: 50%;}
  616. }
  617. }
  618. }
  619. // 收货地址
  620. .adrlist{border-bottom: 2rpx solid #E5E5E5;padding: 34rpx 0 34rpx 8rpx;
  621. .tit{font-weight: 500;font-size: 22rpx;color: #666666;}
  622. .txt{font-size: 28rpx;color: #272727;font-weight: bold;}
  623. .txts{font-weight: 500;font-size: 26rpx;color: #272727;}
  624. .btns{font-weight: 500;font-size: 22rpx;color: #0256FD;padding: 2rpx 14rpx;display:inline-block;background: #C9DBFF;
  625. border-radius: 10rpx;}
  626. .adrr{width: 40rpx;height: 40rpx;flex: 0 0 auto;margin-left: 12rpx;
  627. image{width: 22rpx;height: 22rpx;}
  628. }
  629. &.act{
  630. .tit{color: #0256FD;}
  631. .txt{color: #0256FD;}
  632. .txts{color: #0256FD;}
  633. }
  634. }
  635. // 快递
  636. .kdlists{padding: 24rpx 26rpx;background-color: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;
  637. .kdll{width: 140rpx;height: 140rpx;border-radius: 10rpx;margin-right: 32rpx;flex: 0 0 auto;}
  638. .kdlr{
  639. .tit{font-size: 30rpx;color: #272727;font-weight: bold;margin-bottom: 18rpx;margin-top: 4rpx;}
  640. .tits{font-size: 24rpx;color: #272727;font-weight: 500;margin-bottom: 14rpx;}
  641. .txt{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  642. }
  643. }
  644. // 快递步骤条
  645. .hfstep{padding: 0 32rpx 44rpx 32rpx;
  646. .hfslist{padding-bottom: 44rpx;position: relative;
  647. &::before{content: '';position: absolute;left: 14rpx;top:14rpx;height: 100%;width: 2rpx;background: #E6E6E6;}
  648. .limg{width: 30rpx;height: 30rpx;margin-right: 22rpx;flex: 0 0 auto;margin-top:3rpx;
  649. .imga{width: 30rpx;height: 30rpx;}
  650. .imgb{width: 18rpx;height: 18rpx;}
  651. }
  652. .hfstit{font-weight: bold;font-size: 26rpx;color: #666666;line-height: 36rpx;margin-bottom: 24rpx;}
  653. .hfstxt{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;padding-left: 8rpx;}
  654. }
  655. }
  656. .carlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;
  657. .ctop{border-bottom: 2rpx solid #E5E5E5;padding:26rpx 24rpx;
  658. .imgs{width: 40rpx;height: 42rpx;margin-right: 30rpx;}
  659. .tit{font-size: 32rpx;color: #272727;font-weight: bold;margin-right: 14rpx;}
  660. .txt{font-weight: 500;font-size: 26rpx;
  661. &.ca{color: #3565ED;}
  662. &.cb{color: #FE5A0E;}
  663. &.cc{color: #28C529;}
  664. }
  665. .txta{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  666. .num{font-size: 24rpx;color: #AAAAAA;}
  667. }
  668. .btn{height: 34rpx;border-radius: 18rpx;display: flex;align-items: center;justify-content: center;padding: 0 10rpx;font-size: 22rpx;margin-right: 24rpx;
  669. &.btna{border: 2rpx solid #06C770;color: #06C770;}
  670. &.btnb{border: 2rpx solid #3565ED;color: #3565ED;}
  671. &.btnc{border: 2rpx solid #FE5A0E;color: #FE5A0E;}
  672. &.btnbga{border: 1px solid #0156FE;color: #3565ED;background: #DFEAFF;height: 36rpx;}
  673. &.btnbgb{border: 1px solid #C1C1C1;color: #666666;background: #F1F1F1;height: 36rpx;}
  674. &.btnbgc{border: 1px solid #FE5A0E;color:#FE5A0E;background:#FFEEE6;height: 36rpx;}
  675. }
  676. }
  677. // 人员
  678. .peolist{
  679. .ctop{padding: 24rpx 24rpx 22rpx;}
  680. .imgs{margin-right: 16rpx !important;}
  681. .tit{font-size: 28rpx !important;}
  682. .plists{padding: 30rpx 24rpx 6rpx;
  683. .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;
  684. .head{width: 96rpx;height: 98rpx;margin-right: 32rpx;flex: 0 0 auto;}
  685. .ptit{font-weight: bold;font-size: 30rpx;color: #272727;display: flex;align-items: center;margin-bottom: 14rpx;}
  686. .ptxt{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;margin-bottom: 14rpx;min-width: 176rpx;}
  687. }
  688. }
  689. .upimg{width: 26rpx;height: 22rpx;display: block;transform: rotate(180deg);transition: all 0.3s;margin: 0 auto 18rpx;
  690. &.act{transform: rotate(0deg);}
  691. }
  692. }
  693. // 房屋管理
  694. .houselist{position: relative;
  695. .clists{padding-bottom: 2rpx !important;}
  696. .clist{margin-bottom: 22rpx !important;}
  697. .hedit{width: 22rpx;height: 22rpx;flex: 0 0 auto;marign-left:16rpx;}
  698. .shimg{width: 117rpx;height: 78rpx;position: absolute;right: 26rpx;bottom: 20rpx;}
  699. // .btns{justify-content: flex-end;
  700. // view{min-width: 156rpx;font-weight: 500;font-size: 26rpx;margin-right: 24rpx;border-radius: 20rpx;padding: 6rpx 8rpx;box-sizing: border-box;text-align: center;margin-bottom: 26rpx;
  701. // &.bga{border: 2rpx solid #FE5A0E;background: #FFF8F5;color: #FE5A0E;}
  702. // &.bgb{border: 2rpx solid #0256FD;background: #F1F5FC;color: #0256FD;}
  703. // &.bgc{border: 2rpx solid #06C770;background: #EEF8F4;color: #06C770;}
  704. // }
  705. // }
  706. }
  707. // 互动
  708. .pd12{padding: 24rpx;}
  709. .hdlist{background: #FFFFFF;border-radius: 20rpx;position: relative;z-index: 1;
  710. .mhead{width: 56rpx;height: 56rpx;margin-right: 20rpx;border-radius: 50%}
  711. .name{font-size: 28rpx;font-weight: bold;color: #272727;height: 56rpx;line-height: 56rpx;}
  712. .tit{font-weight: 500;font-size: 22rpx;color: #666666;}
  713. .time{font-weight: 500;font-size: 22rpx;color: #666666;}
  714. .line{width: 6rpx;height: 28rpx;border-radius: 4rpx;margin-right: 12rpx;
  715. &.bga{background: #FACA7D;}
  716. &.bgb{background: #86AFFF;}
  717. &.bgc{background: #93E9C2;}
  718. &.bgd{background: #DADADA;}
  719. }
  720. .txt{font-weight: 500;font-size: 26rpx;color: #272727;line-height: 36rpx;}
  721. .txta{font-weight: 500;font-size: 26rpx;color: #666666;}
  722. .rimg{width: 12rpx;height: 22rpx;}
  723. .shbtns{border-top: 2rpx solid #DADADA;
  724. .btn{border-radius: 20rpx;min-width: 110rpx;box-sizing: border-box;padding: 0 16rpx;
  725. height: 52rpx;display: flex;align-items: center;justify-content: center;flex:0 0 auto;margin-left: 20rpx;
  726. &.bga{border: 2rpx solid #06C770;background: #DAEFE6;color: #06C770;margin-left: 0;}
  727. &.bgb{border: 2rpx solid #FF6969;;background: #FFE7E7;color: #FF6969;}
  728. &.bgc{background: #0256FD;color: #FFFFFF;}
  729. }
  730. }
  731. }
  732. // 无数据
  733. .nodata{display: flex;flex-direction: column;align-items: center;
  734. image{width: 440rpx;height: 440rpx;}
  735. view{font-size: 30rpx;color: #666666;font-weight: bold;}
  736. }
  737. </style>