80 lines
1.7 KiB
Vue
80 lines
1.7 KiB
Vue
<template>
|
|
<view class="wrap">
|
|
<view class="layout-open bg-white">
|
|
<view class="title">最新开通</view>
|
|
<view class="open-box flex justify-between flex-wrap">
|
|
<view class="li" @click="toCompany(item._id)" v-for="(item, index) in latestCompanyList" :key="index">{{ item.company.companyName }}</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
data() {
|
|
return {
|
|
isLogin: false,
|
|
latestCompanyList: []
|
|
}
|
|
},
|
|
methods: {
|
|
async getLatestCompanyList() {
|
|
const {rows} = await vk.callFunction({
|
|
url: 'client/user/pub/getCompany',
|
|
data: {
|
|
pageIndex: 1,
|
|
pageSize: 8,
|
|
authStatus: 1
|
|
}
|
|
})
|
|
this.latestCompanyList = rows
|
|
},
|
|
toCompany(id) {
|
|
vk.navigateTo(`/pages/yellow/detail?id=${id}`)
|
|
},
|
|
},
|
|
mounted() {
|
|
this.getLatestCompanyList()
|
|
},
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.layout-open {
|
|
margin: 10rpx 30rpx;
|
|
padding: 20rpx 20rpx;
|
|
.title {
|
|
font-size: 32rpx;
|
|
font-weight: 500;
|
|
line-height: 40rpx;
|
|
color: #A92924;
|
|
}
|
|
.open-box {
|
|
padding: 10rpx 0;
|
|
min-height: 80rpx;
|
|
.li {
|
|
position: relative;
|
|
width: 48%;
|
|
height: 40rpx;
|
|
overflow: hidden;
|
|
font-size: 24rpx;
|
|
font-weight: 500;
|
|
line-height: 40rpx;
|
|
color: #666666;
|
|
text-indent: 1em;
|
|
&:before {
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
z-index: 9;
|
|
content: '';
|
|
width: 2px;
|
|
height: 2px;
|
|
border-radius: 50%;
|
|
background: #333333;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
</style>
|