微信小程序发布试用版本
This commit is contained in:
@@ -36,7 +36,7 @@
|
||||
|
||||
<script>
|
||||
import mixin from '@/uni_modules/uni-id-pages/common/login-page.mixin.js';
|
||||
import { mutations } from '@/uni_modules/uni-id-pages/common/store.js'
|
||||
import { mutations } from '@/common/store.js'
|
||||
import { getApiUrl } from '@/common/config.js'
|
||||
export default {
|
||||
mixins: [mixin],
|
||||
@@ -194,10 +194,20 @@
|
||||
duration: 800
|
||||
})
|
||||
|
||||
// 登录成功后跳转到 tabBar 首页(接待页)
|
||||
// 更新全局角色信息
|
||||
try {
|
||||
const app = getApp();
|
||||
if (app && app.setGlobalRoleInfo) {
|
||||
app.setGlobalRoleInfo();
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('[Login] Failed to update global role info:', e);
|
||||
}
|
||||
|
||||
// 登录成功后跳转到首页(接待页面)
|
||||
setTimeout(() => {
|
||||
uni.switchTab({
|
||||
url: '/pages/reception/reception'
|
||||
url: '/pages/furniture_reception/furniture_reception'
|
||||
})
|
||||
}, 300)
|
||||
} catch (err) {
|
||||
|
||||
@@ -51,7 +51,7 @@
|
||||
import {
|
||||
store,
|
||||
mutations
|
||||
} from '@/uni_modules/uni-id-pages/common/store.js'
|
||||
} from '@/common/store.js'
|
||||
|
||||
const uniIdCo = uniCloud.importObject("uni-id-co")
|
||||
export default {
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
import {
|
||||
store,
|
||||
mutations
|
||||
} from '@/uni_modules/uni-id-pages/common/store.js'
|
||||
} from '@/common/store.js'
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
|
||||
@@ -46,7 +46,7 @@ import mixin from '@/uni_modules/uni-id-pages/common/login-page.mixin.js';
|
||||
import {
|
||||
store,
|
||||
mutations
|
||||
} from '@/uni_modules/uni-id-pages/common/store.js'
|
||||
} from '@/common/store.js'
|
||||
|
||||
const uniIdCo = uniCloud.importObject('uni-id-co')
|
||||
const tempFrvInfoKey = 'uni-id-pages-temp-frv'
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
|
||||
<script>
|
||||
import passwordMod from '@/uni_modules/uni-id-pages/common/password.js'
|
||||
import {store, mutations} from '@/uni_modules/uni-id-pages/common/store.js'
|
||||
import {store, mutations} from '@/common/store.js'
|
||||
import config from '@/uni_modules/uni-id-pages/config.js'
|
||||
|
||||
const uniIdCo = uniCloud.importObject("uni-id-co", {
|
||||
|
||||
@@ -41,7 +41,7 @@ const uniIdCo = uniCloud.importObject("uni-id-co")
|
||||
import {
|
||||
store,
|
||||
mutations
|
||||
} from '@/uni_modules/uni-id-pages/common/store.js'
|
||||
} from '@/common/store.js'
|
||||
export default {
|
||||
computed: {
|
||||
userInfo() {
|
||||
|
||||
Reference in New Issue
Block a user