Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
luomor
uni-app
提交
412e65c0
uni-app
项目概览
luomor
/
uni-app
与 Fork 源项目一致
Fork自
DCloud / uni-app
通知
2
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,发现更多精彩内容 >>
提交
412e65c0
编写于
4月 01, 2020
作者:
Q
qiang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
build v3
上级
41525070
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
25 addition
and
18 deletion
+25
-18
packages/uni-app-plus/dist/index.v3.js
packages/uni-app-plus/dist/index.v3.js
+25
-18
未找到文件。
packages/uni-app-plus/dist/index.v3.js
浏览文件 @
412e65c0
...
@@ -5651,14 +5651,21 @@ var serviceContext = (function () {
...
@@ -5651,14 +5651,21 @@ var serviceContext = (function () {
openLocation
:
openLocation$1
openLocation
:
openLocation$1
});
});
function
openLocation$2
(
data
)
{
function
openLocation$2
(
data
,
callbackId
)
{
showPage
({
showPage
({
url
:
'
__uniappopenlocation
'
,
url
:
'
__uniappopenlocation
'
,
data
,
data
,
style
:
{
style
:
{
titleNView
:
{
titleNView
:
{
type
:
'
transparent
'
type
:
'
transparent
'
}
},
popGesture
:
'
close
'
,
backButtonAutoControl
:
'
close
'
},
onClose
()
{
invoke$1
(
callbackId
,
{
errMsg
:
'
openLocation:fail cancel
'
});
}
}
});
});
return
{
return
{
...
@@ -9253,17 +9260,14 @@ var serviceContext = (function () {
...
@@ -9253,17 +9260,14 @@ var serviceContext = (function () {
const
eventNames
=
[
const
eventNames
=
[
'
load
'
,
'
load
'
,
'
close
'
,
'
close
'
,
'
verify
'
,
'
error
'
'
error
'
];
];
const
ERROR_CODE_LIST
=
[
-
5001
,
-
5002
,
-
5003
,
-
5004
,
-
5005
,
-
5006
];
const
ERROR_CODE_LIST
=
[
-
5001
,
-
5002
,
-
5003
,
-
5004
,
-
5005
,
-
5006
];
class
RewardedVideoAd
{
class
RewardedVideoAd
{
constructor
(
adpid
)
{
constructor
(
options
=
{})
{
this
.
_options
=
{
adpid
:
adpid
};
const
_callbacks
=
this
.
_callbacks
=
{};
const
_callbacks
=
this
.
_callbacks
=
{};
eventNames
.
forEach
(
item
=>
{
eventNames
.
forEach
(
item
=>
{
_callbacks
[
item
]
=
[];
_callbacks
[
item
]
=
[];
...
@@ -9277,7 +9281,7 @@ var serviceContext = (function () {
...
@@ -9277,7 +9281,7 @@ var serviceContext = (function () {
this
.
_adError
=
''
;
this
.
_adError
=
''
;
this
.
_loadPromiseResolve
=
null
;
this
.
_loadPromiseResolve
=
null
;
this
.
_loadPromiseReject
=
null
;
this
.
_loadPromiseReject
=
null
;
const
rewardAd
=
this
.
_rewardAd
=
plus
.
ad
.
createRewardedVideoAd
(
this
.
_
options
);
const
rewardAd
=
this
.
_rewardAd
=
plus
.
ad
.
createRewardedVideoAd
(
options
);
rewardAd
.
onLoad
((
e
)
=>
{
rewardAd
.
onLoad
((
e
)
=>
{
this
.
_isLoad
=
true
;
this
.
_isLoad
=
true
;
this
.
_dispatchEvent
(
'
load
'
,
{});
this
.
_dispatchEvent
(
'
load
'
,
{});
...
@@ -9290,6 +9294,9 @@ var serviceContext = (function () {
...
@@ -9290,6 +9294,9 @@ var serviceContext = (function () {
this
.
_loadAd
();
this
.
_loadAd
();
this
.
_dispatchEvent
(
'
close
'
,
{
isEnded
:
e
.
isEnded
});
this
.
_dispatchEvent
(
'
close
'
,
{
isEnded
:
e
.
isEnded
});
});
});
rewardAd
.
onVerify
((
e
)
=>
{
this
.
_dispatchEvent
(
'
verify
'
,
{
isValid
:
e
.
isValid
});
});
rewardAd
.
onError
((
e
)
=>
{
rewardAd
.
onError
((
e
)
=>
{
const
{
code
,
message
}
=
e
;
const
{
code
,
message
}
=
e
;
const
data
=
{
code
:
code
,
errMsg
:
message
};
const
data
=
{
code
:
code
,
errMsg
:
message
};
...
@@ -9323,6 +9330,12 @@ var serviceContext = (function () {
...
@@ -9323,6 +9330,12 @@ var serviceContext = (function () {
}
}
})
})
}
}
getProvider
()
{
return
this
.
_rewardAd
.
getProvider
()
}
destroy
()
{
this
.
_rewardAd
.
destroy
();
}
_loadAd
()
{
_loadAd
()
{
this
.
_isLoad
=
false
;
this
.
_isLoad
=
false
;
this
.
_rewardAd
.
load
();
this
.
_rewardAd
.
load
();
...
@@ -9336,10 +9349,8 @@ var serviceContext = (function () {
...
@@ -9336,10 +9349,8 @@ var serviceContext = (function () {
}
}
}
}
function
createRewardedVideoAd
({
function
createRewardedVideoAd
(
options
)
{
adpid
=
''
return
new
RewardedVideoAd
(
options
)
}
=
{})
{
return
new
RewardedVideoAd
(
adpid
)
}
}
...
@@ -10730,17 +10741,13 @@ var serviceContext = (function () {
...
@@ -10730,17 +10741,13 @@ var serviceContext = (function () {
callback
.
invoke
(
callbackId
,
data
);
callback
.
invoke
(
callbackId
,
data
);
});
});
const
methods
=
[
'
getCenterLocation
'
,
'
getScale
'
,
'
getRegion
'
,
'
includePoints
'
,
'
translateMarker
'
];
const
methods
=
[
'
getCenterLocation
'
,
'
moveToLocation
'
,
'
getScale
'
,
'
getRegion
'
,
'
includePoints
'
,
'
translateMarker
'
];
class
MapContext
{
class
MapContext
{
constructor
(
id
,
pageVm
)
{
constructor
(
id
,
pageVm
)
{
this
.
id
=
id
;
this
.
id
=
id
;
this
.
pageVm
=
pageVm
;
this
.
pageVm
=
pageVm
;
}
}
moveToLocation
()
{
operateMapPlayer$3
(
this
.
id
,
this
.
pageVm
,
'
moveToLocation
'
);
}
}
}
MapContext
.
prototype
.
$getAppMap
=
function
()
{
MapContext
.
prototype
.
$getAppMap
=
function
()
{
...
@@ -12147,7 +12154,7 @@ var serviceContext = (function () {
...
@@ -12147,7 +12154,7 @@ var serviceContext = (function () {
return
return
}
}
if
(
!
page
.
$page
.
meta
.
isNVue
)
{
if
(
!
page
.
$page
.
meta
.
isNVue
)
{
const
target
=
page
.
$vm
.
_$vd
.
elements
.
find
(
target
=>
target
.
t
agNam
e
===
'
web-view
'
&&
target
.
events
[
'
message
'
]);
const
target
=
page
.
$vm
.
_$vd
.
elements
.
find
(
target
=>
target
.
t
yp
e
===
'
web-view
'
&&
target
.
events
[
'
message
'
]);
if
(
!
target
)
{
if
(
!
target
)
{
return
return
}
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录