Merge remote-tracking branch 'origin/feature/feature-20250331-h5' into feature/feature-20250331-h5
This commit is contained in:
1
components.d.ts
vendored
1
components.d.ts
vendored
@@ -19,6 +19,7 @@ declare module 'vue' {
|
|||||||
VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
|
VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup']
|
||||||
VanCol: typeof import('vant/es')['Col']
|
VanCol: typeof import('vant/es')['Col']
|
||||||
VanDivider: typeof import('vant/es')['Divider']
|
VanDivider: typeof import('vant/es')['Divider']
|
||||||
|
VanFeild: typeof import('vant/es')['Feild']
|
||||||
VanField: typeof import('vant/es')['Field']
|
VanField: typeof import('vant/es')['Field']
|
||||||
VanGrid: typeof import('vant/es')['Grid']
|
VanGrid: typeof import('vant/es')['Grid']
|
||||||
VanGridItem: typeof import('vant/es')['GridItem']
|
VanGridItem: typeof import('vant/es')['GridItem']
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
"sortablejs": "^1.15.6",
|
"sortablejs": "^1.15.6",
|
||||||
"uuid": "^11.1.0",
|
"uuid": "^11.1.0",
|
||||||
"vant": "^4.9.17",
|
"vant": "^4.9.17",
|
||||||
|
"vconsole": "^3.15.1",
|
||||||
"vite-plugin-vue": "^0.0.1",
|
"vite-plugin-vue": "^0.0.1",
|
||||||
"vue": "^3.4.29",
|
"vue": "^3.4.29",
|
||||||
"vue-router": "^4.3.3",
|
"vue-router": "^4.3.3",
|
||||||
|
|||||||
@@ -5,9 +5,9 @@ import appBridge from '@/assets/js/appBridge';
|
|||||||
import utils from '@/assets/js/common';
|
import utils from '@/assets/js/common';
|
||||||
|
|
||||||
onMounted(async() => {
|
onMounted(async() => {
|
||||||
if (utils.getParameter('digitalYiliToken')) {
|
if (utils.getSessionStorage('xToken')) {
|
||||||
// 隐藏/显示 header
|
// 隐藏/显示 header
|
||||||
appBridge.setHeaderShown(false);
|
appBridge.setHeaderShown(true);
|
||||||
// 设置系统状态栏明暗主题
|
// 设置系统状态栏明暗主题
|
||||||
appBridge.setStatusBarStyle('light');
|
appBridge.setStatusBarStyle('light');
|
||||||
// 设置禁止原生返回
|
// 设置禁止原生返回
|
||||||
|
|||||||
@@ -6,9 +6,18 @@ import App from './App.vue';
|
|||||||
import 'vant/lib/index.css';
|
import 'vant/lib/index.css';
|
||||||
|
|
||||||
import router from './router';
|
import router from './router';
|
||||||
|
import utils from '@/assets/js/common';
|
||||||
// 2. 引入组件样式
|
// 2. 引入组件样式
|
||||||
import appBridge from '@/assets/js/appBridge';
|
import appBridge from '@/assets/js/appBridge';
|
||||||
|
import VConsole from 'vconsole';
|
||||||
|
let vconsole;
|
||||||
|
if (import.meta.env.VITE_APP_ENV !== 'production') {
|
||||||
|
vconsole = new VConsole();
|
||||||
|
}
|
||||||
router.beforeEach((to, from, next) => {
|
router.beforeEach((to, from, next) => {
|
||||||
|
if (to.query.digitalYiliToken) {
|
||||||
|
utils.setSessionStorage('xToken', to.query.digitalYiliToken);
|
||||||
|
}
|
||||||
appBridge.setTitle(to.meta.title as string);
|
appBridge.setTitle(to.meta.title as string);
|
||||||
next();
|
next();
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import { onMounted, ref } from 'vue';
|
|||||||
const contentShow = ref(false);
|
const contentShow = ref(false);
|
||||||
onMounted(async() => {
|
onMounted(async() => {
|
||||||
contentShow.value = true;
|
contentShow.value = true;
|
||||||
// if (utils.getParameter('digitalYiliToken')) {
|
// if (utils.getSessionStorage('xToken')){
|
||||||
// const appToken = utils.getParameter('digitalYiliToken');
|
// const appToken = utils.getParameter('digitalYiliToken');
|
||||||
// getUserInfo(appToken).then((res) => {
|
// getUserInfo(appToken).then((res) => {
|
||||||
// if (res.data) {
|
// if (res.data) {
|
||||||
@@ -46,13 +46,13 @@ onMounted(async() => {
|
|||||||
padding: 0 10px 60px;
|
padding: 0 10px 60px;
|
||||||
background: linear-gradient(0deg, #f5f5f5 0%, #f5f5f5 84%, #a5d380 100%);
|
background: linear-gradient(0deg, #f5f5f5 0%, #f5f5f5 84%, #a5d380 100%);
|
||||||
|
|
||||||
& > :first-child {
|
&> :first-child {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-around;
|
justify-content: space-around;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background-color: white;
|
background-color: white;
|
||||||
|
|
||||||
& > div {
|
&>div {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
width: 50px;
|
width: 50px;
|
||||||
|
|||||||
Reference in New Issue
Block a user