|
|
@@ -290,18 +290,13 @@ export default {
|
|
|
formatPriceWithSymbol(price) {
|
|
|
if (!price && price !== 0) return '-'
|
|
|
return '¥' + (price / 100).toFixed(2)
|
|
|
- },getImageUrl: function(path) {
|
|
|
-
|
|
|
- if (!path || path === 'null' || path === 'undefined' || path === '/null') return ''
|
|
|
-
|
|
|
- var s = String(path).trim()
|
|
|
-
|
|
|
- if (!s || s === 'null' || s === '/null') return ''
|
|
|
-
|
|
|
- if (s.indexOf('http://') === 0 || s.indexOf('https://') === 0) return s
|
|
|
-
|
|
|
- return config.API_BASE_URL + (s.charAt(0) === '/' ? s : '/' + s)
|
|
|
-
|
|
|
+ getImageUrl: function(path) {
|
|
|
+ if (!path || path === 'null' || path === 'undefined' || path === '/null') return ''
|
|
|
+ var s = String(path).trim()
|
|
|
+ if (!s || s === 'null' || s === '/null') return ''
|
|
|
+ if (s.indexOf('http://') === 0 || s.indexOf('https://') === 0) return s
|
|
|
+ return config.API_BASE_URL + (s.charAt(0) === '/' ? s : '/' + s)
|
|
|
+ } cff388913 (fix(image): 云文件绝对 URL 不再重复叠加 API_BASE_URL 前缀)
|
|
|
},
|
|
|
// 履约状态标签
|
|
|
fulfillStatusLabel: function(status) {
|