Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wk1234123
uni-app
提交
aa10af98
uni-app
项目概览
wk1234123
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
uni-app
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
aa10af98
编写于
3月 04, 2020
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build runtime
上级
61b0d313
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
101 addition
and
75 deletion
+101
-75
packages/uni-app-plus/dist/index.js
packages/uni-app-plus/dist/index.js
+2
-1
packages/uni-mp-alipay/dist/index.js
packages/uni-mp-alipay/dist/index.js
+89
-68
packages/uni-mp-baidu/dist/index.js
packages/uni-mp-baidu/dist/index.js
+2
-1
packages/uni-mp-qq/dist/index.js
packages/uni-mp-qq/dist/index.js
+3
-2
packages/uni-mp-toutiao/dist/index.js
packages/uni-mp-toutiao/dist/index.js
+2
-1
packages/uni-mp-weixin/dist/index.js
packages/uni-mp-weixin/dist/index.js
+3
-2
未找到文件。
packages/uni-app-plus/dist/index.js
浏览文件 @
aa10af98
...
@@ -1314,7 +1314,8 @@ function parseBaseComponent (vueComponentOptions, {
...
@@ -1314,7 +1314,8 @@ function parseBaseComponent (vueComponentOptions, {
const
options
=
{
const
options
=
{
multipleSlots
:
true
,
multipleSlots
:
true
,
addGlobalClass
:
true
addGlobalClass
:
true
,
...(
vueOptions
.
options
||
{})
};
};
const
componentOptions
=
{
const
componentOptions
=
{
...
...
packages/uni-mp-alipay/dist/index.js
浏览文件 @
aa10af98
...
@@ -442,19 +442,32 @@ const protocols = { // 需要做转换的 API 列表
...
@@ -442,19 +442,32 @@ const protocols = { // 需要做转换的 API 列表
if
(
!
fromArgs
.
header
)
{
// 默认增加 header 参数,方便格式化 content-type
if
(
!
fromArgs
.
header
)
{
// 默认增加 header 参数,方便格式化 content-type
fromArgs
.
header
=
{};
fromArgs
.
header
=
{};
}
}
return
{
header
(
header
=
{},
toArgs
)
{
const
headers
=
{
const
headers
=
{
'
content-type
'
:
'
application/json
'
'
content-type
'
:
'
application/json
'
};
};
Object
.
keys
(
header
).
forEach
(
key
=>
{
Object
.
keys
(
fromArgs
.
header
).
forEach
(
key
=>
{
headers
[
key
.
toLocaleLowerCase
()]
=
header
[
key
];
headers
[
key
.
toLocaleLowerCase
()]
=
fromArgs
.
header
[
key
];
});
});
return
{
header
(
header
=
{},
toArgs
)
{
return
{
return
{
name
:
'
headers
'
,
name
:
'
headers
'
,
value
:
headers
value
:
headers
}
}
},
},
data
(
data
)
{
// 钉钉在content-type为application/json时,不会自动序列化
if
(
my
.
dd
&&
headers
[
'
content-type
'
].
indexOf
(
'
application/json
'
)
===
0
)
{
return
{
name
:
'
data
'
,
value
:
JSON
.
stringify
(
data
)
}
}
return
{
name
:
'
data
'
,
value
:
data
}
},
method
:
'
method
'
,
// TODO 支付宝小程序仅支持 get,post
method
:
'
method
'
,
// TODO 支付宝小程序仅支持 get,post
responseType
:
false
responseType
:
false
}
}
...
@@ -686,8 +699,16 @@ const protocols = { // 需要做转换的 API 列表
...
@@ -686,8 +699,16 @@ const protocols = { // 需要做转换的 API 列表
}
}
},
},
getUserInfo
:
{
getUserInfo
:
{
name
:
'
getAuthUserInfo
'
,
name
:
my
.
canIUse
(
'
getOpenUserInfo
'
)
?
'
getOpenUserInfo
'
:
'
getAuthUserInfo
'
,
returnValue
(
result
)
{
returnValue
(
result
)
{
if
(
my
.
canIUse
(
'
getOpenUserInfo
'
))
{
let
response
=
{};
try
{
response
=
JSON
.
parse
(
result
.
response
).
response
;
}
catch
(
e
)
{}
result
.
nickName
=
response
.
nickName
;
result
.
avatar
=
response
.
avatar
;
}
result
.
userInfo
=
{
result
.
userInfo
=
{
nickName
:
result
.
nickName
,
nickName
:
result
.
nickName
,
avatarUrl
:
result
.
avatar
avatarUrl
:
result
.
avatar
...
...
packages/uni-mp-baidu/dist/index.js
浏览文件 @
aa10af98
...
@@ -1448,7 +1448,8 @@ function parseBaseComponent (vueComponentOptions, {
...
@@ -1448,7 +1448,8 @@ function parseBaseComponent (vueComponentOptions, {
const
options
=
{
const
options
=
{
multipleSlots
:
true
,
multipleSlots
:
true
,
addGlobalClass
:
true
addGlobalClass
:
true
,
...(
vueOptions
.
options
||
{})
};
};
const
componentOptions
=
{
const
componentOptions
=
{
...
...
packages/uni-mp-qq/dist/index.js
浏览文件 @
aa10af98
...
@@ -1366,7 +1366,8 @@ function parseBaseComponent (vueComponentOptions, {
...
@@ -1366,7 +1366,8 @@ function parseBaseComponent (vueComponentOptions, {
const
options
=
{
const
options
=
{
multipleSlots
:
true
,
multipleSlots
:
true
,
addGlobalClass
:
true
addGlobalClass
:
true
,
...(
vueOptions
.
options
||
{})
};
};
{
{
...
...
packages/uni-mp-toutiao/dist/index.js
浏览文件 @
aa10af98
...
@@ -1538,7 +1538,8 @@ function parseBaseComponent (vueComponentOptions, {
...
@@ -1538,7 +1538,8 @@ function parseBaseComponent (vueComponentOptions, {
const
options
=
{
const
options
=
{
multipleSlots
:
true
,
multipleSlots
:
true
,
addGlobalClass
:
true
addGlobalClass
:
true
,
...(
vueOptions
.
options
||
{})
};
};
const
componentOptions
=
{
const
componentOptions
=
{
...
...
packages/uni-mp-weixin/dist/index.js
浏览文件 @
aa10af98
...
@@ -1319,7 +1319,8 @@ function parseBaseComponent (vueComponentOptions, {
...
@@ -1319,7 +1319,8 @@ function parseBaseComponent (vueComponentOptions, {
const
options
=
{
const
options
=
{
multipleSlots
:
true
,
multipleSlots
:
true
,
addGlobalClass
:
true
addGlobalClass
:
true
,
...(
vueOptions
.
options
||
{})
};
};
{
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录