123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <template>
- <view>
- <!-- 第一种样式 人员管理-->
- <block v-if="datainfo.length>0">
- <block v-if="type=='mycar'">
- <view class="carlist" v-for="(ite,idx) in datainfo" :key="idx">
- <view class="carltop flexc">
- <view class="flex1">
- <view class="tit mb6" :class="ite.type==1?'co01':'co16'">皖A 86KY2·白</view>
- <view class="txt flexc">奔驰·E300L
- <view class="txtbtn flexcc" v-if="ite.type==2">新能源</view>
- </view>
- </view>
- <image :src="cara" class="cara" v-if="ite.type==1"></image>
- <image :src="carb" class="carb" v-if="ite.type==2"></image>
- </view>
- <view class="carlf">
- <view class="clflist">发动机号码 :916509</view>
- <view class="clflist">车辆识别代号:LFV2A21K7D4044585</view>
- <view class="flexc">
- <view class="clflist w50">注册日期:2015-03-18</view>
- <view class="clflist w50">发证日期:2015-03-18</view>
- </view>
- </view>
- </view>
- </block>
- <!-- 地址 -->
- <block v-if="type=='address'">
- <view class="adrlist flexc" :class="ite.isdefault?'act':''" v-for="(ite,idx) in datainfo" :key="idx">
- <view class="adrl flex1">
- <view class="tit mb5">安徽省 合肥市 蜀山区 高新技术产业开发区</view>
- <view class="txt mb5">幸福大街88号幸福小区12#1304</view>
- <view class="txts flexc">袁玥 <text class="ml8">18305687768</text>
- <text class="ml8 btns" v-if="ite.isdefault">默认</text>
- <text class="ml8 btns" v-if="ite.isuser">最近使用</text>
- </view>
- </view>
- <view class="adrr flexcc">
- <image :src="edit"></image>
- </view>
- </view>
- </block>
- <view class="shax" v-if="wtdt">{{wtdt}}</view>
- </block>
- <!-- 无数据 -->
- <view class="nodata" v-else>
- <image :src="noiconpimg"></image>
- <view>
- 暂无数据
- </view>
- </view>
- </view>
- </template>
- <script>
- import config from '@/config'
- export default{
- props:{
- datainfo: {
- type: Array,
- default () {
- return []
- }
- },
- wtdt:{
- type:String,
- default () {
- return ''
- }
- },
- type:{
- type:String,
- default () {
- return 0
- }
- },
- topval:{
- type:String,
- default () {
- return ''
- }
- }
- },
- data(){
- return{
- noiconpimg:require("@/mine/static/nodata.png"),
- cara:require("@/mine/static/house/cara.png"),
- carb:require("@/mine/static/house/carb.png"),
- edit:require("@/mine/static/edit.png"),
-
- baseUrl:config.baseUrl,
-
- }
- },
- mounted() {
-
- },
- methods:{
- getDetail(e){
- this.$emit('getdetail',e)
- },
- getPreview(idx,arr) {
- var newArr=[];
- arr.forEach(ite=>{
- var ds=this.baseUrl+ite
- newArr.push(ds)
- })
- uni.previewImage({
- urls: newArr,
- current:idx,
- success: function(data) {},
- fail: function(err) {}
- });
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .flex{display: flex;}
- .flexc{display: flex;align-items: center;}
- .mb10{margin-bottom: 20rpx;}
- .carlist{background: #FFFFFF;border-radius: 20rpx;margin-bottom: 24rpx;padding: 0 24rpx;
- .carltop{min-height: 154rpx;border-bottom: 2rpx solid #E5E5E5;
- .tit{font-weight: bold;font-size: 32rpx;}
- .txt{font-weight: 500;font-size: 26rpx;color: #272727;}
- .txtbtn{min-width: 82rpx;
- height: 32rpx;font-weight: 500;font-size: 20rpx;color: #45CB99;
- border-radius: 16rpx;border: 1px solid #45CB99;margin-left: 12rpx;}
- .cara{flex: 0 0 auto;width: 232rpx;height: 74rpx;margin-right: 40rpx;}
- .carb{flex: 0 0 auto;width: 278rpx;height: 130rpx;}
- }
- .carlf{padding:26rpx 0 10rpx;
- .clflist{font-weight: 500;font-size: 26rpx;color: #666666;margin-bottom: 16rpx;}
- }
- }
- // 收货地址
- .adrlist{border-bottom: 2rpx solid #E5E5E5;padding: 34rpx 0 34rpx 8rpx;
- .tit{font-weight: 500;font-size: 22rpx;color: #666666;}
- .txt{font-size: 28rpx;color: #272727;font-weight: bold;}
- .txts{font-weight: 500;font-size: 26rpx;color: #272727;}
- .btns{font-weight: 500;font-size: 22rpx;color: #0256FD;padding: 2rpx 14rpx;display:inline-block;background: #C9DBFF;
- border-radius: 10rpx;}
- .adrr{width: 40rpx;height: 40rpx;flex: 0 0 auto;margin-left: 12rpx;
- image{width: 22rpx;height: 22rpx;}
- }
- &.act{
- .tit{color: #0256FD;}
- .txt{color: #0256FD;}
- .txts{color: #0256FD;}
- }
- }
- // 无数据
- .nodata{display: flex;flex-direction: column;align-items: center;
- image{width: 440rpx;height: 440rpx;}
- view{font-size: 30rpx;color: #666666;font-weight: bold;}
- }
- </style>
|