parent 35a1f91f
......@@ -71,7 +71,7 @@
</div> -->
<div class="user" v-if="firstEvaluation">
<div class="user-name flex-align-center">
<img :src="domain.imgPrefix + firstEvaluation.avatar" />
<img :src="baseImgUrl + firstEvaluation.avatar" />
<p>{{ firstEvaluation.nickName }}</p>
</div>
<div class="content">{{ firstEvaluation.evaluation }}</div>
......@@ -89,7 +89,7 @@
<wd-img
v-for="(v, i) in photoList"
:key="i"
:src="domain.imgPrefix + v.images"
:src="baseImgUrl + v.images"
enable-preview
/>
</div>
......@@ -330,7 +330,6 @@
<script setup>
import timeLine from './timeLine.vue';
import domain from '@/utils/domain';
import Payment from '@/pages/order/components/Payment/index.vue';
import { ref, computed, watch } from 'vue';
import fab from '../../../components/fab/fab.vue';
......@@ -348,6 +347,7 @@ import { navigationSelect } from '@/utils/common';
import { sgyOrderOrderInfo } from '@/api/assistingAgriculture/shop';
import { groupBuyConfirm, groupBuyUpdate, groupBuyCreate } from '@/api/confirmOrder';
import { getCollect } from '@/api/packageDetail';
const baseImgUrl = import.meta.env.VITE_APP_IMG_URL;
/* 监听滑动改变顶部颜色 */
const backgroundBox = ref('');
const onScroll = (e) => {
......@@ -358,9 +358,7 @@ const onScroll = (e) => {
backgroundBox.value = '';
}
};
const swiperList = ref([
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg',
]);
const swiperList = ref([]);
// 获取商品详情
const prodData = ref({});
// 评论统计
......@@ -613,7 +611,7 @@ onLoad(({ shopId, prodId }) => {
prodId,
}).then((res) => {
prodData.value = res.data.data.prod;
swiperList.value = prodData.value.imgs.split(',').map((v) => domain.imgPrefix + v);
swiperList.value = prodData.value.imgs.split(',').map((v) => baseImgUrl + v);
});
// 获取评论
getEvalStatis({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment