...
|
...
|
@@ -162,7 +162,11 @@ const yoho = { |
|
|
* @param fail 调用失败的回调方法
|
|
|
*/
|
|
|
goNewPage(args, success, fail) {
|
|
|
if (this.isApp && window.yohoInterface) {
|
|
|
if (this.isApp) {
|
|
|
if (!window.yohoInterface) {
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
|
|
|
method: 'go.newPage',
|
|
|
arguments: args
|
...
|
...
|
@@ -300,7 +304,7 @@ const yoho = { |
|
|
* @param fail
|
|
|
*/
|
|
|
updateNavigationBar(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
if (this.isApp && window.yohoInterface) {
|
|
|
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
|
|
|
method: 'update.navigationBarStyle',
|
|
|
arguments: args
|
...
|
...
|
|