|
|
@@ -39,7 +39,7 @@
|
|
|
:key="item.id"
|
|
|
@click="goToProduct(item.id)"
|
|
|
>
|
|
|
- <image class="purchase-cover" :src="item.coverImage || '/static/default-product.png'" mode="aspectFill" />
|
|
|
+ <image class="purchase-cover" :src="getImageUrl(item.coverImage) || '/static/default-product.png'" mode="aspectFill" />
|
|
|
<text class="purchase-name">{{ item.name }}</text>
|
|
|
<text class="purchase-price">{{ formatPriceWithSymbol(item.price) }}</text>
|
|
|
<view class="purchase-btn">
|
|
|
@@ -141,6 +141,7 @@
|
|
|
|
|
|
<script>
|
|
|
import { danParsePreview, danConfirmReport, productList } from '../../utils/api.js'
|
|
|
+import config from '@/config.js'
|
|
|
|
|
|
var REPORT_DOMAIN_MAP = {
|
|
|
mind: 'mind',
|
|
|
@@ -279,6 +280,9 @@ export default {
|
|
|
formatPriceWithSymbol: function(cents) {
|
|
|
if (cents === null || cents === undefined) return '¥0'
|
|
|
return '¥' + (cents / 100).toFixed(2)
|
|
|
+ },
|
|
|
+ getImageUrl: function(path) {
|
|
|
+ return config.API_BASE_URL + path
|
|
|
}
|
|
|
}
|
|
|
}
|