Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
96ee1e99
U
uni-starter
项目概览
DCloud
/
uni-starter
通知
4676
Star
229
Fork
210
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
3
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
3
Issue
3
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
96ee1e99
编写于
10月 25, 2024
作者:
Anne_LXM
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
static下的app-plus改为app
上级
25fedfb9
变更
21
隐藏空白更改
内联
并排
Showing
21 changed file
with
115 addition
and
115 deletion
+115
-115
pages/ucenter/about/about.vue
pages/ucenter/about/about.vue
+58
-58
pages/ucenter/ucenter.vue
pages/ucenter/ucenter.vue
+6
-6
static/app/sharemenu/copyurl.png
static/app/sharemenu/copyurl.png
+0
-0
static/app/sharemenu/more.png
static/app/sharemenu/more.png
+0
-0
static/app/sharemenu/mp_weixin.png
static/app/sharemenu/mp_weixin.png
+0
-0
static/app/sharemenu/qq.png
static/app/sharemenu/qq.png
+0
-0
static/app/sharemenu/wechatfriend.png
static/app/sharemenu/wechatfriend.png
+0
-0
static/app/sharemenu/wechatmoments.png
static/app/sharemenu/wechatmoments.png
+0
-0
static/app/sharemenu/weibo.png
static/app/sharemenu/weibo.png
+0
-0
uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue
...ponents/uni-id-pages-fab-login/uni-id-pages-fab-login.vue
+25
-25
uni_modules/uni-id-pages/static/app/apple.png
uni_modules/uni-id-pages/static/app/apple.png
+0
-0
uni_modules/uni-id-pages/static/app/uni-fab-login/alipay.png
uni_modules/uni-id-pages/static/app/uni-fab-login/alipay.png
+0
-0
uni_modules/uni-id-pages/static/app/uni-fab-login/apple.png
uni_modules/uni-id-pages/static/app/uni-fab-login/apple.png
+0
-0
uni_modules/uni-id-pages/static/app/uni-fab-login/douyin.png
uni_modules/uni-id-pages/static/app/uni-fab-login/douyin.png
+0
-0
uni_modules/uni-id-pages/static/app/uni-fab-login/facebook.png
...odules/uni-id-pages/static/app/uni-fab-login/facebook.png
+0
-0
uni_modules/uni-id-pages/static/app/uni-fab-login/google.png
uni_modules/uni-id-pages/static/app/uni-fab-login/google.png
+0
-0
uni_modules/uni-id-pages/static/app/uni-fab-login/qq.png
uni_modules/uni-id-pages/static/app/uni-fab-login/qq.png
+0
-0
uni_modules/uni-id-pages/static/app/uni-fab-login/sinaweibo.png
...dules/uni-id-pages/static/app/uni-fab-login/sinaweibo.png
+0
-0
uni_modules/uni-id-pages/static/app/uni-fab-login/taobao.png
uni_modules/uni-id-pages/static/app/uni-fab-login/taobao.png
+0
-0
uni_modules/uni-id-pages/static/app/uni-fab-login/univerify.png
...dules/uni-id-pages/static/app/uni-fab-login/univerify.png
+0
-0
uni_modules/uni-share/readme.md
uni_modules/uni-share/readme.md
+26
-26
未找到文件。
pages/ucenter/about/about.vue
浏览文件 @
96ee1e99
...
@@ -4,15 +4,15 @@
...
@@ -4,15 +4,15 @@
<image
class=
"logoImg"
:src=
"about.logo"
></image>
<image
class=
"logoImg"
:src=
"about.logo"
></image>
<text
class=
"tip appName"
>
{{
about
.
appName
}}
</text>
<text
class=
"tip appName"
>
{{
about
.
appName
}}
</text>
<text
class=
"tip"
>
Version
{{
version
}}
</text>
<text
class=
"tip"
>
Version
{{
version
}}
</text>
<view
class=
"qrcode"
>
<view
class=
"qrcode"
>
<!--uqrcode 组件来源,插件Sansnn-uQRCode 链接地址:https://ext.dcloud.net.cn/plugin?id=1287-->
<!--uqrcode 组件来源,插件Sansnn-uQRCode 链接地址:https://ext.dcloud.net.cn/plugin?id=1287-->
<uqrcode
:size=
"100"
canvas-id=
"qrcode"
:value=
"about.download"
></uqrcode>
<uqrcode
:size=
"100"
canvas-id=
"qrcode"
:value=
"about.download"
></uqrcode>
</view>
</view>
<text
class=
"tip"
>
{{
$t
(
'
about.sacnQR
'
)
}}
{{
about
.
appName
}}
{{
$t
(
'
about.client
'
)
}}
</text>
<text
class=
"tip"
>
{{
$t
(
'
about.sacnQR
'
)
}}
{{
about
.
appName
}}
{{
$t
(
'
about.client
'
)
}}
</text>
</view>
</view>
<view
class=
"copyright"
>
<view
class=
"copyright"
>
<view
class=
"agreement-box"
v-for=
"(agreement,index) in agreements"
:key=
"index"
>
<view
class=
"agreement-box"
v-for=
"(agreement,index) in agreements"
:key=
"index"
>
<text
class=
"agreement"
@
click=
"navigateTo(agreement)"
>
《
{{
agreement
.
title
}}
》
</text>
<text
class=
"agreement"
@
click=
"navigateTo(agreement)"
>
《
{{
agreement
.
title
}}
》
</text>
<text
class=
"hint"
v-if=
"agreements.length-1>index"
>
{{
$t
(
'
about.and
'
)
}}
</text>
<text
class=
"hint"
v-if=
"agreements.length-1>index"
>
{{
$t
(
'
about.and
'
)
}}
</text>
</view>
</view>
...
@@ -22,25 +22,25 @@
...
@@ -22,25 +22,25 @@
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
// #ifdef APP
// #ifdef APP
import
UniShare
from
'
@/uni_modules/uni-share/js_sdk/uni-share.js
'
;
import
UniShare
from
'
@/uni_modules/uni-share/js_sdk/uni-share.js
'
;
const
uniShare
=
new
UniShare
()
const
uniShare
=
new
UniShare
()
// #endif
// #endif
import
uniIdPagesConfig
from
'
@/uni_modules/uni-id-pages/config.js
'
;
import
uniIdPagesConfig
from
'
@/uni_modules/uni-id-pages/config.js
'
;
import
uqrcode
from
"
@/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode
"
import
uqrcode
from
"
@/uni_modules/Sansnn-uQRCode/components/uqrcode/uqrcode
"
export
default
{
export
default
{
components
:{
components
:{
uqrcode
uqrcode
},
},
// #ifdef APP
// #ifdef APP
onBackPress
({
from
})
{
onBackPress
({
from
})
{
if
(
from
==
'
backbutton
'
){
if
(
from
==
'
backbutton
'
){
this
.
$nextTick
(
function
(){
this
.
$nextTick
(
function
(){
uniShare
.
hide
()
uniShare
.
hide
()
})
})
return
uniShare
.
isShow
;
return
uniShare
.
isShow
;
}
}
},
},
// #endif
// #endif
onLoad
()
{
onLoad
()
{
// #ifdef APP-PLUS
// #ifdef APP-PLUS
...
@@ -50,22 +50,22 @@
...
@@ -50,22 +50,22 @@
computed
:
{
computed
:
{
uniStarterConfig
()
{
uniStarterConfig
()
{
return
getApp
().
globalData
.
config
return
getApp
().
globalData
.
config
},
},
agreements
()
{
agreements
()
{
if
(
!
uniIdPagesConfig
.
agreements
){
if
(
!
uniIdPagesConfig
.
agreements
){
return
[]
return
[]
}
}
let
{
serviceUrl
,
privacyUrl
}
=
uniIdPagesConfig
.
agreements
let
{
serviceUrl
,
privacyUrl
}
=
uniIdPagesConfig
.
agreements
return
[
return
[
{
{
url
:
serviceUrl
,
url
:
serviceUrl
,
title
:
"
用户服务协议
"
title
:
"
用户服务协议
"
},
},
{
{
url
:
privacyUrl
,
url
:
privacyUrl
,
title
:
"
隐私政策条款
"
title
:
"
隐私政策条款
"
}
}
]
]
}
}
},
},
data
()
{
data
()
{
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
uni
.
setNavigationBarTitle
({
uni
.
setNavigationBarTitle
({
title
:
this
.
$t
(
'
about.about
'
)
+
"
"
+
this
.
about
.
appName
title
:
this
.
$t
(
'
about.about
'
)
+
"
"
+
this
.
about
.
appName
})
})
this
.
year
=
(
new
Date
).
getFullYear
()
this
.
year
=
(
new
Date
).
getFullYear
()
},
},
onNavigationBarButtonTap
()
{
onNavigationBarButtonTap
()
{
let
{
let
{
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
imageUrl
:
logo
+
'
?x-oss-process=image/resize,m_fill,h_100,w_100
'
//压缩图片解决,在ios端分享图过大导致的图片失效问题
imageUrl
:
logo
+
'
?x-oss-process=image/resize,m_fill,h_100,w_100
'
//压缩图片解决,在ios端分享图过大导致的图片失效问题
},
},
menus
:
[{
menus
:
[{
"
img
"
:
"
/static/app
-plus
/sharemenu/wechatfriend.png
"
,
"
img
"
:
"
/static/app/sharemenu/wechatfriend.png
"
,
"
text
"
:
this
.
$t
(
'
common.wechatFriends
'
),
"
text
"
:
this
.
$t
(
'
common.wechatFriends
'
),
"
share
"
:
{
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
"
provider
"
:
"
weixin
"
,
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
}
}
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/wechatmoments.png
"
,
"
img
"
:
"
/static/app/sharemenu/wechatmoments.png
"
,
"
text
"
:
this
.
$t
(
'
common.wechatBbs
'
),
"
text
"
:
this
.
$t
(
'
common.wechatBbs
'
),
"
share
"
:
{
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
"
provider
"
:
"
weixin
"
,
...
@@ -114,26 +114,26 @@
...
@@ -114,26 +114,26 @@
}
}
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/weibo.png
"
,
"
img
"
:
"
/static/app/sharemenu/weibo.png
"
,
"
text
"
:
this
.
$t
(
'
common.weibo
'
),
"
text
"
:
this
.
$t
(
'
common.weibo
'
),
"
share
"
:
{
"
share
"
:
{
"
provider
"
:
"
sinaweibo
"
"
provider
"
:
"
sinaweibo
"
}
}
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/qq.png
"
,
"
img
"
:
"
/static/app/sharemenu/qq.png
"
,
"
text
"
:
"
QQ
"
,
"
text
"
:
"
QQ
"
,
"
share
"
:
{
"
share
"
:
{
"
provider
"
:
"
qq
"
"
provider
"
:
"
qq
"
}
}
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/copyurl.png
"
,
"
img
"
:
"
/static/app/sharemenu/copyurl.png
"
,
"
text
"
:
this
.
$t
(
'
common.copy
'
),
"
text
"
:
this
.
$t
(
'
common.copy
'
),
"
share
"
:
"
copyurl
"
"
share
"
:
"
copyurl
"
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/more.png
"
,
"
img
"
:
"
/static/app/sharemenu/more.png
"
,
"
text
"
:
this
.
$t
(
'
common.more
'
),
"
text
"
:
this
.
$t
(
'
common.more
'
),
"
share
"
:
"
shareSystem
"
"
share
"
:
"
shareSystem
"
}
}
...
@@ -149,7 +149,7 @@
...
@@ -149,7 +149,7 @@
title
title
})
{
})
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
'
/uni_modules/uni-id-pages/pages/common/webview/webview?url=
'
+
url
+
'
&title=
'
+
title
,
url
:
'
/uni_modules/uni-id-pages/pages/common/webview/webview?url=
'
+
url
+
'
&title=
'
+
title
,
success
:
res
=>
{},
success
:
res
=>
{},
fail
:
()
=>
{},
fail
:
()
=>
{},
complete
:
()
=>
{}
complete
:
()
=>
{}
...
@@ -167,8 +167,8 @@
...
@@ -167,8 +167,8 @@
}
}
/* #endif */
/* #endif */
.about
{
.about
{
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
}
}
...
@@ -199,14 +199,14 @@
...
@@ -199,14 +199,14 @@
font-weight
:
500
;
font-weight
:
500
;
}
}
.qrcode
,
.qrcode
.uqrcode
{
.qrcode
,
.qrcode
.uqrcode
{
margin
:
10px
0
;
margin
:
10px
0
;
width
:
100px
;
width
:
100px
;
height
:
100px
;
height
:
100px
;
/* #ifndef APP-NVUE */
/* #ifndef APP-NVUE */
display
:
block
;
display
:
block
;
/* #endif */
/* #endif */
}
}
.copyright
{
.copyright
{
font-size
:
32rpx
;
font-size
:
32rpx
;
...
...
pages/ucenter/ucenter.vue
浏览文件 @
96ee1e99
...
@@ -299,7 +299,7 @@
...
@@ -299,7 +299,7 @@
'
?x-oss-process=image/resize,m_fill,h_100,w_100
'
//压缩图片解决,在ios端分享图过大导致的图片失效问题
'
?x-oss-process=image/resize,m_fill,h_100,w_100
'
//压缩图片解决,在ios端分享图过大导致的图片失效问题
},
},
menus
:
[{
menus
:
[{
"
img
"
:
"
/static/app
-plus
/sharemenu/wechatfriend.png
"
,
"
img
"
:
"
/static/app/sharemenu/wechatfriend.png
"
,
"
text
"
:
this
.
$t
(
'
common.wechatFriends
'
),
"
text
"
:
this
.
$t
(
'
common.wechatFriends
'
),
"
share
"
:
{
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
"
provider
"
:
"
weixin
"
,
...
@@ -307,7 +307,7 @@
...
@@ -307,7 +307,7 @@
}
}
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/wechatmoments.png
"
,
"
img
"
:
"
/static/app/sharemenu/wechatmoments.png
"
,
"
text
"
:
this
.
$t
(
'
common.wechatBbs
'
),
"
text
"
:
this
.
$t
(
'
common.wechatBbs
'
),
"
share
"
:
{
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
"
provider
"
:
"
weixin
"
,
...
@@ -315,26 +315,26 @@
...
@@ -315,26 +315,26 @@
}
}
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/weibo.png
"
,
"
img
"
:
"
/static/app/sharemenu/weibo.png
"
,
"
text
"
:
this
.
$t
(
'
common.weibo
'
),
"
text
"
:
this
.
$t
(
'
common.weibo
'
),
"
share
"
:
{
"
share
"
:
{
"
provider
"
:
"
sinaweibo
"
"
provider
"
:
"
sinaweibo
"
}
}
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/qq.png
"
,
"
img
"
:
"
/static/app/sharemenu/qq.png
"
,
"
text
"
:
"
QQ
"
,
"
text
"
:
"
QQ
"
,
"
share
"
:
{
"
share
"
:
{
"
provider
"
:
"
qq
"
"
provider
"
:
"
qq
"
}
}
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/copyurl.png
"
,
"
img
"
:
"
/static/app/sharemenu/copyurl.png
"
,
"
text
"
:
this
.
$t
(
'
common.copy
'
),
"
text
"
:
this
.
$t
(
'
common.copy
'
),
"
share
"
:
"
copyurl
"
"
share
"
:
"
copyurl
"
},
},
{
{
"
img
"
:
"
/static/app
-plus
/sharemenu/more.png
"
,
"
img
"
:
"
/static/app/sharemenu/more.png
"
,
"
text
"
:
this
.
$t
(
'
common.more
'
),
"
text
"
:
this
.
$t
(
'
common.more
'
),
"
share
"
:
"
shareSystem
"
"
share
"
:
"
shareSystem
"
}
}
...
...
static/app
-plus
/sharemenu/copyurl.png
→
static/app/sharemenu/copyurl.png
浏览文件 @
96ee1e99
文件已移动
static/app
-plus
/sharemenu/more.png
→
static/app/sharemenu/more.png
浏览文件 @
96ee1e99
文件已移动
static/app
-plus
/sharemenu/mp_weixin.png
→
static/app/sharemenu/mp_weixin.png
浏览文件 @
96ee1e99
文件已移动
static/app
-plus
/sharemenu/qq.png
→
static/app/sharemenu/qq.png
浏览文件 @
96ee1e99
文件已移动
static/app
-plus
/sharemenu/wechatfriend.png
→
static/app/sharemenu/wechatfriend.png
浏览文件 @
96ee1e99
文件已移动
static/app
-plus
/sharemenu/wechatmoments.png
→
static/app/sharemenu/wechatmoments.png
浏览文件 @
96ee1e99
文件已移动
static/app
-plus
/sharemenu/weibo.png
→
static/app/sharemenu/weibo.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue
浏览文件 @
96ee1e99
...
@@ -66,47 +66,47 @@
...
@@ -66,47 +66,47 @@
{
{
"
id
"
:
"
apple
"
,
"
id
"
:
"
apple
"
,
"
text
"
:
"
苹果登录
"
,
"
text
"
:
"
苹果登录
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/apple.png
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app/uni-fab-login/apple.png
"
,
},
},
{
{
"
id
"
:
"
univerify
"
,
"
id
"
:
"
univerify
"
,
"
text
"
:
"
一键登录
"
,
"
text
"
:
"
一键登录
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/univerify.png
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app/uni-fab-login/univerify.png
"
,
},
},
{
{
"
id
"
:
"
taobao
"
,
"
id
"
:
"
taobao
"
,
"
text
"
:
"
淘宝登录
"
,
//暂未提供该登录方式的接口示例
"
text
"
:
"
淘宝登录
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/taobao.png
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app/uni-fab-login/taobao.png
"
,
},
},
{
{
"
id
"
:
"
facebook
"
,
"
id
"
:
"
facebook
"
,
"
text
"
:
"
脸书登录
"
,
//暂未提供该登录方式的接口示例
"
text
"
:
"
脸书登录
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/facebook.png
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app/uni-fab-login/facebook.png
"
,
},
},
{
{
"
id
"
:
"
alipay
"
,
"
id
"
:
"
alipay
"
,
"
text
"
:
"
支付宝登录
"
,
//暂未提供该登录方式的接口示例
"
text
"
:
"
支付宝登录
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/alipay.png
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app/uni-fab-login/alipay.png
"
,
},
},
{
{
"
id
"
:
"
qq
"
,
"
id
"
:
"
qq
"
,
"
text
"
:
"
QQ登录
"
,
//暂未提供该登录方式的接口示例
"
text
"
:
"
QQ登录
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/qq.png
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app/uni-fab-login/qq.png
"
,
},
},
{
{
"
id
"
:
"
google
"
,
"
id
"
:
"
google
"
,
"
text
"
:
"
谷歌登录
"
,
//暂未提供该登录方式的接口示例
"
text
"
:
"
谷歌登录
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/google.png
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app/uni-fab-login/google.png
"
,
},
},
{
{
"
id
"
:
"
douyin
"
,
"
id
"
:
"
douyin
"
,
"
text
"
:
"
抖音登录
"
,
//暂未提供该登录方式的接口示例
"
text
"
:
"
抖音登录
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/douyin.png
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app/uni-fab-login/douyin.png
"
,
},
},
{
{
"
id
"
:
"
sinaweibo
"
,
"
id
"
:
"
sinaweibo
"
,
"
text
"
:
"
新浪微博
"
,
//暂未提供该登录方式的接口示例
"
text
"
:
"
新浪微博
"
,
//暂未提供该登录方式的接口示例
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/sinaweibo.png
"
,
"
logo
"
:
"
/uni_modules/uni-id-pages/static/app/uni-fab-login/sinaweibo.png
"
,
}
}
// #endif
// #endif
],
],
...
@@ -211,22 +211,22 @@
...
@@ -211,22 +211,22 @@
}
else
if
(
this
.
getRoute
(
2
)
==
path
)
{
// 如果上一个页面就是,马上要打开的页面,直接返回。防止重复开启
}
else
if
(
this
.
getRoute
(
2
)
==
path
)
{
// 如果上一个页面就是,马上要打开的页面,直接返回。防止重复开启
uni
.
navigateBack
();
uni
.
navigateBack
();
}
else
if
(
this
.
getRoute
(
1
)
!=
path
)
{
}
else
if
(
this
.
getRoute
(
1
)
!=
path
)
{
if
(
index
===
0
){
if
(
index
===
0
){
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
path
,
url
:
path
,
animationType
:
'
slide-in-left
'
,
animationType
:
'
slide-in-left
'
,
complete
(
e
)
{
complete
(
e
)
{
// console.log(e);
// console.log(e);
}
}
})
})
}
else
{
}
else
{
uni
.
redirectTo
({
uni
.
redirectTo
({
url
:
path
,
url
:
path
,
animationType
:
'
slide-in-left
'
,
animationType
:
'
slide-in-left
'
,
complete
(
e
)
{
complete
(
e
)
{
// console.log(e);
// console.log(e);
}
}
})
})
}
}
}
else
{
}
else
{
console
.
log
(
'
出乎意料的情况,path:
'
+
path
);
console
.
log
(
'
出乎意料的情况,path:
'
+
path
);
...
...
uni_modules/uni-id-pages/static/app
-plus
/apple.png
→
uni_modules/uni-id-pages/static/app/apple.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/alipay.png
→
uni_modules/uni-id-pages/static/app/uni-fab-login/alipay.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/apple.png
→
uni_modules/uni-id-pages/static/app/uni-fab-login/apple.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/douyin.png
→
uni_modules/uni-id-pages/static/app/uni-fab-login/douyin.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/facebook.png
→
uni_modules/uni-id-pages/static/app/uni-fab-login/facebook.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/google.png
→
uni_modules/uni-id-pages/static/app/uni-fab-login/google.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/qq.png
→
uni_modules/uni-id-pages/static/app/uni-fab-login/qq.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/sinaweibo.png
→
uni_modules/uni-id-pages/static/app/uni-fab-login/sinaweibo.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/taobao.png
→
uni_modules/uni-id-pages/static/app/uni-fab-login/taobao.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-id-pages/static/app
-plus
/uni-fab-login/univerify.png
→
uni_modules/uni-id-pages/static/app/uni-fab-login/univerify.png
浏览文件 @
96ee1e99
文件已移动
uni_modules/uni-share/readme.md
浏览文件 @
96ee1e99
#### 本功能基于[底部图标菜单](https://ext.dcloud.net.cn/plugin?id=4858)封装而成。
#### 本功能基于[底部图标菜单](https://ext.dcloud.net.cn/plugin?id=4858)封装而成。
### 示例代码
### 示例代码
```
```
<template>
<template>
<button type="default" @click="uniShare">显示</button>
<button type="default" @click="uniShare">显示</button>
</template>
</template>
<script>
<script>
import uniShare from '@/uni_modules/uni-share/js_sdk/uni-share.js';
import uniShare from '@/uni_modules/uni-share/js_sdk/uni-share.js';
export default {
export default {
onBackPress({from}) {
onBackPress({from}) {
console.log(from);
console.log(from);
if(from=='backbutton'){
if(from=='backbutton'){
this.$nextTick(function(){
this.$nextTick(function(){
uniShare.hide()
uniShare.hide()
})
})
return uniShare.isShow;
return uniShare.isShow;
}
}
},
},
methods: {
methods: {
uniShare() {
uniShare() {
uniShare.show({
uniShare.show({
content: { //公共的分享参数配置 类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
content: { //公共的分享参数配置 类型(type)、链接(herf)、标题(title)、summary(描述)、imageUrl(缩略图)
type: 0,
type: 0,
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
imageUrl: 'https://img-cdn-aliyun.dcloud.net.cn/stream/icon/__UNI__HelloUniApp.png'
imageUrl: 'https://img-cdn-aliyun.dcloud.net.cn/stream/icon/__UNI__HelloUniApp.png'
},
},
menus: [{
menus: [{
"img": "/static/app
-plus
/sharemenu/wechatfriend.png",
"img": "/static/app/sharemenu/wechatfriend.png",
"text": "微信好友",
"text": "微信好友",
"share": { //当前项的分享参数配置。可覆盖公共的配置如下:分享到微信小程序,配置了type=5
"share": { //当前项的分享参数配置。可覆盖公共的配置如下:分享到微信小程序,配置了type=5
"provider": "weixin",
"provider": "weixin",
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
}
}
},
},
{
{
"img": "/static/app
-plus
/sharemenu/wechatmoments.png",
"img": "/static/app/sharemenu/wechatmoments.png",
"text": "微信朋友圈",
"text": "微信朋友圈",
"share": {
"share": {
"provider": "weixin",
"provider": "weixin",
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
}
}
},
},
{
{
"img": "/static/app
-plus
/sharemenu/mp_weixin.png",
"img": "/static/app/sharemenu/mp_weixin.png",
"text": "微信小程序",
"text": "微信小程序",
"share": {
"share": {
provider: "weixin",
provider: "weixin",
...
@@ -58,38 +58,38 @@
...
@@ -58,38 +58,38 @@
}
}
},
},
{
{
"img": "/static/app
-plus
/sharemenu/weibo.png",
"img": "/static/app/sharemenu/weibo.png",
"text": "微博",
"text": "微博",
"share": {
"share": {
"provider": "sinaweibo"
"provider": "sinaweibo"
}
}
},
},
{
{
"img": "/static/app
-plus
/sharemenu/qq.png",
"img": "/static/app/sharemenu/qq.png",
"text": "QQ",
"text": "QQ",
"share": {
"share": {
"provider": "qq"
"provider": "qq"
}
}
},
},
{
{
"img": "/static/app
-plus
/sharemenu/copyurl.png",
"img": "/static/app/sharemenu/copyurl.png",
"text": "复制",
"text": "复制",
"share": "copyurl"
"share": "copyurl"
},
},
{
{
"img": "/static/app
-plus
/sharemenu/more.png",
"img": "/static/app/sharemenu/more.png",
"text": "更多",
"text": "更多",
"share": "shareSystem"
"share": "shareSystem"
}
}
],
],
cancelText: "取消分享",
cancelText: "取消分享",
}, e => { //callback
}, e => { //callback
console.log(uniShare.isShow);
console.log(uniShare.isShow);
console.log(e);
console.log(e);
})
})
}
}
}
}
}
}
</script>
</script>
```
```
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录