diff --git a/src/assets/icons/Return.svg b/src/assets/icons/Return.svg new file mode 100644 index 0000000..7886d7a --- /dev/null +++ b/src/assets/icons/Return.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/assets/images/workshop/bg/end_bg.png b/src/assets/images/workshop/bg/end_bg.png new file mode 100644 index 0000000..f5f9fba Binary files /dev/null and b/src/assets/images/workshop/bg/end_bg.png differ diff --git a/src/assets/images/workshop/bg/picture_bg.png b/src/assets/images/workshop/bg/picture_bg.png new file mode 100644 index 0000000..bdf81bb Binary files /dev/null and b/src/assets/images/workshop/bg/picture_bg.png differ diff --git a/src/assets/images/workshop/bg/upload_bg.png b/src/assets/images/workshop/bg/upload_bg.png new file mode 100644 index 0000000..2271943 Binary files /dev/null and b/src/assets/images/workshop/bg/upload_bg.png differ diff --git a/src/components/HeaderTitle.vue b/src/components/HeaderTitle.vue new file mode 100644 index 0000000..51644be --- /dev/null +++ b/src/components/HeaderTitle.vue @@ -0,0 +1,46 @@ + + + + + diff --git a/src/components/SvgIcon/index.vue b/src/components/SvgIcon/index.vue index 791e66d..e00e238 100644 --- a/src/components/SvgIcon/index.vue +++ b/src/components/SvgIcon/index.vue @@ -38,6 +38,7 @@ const svgClass = computed(() => { width: 1em; height: 1em; fill: currentColor; + color: var(--svg-icon-color); } .c-svg { width: 100%; diff --git a/src/router/index.ts b/src/router/index.ts index f4c5bc0..114b133 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -23,8 +23,16 @@ const router = createRouter({ name: 'SelectStyle', component: () => import('../views/Workshop/selectStyle.vue'), }, - - + { + path: '/workshop/uploadFace', + name: 'uploadFace', + component: () => import('../views/Workshop/uploadFace/index.vue'), + }, + { + path: '/workshop/customize', + name: 'customize', + component: () => import('../views/Workshop/customize/index.vue'), + }, ] }, ] diff --git a/src/utils/flexible.js b/src/utils/flexible.js index 4594585..0df0623 100644 --- a/src/utils/flexible.js +++ b/src/utils/flexible.js @@ -19,7 +19,7 @@ let flexible = (designWidth, maxWidth,minWidth) =>{ // }else{ // designWidth = 375 // } - var rem = Math.round(width * 10 / designWidth); + var rem = (width * 10 / designWidth).toFixed(2); docEl.style.fontSize = rem+'px' remStyle.innerHTML = 'html{font-size:' + rem + 'px;}'; } diff --git a/src/views/Workshop/customize/index.vue b/src/views/Workshop/customize/index.vue new file mode 100644 index 0000000..7961a45 --- /dev/null +++ b/src/views/Workshop/customize/index.vue @@ -0,0 +1,191 @@ + + + + + diff --git a/src/views/Workshop/uploadFace/index.vue b/src/views/Workshop/uploadFace/index.vue new file mode 100644 index 0000000..78881aa --- /dev/null +++ b/src/views/Workshop/uploadFace/index.vue @@ -0,0 +1,195 @@ + + + + +