diff --git a/manifest.json b/manifest.json index c86e108..b8d4719 100644 --- a/manifest.json +++ b/manifest.json @@ -1,73 +1,89 @@ { - "name" : "uniapp-imitate-wx", - "appid" : "__UNI__9EFDC69", - "description" : "", - "versionName" : "1.0.0", - "versionCode" : "100", - "transformPx" : false, - /* 5+App特有相关 */ - "app-plus" : { - "usingComponents" : true, - "nvueStyleCompiler" : "uni-app", - "compilerVersion" : 3, - "splashscreen" : { - "alwaysShowBeforeRender" : true, - "waiting" : true, - "autoclose" : true, - "delay" : 0 - }, - /* 模块配置 */ - "modules" : {}, - /* 应用发布信息 */ - "distribute" : { - /* android打包配置 */ - "android" : { - "permissions" : [ - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "", - "" - ] - }, - /* ios打包配置 */ - "ios" : {}, - /* SDK配置 */ - "sdkConfigs" : {} - } - }, - /* 快应用特有相关 */ - "quickapp" : {}, - /* 小程序特有相关 */ - "mp-weixin" : { - "appid" : "", - "setting" : { - "urlCheck" : false - }, - "usingComponents" : true - }, - "mp-alipay" : { - "usingComponents" : true - }, - "mp-baidu" : { - "usingComponents" : true - }, - "mp-toutiao" : { - "usingComponents" : true - }, - "uniStatistics" : { - "enable" : false - }, - "vueVersion" : "3", - "fallbackLocale" : "zh-Hans" -} + "name": "uniapp-imitate-wx", + "appid": "__UNI__9EFDC69", + "description": "", + "versionName": "1.0.0", + "versionCode": "100", + "transformPx": false, + /* 5+App特有相关 */ + "app-plus": { + "usingComponents": true, + "nvueStyleCompiler": "uni-app", + "compilerVersion": 3, + "splashscreen": { + "alwaysShowBeforeRender": true, + "waiting": true, + "autoclose": true, + "delay": 0 + }, + "safearea": { + "background": "#ffffff", + "backgroundDark": "#2f0508", + "bottom": { + "offset": "none" + } + }, + /* 模块配置 */ + "modules": {}, + /* 应用发布信息 */ + "distribute": { + /* android打包配置 */ + "android": { + "permissions": [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios": {}, + /* SDK配置 */ + "sdkConfigs": {} + } + }, + "app-harmony": { + "safearea": { // HarmonyOS 平台的安全区域 + "background": "#ffffff", + "backgroundDark": "#2f0508", + "bottom": { + "offset": "none" // 在没有 tabBar 时,底部区域是否需要占位 + } + } + }, + /* 快应用特有相关 */ + "quickapp": {}, + /* 小程序特有相关 */ + "mp-weixin": { + "appid": "", + "setting": { + "urlCheck": false + }, + "usingComponents": true + }, + "mp-alipay": { + "usingComponents": true + }, + "mp-baidu": { + "usingComponents": true + }, + "mp-toutiao": { + "usingComponents": true + }, + "uniStatistics": { + "enable": false + }, + "vueVersion": "3", + "fallbackLocale": "zh-Hans" +} \ No newline at end of file diff --git a/pages.json b/pages.json index b5a9618..1308fd7 100644 --- a/pages.json +++ b/pages.json @@ -121,6 +121,13 @@ "navigationBarTitleText": "排行榜", "navigationStyle": "custom" } + }, + { + "path": "pages/discover/punch", + "style": { + "navigationBarTitleText": "签到", + "navigationStyle": "custom" + } } ], "globalStyle": { diff --git a/pages/discover/discover.vue b/pages/discover/discover.vue index 837476c..688bec7 100644 --- a/pages/discover/discover.vue +++ b/pages/discover/discover.vue @@ -16,6 +16,10 @@ navigateTo('/pages/discover/ranking-list') return } + if (item === 'sign') { + navigateTo('/pages/discover/punch') + return + } if (item === 'mall') { navigateTo('/pages/mall/list') return diff --git a/pages/discover/punch.vue b/pages/discover/punch.vue new file mode 100644 index 0000000..0c0521b --- /dev/null +++ b/pages/discover/punch.vue @@ -0,0 +1,31 @@ + + + + + diff --git a/pages/discover/ranking-list.vue b/pages/discover/ranking-list.vue index a8d125e..f7c30e0 100644 --- a/pages/discover/ranking-list.vue +++ b/pages/discover/ranking-list.vue @@ -5,20 +5,20 @@ - + @@ -27,68 +27,122 @@ - - - 排行 - - - 用户 - - - 积分 - - + + + + 排行 + + + + + 用户 + + + + + 积分 + + + - - - 1 - - - 张三 - - - 100 - - + + + + + 1 + + + + + + + 张三 + 158****98874 + + + + + + 100 + + + diff --git a/pages/discover/styles/index.scss b/pages/discover/styles/index.scss new file mode 100644 index 0000000..1d7dfc2 --- /dev/null +++ b/pages/discover/styles/index.scss @@ -0,0 +1,34 @@ +// 通用头部 +.public-header—box { + position: relative; + height: 416rpx; + background: linear-gradient(0deg, #00d993 0%, #00d9c5 100%); + &::after { + content: ''; + position: absolute; + width: 100%; + height: 38rpx; + left: 0; + bottom: 0; + background: #ffffff; + border-radius: 32rpx 32rpx 0rpx 0rpx; + } + .left-icon { + width: 354rpx; + height: 166rpx; + position: absolute; + bottom: 42rpx; + left: 48rpx; + } + .right-icon { + width: 450rpx; + height: 218rpx; + position: absolute; + bottom: 10rpx; + right: -60rpx; + } +} + +.top-left-icon { + height: 42rpx; +} diff --git a/static/images/discover/grade1.png b/static/images/discover/grade1.png new file mode 100644 index 0000000..144a8f1 Binary files /dev/null and b/static/images/discover/grade1.png differ diff --git a/static/images/discover/grade2.png b/static/images/discover/grade2.png new file mode 100644 index 0000000..9286473 Binary files /dev/null and b/static/images/discover/grade2.png differ diff --git a/static/images/discover/grade3.png b/static/images/discover/grade3.png new file mode 100644 index 0000000..edfac62 Binary files /dev/null and b/static/images/discover/grade3.png differ diff --git a/static/images/ranking-list/hat.png b/static/images/discover/hat.png similarity index 100% rename from static/images/ranking-list/hat.png rename to static/images/discover/hat.png diff --git a/static/images/ranking-list/title-icon.png b/static/images/discover/title-icon.png similarity index 100% rename from static/images/ranking-list/title-icon.png rename to static/images/discover/title-icon.png diff --git a/uni_modules/uni-row/changelog.md b/uni_modules/uni-row/changelog.md new file mode 100644 index 0000000..5b465bc --- /dev/null +++ b/uni_modules/uni-row/changelog.md @@ -0,0 +1,10 @@ +## 1.0.0(2021-11-19) +- 优化 组件UI,并提供设计资源,详见:[https://uniapp.dcloud.io/component/uniui/resource](https://uniapp.dcloud.io/component/uniui/resource) +- 文档迁移,详见:[https://uniapp.dcloud.io/component/uniui/uni-row](https://uniapp.dcloud.io/component/uniui/uni-row) +## 0.1.0(2021-07-13) +- 组件兼容 vue3,如何创建vue3项目,详见 [uni-app 项目支持 vue3 介绍](https://ask.dcloud.net.cn/article/37834) +## 0.0.4(2021-05-12) +- 新增 组件示例地址 +## 0.0.3(2021-02-05) +- 调整为uni_modules目录规范 +- 新增uni-row组件 diff --git a/uni_modules/uni-row/components/uni-col/uni-col.vue b/uni_modules/uni-row/components/uni-col/uni-col.vue new file mode 100644 index 0000000..84e2deb --- /dev/null +++ b/uni_modules/uni-row/components/uni-col/uni-col.vue @@ -0,0 +1,317 @@ + + + + + diff --git a/uni_modules/uni-row/components/uni-row/uni-row.vue b/uni_modules/uni-row/components/uni-row/uni-row.vue new file mode 100644 index 0000000..f8e8542 --- /dev/null +++ b/uni_modules/uni-row/components/uni-row/uni-row.vue @@ -0,0 +1,190 @@ + + + + + diff --git a/uni_modules/uni-row/package.json b/uni_modules/uni-row/package.json new file mode 100644 index 0000000..3f52fa6 --- /dev/null +++ b/uni_modules/uni-row/package.json @@ -0,0 +1,87 @@ +{ + "id": "uni-row", + "displayName": "uni-row 布局-行", + "version": "1.0.0", + "description": "流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局。", + "keywords": [ + "uni-ui", + "uniui", + "栅格", + "布局", + "layout" +], + "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-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": "u" + } + } + } + } +} \ No newline at end of file diff --git a/uni_modules/uni-row/readme.md b/uni_modules/uni-row/readme.md new file mode 100644 index 0000000..3c9c8b9 --- /dev/null +++ b/uni_modules/uni-row/readme.md @@ -0,0 +1,10 @@ +## Layout 布局 + +> **组件名 uni-row、uni-col** +> 代码块: `uRow`、`uCol` + + +流式栅格系统,随着屏幕或视口分为 24 份,可以迅速简便地创建布局。 + +### [查看文档](https://uniapp.dcloud.io/component/uniui/uni-row) +#### 如使用过程中有任何问题,或者您对uni-ui有一些好的建议,欢迎加入 uni-ui 交流群:871950839 \ No newline at end of file