Authored by 李奇

fixed:兼容性

... ... @@ -5,6 +5,7 @@
* @Last Modified time: 2016-08-02 17:42:26
*/
import yoho from 'yoho';
import cookie from 'yoho-cookie';
import util from 'common/util';
function ImgSrcBinding(el, binding) {
... ... @@ -46,9 +47,7 @@ function BrandHrefBinding(el, binding) {
if (yoho.isYohoBuy && !shopId) {
yoho.ready(function () {
yoho.getAppVersion({}, function(version) {
alert(binding.value.name)
if (version >= '6.5.5') {
if (cookie.get('app_version') >= '6.5.5') {
let { name } = binding.value;
let goParams = {
... ... @@ -64,7 +63,6 @@ function BrandHrefBinding(el, binding) {
el.href = href;
}
});
});
}
if (!yoho.isYohoBuy) {
... ...