Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 7d25cdcc
authored
Mar 05, 2026
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: leftside
1 parent
b320052e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
102 additions
and
99 deletions
apps/uniappX/uniapp-x-tape/components/HomeFrame/LeftSide.uvue
apps/uniappX/uniapp-x-tape/config/layout-vars.uts
apps/uniappX/uniapp-x-tape/pages/boutique/index.uvue
apps/uniappX/uniapp-x-tape/components/HomeFrame/LeftSide.uvue
View file @
7d25cdc
...
...
@@ -49,8 +49,8 @@ const props = defineProps<{
const emit = defineEmits<{
changeTab: [index: number]
}>();
const scenePopupRef = ref
<any | null>
(null);
const settingRef = ref
<any | null>
(null);
const scenePopupRef = ref(null);
const settingRef = ref(null);
const isPortraitMode = computed((): boolean => {
return props.isPortrait === true;
...
...
@@ -149,9 +149,9 @@ function onChangeTab(index: number): void {
function onSceneChange(): void {
const pop = scenePopupRef.value;
if (pop != null) {
const
anyPop = pop as any
;
const fn =
anyPop
.open as (() => void) | null;
if (typeof fn === "function") {
const
obj = pop as UTSJSONObject
;
const fn =
obj
.open as (() => void) | null;
if (
fn != null &&
typeof fn === "function") {
fn();
}
}
...
...
@@ -160,9 +160,9 @@ function onSceneChange(): void {
function onSetting(): void {
const box = settingRef.value;
if (box != null) {
const
anyBox = box as any
;
const fn =
anyBox
.open as (() => void) | null;
if (typeof fn === "function") {
const
obj = box as UTSJSONObject
;
const fn =
obj
.open as (() => void) | null;
if (
fn != null &&
typeof fn === "function") {
fn();
}
}
...
...
apps/uniappX/uniapp-x-tape/config/layout-vars.uts
View file @
7d25cdc
...
...
@@ -5,92 +5,92 @@
* - values: 分辨率 -> 值;未列出的分辨率用 baseWidth 线性缩放
*/
export const LAYOUT_VARS: UTSJSONObject = {
'spacingXs'
: {
'css': '--l-spacing-xs'
,
'values': { '1024': 8, '1174': 8, '1920'
: 15 } as UTSJSONObject
} as UTSJSONObject,
'spacingSm'
: {
'css': '--l-spacing-sm'
,
'values': { '1024': 12, '1174': 12, '1920'
: 23 } as UTSJSONObject
} as UTSJSONObject,
'spacingMd'
: {
'css': '--l-spacing-md'
,
'values': { '1024': 16, '1174': 16, '1920'
: 30 } as UTSJSONObject
} as UTSJSONObject,
'spacingLg'
: {
'css': '--l-spacing-lg'
,
'values': { '1024': 24, '1174': 24, '1920'
: 45 } as UTSJSONObject
} as UTSJSONObject,
'spacingXl'
: {
'css': '--l-spacing-xl'
,
'values': { '1024': 32, '1174': 32, '1920'
: 60 } as UTSJSONObject
} as UTSJSONObject,
'spacing2xl'
: {
'css': '--l-spacing-2xl'
,
'values': { '1024': 40, '1174': 40, '1920'
: 75 } as UTSJSONObject
} as UTSJSONObject,
'fontXs'
: {
'css': '--l-font-xs'
,
'values': { '1024': 12, '1174': 12, '1920'
: 23 } as UTSJSONObject
} as UTSJSONObject,
'fontSm'
: {
'css': '--l-font-sm'
,
'values': { '1024': 14, '1174': 14, '1920'
: 26 } as UTSJSONObject
} as UTSJSONObject,
'fontBase'
: {
'css': '--l-font-base'
,
'values': { '1024': 16, '1174': 16, '1920'
: 30 } as UTSJSONObject
} as UTSJSONObject,
'fontLg'
: {
'css': '--l-font-lg'
,
'values': { '1024': 18, '1174': 18, '1920'
: 34 } as UTSJSONObject
} as UTSJSONObject,
'fontXl'
: {
'css': '--l-font-xl'
,
'values': { '1024': 20, '1174': 20, '1920'
: 38 } as UTSJSONObject
} as UTSJSONObject,
'font2xl'
: {
'css': '--l-font-2xl'
,
'values': { '1024': 24, '1174': 24, '1920'
: 45 } as UTSJSONObject
} as UTSJSONObject,
'radiusSm'
: {
'css': '--l-radius-sm'
,
'values': { '1024': 4, '1174': 4, '1920'
: 8 } as UTSJSONObject
} as UTSJSONObject,
'radiusMd'
: {
'css': '--l-radius-md'
,
'values': { '1024': 8, '1174': 8, '1920'
: 15 } as UTSJSONObject
} as UTSJSONObject,
'radiusLg'
: {
'css': '--l-radius-lg'
,
'values': { '1024': 12, '1174': 12, '1920'
: 23 } as UTSJSONObject
} as UTSJSONObject,
'radiusXl'
: {
'css': '--l-radius-xl'
,
'values': { '1024': 16, '1174': 16, '1920'
: 30 } as UTSJSONObject
} as UTSJSONObject,
'sidebarWidth'
: {
'css': '--l-sidebar-width'
,
'values': { '1024': 120, '1174': 120, '1920'
: 225 } as UTSJSONObject
} as UTSJSONObject,
'contentLeftWidth'
: {
'css': '--l-content-left-width'
,
'values': { '1024': 605, '1174': 605, '1920'
: 1134 } as UTSJSONObject
} as UTSJSONObject,
'moduleBoxHeight'
: {
'css': '--l-module-box-height'
,
'values': { '1024': 332, '1174': 332, '1920'
: 623 } as UTSJSONObject
} as UTSJSONObject,
'toolBoxMinHeight'
: {
'css': '--l-tool-box-min-height'
,
'values': { '1024': 120, '1174': 120, '1920'
: 225 } as UTSJSONObject
} as UTSJSONObject,
'commonTitleHeight'
: {
'css': '--l-common-title-height'
,
'values': { '1024': 60, '1174': 60, '1920'
: 113 } as UTSJSONObject
} as UTSJSONObject,
'storeFooterHeight'
: {
'css': '--l-store-footer-height'
,
'values': { '1024': 60, '1174': 60, '1920'
: 113 } as UTSJSONObject
} as UTSJSONObject
}
"spacingXs"
: {
"css": "--l-spacing-xs"
,
"values": { "1024": 8, "1174": 8, "1920"
: 15 } as UTSJSONObject
} as UTSJSONObject,
"spacingSm"
: {
"css": "--l-spacing-sm"
,
"values": { "1024": 12, "1174": 12, "1920"
: 23 } as UTSJSONObject
} as UTSJSONObject,
"spacingMd"
: {
"css": "--l-spacing-md"
,
"values": { "1024": 16, "1174": 16, "1920"
: 30 } as UTSJSONObject
} as UTSJSONObject,
"spacingLg"
: {
"css": "--l-spacing-lg"
,
"values": { "1024": 24, "1174": 24, "1920"
: 45 } as UTSJSONObject
} as UTSJSONObject,
"spacingXl"
: {
"css": "--l-spacing-xl"
,
"values": { "1024": 32, "1174": 32, "1920"
: 60 } as UTSJSONObject
} as UTSJSONObject,
"spacing2xl"
: {
"css": "--l-spacing-2xl"
,
"values": { "1024": 40, "1174": 40, "1920"
: 75 } as UTSJSONObject
} as UTSJSONObject,
"fontXs"
: {
"css": "--l-font-xs"
,
"values": { "1024": 12, "1174": 12, "1920"
: 23 } as UTSJSONObject
} as UTSJSONObject,
"fontSm"
: {
"css": "--l-font-sm"
,
"values": { "1024": 14, "1174": 14, "1920"
: 26 } as UTSJSONObject
} as UTSJSONObject,
"fontBase"
: {
"css": "--l-font-base"
,
"values": { "1024": 16, "1174": 16, "1920"
: 30 } as UTSJSONObject
} as UTSJSONObject,
"fontLg"
: {
"css": "--l-font-lg"
,
"values": { "1024": 18, "1174": 18, "1920"
: 34 } as UTSJSONObject
} as UTSJSONObject,
"fontXl"
: {
"css": "--l-font-xl"
,
"values": { "1024": 20, "1174": 20, "1920"
: 38 } as UTSJSONObject
} as UTSJSONObject,
"font2xl"
: {
"css": "--l-font-2xl"
,
"values": { "1024": 24, "1174": 24, "1920"
: 45 } as UTSJSONObject
} as UTSJSONObject,
"radiusSm"
: {
"css": "--l-radius-sm"
,
"values": { "1024": 4, "1174": 4, "1920"
: 8 } as UTSJSONObject
} as UTSJSONObject,
"radiusMd"
: {
"css": "--l-radius-md"
,
"values": { "1024": 8, "1174": 8, "1920"
: 15 } as UTSJSONObject
} as UTSJSONObject,
"radiusLg"
: {
"css": "--l-radius-lg"
,
"values": { "1024": 12, "1174": 12, "1920"
: 23 } as UTSJSONObject
} as UTSJSONObject,
"radiusXl"
: {
"css": "--l-radius-xl"
,
"values": { "1024": 16, "1174": 16, "1920"
: 30 } as UTSJSONObject
} as UTSJSONObject,
"sidebarWidth"
: {
"css": "--l-sidebar-width"
,
"values": { "1024": 120, "1174": 120, "1920"
: 225 } as UTSJSONObject
} as UTSJSONObject,
"contentLeftWidth"
: {
"css": "--l-content-left-width"
,
"values": { "1024": 605, "1174": 605, "1920"
: 1134 } as UTSJSONObject
} as UTSJSONObject,
"moduleBoxHeight"
: {
"css": "--l-module-box-height"
,
"values": { "1024": 332, "1174": 332, "1920"
: 623 } as UTSJSONObject
} as UTSJSONObject,
"toolBoxMinHeight"
: {
"css": "--l-tool-box-min-height"
,
"values": { "1024": 120, "1174": 120, "1920"
: 225 } as UTSJSONObject
} as UTSJSONObject,
"commonTitleHeight"
: {
"css": "--l-common-title-height"
,
"values": { "1024": 60, "1174": 60, "1920"
: 113 } as UTSJSONObject
} as UTSJSONObject,
"storeFooterHeight"
: {
"css": "--l-store-footer-height"
,
"values": { "1024": 60, "1174": 60, "1920"
: 113 } as UTSJSONObject
} as UTSJSONObject
}
;
apps/uniappX/uniapp-x-tape/pages/boutique/index.uvue
View file @
7d25cdc
...
...
@@ -343,8 +343,11 @@ async function getBoutiquePackageList(): Promise<void> {
for (const element of arr) {
const e = element as UTSJSONObject;
if (e != null) {
e.scriptIntroduction = ((e.scriptIntroduction ?? "") as string).replaceAll(/<\/?br\s*\/?>|\\n|\n/g, "<br>");
e.content = ((e.content ?? "") as string).replaceAll(/<\/?br\s*\/?>|\\n|\n/g, "<br>");
// UTS replaceAll 仅支持字符串参数,正则需用 replace(reg, 'g')
// eslint-disable-next-line unicorn/prefer-string-replace-all
e.scriptIntroduction = ((e.scriptIntroduction ?? "") as string).replace(/<\/?br\s*\/?>|\\n|\n/g, "<br>");
// eslint-disable-next-line unicorn/prefer-string-replace-all
e.content = ((e.content ?? "") as string).replace(/<\/?br\s*\/?>|\\n|\n/g, "<br>");
if (e.marketPrice != null) e.marketPrice = Number.parseFloat((e.marketPrice as any).toString()).toString();
if (e.packagePrice != null) e.packagePrice = Number.parseFloat((e.packagePrice as any).toString()).toString();
list.push(e);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment