路泰科技体检小程序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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
<template>
  <view class="box">
    <!-- 顶部固定栏 -->
    <view class="Fixed">
      <view class="Fixed_left">
        <view class="Fixed_left_txt">体检报告</view>
      </view>
    </view>
 
    <!-- 基本健康数据 -->
    <div class="data">
      <div class="data_left">
        <img v-if="customer.cusSex==0" class="data_img" src="https://ltpeis.xaltjdkj.cn:5502/static/4.png" alt="">
        <img v-else class="data_img" src="https://ltpeis.xaltjdkj.cn:5502/static/5.png" alt="">
        <div class="data_left_sty1">
          <span class="data_left_txt1">{{customer.cusName}}</span>
          <div class="data_left_sty">
            <span class="data_left_txt2">{{customer.cusBrithday}}</span>
          </div>
          <span class="data_left_txt2">{{customer.cusSex == "1" ? "女" :"男" }}</span>
        </div>
      </div>
      <div class="data_right" v-if="jicuList.length >= 1">
        <span class="data_right_txt1">基本健康数据</span>
        <div class="data_right_sty">
          <span class="data_right_txt2">身高(cm)</span>
          <span class="data_right_txt3">{{jicuList[0].shenggao || ""}}</span>
        </div>
        <div class="data_right_sty">
          <span class="data_right_txt2">体重(kg)</span>
          <span class="data_right_txt3">{{jicuList[0].tizhong || ""}}</span>
        </div>
        <div class="data_right_sty">
          <span class="data_right_txt4">体重指数</span>
          <span class="data_right_txt5">{{jicuList[0].tizhongzhishu || ""}}</span>
        </div>
        <div class="data_right_sty">
          <span class="data_right_txt2">收缩压(mmHg)</span>
          <span class="data_right_txt3">{{jicuList[0].shousuoya || ""}}</span>
        </div>
        <div class="data_right_sty">
          <span class="data_right_txt2">舒张压(mmHg)</span>
          <span class="data_right_txt3">{{jicuList[0].shuzhangya || ""}}</span>
        </div>
      </div>
    </div>
 
    <!-- 总检建议 -->
    <div class="bottom">
      <uni-collapse class="bottom_sty">
        <uni-collapse-item title="总检建议" thumb="https://ltpeis.xaltjdkj.cn:5502/static/baogao.png">
          <view class="content" style="margin-left:15px;">
            <text class="text">{{checkAdvice}}</text>
          </view>
        </uni-collapse-item>
      </uni-collapse>
 
      <div class="bottom_sty">
        <view class="content">
          <text class="text">检验结果</text>
        </view>
      </div>
      <uni-collapse class="bottom_sty">
        <uni-collapse-item :title="item.parent" thumb="https://ltpeis.xaltjdkj.cn:5502/static/baogao.png"
          v-for="(item, index) in alist1" :key="index">
          <view class="content" v-for="(son, aindex) in item.sons" :key="aindex"
            style="margin-left:15px; display: flex;">
            <text style="margin-left: 5px; width: 40%;">{{son.proName}}</text>
            <view style="margin-left: 5px; width: 40%;">
              <text>{{son.proResult}}</text>
            </view>
            <view style="margin-left: 5px; width: 40%;">
              <text>{{son.proAdvice}}</text>
            </view>
          </view>
        </uni-collapse-item>
      </uni-collapse>
 
      <div class="bottom_sty" v-if="alistss.length">
        <view class="content">
          <text class="text">检查</text>
        </view>
      </div>
      <uni-collapse class="bottom_sty">
        <uni-collapse-item :title="item.parent" thumb="https://ltpeis.xaltjdkj.cn:5502/static/baogao.png"
          v-for="(item, index) in alistss" :key="index">
          <view class="content" v-for="(son, aindex) in item.sons" :key="aindex"
            style="margin-left:15px; display: flex; flex-direction: column;">
            <text style="margin-left: 5px;">检查所见:{{son.yxbx}}</text>
            <text style="margin-left: 5px;">检查提示:{{son.yxzd}}</text>
            <text style="margin-left: 5px;">主检医师:{{son.shysxm}}</text>
          </view>
        </uni-collapse-item>
      </uni-collapse>
 
      <div class="bottom_sty">
        <view class="content">
          <span class="text1">报告阅读说明</span>
          <div>
            <span class="text2">1.以上报告结果,仅针对本次检查、检验样本负责。本报告不能用于二次会诊、用药、或其他任何医学判断目的的使用。如您有不适症状,或需要医疗服务,请及时到医院就医并遵医嘱。</span>
            <span class="text3">查看更多</span>
            <img class="img" src="https://ltpeis.xaltjdkj.cn:5502/static/youjiantou1.png" alt="">
          </div>
          <div>
            <span class="text2">如需了解更多关于检测方法和检测结果参考值得信息,</span>
            <span class="text3">请点这里</span>
            <img class="img" src="https://ltpeis.xaltjdkj.cn:5502/static/youjiantou1.png" alt="">
          </div>
        </view>
      </div>
    </div>
  </view>
</template>
 
<script>
import { getShenGaoTiZhong1, getreportData } from "@/api/system/report";
 
export default {
  data() {
    return {
      jicuList: [],
      customer: '',
      alist1: [],
      alistss: [],
      checkAdvice: "",
      tjNumber: ""
    };
  },
  onLoad(options) {
    console.log('ReportDetails onLoad options:', options);
    this.tjNumber = options.tjNum || '';
    if (this.tjNumber) {
      this.getOrderDetailList();
      this.getjichu();
    } else {
      uni.showToast({
        title: '缺少体检码参数',
        icon: 'none'
      });
    }
  },
  methods: {
    getOrderDetailList() {
      uni.showLoading({ title: '请稍等!' });
      getreportData({ tjNum: this.tjNumber }).then(res => {
        uni.hideLoading();
        this.alist1 = res.data;
        const uniqueAdvices = [...new Set(res.data.map(item => item.checkAdvice).filter(Boolean))];
        this.checkAdvice = uniqueAdvices.join("");
      }).catch(err => {
        uni.hideLoading();
        console.error('获取报告数据失败:', err);
        uni.showToast({
          title: '获取报告数据失败',
          icon: 'none'
        });
      });
    },
    getjichu() {
      getShenGaoTiZhong1(this.tjNumber).then(res => {
        if (res.data) {
          this.jicuList = res.data;
          // 假设 customer 数据从 res.data 中获取,或者需要单独 API 调用
          this.customer = res.data[0]?.customer || { cusName: '', cusBrithday: '', cusSex: '' };
        }
      }).catch(err => {
        console.error('获取基础数据失败:', err);
        uni.showToast({
          title: '获取基础数据失败',
          icon: 'none'
        });
      });
    }
  }
}
</script>
 
<style lang="scss">
.box {
  width: 100%;
  background: linear-gradient(180deg, #fd8b4d 50%, #fdb753);
}
 
.Fixed {
  width: 100%;
  height: 80rpx;
  background-color: #fd8b4d;
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}
 
.Fixed_left_txt {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
}
 
.data {
  display: flex;
  justify-content: space-around;
  padding-top: 102rpx;
  margin-bottom: 40rpx;
}
 
.data_left {
  width: 316rpx;
  height: 700rpx;
  display: flex;
  flex-direction: column;
  align-items: center;
}
 
.data_img {
  width: 316rpx;
  height: 600rpx;
}
 
.data_left_sty1 {
  display: flex;
  flex-direction: column;
  align-items: center;
}
 
.data_left_txt1 {
  font-size: 20px;
  color: #fff;
}
 
.data_left_sty {
  width: 180rpx;
  height: 50rpx;
  background-color: #f99235;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
 
.data_left_txt2 {
  font-size: 14px;
  color: #fff;
}
 
.data_right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  width: 316rpx;
  height: 700rpx;
  background-color: #fff;
  border-radius: 20px;
}
 
.data_right_txt1 {
  font-size: 18px;
}
 
.data_right_sty {
  width: 316rpx;
  display: flex;
  justify-content: space-around;
}
 
.data_right_txt2 {
  font-size: 14px;
}
 
.data_right_txt3 {
  font-weight: 600;
}
 
.data_right_txt4 {
  color: #f23f45;
  font-size: 14px;
}
 
.data_right_txt5 {
  color: #f23f45;
  font-weight: 600;
}
 
.bottom {
  background-color: #ffffff;
}
 
.content {
  padding: 8px;
}
 
.text1 {
  font-size: 14px;
  font-weight: 600;
}
 
.text2 {
  font-size: 12px;
  color: #8a8a8a;
}
 
.text3 {
  font-size: 12px;
  color: #1d6ebf;
}
 
.img {
  width: 10px;
  height: 10px;
}
</style>