49 lines
1.6 KiB
Vue
49 lines
1.6 KiB
Vue
<template>
|
||
<view class="wrap">
|
||
<!-- 吸顶 -->
|
||
<u-sticky offset-top="0" customNavHeight="0">
|
||
<!-- 顶部 -->
|
||
<uititle title="我的询价"></uititle>
|
||
</u-sticky>
|
||
<view class="p-30">
|
||
<view v-for="(item, index) in list" :key="index" class="card mb-20 text-25">
|
||
<view class="mb-15">联系人:{{ item.name }}</view>
|
||
<view class="mb-15">询价区域:{{ item.province.name }}{{ item.city.name }}</view>
|
||
<view class="mb-15">联系方式:{{ item.phone }}</view>
|
||
<view class="mb-15">企业名称:{{ item.company }}</view>
|
||
<view class="mb-15">询价日期:{{ item._add_time_str }}</view>
|
||
<template v-if="item.files">
|
||
<view class="mb-15">附件列表</view>
|
||
<file-type v-for="(item0, index0) in item.files" :key="index0" :item="item0"/>
|
||
</template>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
import uititle from "@/components/common/title.vue";
|
||
import FileType from "@/components/file-type/file-type.vue";
|
||
|
||
export default {
|
||
name: "list",
|
||
components: {FileType, uititle},
|
||
data() {
|
||
return {
|
||
list: []
|
||
}
|
||
},
|
||
methods: {
|
||
async getList() {
|
||
const {rows} = await vk.callFunction({
|
||
url: 'client/selfSupport/kh/getList',
|
||
})
|
||
this.list = rows
|
||
this.showList = true
|
||
},
|
||
},
|
||
onLoad() {
|
||
this.getList()
|
||
}
|
||
}
|
||
</script> |