|
|
@@ -37,7 +37,7 @@
|
|
|
class="product-card"
|
|
|
@click="goDetail(item.id)"
|
|
|
>
|
|
|
- <image class="product-cover" :src="item.coverImage || '/static/default-product.png'" mode="aspectFill" />
|
|
|
+ <image class="product-cover" :src="getImageUrl(item.coverImage) || '/static/default-product.png'" mode="aspectFill" />
|
|
|
<view class="product-info">
|
|
|
<text class="product-name">{{ item.name }}</text>
|
|
|
<view class="product-price-row">
|
|
|
@@ -127,6 +127,7 @@
|
|
|
import PageBanner from '../../components/PageBanner.vue'
|
|
|
import { productList, getFeaturedArticles, getMyMembership } from '@/utils/api.js'
|
|
|
import WuxingSandbox from '../../components/wuxing-sandbox.vue'
|
|
|
+import config from '@/config.js'
|
|
|
export default {
|
|
|
components: { PageBanner, WuxingSandbox },
|
|
|
data() {
|
|
|
@@ -218,6 +219,9 @@ export default {
|
|
|
goArticleDetail(id) {
|
|
|
uni.navigateTo({ url: '/pages/article-center/article-detail?id=' + id })
|
|
|
},
|
|
|
+ getImageUrl: function(path) {
|
|
|
+ return config.API_BASE_URL + path
|
|
|
+ },
|
|
|
goKnowledgeCenter() {
|
|
|
uni.navigateTo({ url: '/pages/mind-extra/articles' })
|
|
|
}
|