...
|
...
|
@@ -233,7 +233,7 @@ const yoho = { |
|
|
*/
|
|
|
goSearch(args, success, fail) {
|
|
|
if (this.isApp && window.yohoInterface) {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
|
|
|
method: 'go.search',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -250,7 +250,7 @@ const yoho = { |
|
|
*/
|
|
|
goSetting(args, success, fail) {
|
|
|
if (this.isApp && window.yohoInterface) {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
|
|
|
method: 'go.setting',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -267,7 +267,7 @@ const yoho = { |
|
|
*/
|
|
|
goSetAvatar(args, success, fail) {
|
|
|
if (this.isApp && window.yohoInterface) {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
|
|
|
method: 'go.setAvatar',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -284,7 +284,7 @@ const yoho = { |
|
|
*/
|
|
|
goPageView(args, success, fail) {
|
|
|
if (this.isApp && window.yohoInterface) {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
|
|
|
method: 'go.pageView',
|
|
|
arguments: args
|
|
|
});
|
...
|
...
|
@@ -294,6 +294,23 @@ const yoho = { |
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 更新头部信息
|
|
|
* @param args {""}
|
|
|
* @param success
|
|
|
* @param fail
|
|
|
*/
|
|
|
updateNavigationBar(args, success, fail) {
|
|
|
if (this.isApp) {
|
|
|
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
|
|
|
method: 'update.navigationBarStyle',
|
|
|
arguments: args
|
|
|
});
|
|
|
} else {
|
|
|
tip(tipInfo);
|
|
|
}
|
|
|
},
|
|
|
|
|
|
/**
|
|
|
* 显示 loading
|
|
|
* @param args Boolen
|
|
|
* @param success
|
...
|
...
|
@@ -301,7 +318,7 @@ const yoho = { |
|
|
*/
|
|
|
showLoading(args, success, fail) {
|
|
|
if (this.isApp && window.yohoInterface) {
|
|
|
window.yohoInterface.triggerEvent(success || function() {}, fail || function() {}, {
|
|
|
window.yohoInterface.triggerEvent(success || nullFun, fail || nullFun, {
|
|
|
method: 'go.loading',
|
|
|
arguments: {
|
|
|
show: args ? 'yes' : 'no'
|
...
|
...
|
|