Showing
3 changed files
with
6 additions
and
2 deletions
@@ -41,9 +41,11 @@ | @@ -41,9 +41,11 @@ | ||
41 | <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script> | 41 | <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script> |
42 | {{/wechatShare}} | 42 | {{/wechatShare}} |
43 | {{#if devEnv}} | 43 | {{#if devEnv}} |
44 | + <script>var STATIC_RESOURCE_PATH = '//{{devHost}}:5001';</script> | ||
44 | <script src="//{{devHost}}:5001/libs.js"></script> | 45 | <script src="//{{devHost}}:5001/libs.js"></script> |
45 | <script src="//{{devHost}}:5001/{{module}}.{{page}}.js"></script> | 46 | <script src="//{{devHost}}:5001/{{module}}.{{page}}.js"></script> |
46 | {{^}} | 47 | {{^}} |
48 | + <script>var STATIC_RESOURCE_PATH = '//cdn.yoho.cn/m-yohobuy-node/';</script> | ||
47 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/libs.js"></script> | 49 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/libs.js"></script> |
48 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script> | 50 | <script src="//cdn.yoho.cn/m-yohobuy-node/{{version}}/{{module}}.{{page}}.js"></script> |
49 | {{/if}} | 51 | {{/if}} |
@@ -18,7 +18,7 @@ var loadOrderList = function(pageIndex, type) { | @@ -18,7 +18,7 @@ var loadOrderList = function(pageIndex, type) { | ||
18 | page: pageIndex, | 18 | page: pageIndex, |
19 | type: type | 19 | type: type |
20 | }).then(function(result) { | 20 | }).then(function(result) { |
21 | - if (result && result.replace(/\s/g,'')) { | 21 | + if (result && result.replace(/\s/g, '')) { |
22 | search.pageIndex = pageIndex; | 22 | search.pageIndex = pageIndex; |
23 | } | 23 | } |
24 | 24 |
@@ -62,7 +62,9 @@ var debounceFn = debounce(function(cardNo) { | @@ -62,7 +62,9 @@ var debounceFn = debounce(function(cardNo) { | ||
62 | $('#bank-name').text(result.data.bankName); | 62 | $('#bank-name').text(result.data.bankName); |
63 | 63 | ||
64 | // 设置银行图标 | 64 | // 设置银行图标 |
65 | - $('#bank-icon').attr('src', '/img/home/bank-icons/' + result.data.bankCode + '.png'); | 65 | + $('#bank-icon').attr('src', |
66 | + window.STATIC_RESOURCE_PATH + | ||
67 | + '/img/home/bank-icons/' + result.data.bankCode + '.png'); | ||
66 | $('#bank-desc').show(); | 68 | $('#bank-desc').show(); |
67 | } | 69 | } |
68 | } else { | 70 | } else { |
-
Please register or login to post a comment