diff --git a/assets/images/activity1.png b/assets/images/activity1.png new file mode 100644 index 0000000..beaa1f5 Binary files /dev/null and b/assets/images/activity1.png differ diff --git a/assets/images/activity2.png b/assets/images/activity2.png new file mode 100644 index 0000000..c0225dd Binary files /dev/null and b/assets/images/activity2.png differ diff --git a/assets/images/avater2 copy.png b/assets/images/avater2 copy.png new file mode 100644 index 0000000..1b54ddb Binary files /dev/null and b/assets/images/avater2 copy.png differ diff --git a/assets/images/banner copy.png b/assets/images/banner copy.png new file mode 100644 index 0000000..6fed8e8 Binary files /dev/null and b/assets/images/banner copy.png differ diff --git a/assets/images/bg-yy.png b/assets/images/bg-yy.png new file mode 100644 index 0000000..3f169b6 Binary files /dev/null and b/assets/images/bg-yy.png differ diff --git a/assets/images/crown.png b/assets/images/crown.png new file mode 100644 index 0000000..4f6ceb1 Binary files /dev/null and b/assets/images/crown.png differ diff --git a/assets/images/faxian.png b/assets/images/faxian.png new file mode 100644 index 0000000..e3a2fe1 Binary files /dev/null and b/assets/images/faxian.png differ diff --git a/assets/images/info copy.png b/assets/images/info copy.png new file mode 100644 index 0000000..e46a65a Binary files /dev/null and b/assets/images/info copy.png differ diff --git a/assets/images/info.png b/assets/images/info.png new file mode 100644 index 0000000..e46a65a Binary files /dev/null and b/assets/images/info.png differ diff --git a/assets/images/my_attention.png b/assets/images/my_attention.png new file mode 100644 index 0000000..cf67522 Binary files /dev/null and b/assets/images/my_attention.png differ diff --git a/assets/images/my_collect.png b/assets/images/my_collect.png new file mode 100644 index 0000000..4d52865 Binary files /dev/null and b/assets/images/my_collect.png differ diff --git a/assets/images/my_download.png b/assets/images/my_download.png new file mode 100644 index 0000000..4703622 Binary files /dev/null and b/assets/images/my_download.png differ diff --git a/assets/images/my_release.png b/assets/images/my_release.png new file mode 100644 index 0000000..ef1836e Binary files /dev/null and b/assets/images/my_release.png differ diff --git a/assets/images/pingdao.png b/assets/images/pingdao.png new file mode 100644 index 0000000..d95f718 Binary files /dev/null and b/assets/images/pingdao.png differ diff --git a/assets/images/shouye.png b/assets/images/shouye.png new file mode 100644 index 0000000..e3feaf5 Binary files /dev/null and b/assets/images/shouye.png differ diff --git a/assets/images/talent-detail-bg.png b/assets/images/talent-detail-bg.png new file mode 100644 index 0000000..6fd5aa3 Binary files /dev/null and b/assets/images/talent-detail-bg.png differ diff --git a/assets/images/technicalCertificates.png b/assets/images/technicalCertificates.png new file mode 100644 index 0000000..e72f51a Binary files /dev/null and b/assets/images/technicalCertificates.png differ diff --git a/assets/images/wode.png b/assets/images/wode.png new file mode 100644 index 0000000..7bb41a0 Binary files /dev/null and b/assets/images/wode.png differ diff --git a/components/m/RecommendItem/index.vue b/components/m/RecommendItem/index.vue new file mode 100644 index 0000000..31518f3 --- /dev/null +++ b/components/m/RecommendItem/index.vue @@ -0,0 +1,181 @@ + + + + + diff --git a/components/m/detail-components/Works.vue b/components/m/detail-components/Works.vue new file mode 100644 index 0000000..79cebea --- /dev/null +++ b/components/m/detail-components/Works.vue @@ -0,0 +1,16 @@ + + + + + diff --git a/components/m/detail-components/certificates.vue b/components/m/detail-components/certificates.vue new file mode 100644 index 0000000..f32905f --- /dev/null +++ b/components/m/detail-components/certificates.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/components/m/detail-components/technicalCertificates.vue b/components/m/detail-components/technicalCertificates.vue new file mode 100644 index 0000000..5ace29c --- /dev/null +++ b/components/m/detail-components/technicalCertificates.vue @@ -0,0 +1,35 @@ + + + + + diff --git a/components/m/home-components/ActivityBanner.vue b/components/m/home-components/ActivityBanner.vue new file mode 100644 index 0000000..b938db4 --- /dev/null +++ b/components/m/home-components/ActivityBanner.vue @@ -0,0 +1,108 @@ + + + + + diff --git a/components/m/home-components/RecommendBanner.vue b/components/m/home-components/RecommendBanner.vue new file mode 100644 index 0000000..b07bb2c --- /dev/null +++ b/components/m/home-components/RecommendBanner.vue @@ -0,0 +1,98 @@ + + + + + diff --git a/components/m/home-components/SearchBar.vue b/components/m/home-components/SearchBar.vue new file mode 100644 index 0000000..f66d88c --- /dev/null +++ b/components/m/home-components/SearchBar.vue @@ -0,0 +1,64 @@ + + + + + diff --git a/components/m/nav-bar/index.vue b/components/m/nav-bar/index.vue new file mode 100644 index 0000000..86f15b9 --- /dev/null +++ b/components/m/nav-bar/index.vue @@ -0,0 +1,201 @@ + + + + + diff --git a/layouts/m.vue b/layouts/m.vue index 01c1509..d7c3530 100644 --- a/layouts/m.vue +++ b/layouts/m.vue @@ -11,7 +11,7 @@ .m { width: 100%; height: 100%; - background-color: #f5f5f5; + background-color: #f8f8f8; } @@ -23,6 +23,7 @@ min-width: unset !important; width: 100% !important; max-width: 100% !important; + background-color: #f8f8f8; } /* 重置 #__nuxt 容器的样式 */ diff --git a/nuxt.config.ts b/nuxt.config.ts index 81eeee6..75020d8 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -12,7 +12,7 @@ export default defineNuxtConfig({ debug: process.env.NODE_ENV === 'development', // 开启详细调试日志 ssr: true, - modules: ['@unocss/nuxt', '@pinia/nuxt', '@element-plus/nuxt', 'pinia-plugin-persistedstate/nuxt'], + modules: ['@unocss/nuxt', '@pinia/nuxt', '@element-plus/nuxt', 'pinia-plugin-persistedstate/nuxt','@vant/nuxt'], unocss: { nuxtLayers: true, }, @@ -30,6 +30,19 @@ export default defineNuxtConfig({ }, postcss: { plugins: [ + // 将 rpx 单位仅在移动端样式中转换为 px(在 px->vw 之前) + { + postcssPlugin: 'rpx-to-px-mobile-only', + Declaration(decl) { + const file = decl.source && decl.source.input && decl.source.input.file + if (!file) return + const normalized = file.replace(/\\/g, '/'); + if (!/\/pages\/mobile\//.test(normalized)) return + if (typeof decl.value === 'string' && decl.value.includes('rpx')) { + decl.value = decl.value.replace(/(-?\d*\.?\d+)rpx/g, (_, n) => `${n}px`) + } + }, + }, postcsspxtoviewport({ unitToConvert: 'px', viewportWidth: 750, diff --git a/pages/mobile/channel/index.vue b/pages/mobile/channel/index.vue new file mode 100644 index 0000000..02cf5f7 --- /dev/null +++ b/pages/mobile/channel/index.vue @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/pages/mobile/find/index.vue b/pages/mobile/find/index.vue new file mode 100644 index 0000000..e56a031 --- /dev/null +++ b/pages/mobile/find/index.vue @@ -0,0 +1,14 @@ + + + + + \ No newline at end of file diff --git a/pages/mobile/gloabal-cad-drawings/index.vue b/pages/mobile/gloabal-cad-drawings/index.vue new file mode 100644 index 0000000..a6c5e9f --- /dev/null +++ b/pages/mobile/gloabal-cad-drawings/index.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/pages/mobile/index.vue b/pages/mobile/index.vue index ac4c54b..48abb99 100644 --- a/pages/mobile/index.vue +++ b/pages/mobile/index.vue @@ -1,75 +1,197 @@ - diff --git a/pages/mobile/message_notice/index.vue b/pages/mobile/message_notice/index.vue new file mode 100644 index 0000000..a917e3b --- /dev/null +++ b/pages/mobile/message_notice/index.vue @@ -0,0 +1,245 @@ + + + + + diff --git a/pages/mobile/talent-detail/index.vue b/pages/mobile/talent-detail/index.vue new file mode 100644 index 0000000..9a5cad9 --- /dev/null +++ b/pages/mobile/talent-detail/index.vue @@ -0,0 +1,309 @@ + + + + + diff --git a/pages/mobile/transaction_record/index.vue b/pages/mobile/transaction_record/index.vue new file mode 100644 index 0000000..ef5f887 --- /dev/null +++ b/pages/mobile/transaction_record/index.vue @@ -0,0 +1,221 @@ + + + + + diff --git a/pages/mobile/user/index.vue b/pages/mobile/user/index.vue new file mode 100644 index 0000000..e62e051 --- /dev/null +++ b/pages/mobile/user/index.vue @@ -0,0 +1,345 @@ + + + + + diff --git a/pages/mobile/user_info/index.vue b/pages/mobile/user_info/index.vue new file mode 100644 index 0000000..8435925 --- /dev/null +++ b/pages/mobile/user_info/index.vue @@ -0,0 +1,152 @@ + + + + +