<template>
|
<view class="container">
|
<view class="list-item" v-for="item in list">
|
<navigator :url="'./skinDetectionDetail?id='+item.id+'&title='+(item.title?item.title:'')" hover-class="" >
|
<view class="list-header">
|
<text class="name">{{item.title || '-'}}</text>
|
<text class="gray">{{item.checkTime}}</text>
|
</view>
|
<view class="list-content">
|
<view class="flex justify-between">
|
<text>检测师</text>
|
<text class="gray">{{item.checkUserName}}</text>
|
</view>
|
<view class="flex justify-between">
|
<text>检测门店</text>
|
<text class="gray">{{item.shopName}}</text>
|
</view>
|
</view>
|
</navigator>
|
</view>
|
<no-record :isShow="!list.length" txt="暂无检测报告"></no-record>
|
</view>
|
</template>
|
|
<script>
|
export default{
|
data(){
|
return {
|
id: '',
|
list: []
|
}
|
},
|
onLoad(options) {
|
this.id = options.id;
|
this.loadList()
|
},
|
methods:{
|
loadList(){
|
this.$httpUtils.request('/api/skinCheck/findSkinCheckList', {
|
pageNum: 1,
|
pageSize: 100,
|
vipId: this.id
|
}, 'POST').then((res) => {
|
if(res.status == 200){
|
this.list = res.rows;
|
}
|
})
|
}
|
}
|
}
|
</script>
|
|
<style>
|
page{
|
background: #F6F6F8;
|
}
|
.container{
|
padding: 15px 10px;
|
}
|
.list-item{
|
background: #FFFFFF;
|
color: #3a3f3f;
|
font-size: 14px;
|
padding: 12px 15px;
|
border-radius: 4px;
|
margin-bottom: 10px;
|
}
|
.list-header{
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
}
|
.list-header .name{
|
font-size: 15px;
|
font-weight: bold;
|
}
|
.list-content{
|
padding-top: 10px;
|
line-height: 26px;
|
}
|
</style>
|