Showing
1 changed file
with
2 additions
and
4 deletions
@@ -5,6 +5,7 @@ | @@ -5,6 +5,7 @@ | ||
5 | * @Last Modified time: 2016-08-02 17:42:26 | 5 | * @Last Modified time: 2016-08-02 17:42:26 |
6 | */ | 6 | */ |
7 | import yoho from 'yoho'; | 7 | import yoho from 'yoho'; |
8 | +import cookie from 'yoho-cookie'; | ||
8 | import util from 'common/util'; | 9 | import util from 'common/util'; |
9 | 10 | ||
10 | function ImgSrcBinding(el, binding) { | 11 | function ImgSrcBinding(el, binding) { |
@@ -46,9 +47,7 @@ function BrandHrefBinding(el, binding) { | @@ -46,9 +47,7 @@ function BrandHrefBinding(el, binding) { | ||
46 | 47 | ||
47 | if (yoho.isYohoBuy && !shopId) { | 48 | if (yoho.isYohoBuy && !shopId) { |
48 | yoho.ready(function () { | 49 | yoho.ready(function () { |
49 | - yoho.getAppVersion({}, function(version) { | ||
50 | - alert(binding.value.name) | ||
51 | - if (version >= '6.5.5') { | 50 | + if (cookie.get('app_version') >= '6.5.5') { |
52 | let { name } = binding.value; | 51 | let { name } = binding.value; |
53 | 52 | ||
54 | let goParams = { | 53 | let goParams = { |
@@ -64,7 +63,6 @@ function BrandHrefBinding(el, binding) { | @@ -64,7 +63,6 @@ function BrandHrefBinding(el, binding) { | ||
64 | el.href = href; | 63 | el.href = href; |
65 | } | 64 | } |
66 | }); | 65 | }); |
67 | - }); | ||
68 | } | 66 | } |
69 | 67 | ||
70 | if (!yoho.isYohoBuy) { | 68 | if (!yoho.isYohoBuy) { |
-
Please register or login to post a comment