feat(custom):
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-07-27 11:05:25 +08:00
parent e55cc6c9e0
commit 9ea8f419f4
5 changed files with 87 additions and 41 deletions

View File

@@ -35,7 +35,7 @@ const userInfo = ref({
phone: '',
});
const optData = ref({});
const optData = ref<any>({});
Taro.useLoad(opt => {
optData.value = opt;
@@ -76,7 +76,7 @@ const getPhoneNumber = async (e: any) => {
duration: 2000,
});
Taro.setStorageSync('token', ress.data.token);
if (optData.value.isBack) {
if (optData.value.isBack !== 'undefined') {
await getUserInfo();
Taro.navigateBack({
delta: 1,
@@ -119,7 +119,7 @@ const toPage = () => {
icon: 'none',
});
Taro.navigateTo({
url: '/pages/users/bindPhone/index?type=1',
url: `/pages/users/bindPhone/index?type=1&isBack=${optData.value.isBack}`,
});
};