Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
af22ff8a
U
uni-starter
项目概览
DCloud
/
uni-starter
通知
4747
Star
231
Fork
211
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
6
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
6
Issue
6
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
af22ff8a
编写于
11月 16, 2023
作者:
A
Anne_LXM
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update test
上级
b3f62ff8
变更
61
隐藏空白更改
内联
并排
Showing
61 changed file
with
591 addition
and
34 deletion
+591
-34
pages/list/list.nvue
pages/list/list.nvue
+1
-1
pages/list/list.test.js
pages/list/list.test.js
+0
-2
pages/ucenter/about/about.test.js
pages/ucenter/about/about.test.js
+0
-1
pages/ucenter/settings/settings.test.js
pages/ucenter/settings/settings.test.js
+0
-3
pages/ucenter/ucenter.test.js
pages/ucenter/ucenter.test.js
+12
-17
static/screenshot/sign-app.png
static/screenshot/sign-app.png
+0
-0
static/screenshot/sign-h5.png
static/screenshot/sign-h5.png
+0
-0
uniCloud-aliyun/database/opendb-admin-menus.init_data.json
uniCloud-aliyun/database/opendb-admin-menus.init_data.json
+453
-0
uniCloud-aliyun/database/opendb-app-list.init_data.json
uniCloud-aliyun/database/opendb-app-list.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-app-versions.init_data.json
uniCloud-aliyun/database/opendb-app-versions.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-banner.init_data.json
uniCloud-aliyun/database/opendb-banner.init_data.json
+41
-0
uniCloud-aliyun/database/opendb-department.init_data.json
uniCloud-aliyun/database/opendb-department.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-device.init_data.json
uniCloud-aliyun/database/opendb-device.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-feedback.init_data.json
uniCloud-aliyun/database/opendb-feedback.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-news-articles.init_data.json
uniCloud-aliyun/database/opendb-news-articles.init_data.json
+17
-0
uniCloud-aliyun/database/opendb-news-categories.init_data.json
...oud-aliyun/database/opendb-news-categories.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-news-comments.init_data.json
uniCloud-aliyun/database/opendb-news-comments.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-news-favorite.init_data.json
uniCloud-aliyun/database/opendb-news-favorite.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-open-data.init_data.json
uniCloud-aliyun/database/opendb-open-data.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-search-hot.init_data.json
uniCloud-aliyun/database/opendb-search-hot.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-search-log.init_data.json
uniCloud-aliyun/database/opendb-search-log.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-sign-in.init_data.json
uniCloud-aliyun/database/opendb-sign-in.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-sms-log.init_data.json
uniCloud-aliyun/database/opendb-sms-log.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-sms-task.init_data.json
uniCloud-aliyun/database/opendb-sms-task.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-sms-template.init_data.json
uniCloud-aliyun/database/opendb-sms-template.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-tempdata.init_data.json
uniCloud-aliyun/database/opendb-tempdata.init_data.json
+1
-0
uniCloud-aliyun/database/opendb-verify-codes.init_data.json
uniCloud-aliyun/database/opendb-verify-codes.init_data.json
+1
-0
uniCloud-aliyun/database/read-news-log.init_data.json
uniCloud-aliyun/database/read-news-log.init_data.json
+1
-0
uniCloud-aliyun/database/uni-id-device.init_data.json
uniCloud-aliyun/database/uni-id-device.init_data.json
+1
-0
uniCloud-aliyun/database/uni-id-log.init_data.json
uniCloud-aliyun/database/uni-id-log.init_data.json
+1
-0
uniCloud-aliyun/database/uni-id-permissions.init_data.json
uniCloud-aliyun/database/uni-id-permissions.init_data.json
+1
-0
uniCloud-aliyun/database/uni-id-roles.init_data.json
uniCloud-aliyun/database/uni-id-roles.init_data.json
+9
-0
uniCloud-aliyun/database/uni-id-scores.init_data.json
uniCloud-aliyun/database/uni-id-scores.init_data.json
+1
-0
uniCloud-aliyun/database/uni-id-tag.init_data.json
uniCloud-aliyun/database/uni-id-tag.init_data.json
+1
-0
uniCloud-aliyun/database/uni-id-users.init_data.json
uniCloud-aliyun/database/uni-id-users.init_data.json
+10
-0
uniCloud-aliyun/database/uni-pay-orders.init_data.json
uniCloud-aliyun/database/uni-pay-orders.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-active-devices.init_data.json
...ud-aliyun/database/uni-stat-active-devices.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-active-users.init_data.json
...loud-aliyun/database/uni-stat-active-users.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-app-channels.init_data.json
...loud-aliyun/database/uni-stat-app-channels.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-app-crash-logs.init_data.json
...ud-aliyun/database/uni-stat-app-crash-logs.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-app-platforms.init_data.json
...oud-aliyun/database/uni-stat-app-platforms.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-app-versions.init_data.json
...loud-aliyun/database/uni-stat-app-versions.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-error-logs.init_data.json
uniCloud-aliyun/database/uni-stat-error-logs.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-error-result.init_data.json
...loud-aliyun/database/uni-stat-error-result.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-error-source-map.init_data.json
...-aliyun/database/uni-stat-error-source-map.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-event-logs.init_data.json
uniCloud-aliyun/database/uni-stat-event-logs.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-event-result.init_data.json
...loud-aliyun/database/uni-stat-event-result.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-events.init_data.json
uniCloud-aliyun/database/uni-stat-events.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-loyalty-result.init_data.json
...ud-aliyun/database/uni-stat-loyalty-result.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-mp-scenes.init_data.json
uniCloud-aliyun/database/uni-stat-mp-scenes.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-page-logs.init_data.json
uniCloud-aliyun/database/uni-stat-page-logs.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-page-result.init_data.json
uniCloud-aliyun/database/uni-stat-page-result.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-pages.init_data.json
uniCloud-aliyun/database/uni-stat-pages.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-pay-result.init_data.json
uniCloud-aliyun/database/uni-stat-pay-result.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-result.init_data.json
uniCloud-aliyun/database/uni-stat-result.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-run-errors.init_data.json
uniCloud-aliyun/database/uni-stat-run-errors.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-session-logs.init_data.json
...loud-aliyun/database/uni-stat-session-logs.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-share-logs.init_data.json
uniCloud-aliyun/database/uni-stat-share-logs.init_data.json
+1
-0
uniCloud-aliyun/database/uni-stat-user-session-logs.init_data.json
...aliyun/database/uni-stat-user-session-logs.init_data.json
+1
-0
uni_modules/uni-id-pages/pages/register/register.test.js
uni_modules/uni-id-pages/pages/register/register.test.js
+0
-9
uni_modules/uni-id-pages/pages/register/register.vue
uni_modules/uni-id-pages/pages/register/register.vue
+1
-1
未找到文件。
pages/list/list.nvue
浏览文件 @
af22ff8a
...
...
@@ -92,7 +92,7 @@
keyword: "",
showRefresh: false,
listHight: 0,
dataList:
[]
dataList:
{}
}
},
watch: {
...
...
pages/list/list.test.js
浏览文件 @
af22ff8a
...
...
@@ -5,14 +5,12 @@ describe('pages/list/list.vue', () => {
page
=
await
program
.
switchTab
(
'
/pages/list/list
'
)
await
page
.
waitFor
(
'
view
'
)
})
it
(
'
检测标题
'
,
async
()
=>
{
// expect.assertions(1);
const
getTitle
=
await
page
.
data
(
'
dataList
'
)
console
.
log
(
'
getTitle:
'
,
getTitle
);
// expect((await page.data('dataList')).title).toBe('阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务')
})
it
(
'
点击搜索跳转
'
,
async
()
=>
{
await
page
.
callMethod
(
'
searchClick
'
)
await
page
.
waitFor
(
300
)
...
...
pages/ucenter/about/about.test.js
浏览文件 @
af22ff8a
...
...
@@ -18,7 +18,6 @@ describe('pages/ucenter/about/about.vue', () => {
if
(
isWX
){
return
}
expect
.
assertions
(
1
);
expect
((
await
page
.
data
(
'
about
'
)).
appName
).
toBe
(
'
uni-starter
'
)
// await page.waitFor(500)
await
page
.
callMethod
(
'
navigateTo
'
,
{
url
:
"
https://ask.dcloud.net.cn/protocol.html
"
,
title
:
"
用户服务条款
"
...
...
pages/ucenter/settings/settings.test.js
浏览文件 @
af22ff8a
...
...
@@ -7,12 +7,10 @@ describe('pages/ucenter/settings/settings', () => {
page
=
await
program
.
navigateTo
(
'
/pages/ucenter/settings/settings
'
)
await
page
.
waitFor
(
'
view
'
)
uniToken
=
await
page
.
data
(
'
uniToken
'
)
// console.log('uniToken:',uniToken);
}
catch
(
err
)
{
console
.
log
(
"
err:
"
,
err
);
}
})
it
(
'
settings
'
,
async
()
=>
{
if
(
process
.
env
.
UNI_PLATFORM
.
startsWith
(
"
app
"
))
{
await
page
.
callMethod
(
'
clearTmp
'
)
...
...
@@ -24,7 +22,6 @@ describe('pages/ucenter/settings/settings', () => {
expect
.
assertions
(
1
);
expect
((
await
el
.
$$
(
'
.mt10
'
)).
length
).
toBe
(
2
)
}
})
it
(
'
退出登录
'
,
async
()
=>
{
if
(
uniToken
){
await
page
.
callMethod
(
'
changeLoginState
'
)}
...
...
pages/ucenter/ucenter.test.js
浏览文件 @
af22ff8a
...
...
@@ -8,30 +8,26 @@ describe('pages/ucenter/ucenter.vue', () => {
uniToken
=
await
page
.
data
(
'
uniToken
'
)
platform
=
process
.
env
.
UNI_PLATFORM
console
.
log
(
"
uniToken:
"
,
platform
,
uniToken
);
if
(
!
uniToken
){
console
.
log
(
"
未登录
"
);
//
await program.navigateTo('/uni_modules/uni-id-pages/pages/login/login-withpwd')
await
program
.
navigateTo
(
'
/uni_modules/uni-id-pages/pages/login/login-withpwd
'
)
}
}
catch
(
err
){
console
.
log
(
"
err:
"
,
err
);
}
})
// beforeEach(async () => {
// console.log('beforeEach')
// jest.setTimeout(10000);
// return;
// });
beforeEach
(
async
()
=>
{
console
.
log
(
'
beforeEach
'
)
jest
.
setTimeout
(
10000
);
return
;
});
it
(
'
宫格
'
,
async
()
=>
{
expect
.
assertions
(
1
);
const
getGrid
=
await
page
.
data
(
'
gridList
'
)
console
.
log
(
'
getGrid:
'
,
getGrid
);
await
page
.
waitFor
(
300
)
//
await page.waitFor(300)
expect
(
getGrid
.
length
).
toBe
(
4
)
})
it
(
'
列表
'
,
async
()
=>
{
const
getUcenterList
=
await
page
.
data
(
'
ucenterList
'
)
if
(
platform
.
startsWith
(
"
app
"
)
||
platform
===
"
h5
"
){
...
...
@@ -40,37 +36,36 @@ describe('pages/ucenter/ucenter.vue', () => {
expect
(
getUcenterList
.
length
).
toBe
(
2
)
}
})
it
(
'
普通签到
'
,
async
()
=>
{
console
.
log
(
"
普通签到
"
);
// await page.waitFor('uni-sign-in')
if
(
uniToken
&&
platform
.
startsWith
(
"
app
"
)){
await
page
.
callMethod
(
'
signInByAd
'
)
await
page
.
waitFor
(
10
00
)
await
page
.
waitFor
(
5
00
)
await
page
.
callMethod
(
'
share
'
)
await
program
.
screenshot
({
path
:
"
static/screenshot/sign-app.png
"
})
}
else
if
(
uniToken
&&
platform
===
"
h5
"
){
await
page
.
callMethod
(
'
signIn
'
)
await
page
.
waitFor
(
10
00
)
await
page
.
waitFor
(
5
00
)
await
program
.
screenshot
({
path
:
"
static/screenshot/sign-h5.png
"
})
}
else
{
await
page
.
callMethod
(
'
signIn
'
)
await
page
.
waitFor
(
10
00
)
await
page
.
waitFor
(
5
00
)
await
program
.
screenshot
({
path
:
"
static/screenshot/sign-weixin.png
"
})
}
})
it
(
'
我的积分
'
,
async
()
=>
{
if
(
uniToken
){
const
getScoreRes
=
await
page
.
callMethod
(
'
getScore
'
)
let
scoreInfo
=
getScoreRes
&&
getScoreRes
.
result
.
data
[
0
]
await
page
.
waitFor
(
800
)
console
.
log
(
'
scoreInfo:
'
,
scoreInfo
);
await
page
.
waitFor
(
500
)
if
(
scoreInfo
)
{
expect
.
assertions
(
2
);
expect
(
scoreInfo
.
score
).
not
.
toBeUndefined
();
...
...
static/screenshot/sign-app.png
查看替换文件 @
b3f62ff8
浏览文件 @
af22ff8a
189.9 KB
|
W:
|
H:
89.9 KB
|
W:
|
H:
2-up
Swipe
Onion skin
static/screenshot/sign-h5.png
查看替换文件 @
b3f62ff8
浏览文件 @
af22ff8a
166.5 KB
|
W:
|
H:
197.2 KB
|
W:
|
H:
2-up
Swipe
Onion skin
uniCloud-aliyun/database/opendb-admin-menus.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[
{
"menu_id"
:
"index"
,
"name"
:
"首页"
,
"icon"
:
"uni-icons-home"
,
"url"
:
"/"
,
"sort"
:
100
,
"parent_id"
:
""
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1602662469396
},
{
"menu_id"
:
"system_management"
,
"name"
:
"系统管理"
,
"icon"
:
"admin-icons-fl-xitong"
,
"url"
:
""
,
"sort"
:
1000
,
"parent_id"
:
""
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1602662469396
},
{
"menu_id"
:
"system_user"
,
"name"
:
"用户管理"
,
"icon"
:
"admin-icons-manager-user"
,
"url"
:
"/pages/system/user/list"
,
"sort"
:
1010
,
"parent_id"
:
"system_management"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1602662469398
},
{
"menu_id"
:
"system_role"
,
"name"
:
"角色管理"
,
"icon"
:
"admin-icons-manager-role"
,
"url"
:
"/pages/system/role/list"
,
"sort"
:
1020
,
"parent_id"
:
"system_management"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1602662469397
},
{
"menu_id"
:
"system_permission"
,
"name"
:
"权限管理"
,
"icon"
:
"admin-icons-manager-permission"
,
"url"
:
"/pages/system/permission/list"
,
"sort"
:
1030
,
"parent_id"
:
"system_management"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1602662469396
},
{
"menu_id"
:
"system_menu"
,
"name"
:
"菜单管理"
,
"icon"
:
"admin-icons-manager-menu"
,
"url"
:
"/pages/system/menu/list"
,
"sort"
:
1040
,
"parent_id"
:
"system_management"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1602662469396
},
{
"menu_id"
:
"system_app"
,
"name"
:
"应用管理"
,
"icon"
:
"admin-icons-manager-app"
,
"url"
:
"/pages/system/app/list"
,
"sort"
:
1035
,
"parent_id"
:
"system_management"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1602662469399
},
{
"menu_id"
:
"system_update"
,
"name"
:
"App升级中心"
,
"icon"
:
"uni-icons-cloud-upload"
,
"url"
:
"/uni_modules/uni-upgrade-center/pages/version/list"
,
"sort"
:
1036
,
"parent_id"
:
"system_management"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1656491532434
},
{
"menu_id"
:
"system_tag"
,
"name"
:
"标签管理"
,
"icon"
:
"admin-icons-manager-tag"
,
"url"
:
"/pages/system/tag/list"
,
"sort"
:
1037
,
"parent_id"
:
"system_management"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1602662479389
},
{
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"safety_statistics"
,
"name"
:
"安全审计"
,
"icon"
:
"admin-icons-safety"
,
"url"
:
""
,
"sort"
:
3100
,
"parent_id"
:
""
,
"create_date"
:
1638356430871
},
{
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"safety_statistics_user_log"
,
"name"
:
"用户日志"
,
"icon"
:
""
,
"url"
:
"/pages/system/safety/list"
,
"sort"
:
3101
,
"parent_id"
:
"safety_statistics"
,
"create_date"
:
1638356430871
},
{
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat"
,
"name"
:
"uni 统计"
,
"icon"
:
"admin-icons-tongji"
,
"url"
:
""
,
"sort"
:
2100
,
"parent_id"
:
""
,
"create_date"
:
1638356430871
},
{
"parent_id"
:
"uni-stat"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-device"
,
"name"
:
"设备统计"
,
"icon"
:
"admin-icons-shebeitongji"
,
"url"
:
""
,
"sort"
:
2120
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-device"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-device-overview"
,
"name"
:
"概况"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/device/overview/overview"
,
"sort"
:
2121
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-device"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-device-activity"
,
"name"
:
"活跃度"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/device/activity/activity"
,
"sort"
:
2122
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-device"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-device-trend"
,
"name"
:
"趋势分析"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/device/trend/trend"
,
"sort"
:
2123
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-device"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-device-retention"
,
"name"
:
"留存"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/device/retention/retention"
,
"sort"
:
2124
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-device"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-device-comparison"
,
"name"
:
"平台对比"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/device/comparison/comparison"
,
"sort"
:
2125
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-device"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-device-stickiness"
,
"name"
:
"粘性"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/device/stickiness/stickiness"
,
"sort"
:
2126
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-user"
,
"name"
:
"注册用户统计"
,
"icon"
:
"admin-icons-yonghutongji"
,
"url"
:
""
,
"sort"
:
2122
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-user"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-user-overview"
,
"name"
:
"概况"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/user/overview/overview"
,
"sort"
:
2121
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-user"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-user-activity"
,
"name"
:
"活跃度"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/user/activity/activity"
,
"sort"
:
2122
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-user"
,
"permission"
:
[],
"enable"
:
true
,
"icon"
:
""
,
"menu_id"
:
"uni-stat-user-trend"
,
"name"
:
"趋势分析"
,
"url"
:
"/pages/uni-stat/user/trend/trend"
,
"sort"
:
2123
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-user"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-user-retention"
,
"name"
:
"留存"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/user/retention/retention"
,
"sort"
:
2124
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-user"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-user-comparison"
,
"name"
:
"平台对比"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/user/comparison/comparison"
,
"sort"
:
2125
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-user"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-user-stickiness"
,
"name"
:
"粘性"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/user/stickiness/stickiness"
,
"sort"
:
2126
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-page-analysis"
,
"name"
:
"页面统计"
,
"icon"
:
"admin-icons-page-ent"
,
"url"
:
""
,
"sort"
:
2123
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-page-analysis"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-page-res"
,
"name"
:
"受访页"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/page-res/page-res"
,
"sort"
:
2131
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-page-analysis"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-page-ent"
,
"name"
:
"入口页"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/page-ent/page-ent"
,
"sort"
:
2132
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-senceChannel"
,
"name"
:
"渠道/场景值分析"
,
"icon"
:
"admin-icons-qudaofenxi"
,
"url"
:
""
,
"sort"
:
2150
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-senceChannel"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-senceChannel-scene"
,
"name"
:
"场景值(小程序)"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/scene/scene"
,
"sort"
:
2151
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-senceChannel"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-senceChannel-channel"
,
"name"
:
"渠道(app)"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/channel/channel"
,
"sort"
:
2152
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-event-event"
,
"name"
:
"自定义事件"
,
"icon"
:
"admin-icons-shijianfenxi"
,
"url"
:
"/pages/uni-stat/event/event"
,
"sort"
:
2160
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-error"
,
"name"
:
"错误统计"
,
"icon"
:
"admin-icons-cuowutongji"
,
"url"
:
""
,
"sort"
:
2170
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-error"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-error-js"
,
"name"
:
"js报错"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/error/js/js"
,
"sort"
:
2171
,
"create_date"
:
1638356902516
},
{
"parent_id"
:
"uni-stat-error"
,
"permission"
:
[],
"enable"
:
true
,
"menu_id"
:
"uni-stat-error-app"
,
"name"
:
"app崩溃"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/error/app/app"
,
"sort"
:
2172
,
"create_date"
:
1638356902516
},
{
"menu_id"
:
"uni-stat-pay"
,
"name"
:
"支付统计"
,
"icon"
:
"uni-icons-circle"
,
"url"
:
""
,
"sort"
:
2122
,
"parent_id"
:
"uni-stat"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1667386977981
},
{
"menu_id"
:
"uni-stat-pay-overview"
,
"name"
:
"概况"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/pay-order/overview/overview"
,
"sort"
:
21221
,
"parent_id"
:
"uni-stat-pay"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1667387038602
},
{
"menu_id"
:
"uni-stat-pay-funnel"
,
"name"
:
"转换漏斗分析"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/pay-order/funnel/funnel"
,
"sort"
:
21222
,
"parent_id"
:
"uni-stat-pay"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1668430092890
},
{
"menu_id"
:
"uni-stat-pay-ranking"
,
"name"
:
"价值用户排行"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/pay-order/ranking/ranking"
,
"sort"
:
21223
,
"parent_id"
:
"uni-stat-pay"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1668430128302
},
{
"menu_id"
:
"uni-stat-pay-order-list"
,
"name"
:
"订单明细"
,
"icon"
:
""
,
"url"
:
"/pages/uni-stat/pay-order/list/list"
,
"sort"
:
21224
,
"parent_id"
:
"uni-stat-pay"
,
"permission"
:
[],
"enable"
:
true
,
"create_date"
:
1667387078947
}
]
\ No newline at end of file
uniCloud-aliyun/database/opendb-app-list.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-app-versions.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-banner.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[
{
"status"
:
true
,
"bannerfile"
:
{
"name"
:
"094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg"
,
"extname"
:
"jpg"
,
"fileType"
:
"image"
,
"url"
:
"https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
,
"size"
:
70880
,
"image"
:
{
"width"
:
500
,
"height"
:
333
},
"path"
:
"https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},
"open_url"
:
"https://www.dcloud.io/"
,
"title"
:
"测试"
,
"sort"
:
1
,
"category_id"
:
""
,
"description"
:
""
},
{
"status"
:
true
,
"bannerfile"
:
{
"name"
:
"094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg"
,
"extname"
:
"jpg"
,
"fileType"
:
"image"
,
"url"
:
"https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
,
"size"
:
70880
,
"image"
:
{
"width"
:
500
,
"height"
:
333
},
"path"
:
"https://web-assets.dcloud.net.cn/unidoc/zh/shuijiao.jpg"
},
"open_url"
:
"https://www.dcloud.io/"
,
"title"
:
""
,
"category_id"
:
""
,
"description"
:
""
}
]
\ No newline at end of file
uniCloud-aliyun/database/opendb-department.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-device.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-feedback.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-news-articles.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[
{
"title"
:
"阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务"
,
"excerpt"
:
"阿里小程序IDE官方内嵌uni-app,为开发者提供多端开发服务"
,
"content"
:
"<p>随着微信、阿里、百度、头条、QQ纷纷推出小程序,开发者的开发维护成本持续上升,负担过重。这点已经成为共识,现在连小程序平台厂商也充分意识到了。</p>
\n
<p>阿里小程序团队,为了减轻开发者的负担,在官方的小程序开发者工具中整合了多端框架。</p>
\n
<p>经过阿里团队仔细评估,uni-app 在产品完成度、跨平台支持度、开发者社区、可持续发展等多方面优势明显,最终选定 uni-app内置于阿里小程序开发工具中,为开发者提供多端开发解决方案。</p>
\n
<p>经过之前1个月的公测,10月10日,阿里小程序正式发布0.70版开发者工具,通过 uni-app 实现多端开发,成为本次版本更新的亮点功能!</p>
\n
<p>如下图,在阿里小程序工具左侧主导航选择 uni-app,创建项目,即可开发。</p>
\n
<div class=
\"
aw-comment-upload-img-list active
\"
><img class=
\"
img-polaroid
\"
width=
\"
100%
\"
src=
\"
https://ask.dcloud.net.cn/uploads/article/20191014/56f7dc1bd5f265e824649f7cb4f78d5b.png
\"
/></div>
\n
<p><br />阿里小程序开发工具更新说明详见:https://docs.alipay.com/mini/ide/0.70-stable</p>
\n
<p> </p>
\n
<p>集成uni-app,这对于阿里团队而言,并不是一个容易做出的决定。毕竟 uni-app 是一个三方产品,要经过复杂的评审流程。</p>
\n
<p>这一方面突显出阿里团队以开发者需求为本的优秀价值观,另一方面也证明 uni-app的产品确实过硬。</p>
\n
<p>很多开发者都有多端需求,但又没有足够精力去了解、评估 uni-app,而处于观望态度。现在大家可以更放心的使用 uni-app 了,它没有让阿里失望,也不会让你失望。</p>
\n
<p>自从uni-app推出以来,DCloud也取得了高速的发展,目前拥有370万开发者,框架运行在4.6亿手机用户设备上,月活达到1.35亿(仅包括部分接入DCloud统计平台的数据)。并且数据仍在高速增长中,在市场占有率上处于遥遥领先的位置。</p>
\n
<p>本次阿里小程序工具集成 uni-app,会让 uni-app 继续快速爆发,取得更大的成功。</p>
\n
<p>后续DCloud还将深化与阿里的合作,在serverless等领域给开发者提供更多优质服务。</p>
\n
<p>使用多端框架开发各端应用,是多赢的模式。开发者减轻了负担,获得了更多新流量。而小程序平台厂商,也能保证自己平台上的各种应用可以被及时的更新。</p>
\n
<p>DCloud欢迎更多小程序平台厂商,与我们一起合作,为开发者、平台、用户的多赢而努力。</p>
\n
<p>进一步了解uni-app,详见:https://uniapp.dcloud.io</p>
\n
<p>欢迎扫码关注DCloud公众号,转发消息到朋友圈。<br /><img src=
\"
https://web-assets.dcloud.net.cn/unidoc/zh/weixin.jpg
\"
width=
\"
80%
\"
/></p>"
,
"avatar"
:
"https://ask.dcloud.net.cn/uploads/article/20191014/56f7dc1bd5f265e824649f7cb4f78d5b.png"
,
"type"
:
0
,
"user_id"
:
"_uni_starter_test_user_id"
,
"comment_count"
:
0
,
"like_count"
:
0
,
"comment_status"
:
0
,
"article_status"
:
1
,
"publish_date"
:
1616092287006
,
"last_modify_date"
:
1616092303031
,
"create_date"
:
1616092287006
}
]
\ No newline at end of file
uniCloud-aliyun/database/opendb-news-categories.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-news-comments.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-news-favorite.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-open-data.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-search-hot.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-search-log.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-sign-in.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-sms-log.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-sms-task.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-sms-template.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-tempdata.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/opendb-verify-codes.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/read-news-log.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-id-device.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-id-log.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-id-permissions.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-id-roles.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[
{
"role_id"
:
"admin"
,
"role_name"
:
"超级管理员"
,
"permission"
:
[],
"comment"
:
"超级管理员拥有所有权限"
,
"create_date"
:
0
}
]
\ No newline at end of file
uniCloud-aliyun/database/uni-id-scores.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-id-tag.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-id-users.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[
{
"_id"
:
"_uni_starter_test_user_id"
,
"username"
:
"uni-starter预置用户名"
,
"nickname"
:
"测试用户昵称"
,
"avatar"
:
"https://unicloud.dcloud.net.cn/assets/logo.dca09351.png"
,
"mobile"
:
"18888888888"
,
"mobile_confirmed"
:
1
}
]
\ No newline at end of file
uniCloud-aliyun/database/uni-pay-orders.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-active-devices.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-active-users.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-app-channels.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-app-crash-logs.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-app-platforms.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-app-versions.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-error-logs.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-error-result.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-error-source-map.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-event-logs.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-event-result.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-events.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-loyalty-result.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-mp-scenes.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-page-logs.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-page-result.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-pages.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-pay-result.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-result.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-run-errors.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-session-logs.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-share-logs.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uniCloud-aliyun/database/uni-stat-user-session-logs.init_data.json
0 → 100644
浏览文件 @
af22ff8a
[]
\ No newline at end of file
uni_modules/uni-id-pages/pages/register/register.test.js
浏览文件 @
af22ff8a
...
...
@@ -7,13 +7,11 @@ describe('uni_modules/uni-id-pages/pages/register/register.vue', () => {
})
it
(
'
注册账号
'
,
async
()
=>
{
// expect.assertions(1);
let
username
=
"
DCloud
"
let
nickname
=
"
DCloud
"
let
password
=
"
dcloud2022
"
let
password2
=
"
dcloud2022
"
await
page
.
setData
({
formData
:
{
"
username
"
:
username
,
...
...
@@ -25,13 +23,10 @@ describe('uni_modules/uni-id-pages/pages/register/register.vue', () => {
needPopupAgreements
:
false
},
})
// expect(username).toMatch(/^1\d{10}$/);
expect
(
password
).
toMatch
(
/^.
{6,20}
$/
);
expect
(
password2
).
toMatch
(
/^.
{6,20}
$/
);
expect
(
password2
).
toEqual
(
password
);
if
(
process
.
env
.
UNI_PLATFORM
!=
"
mp-weixin
"
)
{
const
element
=
await
page
.
$
(
'
.uni-content
'
)
const
agreeEl
=
await
element
.
$
(
'
.root
'
)
...
...
@@ -40,10 +35,8 @@ describe('uni_modules/uni-id-pages/pages/register/register.vue', () => {
})
}
await
page
.
waitFor
(
300
)
const
resLogin
=
await
page
.
callMethod
(
'
submit
'
)
console
.
log
(
"
resLogin:
"
,
resLogin
);
switch
(
resLogin
.
errCode
)
{
case
0
:
console
.
log
(
'
注册成功
'
)
...
...
@@ -52,8 +45,6 @@ describe('uni_modules/uni-id-pages/pages/register/register.vue', () => {
case
"
uni-id-account-exists
"
:
const
expectAccountStr
=
[
"
此账号已注册
"
,
"
Account exists
"
]
expect
(
expectAccountStr
).
toContain
(
resLogin
.
errMsg
);
// await page.waitFor(300)
// await page.callMethod('toLogin')
break
;
case
"
FunctionTimeout
"
:
expect
(
resLogin
.
errMsg
).
toBe
(
"
[uni-id-co]: 请求云函数超时
"
);
...
...
uni_modules/uni-id-pages/pages/register/register.vue
浏览文件 @
af22ff8a
...
...
@@ -123,7 +123,7 @@
.
catch
(
e
=>
{
console
.
log
(
e
.
message
);
//更好的体验:登录错误,直接刷新验证码
this
.
$refs
.
captcha
.
getImageCaptcha
()
//
this.$refs.captcha.getImageCaptcha()
return
e
})
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录