|
|
@@ -40,7 +40,7 @@
|
|
|
<scroll-view scroll-x class="product-scroll" show-scrollbar="false">
|
|
|
<view class="product-list">
|
|
|
<view class="product-card" v-for="(item, idx) in guestProducts" :key="idx" @click="goProductDetail(item.id)">
|
|
|
- <image class="product-img" :src="item.image || '/static/default-product.png'" mode="aspectFill" />
|
|
|
+ <image class="product-img" :src="getImageUrl(item.coverImage || item.image) || '/static/default-product.png'" mode="aspectFill" />
|
|
|
<text class="product-name">{{ item.name }}</text>
|
|
|
<text class="product-price">¥{{ item.price || 0 }}</text>
|
|
|
</view>
|
|
|
@@ -203,6 +203,7 @@ import {
|
|
|
productList
|
|
|
} from '../../utils/api.js'
|
|
|
import nav from '../../utils/nav.js'
|
|
|
+import config from '../../config.js'
|
|
|
|
|
|
export default {
|
|
|
components: { TabTransition, PageBanner, WealthEnergyRing, WealthSubScores, BodyWealthAlert, FamilyMemberStrip, DimensionIntroCard },
|
|
|
@@ -479,6 +480,9 @@ export default {
|
|
|
goProductDetail(id) {
|
|
|
uni.navigateTo({ url: '/pages/shop/detail/detail?id=' + id })
|
|
|
},
|
|
|
+ getImageUrl: function(path) {
|
|
|
+ return config.API_BASE_URL + path
|
|
|
+ },
|
|
|
onServiceClick(action) {
|
|
|
if (this[action]) {
|
|
|
this[action]()
|