Authored by 陈轩

im android

... ... @@ -12,11 +12,6 @@ import {api} from './store';
import {RatingView, LeaveMSGView, OrderListView } from './view';
import tip from 'plugin/tip';
if (appBridge.isApp && /YohoBuy-iOS/i.test(navigator.userAgent)) {
document.body.classList.add('app-ios');
}
var qs = require('yoho-qs');
var socket = require('./socket-chat'),
... ... @@ -855,20 +850,24 @@ $('#chat-window').on('click', '.chat-image', function() {
});
});
if (appBridge.isApp) {
if (appBridge.isApp && /YohoBuy\-iOS/i.test(navigator.userAgent)) {
document.body.classList.add('app-ios');
}
if (/YohoBuy-android-yas/.test(navigator.userAgent)) {
$('#js-back').removeAttr('href').on('click', function(e) {
e.preventDefault();
if ((qs.client_type || '').toLowerCase() === 'android') {
window.im.goBack();
} else {
appBridge.invokeMethod('go.back', {});
}
window.im.goBack();
});
} else if (appBridge.isApp) {
$('#js-back').removeAttr('href').on('click', function(e) {
e.preventDefault();
appBridge.invokeMethod('go.back', {});
});
}
window.$ = $;
window.chat = chat;
window.cmEntity = cmEntity;
... ...