Browse Source

还原

master
yangteng 11 months ago
parent
commit
c755b5abf5
1 changed files with 3 additions and 13 deletions
  1. 3
    13
      login/login.vue

+ 3
- 13
login/login.vue View File

@@ -89,18 +89,13 @@
username: "", //用户名
password: "", //密码
code: "", //验证码
back: 0, //从app扫码看协议过来 登录了 还需要回到手机号验证页面 0 是原本的登录 1 要回去的登录 2运维跳转过来得中转页
params:{}
back: 0, //从app扫码看协议过来 登录了 还需要回到手机号验证页面 0 是原本的登录 1 要回去的登录
});

onLoad((option) => {
if (option.back == 1) {
state.back = option.back
}
if (option.back == 2) {
state.back = option.back
state.params = JSON.parse(decodeURIComponent(option.params))
}
uni.$on("login", (data) => {
state.username = data.phone;
});
@@ -182,12 +177,7 @@
uni.navigateBack({
delta: 1
})
} else if (state.back == 2) {
const params = encodeURIComponent(JSON.stringify(state.params))
uni.redirectTo({
url:`/subpackage/after-sale/transfer-page?params=${params}`
})
} else{
} else {
uni.switchTab({
url: '/pages/index/index'
})
@@ -321,4 +311,4 @@
}
}
}
</style>
</style>

Loading…
Cancel
Save