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> </u-cell-group>
</view> </view>
<view class="btns"> <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"> <view class="btn" v-for="item in list" :key="item.id">
<u-button <u-button
:icon="item.image" :icon="item.image"

View File

@ -63,8 +63,10 @@ export default {
} }
}, },
onLoad(e) { onLoad(e) {
this.user.openid = e.openid if (e.openid && e.open_type) {
this.user.open_type = e.open_type this.user.openid = e.openid
this.user.open_type = e.open_type
}
}, },
onReady() { onReady() {
this.$refs['form'].setRules(this.rules) this.$refs['form'].setRules(this.rules)
@ -101,7 +103,11 @@ export default {
// #endif // #endif
}, },
register() { 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) { onLoad(e) {
this.user.openid = e.openid if (e.openid && e.open_type) {
this.user.open_type = e.open_type this.user.openid = e.openid
this.user.open_type = e.open_type
}
}, },
onReady() { onReady() {
this.$refs['form'].setRules(this.rules) this.$refs['form'].setRules(this.rules)

View File

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