Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
011231
uni-starter
提交
cb8d2c4c
U
uni-starter
项目概览
011231
/
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看板
体验新版 GitCode,发现更多精彩内容 >>
提交
cb8d2c4c
编写于
7月 26, 2021
作者:
DCloud_JSON
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
兼容vue3...待续未完成
上级
b3950100
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
58 addition
and
40 deletion
+58
-40
common/appInit.js
common/appInit.js
+2
-3
components/uni-agreements/uni-agreements.vue
components/uni-agreements/uni-agreements.vue
+2
-1
components/uni-quick-login/uni-quick-login.vue
components/uni-quick-login/uni-quick-login.vue
+1
-1
components/uni-send-sms-code/uni-send-sms-code.vue
components/uni-send-sms-code/uni-send-sms-code.vue
+2
-1
pages/list/list.nvue
pages/list/list.nvue
+0
-5
pages/ucenter/userinfo/userinfo.vue
pages/ucenter/userinfo/userinfo.vue
+1
-1
uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue
...ile-picker/components/uni-file-picker/uni-file-picker.vue
+46
-24
uni_modules/uni-share/js_sdk/uni-share.js
uni_modules/uni-share/js_sdk/uni-share.js
+4
-4
未找到文件。
common/appInit.js
浏览文件 @
cb8d2c4c
...
...
@@ -322,7 +322,6 @@ export default async function() {
url
==
'
/pages/ucenter/login-page/index/index
'
&&
!
inLoginPage
)
{
// console.log(9527777,login);
//一键登录(univerify)、账号(username)、验证码登录(短信smsCode)
if
(
login
[
0
]
==
'
username
'
)
{
e
.
url
=
"
/pages/ucenter/login-page/pwd-login/pwd-login
"
...
...
@@ -343,7 +342,7 @@ export default async function() {
}
return
url
!=
item
})
// console.log(pass
)
console
.
log
({
pass
}
)
}
if
(
visitor
&&!
inLoginPage
)
{
pass
=
visitor
.
some
((
item
)
=>
{
...
...
@@ -352,7 +351,7 @@ export default async function() {
}
return
url
==
item
})
console
.
log
(
pass
)
console
.
log
(
{
pass
}
)
}
if
(
!
pass
&&
(
token
==
''
||
tokenExpired
))
{
...
...
components/uni-agreements/uni-agreements.vue
浏览文件 @
cb8d2c4c
...
...
@@ -44,7 +44,8 @@
}
</
script
>
<
style
>
<
style
lang=
"scss"
scoped
>
@import
'@/common/all-flex.css'
;
.root
{
flex-direction
:
row
;
align-items
:
center
;
...
...
components/uni-quick-login/uni-quick-login.vue
浏览文件 @
cb8d2c4c
...
...
@@ -281,7 +281,7 @@
}
break
;
default
:
console
.
log
(
9527
,
err
);
console
.
log
(
err
);
break
;
}
}
...
...
components/uni-send-sms-code/uni-send-sms-code.vue
浏览文件 @
cb8d2c4c
...
...
@@ -117,7 +117,8 @@
}
</
script
>
<
style
scoped
>
<
style
lang=
"scss"
scoped
>
@import
'@/common/all-flex.css'
;
.short-code-btn
{
width
:
200rpx
;
height
:
85rpx
;
...
...
pages/list/list.nvue
浏览文件 @
cb8d2c4c
...
...
@@ -82,13 +82,8 @@
cdbRef = this.$refs.udb
},
async onShow() {
console.log(999,getApp().globalData.searchText);
this.keyword = getApp().globalData.searchText
getApp().globalData.searchText = ''
//这里仅演示如何,在onShow生命周期获取设备位置,并在设备或者应用没有权限时自动引导。设置完毕自动重新获取。
//你可以基于他做自己的业务,比如:根据距离由近到远排序列表数据等
// uni.showLoading({
...
...
pages/ucenter/userinfo/userinfo.vue
浏览文件 @
cb8d2c4c
...
...
@@ -131,7 +131,7 @@
})
},
setNickname
(
nickname
)
{
console
.
log
(
9527
,
nickname
);
console
.
log
(
nickname
);
if
(
nickname
)
{
usersTable
.
where
(
'
_id==$env.uid
'
).
update
({
nickname
...
...
uni_modules/uni-file-picker/components/uni-file-picker/uni-file-picker.vue
浏览文件 @
cb8d2c4c
...
...
@@ -97,6 +97,12 @@ export default {
default
()
{
return
[]
}
},
modelValue
:
{
type
:
[
Array
,
Object
],
default
()
{
return
[]
}
},
disabled
:
{
type
:
Boolean
,
...
...
@@ -174,34 +180,26 @@ export default {
returnType
:
{
type
:
String
,
default
:
'
array
'
},
sizeType
:{
type
:
Array
,
default
(){
return
[
'
original
'
,
'
compressed
'
]
}
}
},
watch
:
{
value
:
{
handler
(
newVal
)
{
let
newFils
=
[]
let
newData
=
[].
concat
(
newVal
||
[])
newData
.
forEach
(
v
=>
{
const
files
=
this
.
files
.
find
(
i
=>
i
.
url
===
v
.
url
)
const
reg
=
/cloud:
\/\/([\w
.
]
+
\/?)\S
*/
if
(
!
v
.
path
)
{
v
.
path
=
v
.
url
}
if
(
reg
.
test
(
v
.
url
))
{
this
.
getTempFileURL
(
v
,
v
.
url
)
}
newFils
.
push
(
files
?
files
:
v
)
})
let
data
=
null
if
(
this
.
returnType
===
'
object
'
)
{
data
=
this
.
backObject
(
newFils
)[
0
]
}
else
{
data
=
this
.
backObject
(
newFils
)
}
this
.
formItem
&&
this
.
formItem
.
setValue
(
data
)
this
.
files
=
newFils
this
.
setValue
(
newVal
)
},
immediate
:
true
},
modelValue
:{
handler
(
newVal
)
{
this
.
setValue
(
newVal
)
},
immediate
:
true
}
},
data
()
{
...
...
@@ -261,7 +259,30 @@ export default {
}
}
},
methods
:
{
methods
:
{
setValue
(
newVal
){
let
newFils
=
[]
let
newData
=
[].
concat
(
newVal
||
[])
newData
.
forEach
(
v
=>
{
const
files
=
this
.
files
.
find
(
i
=>
i
.
url
===
v
.
url
)
const
reg
=
/cloud:
\/\/([\w
.
]
+
\/?)\S
*/
if
(
!
v
.
path
)
{
v
.
path
=
v
.
url
}
if
(
reg
.
test
(
v
.
url
))
{
this
.
getTempFileURL
(
v
,
v
.
url
)
}
newFils
.
push
(
files
?
files
:
v
)
})
let
data
=
null
if
(
this
.
returnType
===
'
object
'
)
{
data
=
this
.
backObject
(
newFils
)[
0
]
}
else
{
data
=
this
.
backObject
(
newFils
)
}
this
.
formItem
&&
this
.
formItem
.
setValue
(
data
)
this
.
files
=
newFils
},
/**
* 获取父元素实例
*/
...
...
@@ -301,7 +322,7 @@ export default {
* 选择文件
*/
choose
()
{
if
(
this
.
disabled
)
return
if
(
this
.
files
.
length
>=
Number
(
this
.
limitLength
)
&&
this
.
showType
!==
'
grid
'
&&
this
.
returnType
===
'
array
'
)
{
uni
.
showToast
({
...
...
@@ -330,7 +351,8 @@ export default {
uniCloud
.
chooseAndUploadFile
({
type
:
this
.
fileMediatype
,
compressed
:
false
,
compressed
:
false
,
sizeType
:
this
.
sizeType
,
// TODO 如果为空,video 有问题
extension
:
this
.
extname
.
length
>
0
?
this
.
extname
:
undefined
,
count
:
this
.
limitLength
-
this
.
files
.
length
,
//默认9
...
...
uni_modules/uni-share/js_sdk/uni-share.js
浏览文件 @
cb8d2c4c
...
...
@@ -16,10 +16,10 @@ export default async (param,callback) => {
if
(
typeof
(
menus
[
e
][
'
share
'
])
==
'
string
'
)
{
eval
(
menus
[
e
][
'
share
'
]
+
'
()
'
)
}
else
{
console
.
log
(
9527
,{
...
param
.
content
,
...
menus
[
e
].
share
,
});
// console.log(123456
,{
//
...param.content,
//
...menus[e].share,
//
});
uni
.
share
({
...
param
.
content
,
...
menus
[
e
].
share
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录