login
parent
ef9032ee46
commit
ca0e963793
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue