...
|
...
|
@@ -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) {
|
|
|
native.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
method: 'go.tab',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -52,7 +51,7 @@ const yoho = { |
|
|
*/
|
|
|
goLogin(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
native.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
method: 'go.login',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -69,7 +68,7 @@ const yoho = { |
|
|
*/
|
|
|
goShopingCart(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
native.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
method: 'go.shopingCart',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -86,7 +85,7 @@ const yoho = { |
|
|
*/
|
|
|
goAddress(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
native.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
method: 'go.address',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -103,7 +102,7 @@ const yoho = { |
|
|
*/
|
|
|
goImageBrowser(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
native.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
method: 'go.imageBrowser',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -120,7 +119,7 @@ const yoho = { |
|
|
*/
|
|
|
goNewPage(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
native.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
method: 'go.newPage',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -137,7 +136,7 @@ const yoho = { |
|
|
*/
|
|
|
goPay(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
native.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
method: 'go.pay',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -154,7 +153,7 @@ const yoho = { |
|
|
*/
|
|
|
goBack(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
native.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
method: 'go.back',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -171,7 +170,7 @@ const yoho = { |
|
|
*/
|
|
|
goShare(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
native.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
method: 'go.share',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
|