78 lines
1.2 KiB
Vue
78 lines
1.2 KiB
Vue
![]() |
<template>
|
||
|
<view class="box">
|
||
|
<view class="li" v-for="item,index in dataList" :key="index" @tap="navgo('/subpkg/property/chosseCompany')">
|
||
|
<view class="date">
|
||
|
<!-- 2023.07.24 -->
|
||
|
<!-- {{item.}} -->
|
||
|
</view>
|
||
|
<view class="text">
|
||
|
<!-- {{item.}} -->
|
||
|
</view>
|
||
|
<view class="detail">
|
||
|
<u-icon name="arrow-right"></u-icon>
|
||
|
</view>
|
||
|
</view>
|
||
|
</view>
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
import {
|
||
|
getAgencyList,
|
||
|
} from "@/api/property.js"
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
dataList: [1, 1, 1]
|
||
|
}
|
||
|
},
|
||
|
methods: {
|
||
|
navgo(url) {
|
||
|
uni.navigateTo({
|
||
|
url
|
||
|
})
|
||
|
}
|
||
|
},
|
||
|
onLoad() {
|
||
|
getAgencyList().then(res => {
|
||
|
// this.dataList=res
|
||
|
})
|
||
|
}
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<style>
|
||
|
.box {
|
||
|
padding: 20rpx;
|
||
|
}
|
||
|
|
||
|
.li {}
|
||
|
|
||
|
.li {
|
||
|
background-color: #fff;
|
||
|
margin-bottom: 10rpx;
|
||
|
padding: 20rpx;
|
||
|
border-radius: 15rpx;
|
||
|
|
||
|
display: flex;
|
||
|
justify-content: space-between;
|
||
|
|
||
|
.date {
|
||
|
background-color: #FF7C32;
|
||
|
color: white;
|
||
|
padding: 0 10rpx;
|
||
|
border-radius: 15rpx;
|
||
|
// width: 170rpx;
|
||
|
}
|
||
|
|
||
|
.text {
|
||
|
// background-color: lightyellow;
|
||
|
max-width: 450rpx;
|
||
|
|
||
|
}
|
||
|
|
||
|
.detail {
|
||
|
// background-color: black;
|
||
|
// width: 50rpx;
|
||
|
}
|
||
|
}
|
||
|
</style>
|