Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦想橡皮擦
uni-starter
提交
68755989
U
uni-starter
项目概览
梦想橡皮擦
/
uni-starter
与 Fork 源项目一致
Fork自
DCloud / uni-starter
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
68755989
编写于
12月 16, 2021
作者:
DCloud_JSON
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复H5端在about页面,返回触发引发报错
上级
e3b191a1
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
111 addition
and
86 deletion
+111
-86
pages/ucenter/about/about.vue
pages/ucenter/about/about.vue
+1
-1
pages/ucenter/ucenter.vue
pages/ucenter/ucenter.vue
+1
-1
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/push/config.json
.../cloudfunctions/common/uni-config-center/push/config.json
+10
-0
uni_modules/uni-share/changelog.md
uni_modules/uni-share/changelog.md
+4
-0
uni_modules/uni-share/js_sdk/uni-image-menu.js
uni_modules/uni-share/js_sdk/uni-image-menu.js
+10
-9
uni_modules/uni-share/package.json
uni_modules/uni-share/package.json
+1
-1
uni_modules/uni-share/readme.md
uni_modules/uni-share/readme.md
+84
-74
未找到文件。
pages/ucenter/about/about.vue
浏览文件 @
68755989
...
...
@@ -87,7 +87,7 @@
"
text
"
:
this
.
$t
(
'
common
'
).
wechatBbs
,
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
"
scene
"
:
"
WXS
enc
eTimeline
"
"
scene
"
:
"
WXS
cen
eTimeline
"
}
},
{
...
...
pages/ucenter/ucenter.vue
浏览文件 @
68755989
...
...
@@ -310,7 +310,7 @@
"
text
"
:
this
.
$t
(
'
common
'
).
wechatBbs
,
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
"
scene
"
:
"
WXS
enc
eTimeline
"
"
scene
"
:
"
WXS
cen
eTimeline
"
}
},
{
...
...
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/push/config.json
0 → 100644
浏览文件 @
68755989
{
"goEasy"
:
{
"commonKey"
:
"BC-01f554db12604b46ae8373907e28794d"
,
"clientKey"
:
"PC-bfb6b6517e7f4c4f8b9285911fd3be27"
,
"subscribeKey"
:
"BS-ac71890d8612459bb4b22429cf406be3"
,
"restKey"
:
"PR-77f4630e731e4b5f8078aea77268cba4"
,
"secretKey"
:
"4bfeca3985504b3d"
,
"restHost"
:
"rest-hangzhou.goeasy.io"
}
}
uni_modules/uni-share/changelog.md
浏览文件 @
68755989
## 2.0.2(2021-12-16)
修复在某些情况下报:
`Cannot read property 'hide' of undefined`
的问题
## 2.0.1(2021-11-29)
修改错误的scene值WXSenceTimeline(分享到朋友圈)更正为WXSceneTimeline
## 2.0.0(2021-10-14)
支持监听返回操作(如:物理返回,全面屏手机侧滑)关闭分享弹窗
## 1.0.6(2021-08-25)
...
...
uni_modules/uni-share/js_sdk/uni-image-menu.js
浏览文件 @
68755989
...
...
@@ -59,7 +59,7 @@ class NvImageMenu {
bottom
:
'
0px
'
,
left
:
'
0px
'
,
height
:
(
iconWidth
+
textHeight
+
2
*
margin
)
*
Math
.
ceil
(
list
.
length
/
4
)
+
44
+
'
px
'
,
//'264px',
'
px
'
,
//'264px',
width
:
'
100%
'
,
backgroundColor
:
'
rgb(255,255,255)
'
});
...
...
@@ -127,10 +127,10 @@ class NvImageMenu {
},
...
myList
])
nvMask
.
show
()
nvMask
.
show
()
nvImageMenu
.
show
()
// 开始动画
/*
/*
plus.nativeObj.View.startAnimation({
type: 'slide-in-bottom',
duration: 300
...
...
@@ -139,7 +139,7 @@ class NvImageMenu {
// 关闭原生动画
plus.nativeObj.View.clearAnimation();
nvImageMenu.show()
});
});
*/
...
...
@@ -194,10 +194,11 @@ class NvImageMenu {
}
hide
()
{
nvMask
.
hide
()
nvImageMenu
.
hide
()
this
.
isShow
=
false
if
(
this
.
isShow
)
{
nvMask
.
hide
()
nvImageMenu
.
hide
()
this
.
isShow
=
false
}
}
}
export
default
NvImageMenu
export
default
NvImageMenu
\ No newline at end of file
uni_modules/uni-share/package.json
浏览文件 @
68755989
{
"id"
:
"uni-share"
,
"displayName"
:
"uni-share"
,
"version"
:
"2.0.
0
"
,
"version"
:
"2.0.
2
"
,
"description"
:
"底部弹出宫格图标式的分享菜单,可覆盖原生组件。"
,
"keywords"
:
[
"分享菜单"
...
...
uni_modules/uni-share/readme.md
浏览文件 @
68755989
#### 本功能基于[底部图标菜单](https://ext.dcloud.net.cn/plugin?id=4858)封装而成。
### 示例代码
```
<template>
<button type="default" @click="uniShare">显示</button>
</template>
<template>
<button type="default" @click="uniShare">显示</button>
</template>
<script>
import uniShare from '@/uni_modules/uni-share/js_sdk/uni-share.js';
export default {
methods: {
uniShare() {
uniShare.show({
content: { //公共的分享参数配置 类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
type: 0,
href: 'https://uniapp.dcloud.io/',
title: '标题',
summary: '描述',
imageUrl: 'https://img-cdn-aliyun.dcloud.net.cn/stream/icon/__UNI__HelloUniApp.png'
},
menus: [{
"img": "/static/app-plus/sharemenu/wechatfriend.png",
"text": "微信好友",
"share": { //当前项的分享参数配置。可覆盖公共的配置如下:分享到微信小程序,配置了type=5
"provider": "weixin",
"scene": "WXSceneSession"
}
},
{
"img": "/static/app-plus/sharemenu/wechatmoments.png",
"text": "微信朋友圈",
"share": {
"provider": "weixin",
"scene": "WXSenceTimeline"
}
},
{
"img": "/static/app-plus/sharemenu/mp_weixin.png",
"text": "微信小程序",
"share": {
provider: "weixin",
scene: "WXSceneSession",
type: 5,
miniProgram: {
id: '123',
path: '/pages/list/detail',
webUrl: '/#/pages/list/detail',
type: 0
},
}
},
{
"img": "/static/app-plus/sharemenu/weibo.png",
"text": "微博",
"share": {
"provider": "sinaweibo"
}
},
{
"img": "/static/app-plus/sharemenu/qq.png",
"text": "QQ",
"share": {
"provider": "qq"
}
},
{
"img": "/static/app-plus/sharemenu/copyurl.png",
"text": "复制",
"share": "copyurl"
},
{
"img": "/static/app-plus/sharemenu/more.png",
"text": "更多",
"share": "shareSystem"
}
],
cancelText: "取消分享",
}, e => { //callback
console.log(e);
onBackPress({from}) {
console.log(from);
if(from=='backbutton'){
this.$nextTick(function(){
uniShare.hide()
})
return uniShare.isShow;
}
}
}
},
methods: {
uniShare() {
uniShare.show({
content: { //公共的分享参数配置 类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
type: 0,
href: 'https://uniapp.dcloud.io/',
title: '标题',
summary: '描述',
imageUrl: 'https://img-cdn-aliyun.dcloud.net.cn/stream/icon/__UNI__HelloUniApp.png'
},
menus: [{
"img": "/static/app-plus/sharemenu/wechatfriend.png",
"text": "微信好友",
"share": { //当前项的分享参数配置。可覆盖公共的配置如下:分享到微信小程序,配置了type=5
"provider": "weixin",
"scene": "WXSceneSession"
}
},
{
"img": "/static/app-plus/sharemenu/wechatmoments.png",
"text": "微信朋友圈",
"share": {
"provider": "weixin",
"scene": "WXSceneTimeline"
}
},
{
"img": "/static/app-plus/sharemenu/mp_weixin.png",
"text": "微信小程序",
"share": {
provider: "weixin",
scene: "WXSceneSession",
type: 5,
miniProgram: {
id: '123',
path: '/pages/list/detail',
webUrl: '/#/pages/list/detail',
type: 0
},
}
},
{
"img": "/static/app-plus/sharemenu/weibo.png",
"text": "微博",
"share": {
"provider": "sinaweibo"
}
},
{
"img": "/static/app-plus/sharemenu/qq.png",
"text": "QQ",
"share": {
"provider": "qq"
}
},
{
"img": "/static/app-plus/sharemenu/copyurl.png",
"text": "复制",
"share": "copyurl"
},
{
"img": "/static/app-plus/sharemenu/more.png",
"text": "更多",
"share": "shareSystem"
}
],
cancelText: "取消分享",
}, e => { //callback
console.log(uniShare.isShow);
console.log(e);
})
}
}
}
</script>
```
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录