From 5937dc9402da359a6117f9aace1fc0635237cb75 Mon Sep 17 00:00:00 2001 From: lxz Date: Fri, 5 Jan 2024 17:46:55 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/own-share/own-share.vue | 167 +++++++++++ components/own-share/readme.md | 59 ++++ components/return/index.vue | 134 +++++++++ components/uni-popup/uni-popup.vue | 264 ++++++++++++++++++ components/uni-transition/uni-transition.vue | 278 +++++++++++++++++++ manifest.json | 4 +- pages.json | 10 +- pages/oaHome/oaHome.vue | 60 ++-- pages/oaMy/oaMy.vue | 28 +- pages/oaTask/oaTask.vue | 3 + static/img/fb1.png | Bin 0 -> 446 bytes static/img/fb2.png | Bin 0 -> 1119 bytes static/newWork/tabbar/index.png | Bin 3031 -> 3028 bytes static/newWork/tabbar/indexAct.png | Bin 0 -> 3173 bytes static/newWork/tabbar/mine.png | Bin 3584 -> 3562 bytes static/newWork/tabbar/mineAct.png | Bin 0 -> 3922 bytes 16 files changed, 961 insertions(+), 46 deletions(-) create mode 100644 components/own-share/own-share.vue create mode 100644 components/own-share/readme.md create mode 100644 components/return/index.vue create mode 100644 components/uni-popup/uni-popup.vue create mode 100644 components/uni-transition/uni-transition.vue create mode 100644 static/img/fb1.png create mode 100644 static/img/fb2.png create mode 100644 static/newWork/tabbar/indexAct.png create mode 100644 static/newWork/tabbar/mineAct.png diff --git a/components/own-share/own-share.vue b/components/own-share/own-share.vue new file mode 100644 index 0000000..6213042 --- /dev/null +++ b/components/own-share/own-share.vue @@ -0,0 +1,167 @@ + + + + + \ No newline at end of file diff --git a/components/own-share/readme.md b/components/own-share/readme.md new file mode 100644 index 0000000..efe51da --- /dev/null +++ b/components/own-share/readme.md @@ -0,0 +1,59 @@ +### 使用方法 + 本组件依赖于 uni-popup 组件 跟 uni-transtion 组件 + + +``` js + + + + //先引入组件 + import ownShare from '@/components/own-share/own-share.vue' + //然后使用 + components:{ + ownShare + } + + //打开分享 + this.$nextTick(()=>{ + this.$refs.share.open() + }) + //关闭分享 + this.$nextTick(()=>{ + this.$refs.share.close() + }) + //当然也可以用 easycom 直接使用 +``` +参数 分享只用于app + +| 参数 | 类型 | 是否必填 | +| ---- | ---- | ---- | +| shareSummary | String | 只分享内容时必填 | +| shareImage | String | 只分享图片时必填 | +| shareTitle | String | 否 | +| shareHref | String | 分享图文时必填 | +| miniProgram | Object | 分享小程序必填 | + +miniProgram参数 [详情](https://uniapp.dcloud.io/api/plugins/share?id=share) + +| 参数 | 类型 | 是否必填 | +| ---- | ---- | ---- | +| id | String | 微信小程序原始id | +| path | String | 点击链接进入的页面 | +| type | Number | 微信小程序版本类型 | +| webUrl | String | 兼容低版本的网页链接 | + +| 事件 | 说明 | +| ---- | ---- | +| shareSuccess | 成功回调 | +| shareFail | 失败回调 | + +---- +**图标链接写在组件里面请自行修改(请看示例项目)** + + +[了解更多uniapp分享,请参考官网](https://uniapp.dcloud.io/api/plugins/share) + + diff --git a/components/return/index.vue b/components/return/index.vue new file mode 100644 index 0000000..f4ea37d --- /dev/null +++ b/components/return/index.vue @@ -0,0 +1,134 @@ + + + + + \ No newline at end of file diff --git a/components/uni-popup/uni-popup.vue b/components/uni-popup/uni-popup.vue new file mode 100644 index 0000000..2b764a9 --- /dev/null +++ b/components/uni-popup/uni-popup.vue @@ -0,0 +1,264 @@ + + + + \ No newline at end of file diff --git a/components/uni-transition/uni-transition.vue b/components/uni-transition/uni-transition.vue new file mode 100644 index 0000000..0543b44 --- /dev/null +++ b/components/uni-transition/uni-transition.vue @@ -0,0 +1,278 @@ + + + + + \ No newline at end of file diff --git a/manifest.json b/manifest.json index c5d9afc..6f5950b 100644 --- a/manifest.json +++ b/manifest.json @@ -3,8 +3,8 @@ // "appid" : "__UNI__3A527D1", "appid": "__UNI__A495155", "description": "", - "versionName": "1.3.1", - "versionCode": 131, + "versionName": "1.0.2", + "versionCode": 102, "transformPx": false, /* 5+App特有相关 */ "app-plus": { diff --git a/pages.json b/pages.json index 1226132..7762837 100644 --- a/pages.json +++ b/pages.json @@ -953,22 +953,22 @@ }, "tabBar": { "color": "#282828", - "selectedColor": "#0122C7", + "selectedColor": "#2B63E3", "borderStyle": "white", "backgroundColor": "#ffffff", "list": [{ "pagePath": "pages/oaHome/oaHome", "text": "首页", - "iconPath": "static/tabs-icon/home.png", - "selectedIconPath": "static/tabs-icon/home-a.png" + "iconPath": "static/newWork/tabbar/index.png", + "selectedIconPath": "static/newWork/tabbar/indexAct.png" }, { "pagePath": "pages/oaMy/oaMy", "text": "我的", - "iconPath": "static/tabs-icon/my.png", - "selectedIconPath": "static/tabs-icon/my-a.png" + "iconPath": "static/newWork/tabbar/mine.png", + "selectedIconPath": "static/newWork/tabbar/mineAct.png" } ] }, diff --git a/pages/oaHome/oaHome.vue b/pages/oaHome/oaHome.vue index 6213cea..a3f0f87 100644 --- a/pages/oaHome/oaHome.vue +++ b/pages/oaHome/oaHome.vue @@ -1,12 +1,10 @@