|
@@ -1,7 +1,7 @@
|
|
|
import config from '@/utils/config.js'
|
|
|
import interfaces from '@/utils/interfaces.js'
|
|
|
const tools = {
|
|
|
-
|
|
|
+ current_navigator_page_index: 0,
|
|
|
// 是否登录
|
|
|
is_login() {
|
|
|
let user_data = this.get_user_info()
|
|
@@ -43,6 +43,7 @@ const tools = {
|
|
|
|
|
|
// 请求登录
|
|
|
request_login(that, mobile, password, callback) {
|
|
|
+ // 测试账号: 18612220000 18612221111 18612221221 18612221211
|
|
|
let self = that
|
|
|
self.request({
|
|
|
url: interfaces.login,
|
|
@@ -69,6 +70,7 @@ const tools = {
|
|
|
setTimeout(function() {
|
|
|
tools.set_user_info({})
|
|
|
uni.$emit(config.notification.login_state_changed)
|
|
|
+ uni.$emit(config.notification.switch_page_index, 0)
|
|
|
callback(true)
|
|
|
}, 1000);
|
|
|
}
|