master
panliang 2023-10-16 13:10:33 +08:00
parent ef9032ee46
commit ca0e963793
4 changed files with 17 additions and 9 deletions

View File

@ -10,7 +10,7 @@
</u-cell-group>
</view>
<view class="btns">
<u-empty v-if="list.length == 0" mode="list" text="暂无分类" />
<u-empty v-if="list.length == 0" mode="list" text="暂无就诊记录" />
<view class="btn" v-for="item in list" :key="item.id">
<u-button
:icon="item.image"

View File

@ -63,8 +63,10 @@ export default {
}
},
onLoad(e) {
this.user.openid = e.openid
this.user.open_type = e.open_type
if (e.openid && e.open_type) {
this.user.openid = e.openid
this.user.open_type = e.open_type
}
},
onReady() {
this.$refs['form'].setRules(this.rules)
@ -101,7 +103,11 @@ export default {
// #endif
},
register() {
uni.navigateTo({ url: `/pages/register/index?openid=${this.user.openid}&open_type=${this.user.open_type}` })
let url = '/pages/register/index'
if (this.user.openid && this.user.open_type) {
url += `?openid=${this.user.openid}&open_type=${this.user.open_type}`
}
uni.navigateTo({ url })
}
}
}

View File

@ -111,8 +111,10 @@ export default {
}
},
onLoad(e) {
this.user.openid = e.openid
this.user.open_type = e.open_type
if (e.openid && e.open_type) {
this.user.openid = e.openid
this.user.open_type = e.open_type
}
},
onReady() {
this.$refs['form'].setRules(this.rules)

View File

@ -131,9 +131,9 @@ export default {
})
},
openBirthday() {
// if (this.info.birthday) {
// this.birthday.value = (new Date(this.info.birthday.replaceAll('-', '/'))).getTime()
// }
if (this.info.birthday) {
this.birthday.value = (new Date(this.info.birthday.replaceAll('-', '/'))).getTime()
}
this.birthday.show = true
},
closeBirthday() {