Blame view

pages/mapdoorplate/mapdoorplatelist.vue 1.46 KB
1f3f2378   起风了   我的第一次
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
  <template>
  	<view >
  		<view class="content"  v-for="(item,index) in list" :key="index">

  			<view class="box_item">

  				<view class="box_left">

  					<span class="f1">{{item.name}}</span>

  					<span class="f2">{{item.address}}</span>

  				</view>

  				<view class="box_right">

  					{{item.status?item.status:'正在审核'}}

  				</view>

  			</view>

  		</view>
  	</view>
  </template>
  
  <script>
  	export default {
  		data() {
  			return {
  				list:[],

  				from:{

  					createdUser:uni.getStorageSync('USERS_KEY').userId,

  				}
  			}
  		},

  		onLoad() {

  			this.getlist()

  		},
  		methods: {

  			getlist() {

  				this.API.getroadSign(this.from).then(res=>{

  					console.log(res);

  					this.list = res.rows

  				})

  			},
  			xwtz(){

  				uni.navigateTo({

  					url:"/pages/xw/xw"

  				})

  			}
  		}
  	}
  </script>
  
  <style lang="scss">
  	.content{

  		padding: 20rpx;

  		.box_item{

  			background-color: #fff;

  			display: flex;

  			padding: 20rpx 40rpx;

  			border-radius: 20rpx;

  			align-items: center;

  			.box_left{

  				display: flex;

  				flex-direction: column;

  				justify-content: space-between;

  				width: 58%;

  				margin-right: 2%;

  				.f1{

  					font-size: 35rpx;

  					font-weight: 600;

  					display: block;

  					margin-bottom: 20rpx;

  				}

  				.f2{

  					color: #ababab;

  					display: -webkit-box;

  					-webkit-box-orient: vertical;

  					-webkit-line-clamp: 1;

  					overflow: hidden;

  				}

  			}

  			.box_right{

  				width: 40%;

  				text-align: right;

  			}

  		}

  	}
  </style>