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 { export default {
data() { data() {
return { return {
phonecode: '', phonecode: undefined,
logincode: '', logincode: undefined,
timer: null, timer: undefined,
}; };
}, },
onShow() {}, onShow() {
//1. this.phonecode = undefined
onShareAppMessage(res) { this.logincode = undefined
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,
}
}, },
methods: { methods: {
getPhoneNumberp(val) { getPhoneNumberp(val) {
@ -70,6 +55,8 @@
type: 'success', type: 'success',
duration: '1500' duration: '1500'
}) })
this.phonecode = undefined
this.logincode = undefined
uni.setStorageSync("Refresh", 'Refresh') uni.setStorageSync("Refresh", 'Refresh')
if (this.timer) { if (this.timer) {
clearTimeout(this.timer) clearTimeout(this.timer)
@ -96,6 +83,23 @@
that.login() 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> </script>