Showing
4 changed files
with
18 additions
and
8 deletions
@@ -498,7 +498,7 @@ const setBrandIntro = brand => { | @@ -498,7 +498,7 @@ const setBrandIntro = brand => { | ||
498 | 498 | ||
499 | if (brand) { | 499 | if (brand) { |
500 | let text = _.replace(brand.brandIntro, /<\/?[^>]*>|\s*|(\n)|(\t)|(\r)/g, ''), | 500 | let text = _.replace(brand.brandIntro, /<\/?[^>]*>|\s*|(\n)|(\t)|(\r)/g, ''), |
501 | - more = `... <a href="javascript:;" class="more-brand-intro blue">了解更多>></a>`; | 501 | + more = '... <a href="javascript:;" class="more-brand-intro blue">了解更多>></a>'; |
502 | 502 | ||
503 | barndIntro = { | 503 | barndIntro = { |
504 | brand: { | 504 | brand: { |
@@ -8,6 +8,7 @@ | @@ -8,6 +8,7 @@ | ||
8 | 8 | ||
9 | const isProduction = process.env.NODE_ENV === 'production'; | 9 | const isProduction = process.env.NODE_ENV === 'production'; |
10 | const isTest = process.env.NODE_ENV === 'test'; | 10 | const isTest = process.env.NODE_ENV === 'test'; |
11 | +const isUseOneapm = process.env.USE_ONEAPM === 'true'; | ||
11 | 12 | ||
12 | module.exports = { | 13 | module.exports = { |
13 | app: 'web', | 14 | app: 'web', |
@@ -99,7 +100,7 @@ if (isProduction) { | @@ -99,7 +100,7 @@ if (isProduction) { | ||
99 | session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'], | 100 | session: ['memcache1.yohoops.org:12111', 'memcache2.yohoops.org:12111', 'memcache3.yohoops.org:12111'], |
100 | timeout: 3000 | 101 | timeout: 3000 |
101 | }, | 102 | }, |
102 | - useOneapm: true, | 103 | + useOneapm: isUseOneapm, |
103 | useCache: true, | 104 | useCache: true, |
104 | pay: { | 105 | pay: { |
105 | serviceNotify: 'http://service.yoho.cn/' | 106 | serviceNotify: 'http://service.yoho.cn/' |
@@ -109,10 +110,10 @@ if (isProduction) { | @@ -109,10 +110,10 @@ if (isProduction) { | ||
109 | Object.assign(module.exports, { | 110 | Object.assign(module.exports, { |
110 | appName: 'www.yohoblk.com for test', | 111 | appName: 'www.yohoblk.com for test', |
111 | domains: { | 112 | domains: { |
112 | - singleApi: 'http://192.168.102.31:8092/brower', | ||
113 | - api: 'http://testapi.yoho.cn:28078/', | ||
114 | - service: 'http://testservice.yoho.cn:28077/', | ||
115 | - search: 'http://192.168.102.216:8080/yohosearch/' | 113 | + singleApi: process.env.TEST_SINGLEAPI || 'http://192.168.102.31:8092/brower', |
114 | + api: process.env.TEST_API || 'http://testapi.yoho.cn:28078/', | ||
115 | + service: process.env.TEST_SERVICE || 'http://testservice.yoho.cn:28077/', | ||
116 | + search: process.env.TEST_SEARCH || 'http://192.168.102.216:8080/yohosearch/' | ||
116 | }, | 117 | }, |
117 | useOneapm: true, | 118 | useOneapm: true, |
118 | useCache: true, | 119 | useCache: true, |
@@ -37,6 +37,8 @@ var balanceTpl = require('../../tpl/shopping/balance.hbs'); | @@ -37,6 +37,8 @@ var balanceTpl = require('../../tpl/shopping/balance.hbs'); | ||
37 | 37 | ||
38 | var pkgCache = {}; | 38 | var pkgCache = {}; |
39 | 39 | ||
40 | +var suredCoin = 0; | ||
41 | + | ||
40 | var $pkgList; | 42 | var $pkgList; |
41 | 43 | ||
42 | require('yoho-jquery-placeholder'); | 44 | require('yoho-jquery-placeholder'); |
@@ -218,8 +220,10 @@ $coinSure.click(function() { | @@ -218,8 +220,10 @@ $coinSure.click(function() { | ||
218 | return; | 220 | return; |
219 | } | 221 | } |
220 | 222 | ||
223 | + suredCoin = getCoinUsed(); | ||
224 | + | ||
221 | // 切换显示 | 225 | // 切换显示 |
222 | - compute(getCoinUsed()); | 226 | + compute(suredCoin); |
223 | 227 | ||
224 | toggleCoinPanel(); | 228 | toggleCoinPanel(); |
225 | }); | 229 | }); |
@@ -257,7 +261,7 @@ $('.print-price-radio').check({ | @@ -257,7 +261,7 @@ $('.print-price-radio').check({ | ||
257 | $('#balance-list').on('click', '#submit-order', function() { | 261 | $('#balance-list').on('click', '#submit-order', function() { |
258 | var reqParam = { | 262 | var reqParam = { |
259 | address_id: $('.address.focus').data('id'), | 263 | address_id: $('.address.focus').data('id'), |
260 | - use_yoho_coin: getCoinUsed(), | 264 | + use_yoho_coin: suredCoin, |
261 | remark: $('#remark-content').val(), | 265 | remark: $('#remark-content').val(), |
262 | isPrintPrice: $printPrice.printPrice | 266 | isPrintPrice: $printPrice.printPrice |
263 | }; | 267 | }; |
-
Please register or login to post a comment