This commit is contained in:
曹辉 2023-05-10 10:37:38 +08:00
parent 6f83cdda89
commit a9f851897d

View File

@ -21,29 +21,14 @@
export default {
data() {
return {
phonecode: '',
logincode: '',
timer: null,
phonecode: undefined,
logincode: undefined,
timer: undefined,
};
},
onShow() {},
//1.
onShareAppMessage(res) {
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
return {
title: '泉医到家',
path: url,
}
},
//2.
onShareTimeline(res) {
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
return {
title: '泉医到家',
path: url,
}
onShow() {
this.phonecode = undefined
this.logincode = undefined
},
methods: {
getPhoneNumberp(val) {
@ -70,6 +55,8 @@
type: 'success',
duration: '1500'
})
this.phonecode = undefined
this.logincode = undefined
uni.setStorageSync("Refresh", 'Refresh')
if (this.timer) {
clearTimeout(this.timer)
@ -96,6 +83,23 @@
that.login()
})
},
}, //1.
onShareAppMessage(res) {
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
return {
title: '泉医到家',
path: url,
}
},
//2.
onShareTimeline(res) {
let pages = getCurrentPages();
let url = pages[pages.length - 1].$page.fullPath
return {
title: '泉医到家',
path: url,
}
},
}
</script>