Browse Source

修改bug

master
xh-pan1 7 months ago
parent
commit
889fb0d39e
  1. 4
      components/canvasShow/config/api.js
  2. 12
      pages_category_page1/goodsModule/components/GoodActivityDetail.vue

4
components/canvasShow/config/api.js

@ -2,9 +2,9 @@
// 获取当前环境变量 true => 生产环境 false => 开发环境
// const BASEURL = process.env.VUE_APP_DOMAIN_PREFIX
const BASEURL = (process.env.NODE_ENV === 'production') ? 'http://36.138.125.206:8081/ceres-app-api' : 'http://36.138.125.206:8081/ceres-app-api'
// const BASEURL = (process.env.NODE_ENV === 'production') ? 'http://36.138.125.206:8081/ceres-app-api' : 'http://36.138.125.206:8081/ceres-app-api'
// const BASEURL = (process.env.NODE_ENV === 'production') ? 'https://http://36.138.125.206:8081/ceres-local-filehnthee.com/ceres-app-api' : 'https://http://36.138.125.206:8081/ceres-local-filehnthee.com/ceres-app-api'
// const BASEURL = (process.env.NODE_ENV === 'production') ? 'http://127.0.0.1:9007' : 'http://127.0.0.1:9007'
const BASEURL = (process.env.NODE_ENV === 'production') ? 'http://127.0.0.1:9007' : 'http://127.0.0.1:9007'
// const BASEURL = '/ceres-app-api'

12
pages_category_page1/goodsModule/components/GoodActivityDetail.vue

@ -13,6 +13,7 @@
class="goodsImgswiper-box "
:indicator-dots="true"
:autoplay="true"
:current="swiperCurrent"
>
<swiper-item
v-for="(imgItem, index) in productInfo.images"
@ -215,6 +216,7 @@ export default {
components: {shareSpell, Swiper, SwiperSlide},
data() {
return {
swiperCurrent:0,
//
timeDifference: 0,
activeTimeObj: {
@ -391,10 +393,12 @@ export default {
},
switchSkuImage(index) {
if (this.$refs.skuSwiper){
this.$refs.skuSwiper.$swiper.slideTo(index, 1000, false);
}
console.log('switchSkuImage-->', this.$refs.skuSwiper)
console.log('switchSkuImage-->', this.$refs.skuSwiper)
this.swiperCurrent = index
// if (this.$refs.skuSwiper){
// this.$refs.skuSwiper.$swiper.slideTo(index, 1000, false);
// }
}
}
}

Loading…
Cancel
Save