Authored by 陈轩

兼容ios

<div id="chat-main-wrap">
<!--im 头部-->
<header class="yoho-header chat-header">
<a href="{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}" class="iconfont nav-back">&#xe610;</a>
<a id="js-back" href="{{#if backUrl}}{{backUrl}}{{^}}javascript:history.go(-1);{{/if}}" class="iconfont nav-back">&#xe610;</a>
<div class="title">智能小YO</div>
<div class="header-right"><span data-action="change-human">人工客服</span></div>
</header>
... ...
... ... @@ -6,6 +6,7 @@
'use strict';
import appBridge from 'yoho-app';
import {time} from './time';
import {api} from './store';
import {RatingView, LeaveMSGView, OrderListView } from './view';
... ... @@ -773,6 +774,15 @@ $('#chat-window').on('click', '.chat-image', function() {
});
});
if (appBridge.isApp) {
$('#js-back').on('click', function(e) {
e.preventDefault();
appBridge.invokeMethod('go.back', {});
});
}
window.$ = $;
window.chat = chat;
... ...