|
|
@ -14,15 +14,16 @@ |
|
|
</block> |
|
|
</block> |
|
|
</uni-nav-bar> |
|
|
</uni-nav-bar> |
|
|
<view class="uni-margin-wrap"> |
|
|
<view class="uni-margin-wrap"> |
|
|
<uni-swiper-dot :info="info" :current="current" field="content" mode="nav" class="page_padding " :class="isVedio?'showVedio':''" > |
|
|
<uni-swiper-dot :info="goodsDate.gallery_list" :current="current" field="content" mode="nav" class="page_padding " :class="isVedio?'showVedio':''" > |
|
|
<swiper class="swiper" @change="gridSwiper" :circular="true"> |
|
|
<swiper class="swiper" @change="gridSwiper" :circular="true"> |
|
|
<swiper-item> |
|
|
<swiper-item v-for="(item,index ) in goodsDate.gallery_list" :key="index"> |
|
|
<view class="swiper-item"> |
|
|
<view class="swiper-item"> |
|
|
|
|
|
<image :src="item.img_url" class="swiper-item-image" mode=""></image> |
|
|
<!-- <img src="" alt="" class="swiper-item-image"> --> |
|
|
<!-- <img src="" alt="" class="swiper-item-image"> --> |
|
|
<image src="../../static/img/play.png" class="vedio_play" mode=""></image> |
|
|
<!-- <image src="../../static/img/play.png" class="vedio_play" mode="" ></image> --> |
|
|
</view> |
|
|
</view> |
|
|
</swiper-item> |
|
|
</swiper-item> |
|
|
<swiper-item> |
|
|
<!-- <swiper-item> |
|
|
<view class="swiper-item uni-bg-green"> |
|
|
<view class="swiper-item uni-bg-green"> |
|
|
<view class="vedioControl"> |
|
|
<view class="vedioControl"> |
|
|
<image src="/static/img/suspend.png" mode="" class="vedioControl_play"></image> |
|
|
<image src="/static/img/suspend.png" mode="" class="vedioControl_play"></image> |
|
|
@ -38,7 +39,7 @@ |
|
|
</swiper-item> |
|
|
</swiper-item> |
|
|
<swiper-item> |
|
|
<swiper-item> |
|
|
<view class="swiper-item uni-bg-blue">C</view> |
|
|
<view class="swiper-item uni-bg-blue">C</view> |
|
|
</swiper-item> |
|
|
</swiper-item> --> |
|
|
</swiper> |
|
|
</swiper> |
|
|
</uni-swiper-dot> |
|
|
</uni-swiper-dot> |
|
|
</view> |
|
|
</view> |
|
|
@ -55,7 +56,8 @@ |
|
|
</view> |
|
|
</view> |
|
|
<view class="goods_info"> |
|
|
<view class="goods_info"> |
|
|
<view class="goods_info_price"> |
|
|
<view class="goods_info_price"> |
|
|
<text>US${{goodsDate.shop_price}}</text> |
|
|
<text>US${{goodsDate.is_promote==0? goodsDate.shop_price :goodsDate.promote_price}}</text> |
|
|
|
|
|
|
|
|
<view class="info_price_right"> |
|
|
<view class="info_price_right"> |
|
|
<image src="/static/img/like.png" mode="" v-show="goodsDate.is_attention==0" @click="addLike(goodsDate.id)"></image> |
|
|
<image src="/static/img/like.png" mode="" v-show="goodsDate.is_attention==0" @click="addLike(goodsDate.id)"></image> |
|
|
<image src="../../static/img/like1.png" mode="" v-show="goodsDate.is_attention==1" @click="removeLike(goodsDate.id)"></image> |
|
|
<image src="../../static/img/like1.png" mode="" v-show="goodsDate.is_attention==1" @click="removeLike(goodsDate.id)"></image> |
|
|
@ -66,7 +68,7 @@ |
|
|
<view class="evaluate"> |
|
|
<view class="evaluate"> |
|
|
<uni-rate size="18" :value="4" active-color="red" :is-fill="false"/> |
|
|
<uni-rate size="18" :value="4" active-color="red" :is-fill="false"/> |
|
|
<view class="evaluate_text">4.0</view> |
|
|
<view class="evaluate_text">4.0</view> |
|
|
<text>(24reviews)</text> |
|
|
<text>({{goodsDate.comment_summary[0].commentcount}}reviews)</text> |
|
|
</view> |
|
|
</view> |
|
|
<view class="variations"> |
|
|
<view class="variations"> |
|
|
<view class="variations_title"> |
|
|
<view class="variations_title"> |
|
|
@ -312,24 +314,13 @@ |
|
|
_action:'getgoodsdetail', |
|
|
_action:'getgoodsdetail', |
|
|
goods_id:'' |
|
|
goods_id:'' |
|
|
}, |
|
|
}, |
|
|
info: [{ |
|
|
info: [], |
|
|
colorClass: 'uni-bg-red', |
|
|
|
|
|
url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg', |
|
|
|
|
|
content: '' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
colorClass: 'uni-bg-green', |
|
|
|
|
|
url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg', |
|
|
|
|
|
content: '' |
|
|
|
|
|
}, |
|
|
|
|
|
{ |
|
|
|
|
|
colorClass: 'uni-bg-blue', |
|
|
|
|
|
url: 'https://vkceyugu.cdn.bspapp.com/VKCEYUGU-dc-site/094a9dc0-50c0-11eb-b680-7980c8a877b8.jpg', |
|
|
|
|
|
content: '' |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
isCart:false, |
|
|
isCart:false, |
|
|
goodsDate:{}, |
|
|
goodsDate:{ |
|
|
|
|
|
comment_summary:[ |
|
|
|
|
|
{comment_summary:'',commentlabel: ""} |
|
|
|
|
|
] |
|
|
|
|
|
}, |
|
|
user_info:{} |
|
|
user_info:{} |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
@ -375,18 +366,22 @@ |
|
|
console.info(res) |
|
|
console.info(res) |
|
|
if(res.error==0){ |
|
|
if(res.error==0){ |
|
|
this.goodsDate=res.data |
|
|
this.goodsDate=res.data |
|
|
|
|
|
this.goodsDate.gallery_list.map(item=>{ |
|
|
|
|
|
item.content='' |
|
|
|
|
|
}) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
addCart(){ |
|
|
addCart(){ |
|
|
this.isCart=true |
|
|
this.isCart=true |
|
|
}, |
|
|
}, |
|
|
|
|
|
//当录播有视屏时 |
|
|
gridSwiper(e){ |
|
|
gridSwiper(e){ |
|
|
if(e.detail.current==1){ |
|
|
// if(e.detail.current==1){ |
|
|
this.isVedio=true |
|
|
// this.isVedio=true |
|
|
}else{ |
|
|
// }else{ |
|
|
this.isVedio=false |
|
|
// this.isVedio=false |
|
|
} |
|
|
// } |
|
|
this.current = e.detail.current |
|
|
this.current = e.detail.current |
|
|
}, |
|
|
}, |
|
|
confirm(){ |
|
|
confirm(){ |
|
|
|