This commit is contained in:
2024-01-05 14:51:06 +08:00
parent 04f9edf7ac
commit fbb19ddc79

View File

@ -367,21 +367,23 @@
methods: {
info() {
recordlast(uni.getStorageSync('userinfo').cardNo).then(res => {
res.data.forEach(e => {
e.type == '1' ? this.dataone = e : ''
e.type == '2' ? this.datatwo = e : ''
e.type == '3' ? this.datathree = e : ''
e.type == '4' ? this.datafour = e : ''
e.type == '5' ? this.datafive = e : ''
e.type == '6' ? this.datasix = e : ''
e.type == '7' ? this.dataseven = e : ''
})
this.datatwo.szy = this.datatwo.val.split('/')[1]
this.datatwo.ssy = this.datatwo.val.split('/')[0]
this.datathree.tc = this.datathree.val.split('/')[0]
this.datathree.tg = this.datathree.val.split('/')[1]
this.datathree.hdl = this.datathree.val.split('/')[2]
this.datathree.ldl = this.datathree.val.split('/')[3]
if (res.data && res.data.length > 0) {
res.data.forEach(e => {
e.type == '1' ? this.dataone = e : ''
e.type == '2' ? this.datatwo = e : ''
e.type == '3' ? this.datathree = e : ''
e.type == '4' ? this.datafour = e : ''
e.type == '5' ? this.datafive = e : ''
e.type == '6' ? this.datasix = e : ''
e.type == '7' ? this.dataseven = e : ''
})
this.datatwo.szy = this.datatwo.val.split('/')[1]
this.datatwo.ssy = this.datatwo.val.split('/')[0]
this.datathree.tc = this.datathree.val.split('/')[0]
this.datathree.tg = this.datathree.val.split('/')[1]
this.datathree.hdl = this.datathree.val.split('/')[2]
this.datathree.ldl = this.datathree.val.split('/')[3]
}
})
},
goaddequipment() {