This commit is contained in:
曹辉 2023-03-17 15:57:24 +08:00
parent 03157e0c00
commit 4334223264

View File

@ -249,19 +249,9 @@
loginFlag: false,
};
},
onLoad(options) {
this.baseurl = baseurl
this.integral = options.integral
var that = this
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
that.updata.patientId = value
that.user();
that.selectPatientSignInifo();
}
},
onLoad(options) {},
onShow() {
this.baseurl = baseurl
this.pageNum = 1
this.selectExchangeGoodsinfo();
this.baseurl = baseurl
@ -269,6 +259,9 @@
var that = this
const value = uni.getStorageSync('patientId');
if (value) {
that.patientId = value
that.updata.patientId = value
that.selectPatientSignInifo();
AppIdentification(value).then(res => {
if (res.code == 200) {
if (res.data.loginFlag) {
@ -276,7 +269,6 @@
}
}
})
that.updata.patientId = value
goodPatientInfo(value).then(res => {
if (res.code == 200) {
if (res.data.length > 0) {
@ -530,12 +522,15 @@
selectExchangeGoodsinfo() {
this.pageNum = 1
selectExchangeGoods(this.pageNum, this.pageSize).then(res => {
res.rows.forEach(e => {
e.goodsPictureUrl = baseurl + e.goodsPictureUrl
e.attributePitureUrl = baseurl + e.attributePitureUrl
})
this.goodslist = res.rows
this.goodstotal = res.total
if (res.code == 200) {
this.user();
res.rows.forEach(e => {
e.goodsPictureUrl = baseurl + e.goodsPictureUrl
e.attributePitureUrl = baseurl + e.attributePitureUrl
})
this.goodslist = res.rows
this.goodstotal = res.total
} else {}
})
},
//