Authored by 陈轩

im android

@@ -12,11 +12,6 @@ import {api} from './store'; @@ -12,11 +12,6 @@ import {api} from './store';
12 import {RatingView, LeaveMSGView, OrderListView } from './view'; 12 import {RatingView, LeaveMSGView, OrderListView } from './view';
13 import tip from 'plugin/tip'; 13 import tip from 'plugin/tip';
14 14
15 -if (appBridge.isApp && /YohoBuy-iOS/i.test(navigator.userAgent)) {  
16 - document.body.classList.add('app-ios');  
17 -}  
18 -  
19 -  
20 var qs = require('yoho-qs'); 15 var qs = require('yoho-qs');
21 16
22 var socket = require('./socket-chat'), 17 var socket = require('./socket-chat'),
@@ -855,20 +850,24 @@ $('#chat-window').on('click', '.chat-image', function() { @@ -855,20 +850,24 @@ $('#chat-window').on('click', '.chat-image', function() {
855 }); 850 });
856 }); 851 });
857 852
858 -if (appBridge.isApp) { 853 +
  854 +if (appBridge.isApp && /YohoBuy\-iOS/i.test(navigator.userAgent)) {
  855 + document.body.classList.add('app-ios');
  856 +}
  857 +
  858 +if (/YohoBuy-android-yas/.test(navigator.userAgent)) {
859 $('#js-back').removeAttr('href').on('click', function(e) { 859 $('#js-back').removeAttr('href').on('click', function(e) {
860 e.preventDefault(); 860 e.preventDefault();
861 -  
862 - if ((qs.client_type || '').toLowerCase() === 'android') {  
863 - window.im.goBack();  
864 - } else {  
865 - appBridge.invokeMethod('go.back', {});  
866 - } 861 + window.im.goBack();
  862 + });
  863 +} else if (appBridge.isApp) {
  864 + $('#js-back').removeAttr('href').on('click', function(e) {
  865 + e.preventDefault();
  866 + appBridge.invokeMethod('go.back', {});
867 }); 867 });
868 } 868 }
869 869
870 870
871 -  
872 window.$ = $; 871 window.$ = $;
873 window.chat = chat; 872 window.chat = chat;
874 window.cmEntity = cmEntity; 873 window.cmEntity = cmEntity;