From 805546268abc5687dbefdd40cd927da62b096fad Mon Sep 17 00:00:00 2001
From: li-guang <153605324@qq.com>
Date: Thu, 31 Dec 2020 16:50:00 +0800
Subject: [PATCH] 领用
---
hive-app/pages/member/skinDetection.vue | 55 +++++++++++++++++++++++++------------------------------
1 files changed, 25 insertions(+), 30 deletions(-)
diff --git a/hive-app/pages/member/skinDetection.vue b/hive-app/pages/member/skinDetection.vue
index f6a4681..5524612 100644
--- a/hive-app/pages/member/skinDetection.vue
+++ b/hive-app/pages/member/skinDetection.vue
@@ -1,63 +1,58 @@
<template>
<view class="container">
- <view class="list-item">
- <navigator url="./skinDetectionDetail?title=皮肤色斑检测分析" hover-class="">
+ <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">皮肤色斑检测分析</text>
- <text class="gray">2020-12-08 10:12:48</text>
+ <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">李广</text>
+ <text class="gray">{{item.checkUserName}}</text>
</view>
<view class="flex justify-between">
<text>检测门店</text>
- <text class="gray">梅溪湖店</text>
+ <text class="gray">{{item.shopName}}</text>
</view>
</view>
</navigator>
</view>
- <view class="list-item">
- <navigator url="./skinDetectionDetail?title=皮肤色斑检测分析" hover-class="">
- <view class="list-header">
- <text class="name">皮肤色斑检测分析</text>
- <text class="gray">2020-12-08 10:12:48</text>
- </view>
- <view class="list-content">
- <view class="flex justify-between">
- <text>检测师</text>
- <text class="gray">李广</text>
- </view>
- <view class="flex justify-between">
- <text>检测门店</text>
- <text class="gray">梅溪湖店</text>
- </view>
- </view>
- </navigator>
- </view>
+ <no-record :isShow="!list.length" txt="暂无检测报告"></no-record>
</view>
</template>
<script>
export default{
- components:{
-
- },
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: #F2f2f2;
+ background: #F6F6F8;
}
.container{
padding: 15px 10px;
--
Gitblit v1.9.1