fix
This commit is contained in:
parent
8ebf2cab6a
commit
4a67a7c8cf
@ -23,7 +23,7 @@ onBeforeUnmount(() => {
|
|||||||
const getVideoId = () => {
|
const getVideoId = () => {
|
||||||
try {
|
try {
|
||||||
const url = new URL(props.src);
|
const url = new URL(props.src);
|
||||||
console.log(url,'urlurlurl');
|
// console.log(url,'urlurlurl');
|
||||||
return url.searchParams.get("v") || "";
|
return url.searchParams.get("v") || "";
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
return "";
|
return "";
|
||||||
|
@ -122,7 +122,7 @@ const weapoName = reactive([
|
|||||||
|
|
||||||
const setWeaponThumbsSwiper = (swiper) => {
|
const setWeaponThumbsSwiper = (swiper) => {
|
||||||
weaponThumbsSwiper.value = swiper;
|
weaponThumbsSwiper.value = swiper;
|
||||||
console.log("setWeaponThumbsSwiper ", swiper);
|
// console.log("setWeaponThumbsSwiper ", swiper);
|
||||||
// swiper.on('slideChange', function() {
|
// swiper.on('slideChange', function() {
|
||||||
// console.log('slide changed', swiper);
|
// console.log('slide changed', swiper);
|
||||||
// activeIndex.value = swiper.activeIndex;
|
// activeIndex.value = swiper.activeIndex;
|
||||||
@ -131,9 +131,9 @@ const setWeaponThumbsSwiper = (swiper) => {
|
|||||||
|
|
||||||
const setWeaponSwiper = (swiper) => {
|
const setWeaponSwiper = (swiper) => {
|
||||||
weaponSwiper.value = swiper;
|
weaponSwiper.value = swiper;
|
||||||
console.log("slide changed", swiper);
|
// console.log("slide changed", swiper);
|
||||||
swiper.on("slideChange", function () {
|
swiper.on("slideChange", function () {
|
||||||
console.log("slide changed weapon", swiper);
|
// console.log("slide changed weapon", swiper);
|
||||||
activeIndex.value = weaponSwiper.value.activeIndex;
|
activeIndex.value = weaponSwiper.value.activeIndex;
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
@ -101,13 +101,13 @@ async function login(event) {
|
|||||||
if (!chain.logined) {
|
if (!chain.logined) {
|
||||||
// 没有登录情况下执行登录
|
// 没有登录情况下执行登录
|
||||||
await chain.chainManager.login();
|
await chain.chainManager.login();
|
||||||
console.log("logined:", chain.chainManager.isLogined);
|
// console.log("logined:", chain.chainManager.isLogined);
|
||||||
chain.logined = chain.chainManager.isLogined;
|
chain.logined = chain.chainManager.isLogined;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const logout = async () => {
|
const logout = async () => {
|
||||||
await chain.chainManager.logout();
|
await chain.chainManager.logout();
|
||||||
console.log("logined:", chain.chainManager.isLogined);
|
// console.log("logined:", chain.chainManager.isLogined);
|
||||||
chain.logined = chain.chainManager.isLogined;
|
chain.logined = chain.chainManager.isLogined;
|
||||||
};
|
};
|
||||||
const avatarUrl = ref("https://example.com/avatar.jpg");
|
const avatarUrl = ref("https://example.com/avatar.jpg");
|
||||||
@ -224,7 +224,7 @@ watchEffect(() => {
|
|||||||
|
|
||||||
}
|
}
|
||||||
.link-label{
|
.link-label{
|
||||||
font-size: 15px;
|
font-size: 16px;
|
||||||
font-family: Arial;
|
font-family: Arial;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
@ -52,7 +52,8 @@ router.beforeEach((to, from, next) => {
|
|||||||
if (!isMobile) {
|
if (!isMobile) {
|
||||||
next(); // 如果是 PC 设备,继续导航
|
next(); // 如果是 PC 设备,继续导航
|
||||||
} else {
|
} else {
|
||||||
window.location.href = 'https://your-mobile-site-url.com'; // 如果是移动设备,跳转到移动端官网
|
window.location.href = 'https://mobile.cebg.gemes';
|
||||||
|
window.location.href = 'https://desktop.cebg.gemes';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -27,9 +27,9 @@ export const useAppStore = defineStore('app', () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateAccount(_accountId) {
|
function updateAccount(_accountId) {
|
||||||
console.log("updateAccount start", accountId, _accountId);
|
|
||||||
accountId.value = _accountId;
|
accountId.value = _accountId;
|
||||||
console.log("updateAccount end", accountId, _accountId);
|
|
||||||
}
|
}
|
||||||
function updateChainID(_chainId) {
|
function updateChainID(_chainId) {
|
||||||
chainId.value = _chainId;
|
chainId.value = _chainId;
|
||||||
|
@ -6,7 +6,7 @@ export const useChainStore = defineStore('chain', ()=> {
|
|||||||
const logined = ref(false);
|
const logined = ref(false);
|
||||||
const chainManager = ref(new ChainManager());
|
const chainManager = ref(new ChainManager());
|
||||||
chainManager.value.init().then(()=> {
|
chainManager.value.init().then(()=> {
|
||||||
console.log("chain init:", {chainManager})
|
// console.log("chain init:", {chainManager})
|
||||||
|
|
||||||
logined.value = chainManager.value.isLogined;
|
logined.value = chainManager.value.isLogined;
|
||||||
});
|
});
|
||||||
|
@ -63,12 +63,12 @@ export const useUserStore = defineStore("user", () => {
|
|||||||
tips,
|
tips,
|
||||||
net_id: chainId,
|
net_id: chainId,
|
||||||
};
|
};
|
||||||
console.log("login data: ", authData);
|
|
||||||
const res = await login(authData);
|
const res = await login(authData);
|
||||||
if (!res.errcode && res.token) {
|
if (!res.errcode && res.token) {
|
||||||
accountId.value = account;
|
accountId.value = account;
|
||||||
setToken(res.token);
|
setToken(res.token);
|
||||||
console.log(res, "resres");
|
|
||||||
setAccountId(account);
|
setAccountId(account);
|
||||||
AppModule.updateAccount(account);
|
AppModule.updateAccount(account);
|
||||||
AppModule.updateToken(res.token);
|
AppModule.updateToken(res.token);
|
||||||
|
@ -3,7 +3,7 @@ import { message } from 'ant-design-vue'
|
|||||||
|
|
||||||
import glodata from '@/store/user_global';
|
import glodata from '@/store/user_global';
|
||||||
|
|
||||||
console.log(import.meta.env);
|
// console.log(import.meta.env);
|
||||||
|
|
||||||
const service = axios.create({
|
const service = axios.create({
|
||||||
baseURL: import.meta.env.VUE_APP_BASE_API,
|
baseURL: import.meta.env.VUE_APP_BASE_API,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user