list.vue 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  1. <template>
  2. <view>
  3. <!-- 第一种样式 人员管理-->
  4. <block v-if="datainfo.length>0">
  5. <block v-if="type=='mycar'">
  6. <view class="carlist" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail(ite.houseId)">
  7. <view class="carltop flexc">
  8. <view class="flex1">
  9. <view class="tit mb6" :class="ite.vehicleType==1?'co01':'co16'">{{ite.plateNumber}}</view>
  10. <view class="txt flexc">{{ite.plateNumber}}
  11. <view class="txtbtn flexcc">{{ite.vehicleType}}</view>
  12. <!-- <view class="txtbtn flexcc" v-if="ite.vehicleType==2">新能源</view> -->
  13. </view>
  14. </view>
  15. <image :src="cara" class="cara" v-if="ite.vehicleType==1"></image>
  16. <image :src="carb" class="carb" v-if="ite.vehicleType==2"></image>
  17. </view>
  18. <view class="carlf">
  19. <view class="clflist">发动机号码 :{{ite.engineNumber}}</view>
  20. <view class="clflist">车辆识别代号:{{ite.identificationNumber}}</view>
  21. <view class="flexc">
  22. <view class="clflist w50">注册日期:{{ite.registrationDate}}</view>
  23. <view class="clflist w50">发证日期:{{ite.issueDate}}</view>
  24. </view>
  25. </view>
  26. </view>
  27. </block>
  28. <!-- 地址 -->
  29. <block v-if="type=='address'">
  30. <view class="adrlist flexc" :class="ite.isdefault?'act':''" v-for="(ite,idx) in datainfo" :key="idx">
  31. <view class="adrl flex1">
  32. <view class="tit mb5">安徽省 合肥市 蜀山区 高新技术产业开发区</view>
  33. <view class="txt mb5">幸福大街88号幸福小区12#1304</view>
  34. <view class="txts flexc">袁玥 <text class="ml8">18305687768</text>
  35. <text class="ml8 btns" v-if="ite.isdefault">默认</text>
  36. <text class="ml8 btns" v-if="ite.isuser">最近使用</text>
  37. </view>
  38. </view>
  39. <view class="adrr flexcc">
  40. <image :src="edit"></image>
  41. </view>
  42. </view>
  43. </block>
  44. <!-- 快递 -->
  45. <block v-if="type=='delivery'">
  46. <view class="kdlists flex" v-for="(ite,idx) in datainfo" :key="idx" @click="getDetail">
  47. <image :src="noiconpimg" class="kdll"></image>
  48. <view class="kdlr over flex1">
  49. <view class="over tit">已发货</view>
  50. <view class="over tits">包裹正在等待揽收</view>
  51. <view class="over txt">淘宝 | 白色晚礼服平时可穿毕业洋装小白裙…</view>
  52. </view>
  53. </view>
  54. </block>
  55. <!-- 步骤条 -->
  56. <block v-if="type=='kdstep'">
  57. <view class="hfstep">
  58. <view class="hfslist flex">
  59. <view class="limg flexccc">
  60. <image :src="cira" class="imga"></image>
  61. </view>
  62. <view class="flex1">
  63. <view class="hfstit co01">运输中 11-25 12:24</view>
  64. <view class="hfstxt co27">【合肥市】快件已到达 合肥蜀山新产业园</view>
  65. </view>
  66. </view>
  67. <view class="hfslist flex">
  68. <view class="limg flexccc">
  69. <image :src="cirb" class="imgb"></image>
  70. </view>
  71. <view class="flex1">
  72. <view class="hfstit">11-25 07:23</view>
  73. <view class="hfstxt">【合肥市】快件已发往 合肥蜀山新产业园</view>
  74. </view>
  75. </view>
  76. <view class="hfslist flex">
  77. <view class="limg flexccc">
  78. <image :src="cirb" class="imgb"></image>
  79. </view>
  80. <view class="flex1">
  81. <view class="hfstit">11-25 07:20</view>
  82. <view class="hfstxt">【合肥市】快件已到达 合肥转运中心</view>
  83. </view>
  84. </view>
  85. </view>
  86. </block>
  87. <view class="shax" v-if="wtdt">{{wtdt}}</view>
  88. </block>
  89. <!-- 无数据 -->
  90. <view class="nodata" v-else>
  91. <image :src="noiconpimg"></image>
  92. <view>
  93. 暂无数据
  94. </view>
  95. </view>
  96. </view>
  97. </template>
  98. <script>
  99. import config from '@/config'
  100. export default{
  101. props:{
  102. datainfo: {
  103. type: Array,
  104. default () {
  105. return []
  106. }
  107. },
  108. wtdt:{
  109. type:String,
  110. default () {
  111. return ''
  112. }
  113. },
  114. type:{
  115. type:String,
  116. default () {
  117. return 0
  118. }
  119. },
  120. },
  121. data(){
  122. return{
  123. noiconpimg:require("@/static/images/nodata.png"),
  124. cara:require("@/mine/static/house/cara.png"),
  125. carb:require("@/mine/static/house/carb.png"),
  126. edit:require("@/mine/static/edit.png"),
  127. cira:require('@/news/static/complaint/cira.png'),
  128. cirb:require('@/news/static/complaint/cirb.png'),
  129. baseUrl:config.baseUrl,
  130. }
  131. },
  132. mounted() {
  133. },
  134. methods:{
  135. getDetail(e){
  136. this.$emit('getDetail',e)
  137. },
  138. getPreview(idx,arr) {
  139. var newArr=[];
  140. arr.forEach(ite=>{
  141. var ds=this.baseUrl+ite
  142. newArr.push(ds)
  143. })
  144. uni.previewImage({
  145. urls: newArr,
  146. current:idx,
  147. success: function(data) {},
  148. fail: function(err) {}
  149. });
  150. },
  151. }
  152. }
  153. </script>
  154. <style lang="scss" scoped>
  155. .flex{display: flex;}
  156. .flexc{display: flex;align-items: center;}
  157. .mb10{margin-bottom: 20rpx;}
  158. .carlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;padding: 0 24rpx;
  159. .carltop{min-height: 154rpx;border-bottom: 2rpx solid #E5E5E5;
  160. .tit{font-weight: bold;font-size: 32rpx;}
  161. .txt{font-weight: 500;font-size: 26rpx;color: #272727;}
  162. .txtbtn{min-width: 82rpx;
  163. height: 32rpx;font-weight: 500;font-size: 20rpx;color: #45CB99;
  164. border-radius: 16rpx;border: 1px solid #45CB99;margin-left: 12rpx;}
  165. .cara{flex: 0 0 auto;width: 232rpx;height: 74rpx;margin-right: 40rpx;}
  166. .carb{flex: 0 0 auto;width: 278rpx;height: 130rpx;}
  167. }
  168. .carlf{padding:26rpx 0 10rpx;
  169. .clflist{font-weight: 500;font-size: 26rpx;color: #666666;margin-bottom: 16rpx;}
  170. }
  171. }
  172. // 收货地址
  173. .adrlist{border-bottom: 2rpx solid #E5E5E5;padding: 34rpx 0 34rpx 8rpx;
  174. .tit{font-weight: 500;font-size: 22rpx;color: #666666;}
  175. .txt{font-size: 28rpx;color: #272727;font-weight: bold;}
  176. .txts{font-weight: 500;font-size: 26rpx;color: #272727;}
  177. .btns{font-weight: 500;font-size: 22rpx;color: #0256FD;padding: 2rpx 14rpx;display:inline-block;background: #C9DBFF;
  178. border-radius: 10rpx;}
  179. .adrr{width: 40rpx;height: 40rpx;flex: 0 0 auto;margin-left: 12rpx;
  180. image{width: 22rpx;height: 22rpx;}
  181. }
  182. &.act{
  183. .tit{color: #0256FD;}
  184. .txt{color: #0256FD;}
  185. .txts{color: #0256FD;}
  186. }
  187. }
  188. // 快递
  189. .kdlists{padding: 24rpx 26rpx;background-color: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;
  190. .kdll{width: 140rpx;height: 140rpx;border-radius: 10rpx;margin-right: 32rpx;flex: 0 0 auto;}
  191. .kdlr{
  192. .tit{font-size: 30rpx;color: #272727;font-weight: bold;margin-bottom: 18rpx;margin-top: 4rpx;}
  193. .tits{font-size: 24rpx;color: #272727;font-weight: 500;margin-bottom: 14rpx;}
  194. .txt{font-weight: 500;font-size: 24rpx;color: #AAAAAA;}
  195. }
  196. }
  197. // 快递步骤条
  198. .hfstep{padding: 0 32rpx 44rpx 32rpx;
  199. .hfslist{padding-bottom: 44rpx;position: relative;
  200. &::before{content: '';position: absolute;left: 14rpx;top:14rpx;height: 100%;width: 2rpx;background: #E6E6E6;}
  201. .limg{width: 30rpx;height: 30rpx;margin-right: 22rpx;flex: 0 0 auto;margin-top:3rpx;
  202. .imga{width: 30rpx;height: 30rpx;}
  203. .imgb{width: 18rpx;height: 18rpx;}
  204. }
  205. .hfstit{font-weight: bold;font-size: 26rpx;color: #666666;line-height: 36rpx;margin-bottom: 24rpx;}
  206. .hfstxt{font-weight: 500;font-size: 26rpx;color: #666666;line-height: 36rpx;padding-left: 8rpx;}
  207. }
  208. }
  209. // 无数据
  210. .nodata{display: flex;flex-direction: column;align-items: center;
  211. image{width: 440rpx;height: 440rpx;}
  212. view{font-size: 30rpx;color: #666666;font-weight: bold;}
  213. }
  214. </style>