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