Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
83711abb
U
uni-starter
项目概览
DCloud
/
uni-starter
通知
4690
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看板
提交
83711abb
编写于
10月 25, 2024
作者:
Anne_LXM
提交者:
Anne_LXM
12月 12, 2024
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
static下的app-plus改为app
上级
4762d3c6
变更
21
显示空白变更内容
内联
并排
Showing
21 changed file
with
110 addition
and
120 deletion
+110
-120
pages/ucenter/about/about.vue
pages/ucenter/about/about.vue
+58
-58
pages/ucenter/ucenter.vue
pages/ucenter/ucenter.vue
+20
-30
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
+7
-7
未找到文件。
pages/ucenter/about/about.vue
浏览文件 @
83711abb
...
...
@@ -98,7 +98,7 @@
imageUrl
:
logo
+
'
?x-oss-process=image/resize,m_fill,h_100,w_100
'
//压缩图片解决,在ios端分享图过大导致的图片失效问题
},
menus
:
[{
"
img
"
:
"
/static/app
-plus
/sharemenu/wechatfriend.png
"
,
"
img
"
:
"
/static/app/sharemenu/wechatfriend.png
"
,
"
text
"
:
this
.
$t
(
'
common.wechatFriends
'
),
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
...
...
@@ -106,7 +106,7 @@
}
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/wechatmoments.png
"
,
"
img
"
:
"
/static/app/sharemenu/wechatmoments.png
"
,
"
text
"
:
this
.
$t
(
'
common.wechatBbs
'
),
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
...
...
@@ -114,26 +114,26 @@
}
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/weibo.png
"
,
"
img
"
:
"
/static/app/sharemenu/weibo.png
"
,
"
text
"
:
this
.
$t
(
'
common.weibo
'
),
"
share
"
:
{
"
provider
"
:
"
sinaweibo
"
}
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/qq.png
"
,
"
img
"
:
"
/static/app/sharemenu/qq.png
"
,
"
text
"
:
"
QQ
"
,
"
share
"
:
{
"
provider
"
:
"
qq
"
}
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/copyurl.png
"
,
"
img
"
:
"
/static/app/sharemenu/copyurl.png
"
,
"
text
"
:
this
.
$t
(
'
common.copy
'
),
"
share
"
:
"
copyurl
"
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/more.png
"
,
"
img
"
:
"
/static/app/sharemenu/more.png
"
,
"
text
"
:
this
.
$t
(
'
common.more
'
),
"
share
"
:
"
shareSystem
"
}
...
...
pages/ucenter/ucenter.vue
浏览文件 @
83711abb
...
...
@@ -125,7 +125,7 @@
"
to
"
:
'
/pages/ucenter/settings/settings
'
,
"
icon
"
:
"
gear
"
}],
// #if
ndef MP-WEIXIN
// #if
def APP-PLUS
[{
"
title
"
:
this
.
$t
(
'
mine.about
'
),
"
to
"
:
'
/pages/ucenter/about/about
'
,
...
...
@@ -156,12 +156,13 @@
})
//#endif
},
onShow
()
{},
onShow
()
{
},
computed
:
{
userInfo
()
{
return
store
.
userInfo
},
hasLogin
()
{
hasLogin
(){
return
store
.
hasLogin
},
// #ifdef APP-PLUS
...
...
@@ -174,10 +175,6 @@
}
},
methods
:
{
// 自动化测试专用
hasLoginTest
(){
return
store
.
hasLogin
},
toSettings
()
{
uni
.
navigateTo
({
url
:
"
/pages/ucenter/settings/settings
"
...
...
@@ -186,7 +183,7 @@
signIn
()
{
//普通签到
this
.
$refs
.
signIn
.
open
()
},
signInByAd
()
{
//看激励视频广告签到
signInByAd
(){
//看激励视频广告签到
this
.
$refs
.
signIn
.
showRewardedVideoAd
()
},
/**
...
...
@@ -217,7 +214,7 @@
tapGrid
(
index
)
{
uni
.
showToast
({
// title: '你点击了,第' + (index + 1) + '个',
title
:
this
.
$t
(
'
mine.clicked
'
)
+
"
"
+
(
index
+
1
),
title
:
this
.
$t
(
'
mine.clicked
'
)
+
"
"
+
(
index
+
1
)
,
icon
:
'
none
'
});
},
...
...
@@ -229,11 +226,8 @@
if
(
uni
.
getSystemInfoSync
().
platform
==
"
ios
"
)
{
// 这里填写appstore应用id
let
appstoreid
=
this
.
appConfig
.
marketId
.
ios
;
// 'id1417078253';
console
.
log
({
appstoreid
});
plus
.
runtime
.
openURL
(
"
itms-apps://
"
+
'
itunes.apple.com/cn/app/wechat/
'
+
appstoreid
+
'
?mt=8
'
,
err
=>
{
console
.
log
({
appstoreid
});
plus
.
runtime
.
openURL
(
"
itms-apps://
"
+
'
itunes.apple.com/cn/app/wechat/
'
+
appstoreid
+
'
?mt=8
'
,
err
=>
{
console
.
log
(
'
plus.runtime.openURL err:
'
+
JSON
.
stringify
(
err
));
});
}
...
...
@@ -250,7 +244,7 @@
/**
* 获取积分信息
*/
async
getScore
()
{
getScore
()
{
if
(
!
this
.
userInfo
)
return
uni
.
showToast
({
title
:
this
.
$t
(
'
mine.checkScore
'
),
icon
:
'
none
'
...
...
@@ -258,7 +252,7 @@
uni
.
showLoading
({
mask
:
true
})
return
await
db
.
collection
(
"
uni-id-scores
"
)
db
.
collection
(
"
uni-id-scores
"
)
.
where
(
'
"user_id" == $env.uid
'
)
.
field
(
'
score,balance
'
)
.
orderBy
(
"
create_date
"
,
"
desc
"
)
...
...
@@ -268,23 +262,19 @@
console
.
log
(
res
);
const
data
=
res
.
result
.
data
[
0
];
let
msg
=
''
;
msg
=
data
?
(
this
.
$t
(
'
mine.currentScore
'
)
+
data
.
balance
)
:
this
.
$t
(
'
mine.noScore
'
);
msg
=
data
?
(
this
.
$t
(
'
mine.currentScore
'
)
+
data
.
balance
)
:
this
.
$t
(
'
mine.noScore
'
);
uni
.
showToast
({
title
:
msg
,
icon
:
'
none
'
});
return
res
.
result
.
data
[
0
]
}).
finally
((
err
)
=>
{
}).
finally
(()
=>
{
uni
.
hideLoading
()
return
err
})
},
async
share
()
{
let
{
result
}
=
await
db
.
collection
(
'
uni-id-users
'
).
where
(
"
'_id' == $cloudEnv_uid
"
).
field
(
'
my_invite_code
'
).
get
()
let
{
result
}
=
await
db
.
collection
(
'
uni-id-users
'
).
where
(
"
'_id' == $cloudEnv_uid
"
).
field
(
'
my_invite_code
'
).
get
()
let
myInviteCode
=
result
.
data
[
0
].
my_invite_code
if
(
!
myInviteCode
)
{
if
(
!
myInviteCode
)
{
return
uni
.
showToast
({
title
:
'
请检查uni-config-center中uni-id配置,是否已启用 autoSetInviteCode
'
,
icon
:
'
none
'
...
...
@@ -309,7 +299,7 @@
'
?x-oss-process=image/resize,m_fill,h_100,w_100
'
//压缩图片解决,在ios端分享图过大导致的图片失效问题
},
menus
:
[{
"
img
"
:
"
/static/app
-plus
/sharemenu/wechatfriend.png
"
,
"
img
"
:
"
/static/app/sharemenu/wechatfriend.png
"
,
"
text
"
:
this
.
$t
(
'
common.wechatFriends
'
),
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
...
...
@@ -317,7 +307,7 @@
}
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/wechatmoments.png
"
,
"
img
"
:
"
/static/app/sharemenu/wechatmoments.png
"
,
"
text
"
:
this
.
$t
(
'
common.wechatBbs
'
),
"
share
"
:
{
"
provider
"
:
"
weixin
"
,
...
...
@@ -325,26 +315,26 @@
}
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/weibo.png
"
,
"
img
"
:
"
/static/app/sharemenu/weibo.png
"
,
"
text
"
:
this
.
$t
(
'
common.weibo
'
),
"
share
"
:
{
"
provider
"
:
"
sinaweibo
"
}
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/qq.png
"
,
"
img
"
:
"
/static/app/sharemenu/qq.png
"
,
"
text
"
:
"
QQ
"
,
"
share
"
:
{
"
provider
"
:
"
qq
"
}
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/copyurl.png
"
,
"
img
"
:
"
/static/app/sharemenu/copyurl.png
"
,
"
text
"
:
this
.
$t
(
'
common.copy
'
),
"
share
"
:
"
copyurl
"
},
{
"
img
"
:
"
/static/app
-plus
/sharemenu/more.png
"
,
"
img
"
:
"
/static/app/sharemenu/more.png
"
,
"
text
"
:
this
.
$t
(
'
common.more
'
),
"
share
"
:
"
shareSystem
"
}
...
...
static/app
-plus
/sharemenu/copyurl.png
→
static/app/sharemenu/copyurl.png
浏览文件 @
83711abb
文件已移动
static/app
-plus
/sharemenu/more.png
→
static/app/sharemenu/more.png
浏览文件 @
83711abb
文件已移动
static/app
-plus
/sharemenu/mp_weixin.png
→
static/app/sharemenu/mp_weixin.png
浏览文件 @
83711abb
文件已移动
static/app
-plus
/sharemenu/qq.png
→
static/app/sharemenu/qq.png
浏览文件 @
83711abb
文件已移动
static/app
-plus
/sharemenu/wechatfriend.png
→
static/app/sharemenu/wechatfriend.png
浏览文件 @
83711abb
文件已移动
static/app
-plus
/sharemenu/wechatmoments.png
→
static/app/sharemenu/wechatmoments.png
浏览文件 @
83711abb
文件已移动
static/app
-plus
/sharemenu/weibo.png
→
static/app/sharemenu/weibo.png
浏览文件 @
83711abb
文件已移动
uni_modules/uni-id-pages/components/uni-id-pages-fab-login/uni-id-pages-fab-login.vue
浏览文件 @
83711abb
...
...
@@ -66,47 +66,47 @@
{
"
id
"
:
"
apple
"
,
"
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
"
,
"
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
"
,
"
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
"
,
"
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
"
,
"
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
"
,
"
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
"
,
"
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
"
,
"
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
"
,
"
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
],
...
...
uni_modules/uni-id-pages/static/app
-plus
/apple.png
→
uni_modules/uni-id-pages/static/app/apple.png
浏览文件 @
83711abb
文件已移动
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
浏览文件 @
83711abb
文件已移动
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
浏览文件 @
83711abb
文件已移动
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
浏览文件 @
83711abb
文件已移动
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
浏览文件 @
83711abb
文件已移动
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
浏览文件 @
83711abb
文件已移动
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
浏览文件 @
83711abb
文件已移动
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
浏览文件 @
83711abb
文件已移动
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
浏览文件 @
83711abb
文件已移动
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
浏览文件 @
83711abb
文件已移动
uni_modules/uni-share/readme.md
浏览文件 @
83711abb
...
...
@@ -27,7 +27,7 @@
imageUrl: 'https://img-cdn-aliyun.dcloud.net.cn/stream/icon/__UNI__HelloUniApp.png'
},
menus: [{
"img": "/static/app
-plus
/sharemenu/wechatfriend.png",
"img": "/static/app/sharemenu/wechatfriend.png",
"text": "微信好友",
"share": { //当前项的分享参数配置。可覆盖公共的配置如下:分享到微信小程序,配置了type=5
"provider": "weixin",
...
...
@@ -35,7 +35,7 @@
}
},
{
"img": "/static/app
-plus
/sharemenu/wechatmoments.png",
"img": "/static/app/sharemenu/wechatmoments.png",
"text": "微信朋友圈",
"share": {
"provider": "weixin",
...
...
@@ -43,7 +43,7 @@
}
},
{
"img": "/static/app
-plus
/sharemenu/mp_weixin.png",
"img": "/static/app/sharemenu/mp_weixin.png",
"text": "微信小程序",
"share": {
provider: "weixin",
...
...
@@ -58,26 +58,26 @@
}
},
{
"img": "/static/app
-plus
/sharemenu/weibo.png",
"img": "/static/app/sharemenu/weibo.png",
"text": "微博",
"share": {
"provider": "sinaweibo"
}
},
{
"img": "/static/app
-plus
/sharemenu/qq.png",
"img": "/static/app/sharemenu/qq.png",
"text": "QQ",
"share": {
"provider": "qq"
}
},
{
"img": "/static/app
-plus
/sharemenu/copyurl.png",
"img": "/static/app/sharemenu/copyurl.png",
"text": "复制",
"share": "copyurl"
},
{
"img": "/static/app
-plus
/sharemenu/more.png",
"img": "/static/app/sharemenu/more.png",
"text": "更多",
"share": "shareSystem"
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录