路泰科技体检小程序UI设计新版本
1
wwl
5 天以前 a6cdbcfe28fcc40ebb4919f57d60fb20122e8e57
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<template>
  <view class="box">
    <view class="page">
      <view class="header">
        <view class="search-bar">
          <view class="search-input">
            <uni-icons type="search" size="16" color="#999999" />
            <input type="text" placeholder="搜索报告" placeholder-class="placeholder" />
          </view>
          <text class="search-btn">搜索</text>
        </view>
      </view>
 
      <scroll-view class="content" scroll-y>
        <view class="report-list">
          <view v-for="(item, index) in reportList" :key="index" class="report-item"  @click="ReportDetails(item.tjNumber)">
            <view class="report-header">
              <view class="user-info">
                <text class="name">{{ item.cusName || '未知姓名' }}</text>
                <text class="code">体检码:{{ item.tjNumber }}</text>
              </view>
              <text class="status">{{item.status}}</text>
            </view>
            <view class="report-info">
              <text class="age-gender">{{ item.age }}岁 | {{ item.cusSex ? '女' : '男' }}</text>
              <text class="date">{{ item.createTime }}</text>
            </view>
            <view class="hospital">
              <text>{{ item.hospital || '泾川县人民医院健康体检中心' }}</text>
            </view>
          </view>
        </view>
      </scroll-view>
 
<!--      <view class="footer">
        <button class="upload-btn">
          <text>拍照上传</text>
        </button>
        <button class="compare-btn" type="primary" @click="ReportDetails()">
          <text>报告对比</text>
        </button>
      </view> -->
    </view>
  </view>
</template>
 
<script>
import { getReportList } from "@/api/system/report";
 
export default {
  name: 'App',
  data() {
    return {
      reportList: [],
      cusIdCard: '',
    };
  },
  onLoad(options) {
    this.cusIdCard = options.cusIdCard || '';
    if (this.cusIdCard) {
      this.getList();
    } else {
      this.$modal.showToast('缺少身份证号参数');
    }
  },
  methods: {
    /** 查询体检报告列表 */
    getList() {
      getReportList(this.cusIdCard).then((response) => {
        if (response.data) {
          this.reportList = response.data;
          console.log('报告列表:', this.reportList);
        } else {
          this.$modal.showToast('还未生成体检报告');
        
        }
      }).catch(err => {
        console.error('获取报告列表失败:', err);
        this.$modal.showToast('获取报告列表失败');
      });
    },
    ReportDetails(item) {
       uni.navigateTo({
              url: `/pagesA/ReportDetails/ReportDetails?tjNum=${encodeURIComponent(item)}`
            });
    }
  }
};
</script>
 
<style lang="scss">
page {
  height: 100%;
}
 
.page {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: #f5f5f5;
}
 
.header {
  flex-shrink: 0;
  background-color: #ffffff;
  padding-bottom: 20rpx;
}
 
.search-bar {
  display: flex;
  align-items: center;
  padding: 0 32rpx;
  margin-top: 20rpx;
}
 
.search-input {
  flex: 1;
  height: 72rpx;
  background: #f5f5f5;
  border-radius: 36rpx;
  display: flex;
  align-items: center;
  padding: 0 24rpx;
}
 
.search-input input {
  flex: 1;
  margin-left: 16rpx;
  font-size: 14px;
}
 
.placeholder {
  color: #999999;
}
 
.search-btn {
  margin-left: 24rpx;
  color: #007AFF;
  font-size: 14px;
}
 
.content {
  flex: 1;
  overflow: auto;
}
 
.report-list {
  padding: 24rpx;
}
 
.report-item {
  background: #ffffff;
  border-radius: 16rpx;
  padding: 32rpx;
  margin-bottom: 24rpx;
}
 
.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24rpx;
}
 
.user-info {
  display: flex;
  align-items: center;
}
 
.name {
  font-size: 16px;
  color: #333333;
  font-weight: 500;
}
 
.code {
  margin-left: 24rpx;
  font-size: 14px;
  color: #3DA1FE;
}
 
.status {
  font-size: 14px;
  color: #999999;
}
 
.report-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16rpx;
  border-top: 1px solid #F5F5F5;
}
 
.age-gender {
  font-size: 14px;
  color: #666666;
}
 
.date {
  font-size: 14px;
  color: #666666;
}
 
.hospital {
  font-size: 14px;
  color: #666666;
}
 
.footer {
  flex-shrink: 0;
  display: flex;
  padding: 32rpx;
  gap: 24rpx;
  background: #ffffff;
}
 
.upload-btn {
  flex: 1;
  height: 88rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f5f5;
  border: none;
}
 
.upload-btn text {
  margin-left: 8rpx;
  font-size: 14px;
  color: #666666;
}
 
.compare-btn {
  flex: 1;
  height: 88rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #419FFD !important;
  border: none;
}
 
.compare-btn text {
  font-size: 14px;
  color: #ffffff;
}
</style>