From 53cb4a7b89a2ef5860a361c27eb883953d4e1071 Mon Sep 17 00:00:00 2001 From: zpc Date: Sat, 6 Sep 2025 20:17:36 +0800 Subject: [PATCH] 3333 --- common/server/config.js | 5 + components.d.ts | 1 + components/index/MahjongCard.vue | 309 ++++++++++++ manifest.json | 4 +- pages.json | 7 + pages/index/index.vue | 351 ++++++------- pages/me/login.vue | 465 ++++++++++++++++++ pages/me/me-page.vue | 383 +++++++++++---- uni_modules/uni-card/changelog.md | 26 + .../uni-card/components/uni-card/uni-card.vue | 270 ++++++++++ uni_modules/uni-card/package.json | 90 ++++ uni_modules/uni-card/readme.md | 12 + vite.config.js | 2 +- 13 files changed, 1655 insertions(+), 270 deletions(-) create mode 100644 components/index/MahjongCard.vue create mode 100644 pages/me/login.vue create mode 100644 uni_modules/uni-card/changelog.md create mode 100644 uni_modules/uni-card/components/uni-card/uni-card.vue create mode 100644 uni_modules/uni-card/package.json create mode 100644 uni_modules/uni-card/readme.md diff --git a/common/server/config.js b/common/server/config.js index c37b7c8..38b5f99 100644 --- a/common/server/config.js +++ b/common/server/config.js @@ -13,4 +13,9 @@ export const preloadConfigData = async () => { configData.value = { config: res }; + console.log("configData.value",configData.value); }; + +export const getConfigData = () => { + return configData.value; +} \ No newline at end of file diff --git a/components.d.ts b/components.d.ts index 99c6524..09a1487 100644 --- a/components.d.ts +++ b/components.d.ts @@ -8,6 +8,7 @@ export {} /* prettier-ignore */ declare module 'vue' { export interface GlobalComponents { + MahjongCard: typeof import('./components/index/MahjongCard.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] } diff --git a/components/index/MahjongCard.vue b/components/index/MahjongCard.vue new file mode 100644 index 0000000..21f0593 --- /dev/null +++ b/components/index/MahjongCard.vue @@ -0,0 +1,309 @@ + + + + + diff --git a/manifest.json b/manifest.json index ab32581..9efe9e0 100644 --- a/manifest.json +++ b/manifest.json @@ -43,7 +43,9 @@ /* ios打包配置 */ "ios" : {}, /* SDK配置 */ - "sdkConfigs" : {} + "sdkConfigs" : { + "oauth" : {} + } } }, /* 快应用特有相关 */ diff --git a/pages.json b/pages.json index f604158..07c3477 100644 --- a/pages.json +++ b/pages.json @@ -48,6 +48,13 @@ "navigationBarTitleText": "", "navigationStyle": "custom" } + }, + { + "path": "pages/me/login", + "style": { + "navigationBarTitleText": "", + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/pages/index/index.vue b/pages/index/index.vue index 72b04ae..67ea24d 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -1,77 +1,31 @@ \ No newline at end of file diff --git a/pages/me/login.vue b/pages/me/login.vue new file mode 100644 index 0000000..f4074ec --- /dev/null +++ b/pages/me/login.vue @@ -0,0 +1,465 @@ + + + + + diff --git a/pages/me/me-page.vue b/pages/me/me-page.vue index faac83e..865a422 100644 --- a/pages/me/me-page.vue +++ b/pages/me/me-page.vue @@ -1,49 +1,51 @@ - \ No newline at end of file diff --git a/uni_modules/uni-card/changelog.md b/uni_modules/uni-card/changelog.md new file mode 100644 index 0000000..c3cd8c4 --- /dev/null +++ b/uni_modules/uni-card/changelog.md @@ -0,0 +1,26 @@ +## 1.3.1(2021-12-20) +- 修复 在vue页面下略缩图显示不正常的bug +## 1.3.0(2021-11-19) +- 重构插槽的用法 ,header 替换为 title +- 新增 actions 插槽 +- 新增 cover 封面图属性和插槽 +- 新增 padding 内容默认内边距离 +- 新增 margin 卡片默认外边距离 +- 新增 spacing 卡片默认内边距 +- 新增 shadow 卡片阴影属性 +- 取消 mode 属性,可使用组合插槽代替 +- 取消 note 属性 ,使用actions插槽代替 +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-card](https://uniapp.dcloud.io/component/uniui/uni-card) +## 1.2.1(2021-07-30) +- 优化 vue3下事件警告的问题 +## 1.2.0(2021-07-13) +- 组件兼容 vue3,如何创建vue3项目详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 1.1.8(2021-07-01) +- 优化 图文卡片无图片加载时,提供占位图标 +- 新增 header 插槽,自定义卡片头部( 图文卡片 mode="style" 时,不支持) +- 修复 thumbnail 不存在仍然占位的 bug +## 1.1.7(2021-05-12) +- 新增 组件示例地址 +## 1.1.6(2021-02-04) +- 调整为uni_modules目录规范 diff --git a/uni_modules/uni-card/components/uni-card/uni-card.vue b/uni_modules/uni-card/components/uni-card/uni-card.vue new file mode 100644 index 0000000..38cf594 --- /dev/null +++ b/uni_modules/uni-card/components/uni-card/uni-card.vue @@ -0,0 +1,270 @@ + + + + + diff --git a/uni_modules/uni-card/package.json b/uni_modules/uni-card/package.json new file mode 100644 index 0000000..f16224d --- /dev/null +++ b/uni_modules/uni-card/package.json @@ -0,0 +1,90 @@ +{ + "id": "uni-card", + "displayName": "uni-card 卡片", + "version": "1.3.1", + "description": "Card 组件,提供常见的卡片样式。", + "keywords": [ + "uni-ui", + "uniui", + "card", + "", + "卡片" +], + "repository": "https://github.com/dcloudio/uni-ui", + "engines": { + "HBuilderX": "" + }, + "directories": { + "example": "../../temps/example_temps" + }, + "dcloudext": { + "category": [ + "前端组件", + "通用组件" + ], + "sale": { + "regular": { + "price": "0.00" + }, + "sourcecode": { + "price": "0.00" + } + }, + "contact": { + "qq": "" + }, + "declaration": { + "ads": "无", + "data": "无", + "permissions": "无" + }, + "npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui" + }, + "uni_modules": { + "dependencies": [ + "uni-icons", + "uni-scss" + ], + "encrypt": [], + "platforms": { + "cloud": { + "tcb": "y", + "aliyun": "y" + }, + "client": { + "App": { + "app-vue": "y", + "app-nvue": "y" + }, + "H5-mobile": { + "Safari": "y", + "Android Browser": "y", + "微信浏览器(Android)": "y", + "QQ浏览器(Android)": "y" + }, + "H5-pc": { + "Chrome": "y", + "IE": "y", + "Edge": "y", + "Firefox": "y", + "Safari": "y" + }, + "小程序": { + "微信": "y", + "阿里": "y", + "百度": "y", + "字节跳动": "y", + "QQ": "y" + }, + "快应用": { + "华为": "u", + "联盟": "u" + }, + "Vue": { + "vue2": "y", + "vue3": "y" + } + } + } + } +} diff --git a/uni_modules/uni-card/readme.md b/uni_modules/uni-card/readme.md new file mode 100644 index 0000000..7434e71 --- /dev/null +++ b/uni_modules/uni-card/readme.md @@ -0,0 +1,12 @@ + + +## Card 卡片 +> **组件名:uni-card** +> 代码块: `uCard` + +卡片视图组件。 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-card) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 + + diff --git a/vite.config.js b/vite.config.js index 814e7ba..01e2c10 100644 --- a/vite.config.js +++ b/vite.config.js @@ -28,7 +28,7 @@ export default defineConfig({ /@@:([^\s"'()<>]+?\.(png|jpe?g|gif|svg|webp))/g, (match, path) => { count++ - return `https://guyu-1308826010.cos.ap-shanghai.myqcloud.com/${path}` + return `https://admin-1308826010.cos.ap-shanghai.myqcloud.com/${path}` } ); if (count > 0) {