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 @@ + + + + + + + + {{ item.title }} + by:{{ item.author }} + + + + 👁 + {{ item.views }} + + + 👍 + {{ item.likes }} + + + 💬 + {{ item.comments }} + + + + + 查看 + + + + + + + + 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 @@ + + + + + + {{ cert.year }} + {{ cert.description }} + + + + + + + + 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 @@ + + + + + {{ tab.title }} + + + 查看全部 + › + + + + + + + + + + + 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 @@ + + + + 全部 + 机械设备 + 零部件模型 + 交通运输 + 电子产品 + + ≡ + + + + + + + + + {{ section.name }} + + + + + + + + 软件分类 ∨ + 图纸类型 ∨ + + + + + + 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 @@ + + + + + + + + + + {{ item.title }} + by:{{ item.author }} + + + + 👁 + {{ item.views }} + + + 👍 + {{ item.likes }} + + + 💬 + {{ item.comments }} + + + + + 查看 + + + + + + + + + + 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 @@ + + + + + + + + {{ tab.name }} + + + + + + + + + + + + + {{ message.title }} + {{ message.time }} + + {{ message.content }} + + + + + + + 交易消息和论坛社区互动的图标统一下,样式一样 + + + + + + 交易消息和论坛社区互动的图标统一下,样式一样 + + + + + + + + + + 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 @@ + + + + + + + + + + {{ talentInfo.name }} + + {{ tag }} + + + 毕业院校:{{ talentInfo.education }} + + + + {{ isFollowed ? "已关注" : "+ 关注" }} + + + + + + + {{ talentInfo.worksCount }} + 作品量 + + + + + {{ talentInfo.fansCount }} + 粉丝量 + + + + + + 个人简介 + + {{ talentInfo.introduction }} + + + + + + {{ tab }} + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + + 我的余额 (元) + 🏅 资产保障中 + + {{ balance.toFixed(2) }} + + 充值 + 提现 + + + + + + + 全部 + + + + 当前时间: {{ currentMonth }} + + + + + + + + + + {{ transaction.type }} + {{ transaction.date }} + + + {{ + transaction.amount > 0 + ? "+" + transaction.amount + : transaction.amount + }} + {{ transaction.reference }} + + + + + + + + + + + + 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 @@ + + + + + + + + + + + + 登录/注册 + 登录注册后享受更多精彩内容 + + + ⚙️ + + + + + + 200 + 金币余额(元) + + + 135 + 今日浏览量 + + + 370 + 今日收益(元) + + + + + + + 资源中心 + + + + + + + 我的发布 + + + + + + + 我的下载 + + + + + + + 我的关注 + + + + + + + 我的收藏 + + + + + + + + + + ✅ + 安全中心 + + › + + + + + + 🔔 + 消息中心 + + › + + + + + + 🧾 + 交易记录 + + › + + + + + + ℹ️ + 关于我们 + + › + + + + + + + + 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 @@ + + + + 头像 + + + + + + + 用户名 + {{ userInfo.username }} + + + + 真实姓名 + + {{ userInfo.realName }} + 已认证 + + + + + 手机号 + {{ userInfo.phone }} + + + + 邮箱 + {{ userInfo.email }} + + + + 城市 + {{ userInfo.city }} + + + + 技能标签 + + + #{{ tag }} + + + + + + 技能证书 + + + + + + + 个人简介 + {{ userInfo.bio }} + + + + + + + +
这是一个测试页面,用于验证移动端样式重置是否生效。
测试盒子 - 宽度应该适应屏幕