身份证cardNo

This commit is contained in:
shidongli 2024-05-08 18:12:17 +08:00
parent bfc88ff4bf
commit ab7e2f1547
4 changed files with 14 additions and 15 deletions

View File

@ -4,7 +4,7 @@
<view class="health_top"> <view class="health_top">
<image image v-if="healthdata.hiEva<650" :src="require('../images/red.png')"> <image image v-if="healthdata.hiEva<650" :src="require('../images/red.png')">
<image image v-if="healthdata.hiEva>850" :src="require('../images/green.png')" image> <image image v-if="healthdata.hiEva>850" :src="require('../images/green.png')" image>
<image v-if="healthdata.hiEva > 650" :src="require('../images/yellow.png')" image> <image v-if="850>healthdata.hiEva >= 650" :src="require('../images/yellow.png')" image>
<view class="count"> <view class="count">
<view class="numbers">{{healthdata.hiEva}}</view> <view class="numbers">{{healthdata.hiEva}}</view>
<view class="healths">健康指数</view> <view class="healths">健康指数</view>
@ -12,19 +12,19 @@
</view> </view>
<view class="health_body"> <view class="health_body">
<view class="healthitem"> <view class="healthitem">
血压mmHg){{healthdata.physicalSign.bp.sbp}}/{{healthdata.physicalSign.bp.dbp}} 血压mmHg){{healthdata.physicalSign.bp.sbp?healthdata.physicalSign.bp.sbp:''}}/{{healthdata.physicalSign.bp.dbp?healthdata.physicalSign.bp.dbp:''}}
</view> </view>
<view class="healthitem"> <view class="healthitem">
空腹血糖mmol/L){{healthdata.physicalSign.bg.bg}} 空腹血糖mmol/L){{healthdata.physicalSign.bg.bg?healthdata.physicalSign.bg.bg:''}}
</view> </view>
<view class="healthitem"> <view class="healthitem">
血脂TC/LDL-C){{healthdata.physicalSign.bf.tc}}/{{healthdata.physicalSign.bf.ldlc}} 血脂TC/LDL-C){{healthdata.physicalSign.bf.tc?healthdata.physicalSign.bf.tc:''}}/{{healthdata.physicalSign.bf.ldlc?healthdata.physicalSign.bf.ldlc:''}}
</view> </view>
<view class="healthitem"> <view class="healthitem">
体质指数BMI){{healthdata.physicalSign.bmi.bmi}} 体质指数BMI){{healthdata.physicalSign.bmi.bmi?healthdata.physicalSign.bmi.bmi:''}}
</view> </view>
<view class="healthitem"> <view class="healthitem">
腰围cm{{healthdata.physicalSign.waist.waist}} 腰围cm{{healthdata.physicalSign.waist.waist?healthdata.physicalSign.waist.waist:''}}
</view> </view>
</view> </view>
<!-- 折线图 --> <!-- 折线图 -->
@ -118,8 +118,8 @@
methods: { methods: {
infohealths() { infohealths() {
if (uni.getStorageSync("userinfo").cardNo) { if (uni.getStorageSync("userinfo").cardNo) {
// this.cardNo=uni.getStorageSync("userinfo").cardNo this.cardNo=uni.getStorageSync("userinfo").cardNo
this.cardNo = '370522196411282177' // this.cardNo = '370522196411282177'
healthIndexdata(this.cardNo).then(res => { healthIndexdata(this.cardNo).then(res => {
this.healthdata = res.data this.healthdata = res.data
}) })
@ -201,12 +201,11 @@
<style lang="scss"> <style lang="scss">
.app { .app {
height: 100vh; // height: 100vh;
background-color: #fff; background-color: #fff;
// padding: 100rpx 40rpx; // padding: 100rpx 40rpx;
text-align: center; text-align: center;
font-size: 36rpx; font-size: 36rpx;
// //
.health { .health {
width: 100%; width: 100%;

View File

@ -59,8 +59,8 @@
}, },
lastrecodelist() { lastrecodelist() {
if (uni.getStorageSync("userinfo").cardNo) { if (uni.getStorageSync("userinfo").cardNo) {
// this.cardNo=uni.getStorageSync("userinfo").cardNo this.cardNo=uni.getStorageSync("userinfo").cardNo
this.cardNo = '370522196411282177' // this.cardNo = '370522196411282177'
lastrecode(this.cardNo).then(res => { lastrecode(this.cardNo).then(res => {
this.lastrecodedata = res.data this.lastrecodedata = res.data
this.show = false this.show = false

View File

@ -64,8 +64,8 @@
methods: { methods: {
lastrecodelist() { lastrecodelist() {
if (uni.getStorageSync("userinfo").cardNo) { if (uni.getStorageSync("userinfo").cardNo) {
// this.cardNo=uni.getStorageSync("userinfo").cardNo this.cardNo=uni.getStorageSync("userinfo").cardNo
this.cardNo = '370522196411282177' // this.cardNo = '370522196411282177'
dayList(this.cardNo).then(res => { dayList(this.cardNo).then(res => {
this.itemlistleft = res.data this.itemlistleft = res.data
this.recordCode=res.data[0].list[0].recordCode this.recordCode=res.data[0].list[0].recordCode

View File

@ -341,7 +341,7 @@
orderStatus: 'WAIT_RECEIVED_GOODS', orderStatus: 'WAIT_RECEIVED_GOODS',
}], }],
datalist: null, datalist: null,
identity: '370522196411282177', identity: '',
cvdEvaRecord: {}, cvdEvaRecord: {},
lcdEvaRecord: {}, lcdEvaRecord: {},
ckdEvaRecord: {}, ckdEvaRecord: {},