Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohoblk-wap
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
郭成尧
9 years ago
Commit
de2bfb5dc3d7ea875886da6a0cb2ed6722c77fd4
1 parent
5f67f670
yohoInterface-get
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
public/js/yoho.js
public/js/yoho.js
View file @
de2bfb5
...
...
@@ -10,7 +10,6 @@
*/
const
tip
=
require
(
'common/tip'
);
const
native
=
window
.
yohoInterface
;
window
.
yohoWapInterface
=
{
headerRightTopBtn
:
function
()
{}
...
...
@@ -35,7 +34,7 @@ const yoho = {
*/
goTap
(
args
,
success
,
fail
)
{
if
(
this
.
isApp
)
{
nativ
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
window
.
yohoInterfac
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
method
:
'go.tab'
,
arguments
:
args
});
...
...
@@ -52,7 +51,7 @@ const yoho = {
*/
goLogin
(
args
,
success
,
fail
)
{
if
(
this
.
isApp
)
{
nativ
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
window
.
yohoInterfac
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
method
:
'go.login'
,
arguments
:
args
});
...
...
@@ -69,7 +68,7 @@ const yoho = {
*/
goShopingCart
(
args
,
success
,
fail
)
{
if
(
this
.
isApp
)
{
nativ
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
window
.
yohoInterfac
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
method
:
'go.shopingCart'
,
arguments
:
args
});
...
...
@@ -86,7 +85,7 @@ const yoho = {
*/
goAddress
(
args
,
success
,
fail
)
{
if
(
this
.
isApp
)
{
nativ
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
window
.
yohoInterfac
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
method
:
'go.address'
,
arguments
:
args
});
...
...
@@ -103,7 +102,7 @@ const yoho = {
*/
goImageBrowser
(
args
,
success
,
fail
)
{
if
(
this
.
isApp
)
{
nativ
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
window
.
yohoInterfac
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
method
:
'go.imageBrowser'
,
arguments
:
args
});
...
...
@@ -120,7 +119,7 @@ const yoho = {
*/
goNewPage
(
args
,
success
,
fail
)
{
if
(
this
.
isApp
)
{
nativ
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
window
.
yohoInterfac
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
method
:
'go.newPage'
,
arguments
:
args
});
...
...
@@ -137,7 +136,7 @@ const yoho = {
*/
goPay
(
args
,
success
,
fail
)
{
if
(
this
.
isApp
)
{
nativ
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
window
.
yohoInterfac
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
method
:
'go.pay'
,
arguments
:
args
});
...
...
@@ -154,7 +153,7 @@ const yoho = {
*/
goBack
(
args
,
success
,
fail
)
{
if
(
this
.
isApp
)
{
nativ
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
window
.
yohoInterfac
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
method
:
'go.back'
,
arguments
:
args
});
...
...
@@ -171,7 +170,7 @@ const yoho = {
*/
goShare
(
args
,
success
,
fail
)
{
if
(
this
.
isApp
)
{
nativ
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
window
.
yohoInterfac
e
.
triggerEvent
(
success
||
function
()
{},
fail
||
function
()
{},
{
method
:
'go.share'
,
arguments
:
args
});
...
...
Please
register
or
login
to post a comment