Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
乖乖神
hello uni-im
提交
d54cb674
H
hello uni-im
项目概览
乖乖神
/
hello uni-im
与 Fork 源项目一致
Fork自
DCloud / hello uni-im
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-im
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
d54cb674
编写于
5月 22, 2023
作者:
DCloud_JSON
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
2.0.6
上级
b4d62356
变更
22
隐藏空白更改
内联
并排
Showing
22 changed file
with
89 addition
and
90 deletion
+89
-90
uni_modules/uni-id-pages/changelog.md
uni_modules/uni-id-pages/changelog.md
+11
-9
uni_modules/uni-id-pages/common/check-id-card.js
uni_modules/uni-id-pages/common/check-id-card.js
+3
-1
uni_modules/uni-id-pages/common/store.js
uni_modules/uni-id-pages/common/store.js
+9
-9
uni_modules/uni-id-pages/config.js
uni_modules/uni-id-pages/config.js
+2
-1
uni_modules/uni-id-pages/package.json
uni_modules/uni-id-pages/package.json
+1
-1
uni_modules/uni-id-pages/pages/login/login-withpwd.vue
uni_modules/uni-id-pages/pages/login/login-withpwd.vue
+7
-7
uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify.vue
...-pages/pages/userinfo/realname-verify/realname-verify.vue
+2
-1
uni_modules/uni-id-pages/pages/userinfo/userinfo.vue
uni_modules/uni-id-pages/pages/userinfo/userinfo.vue
+1
-1
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
...i-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
+22
-32
uni_modules/uni-im/changelog.md
uni_modules/uni-im/changelog.md
+2
-0
uni_modules/uni-im/common/utils.js
uni_modules/uni-im/common/utils.js
+2
-2
uni_modules/uni-im/package.json
uni_modules/uni-im/package.json
+1
-1
uni_modules/uni-im/pages/index/index.nvue
uni_modules/uni-im/pages/index/index.nvue
+2
-1
uni_modules/uni-nav-bar/changelog.md
uni_modules/uni-nav-bar/changelog.md
+4
-0
uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue
...odules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue
+2
-2
uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue
...les/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue
+1
-4
uni_modules/uni-nav-bar/package.json
uni_modules/uni-nav-bar/package.json
+1
-1
uni_modules/uni-search-bar/changelog.md
uni_modules/uni-search-bar/changelog.md
+2
-0
uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json
...ni-search-bar/components/uni-search-bar/i18n/zh-Hans.json
+2
-2
uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json
...ni-search-bar/components/uni-search-bar/i18n/zh-Hant.json
+2
-2
uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue
...i-search-bar/components/uni-search-bar/uni-search-bar.vue
+6
-6
uni_modules/uni-search-bar/package.json
uni_modules/uni-search-bar/package.json
+4
-7
未找到文件。
uni_modules/uni-id-pages/changelog.md
浏览文件 @
d54cb674
## 1.1.13(2023-05-10)
-
修复 启用摇树优化 报错的问题
## 1.1.12(2023-05-05)
-
uni-id-co 新增 调用 add-user 接口创建用户时允许触发 beforeRegister 钩子方法,beforeRegister 钩子
[
详见
](
https://uniapp.dcloud.net.cn/uniCloud/uni-id-summary.html#before-register
)
-
uni-id-co 新增 自无 unionid 到有 unionid 状态进行登录时为用户补充 unionid 字段
-
uni-id-co 修复 i18n 在特定场景下报错的 bug
-
uni-id-co 修复 跨平台解绑微信/QQ时无法解绑的 bug
-
uni-id-co 修复 微信小程序等平台创建验证码时无法展示的 bug
-
uni-id-co 修复 更新 push_clientid 时因 device_id 没有变化导致无法更新
## 1.1.14(2023-05-19)
-
修复 退出登录不会跳转至登录页的问题
## 1.1.13(2023-05-10)
-
修复 启用摇树优化 报错的问题
## 1.1.12(2023-05-05)
-
uni-id-co 新增 调用 add-user 接口创建用户时允许触发 beforeRegister 钩子方法,beforeRegister 钩子
[
详见
](
https://uniapp.dcloud.net.cn/uniCloud/uni-id-summary.html#before-register
)
-
uni-id-co 新增 自无 unionid 到有 unionid 状态进行登录时为用户补充 unionid 字段
-
uni-id-co 修复 i18n 在特定场景下报错的 bug
-
uni-id-co 修复 跨平台解绑微信/QQ时无法解绑的 bug
-
uni-id-co 修复 微信小程序等平台创建验证码时无法展示的 bug
-
uni-id-co 修复 更新 push_clientid 时因 device_id 没有变化导致无法更新
## 1.1.11(2023-03-24)
-
修复 tabbar页面因为token无效而强制跳转至登录页面(url参数包含
`uniIdRedirectUrl`
)后无法返回的问题
## 1.1.10(2023-03-24)
...
...
uni_modules/uni-id-pages/common/check-id-card.js
浏览文件 @
d54cb674
export
default
function
checkIdCard
(
idCardNumber
)
{
function
checkIdCard
(
idCardNumber
)
{
if
(
!
idCardNumber
||
typeof
idCardNumber
!==
'
string
'
||
idCardNumber
.
length
!==
18
)
return
false
const
coefficient
=
[
7
,
9
,
10
,
5
,
8
,
4
,
2
,
1
,
6
,
3
,
7
,
9
,
10
,
5
,
8
,
4
,
2
]
...
...
@@ -12,3 +12,5 @@ export default function checkIdCard (idCardNumber) {
return
checkCode
[
sum
%
11
].
toString
()
===
code
.
toLowerCase
()
}
export
default
checkIdCard
uni_modules/uni-id-pages/common/store.js
浏览文件 @
d54cb674
...
...
@@ -79,7 +79,7 @@ export const mutations = {
uni
.
removeStorageSync
(
'
uni_id_token
'
);
uni
.
setStorageSync
(
'
uni_id_token_expired
'
,
0
)
uni
.
redirectTo
({
url
:
`/
${
pagesJson
.
uniIdRouter
&&
pagesJson
.
uniIdRouter
.
loginPage
?
'
uni_modules/uni-id-pages/pages/login/login-withoutpwd
'
:
'
'
}
`
,
url
:
`/
${
pagesJson
.
uniIdRouter
&&
pagesJson
.
uniIdRouter
.
loginPage
?
pagesJson
.
uniIdRouter
.
loginPage
:
'
uni_modules/uni-id-pages/pages/login/login-withoutpwd
'
}
`
,
});
uni
.
$emit
(
'
uni-id-pages-logout
'
)
this
.
setUserInfo
({},{
cover
:
true
})
...
...
@@ -98,14 +98,14 @@ export const mutations = {
// console.log('判断需要返回几层:', delta);
if
(
uniIdRedirectUrl
)
{
return
uni
.
redirectTo
({
url
:
uniIdRedirectUrl
,
fail
:
(
err1
)
=>
{
uni
.
switchTab
({
url
:
uniIdRedirectUrl
,
fail
:
(
err2
)
=>
{
console
.
log
(
err1
,
err2
)
}
})
url
:
uniIdRedirectUrl
,
fail
:
(
err1
)
=>
{
uni
.
switchTab
({
url
:
uniIdRedirectUrl
,
fail
:
(
err2
)
=>
{
console
.
log
(
err1
,
err2
)
}
})
}
})
}
...
...
uni_modules/uni-id-pages/config.js
浏览文件 @
d54cb674
...
...
@@ -15,11 +15,12 @@ export default {
// "google",
// "alipay",
// "douyin",
'
username
'
,
// #ifdef APP
'
univerify
'
,
// #endif
'
weixin
'
,
'
username
'
,
// #ifdef APP
'
apple
'
,
// #endif
...
...
uni_modules/uni-id-pages/package.json
浏览文件 @
d54cb674
{
"id"
:
"uni-id-pages"
,
"displayName"
:
"uni-id-pages"
,
"version"
:
"1.1.1
3
"
,
"version"
:
"1.1.1
4
"
,
"description"
:
"云端一体简单、统一、可扩展的用户中心页面模版"
,
"keywords"
:
[
"用户管理"
,
...
...
uni_modules/uni-id-pages/pages/login/login-withpwd.vue
浏览文件 @
d54cb674
...
...
@@ -45,8 +45,8 @@
mixins
:
[
mixin
],
data
()
{
return
{
"
password
"
:
"
test2test2
"
,
"
username
"
:
"
test2
"
,
"
password
"
:
""
,
"
username
"
:
""
,
"
captcha
"
:
""
,
"
needCaptcha
"
:
false
,
"
focusUsername
"
:
false
,
...
...
@@ -84,7 +84,7 @@
this
.
focusPassword
=
true
return
uni
.
showToast
({
title
:
'
请输入密码
'
,
icon
:
'
none
'
,
icon
:
'
none
'
,
duration
:
3000
});
}
...
...
@@ -92,7 +92,7 @@
this
.
focusUsername
=
true
return
uni
.
showToast
({
title
:
'
请输入手机号/用户名/邮箱
'
,
icon
:
'
none
'
,
icon
:
'
none
'
,
duration
:
3000
});
}
...
...
@@ -100,7 +100,7 @@
this
.
$refs
.
captcha
.
getImageCaptcha
()
return
uni
.
showToast
({
title
:
'
请输入验证码
'
,
icon
:
'
none
'
,
icon
:
'
none
'
,
duration
:
3000
});
}
...
...
@@ -152,7 +152,7 @@
@media
screen
and
(
min-width
:
690px
)
{
.uni-content
{
height
:
600px
;
height
:
auto
;
}
}
...
...
@@ -173,4 +173,4 @@
.link
{
font-size
:
12px
;
}
</
style
>
</
style
>
uni_modules/uni-id-pages/pages/userinfo/realname-verify/realname-verify.vue
浏览文件 @
d54cb674
...
...
@@ -40,8 +40,9 @@
</template>
<
script
>
import
checkIdCard
from
'
@/uni_modules/uni-id-pages/common/check-id-card.js
'
import
checkIdCard
from
'
@/uni_modules/uni-id-pages/common/check-id-card.js
'
;
import
mixin
from
'
@/uni_modules/uni-id-pages/common/login-page.mixin.js
'
;
import
{
store
,
mutations
...
...
uni_modules/uni-id-pages/pages/userinfo/userinfo.vue
浏览文件 @
d54cb674
...
...
@@ -89,7 +89,7 @@ const uniIdCo = uniCloud.importObject("uni-id-co")
methods
:
{
login
()
{
uni
.
navigateTo
({
url
:
'
/uni_modules/uni-id-pages/pages/login/login-withpwd
'
,
url
:
'
/uni_modules/uni-id-pages/pages/login/login-with
out
pwd
'
,
complete
:
(
e
)
=>
{
// console.log(e);
}
...
...
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
浏览文件 @
d54cb674
{
"name"
:
"uni-id-co"
,
"version"
:
"1.1.10"
,
"description"
:
""
,
"main"
:
"index.js"
,
"keywords"
:
[],
"author"
:
"DCloud"
,
"dependencies"
:
{
"jsonwebtoken"
:
"8.5.1"
,
"lodash.merge"
:
"^4.6.2"
,
"uni-captcha"
:
"file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha"
,
"uni-config-center"
:
"file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
,
"uni-id-common"
:
"file:../../../../uni-id-common/uniCloud/cloudfunctions/common/uni-id-common"
,
"uni-open-bridge-common"
:
"file:../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common"
,
"uni-cloud-s2s"
:
"file:../../../../uni-cloud-s2s/uniCloud/cloudfunctions/common/uni-cloud-s2s"
},
"extensions"
:
{
"uni-cloud-redis"
:
{},
"uni-cloud-sms"
:
{},
"uni-cloud-verify"
:
{}
},
"cloudfunction-config"
:
{
"keepRunningAfterReturn"
:
false
},
"devDependencies"
:
{
"eslint"
:
"^8.18.0"
,
"eslint-config-standard"
:
"^17.0.0"
,
"eslint-plugin-import"
:
"^2.26.0"
,
"eslint-plugin-n"
:
"^15.2.3"
,
"eslint-plugin-promise"
:
"^6.0.0"
}
}
{
"name"
:
"uni-id-co"
,
"version"
:
"1.1.14"
,
"description"
:
""
,
"main"
:
"index.js"
,
"keywords"
:
[],
"author"
:
"DCloud"
,
"dependencies"
:
{
"jsonwebtoken"
:
"8.5.1"
,
"lodash.merge"
:
"^4.6.2"
,
"uni-captcha"
:
"file:../../../../uni-captcha/uniCloud/cloudfunctions/common/uni-captcha"
,
"uni-config-center"
:
"file:../../../../uni-config-center/uniCloud/cloudfunctions/common/uni-config-center"
,
"uni-id-common"
:
"file:../../../../uni-id-common/uniCloud/cloudfunctions/common/uni-id-common"
,
"uni-open-bridge-common"
:
"file:../../../../uni-open-bridge-common/uniCloud/cloudfunctions/common/uni-open-bridge-common"
,
"uni-cloud-s2s"
:
"file:../../../../uni-cloud-s2s/uniCloud/cloudfunctions/common/uni-cloud-s2s"
},
"extensions"
:
{
"uni-cloud-redis"
:
{},
"uni-cloud-sms"
:
{},
"uni-cloud-verify"
:
{}
}
}
uni_modules/uni-im/changelog.md
浏览文件 @
d54cb674
## 2.0.6(2023-05-22)
-
修复 Vue3下报
`ReferenceError: Cannot access 'getCloudMsgIng' before initialization`
的问题
## 2.0.5(2023-05-19)
-
修复 iOS端 应用切换到后台之后收到消息,再打开应用,部分情况下会丢消息的问题
-
修复 微信小程序端 播放语音报错的问题
...
...
uni_modules/uni-im/common/utils.js
浏览文件 @
d54cb674
...
...
@@ -28,7 +28,8 @@ const uniIdCo = uniCloud.importObject("uni-id-co", {
customUI
:
true
})
const
db
=
uniCloud
.
database
();
let
appIsShow
=
true
;
let
appIsShow
=
true
;
let
getCloudMsgIng
=
false
export
default
{
init
()
{
uniIm
.
socketOpenIndex
=
0
...
...
@@ -51,7 +52,6 @@ export default {
})
// 获得云端数据,适用于:socket突然断开丢失,或者应用iOS切到后台拿不到透传等场景使用 获取丢失的数据
let
getCloudMsgIng
=
false
function
getCloudMsg
(){
if
(
getCloudMsgIng
){
return
// 防止重复发起,比如即被切换到后台,socket又断开的场景
...
...
uni_modules/uni-im/package.json
浏览文件 @
d54cb674
{
"id"
:
"uni-im"
,
"displayName"
:
"uni-im"
,
"version"
:
"2.0.
5
"
,
"version"
:
"2.0.
6
"
,
"description"
:
"uni-im是云端一体的、全平台的、免费的、开源即时通讯系统"
,
"keywords"
:
[
"im,即时通讯,客服,聊天"
...
...
uni_modules/uni-im/pages/index/index.nvue
浏览文件 @
d54cb674
...
...
@@ -284,7 +284,8 @@
conversation_id,
joinGroup
} = param
let version = "2023-05-22-01"
// 发布新版本后,清理旧版本下的storage避免脏数据引发问题
let lastVersion = uni.getStorageSync('uni-im-storage-version')
if (lastVersion && lastVersion != version) {
...
...
uni_modules/uni-nav-bar/changelog.md
浏览文件 @
d54cb674
## 1.3.11(2023-03-29)
-
修复 自定义状态栏高度闪动BUG
## 1.3.10(2023-03-29)
-
修复 暗黑模式下边线颜色错误的bug
## 1.3.9(2022-10-13)
-
修复 条件编译错误的bug
## 1.3.8(2022-10-12)
...
...
uni_modules/uni-nav-bar/components/uni-nav-bar/uni-nav-bar.vue
浏览文件 @
d54cb674
<
template
>
<view
class=
"uni-navbar"
:class=
"
{'uni-dark':dark, 'uni-nvue-fixed': fixed}">
<view
class=
"uni-navbar__content"
:class=
"
{ 'uni-navbar--fixed': fixed, 'uni-navbar--shadow': shadow, 'uni-navbar--border': border }"
:style="{ 'background-color': themeBgColor }" >
:style="{ 'background-color': themeBgColor
, 'border-bottom-color':themeColor
}" >
<status-bar
v-if=
"statusBar"
/>
<view
:style=
"
{ color: themeColor,backgroundColor: themeBgColor ,height:navbarHeight}"
class="uni-navbar__header">
...
...
@@ -37,7 +37,7 @@
</slot>
</view>
</view>
</view>
</view>
<!-- #ifndef APP-NVUE -->
<view
class=
"uni-navbar__placeholder"
v-if=
"fixed"
>
<status-bar
v-if=
"statusBar"
/>
...
...
uni_modules/uni-nav-bar/components/uni-nav-bar/uni-status-bar.vue
浏览文件 @
d54cb674
...
...
@@ -9,11 +9,8 @@
name
:
'
UniStatusBar
'
,
data
()
{
return
{
statusBarHeight
:
20
statusBarHeight
:
uni
.
getSystemInfoSync
().
statusBarHeight
+
'
px
'
}
},
mounted
()
{
this
.
statusBarHeight
=
uni
.
getSystemInfoSync
().
statusBarHeight
+
'
px
'
}
}
</
script
>
...
...
uni_modules/uni-nav-bar/package.json
浏览文件 @
d54cb674
{
"id"
:
"uni-nav-bar"
,
"displayName"
:
"uni-nav-bar 自定义导航栏"
,
"version"
:
"1.3.
9
"
,
"version"
:
"1.3.
11
"
,
"description"
:
"自定义导航栏组件,主要用于头部导航。"
,
"keywords"
:
[
"uni-ui"
,
...
...
uni_modules/uni-search-bar/changelog.md
浏览文件 @
d54cb674
## 1.2.4(2023-05-09)
-
修复 i18n 国际化不正确的 Bug
## 1.2.3(2022-05-24)
-
新增 readonly 属性,组件只读
## 1.2.2(2022-05-06)
...
...
uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hans.json
浏览文件 @
d54cb674
{
"uni-search-bar.cancel"
:
"
cancel"
,
{
"uni-search-bar.cancel"
:
"
取消"
,
"uni-search-bar.placeholder"
:
"请输入搜索内容"
}
uni_modules/uni-search-bar/components/uni-search-bar/i18n/zh-Hant.json
浏览文件 @
d54cb674
{
"uni-search-bar.cancel"
:
"
cancel"
,
{
"uni-search-bar.cancel"
:
"
取消"
,
"uni-search-bar.placeholder"
:
"請輸入搜索內容"
}
uni_modules/uni-search-bar/components/uni-search-bar/uni-search-bar.vue
浏览文件 @
d54cb674
...
...
@@ -80,7 +80,7 @@
},
cancelText
:
{
type
:
String
,
default
:
'
取消
'
default
:
""
},
bgColor
:
{
type
:
String
,
...
...
@@ -148,7 +148,7 @@
focus
:
{
immediate
:
true
,
handler
(
newVal
)
{
if
(
newVal
)
{
if
(
newVal
)
{
if
(
this
.
readonly
)
return
this
.
show
=
true
;
this
.
$nextTick
(()
=>
{
...
...
@@ -165,8 +165,8 @@
}
},
methods
:
{
searchClick
()
{
if
(
this
.
readonly
)
return
searchClick
()
{
if
(
this
.
readonly
)
return
if
(
this
.
show
)
{
return
}
...
...
@@ -181,7 +181,7 @@
})
this
.
searchVal
=
""
},
cancel
()
{
cancel
()
{
if
(
this
.
readonly
)
return
this
.
$emit
(
"
cancel
"
,
{
value
:
this
.
searchVal
...
...
@@ -295,4 +295,4 @@
cursor
:
pointer
;
/* #endif */
}
</
style
>
</
style
>
uni_modules/uni-search-bar/package.json
浏览文件 @
d54cb674
{
"id"
:
"uni-search-bar"
,
"displayName"
:
"uni-search-bar 搜索栏"
,
"version"
:
"1.2.
3
"
,
"version"
:
"1.2.
4
"
,
"description"
:
"搜索栏组件,通常用于搜索商品、文章等"
,
"keywords"
:
[
"uni-ui"
,
...
...
@@ -16,11 +16,7 @@
"directories"
:
{
"example"
:
"../../temps/example_temps"
},
"dcloudext"
:
{
"category"
:
[
"前端组件"
,
"通用组件"
],
"dcloudext"
:
{
"sale"
:
{
"regular"
:
{
"price"
:
"0.00"
...
...
@@ -37,7 +33,8 @@
"data"
:
"无"
,
"permissions"
:
"无"
},
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
"npmurl"
:
"https://www.npmjs.com/package/@dcloudio/uni-ui"
,
"type"
:
"component-vue"
},
"uni_modules"
:
{
"dependencies"
:
[
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录