|
@@ -5,8 +5,7 @@
|
|
|
<scroll-view scroll-y="true" class="scroll-view">
|
|
|
<view class="list-scroll-view">
|
|
|
<view class="one_1">
|
|
|
- <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff"
|
|
|
- indicator-active-color="#FB1438" :interval="3000" :duration="1000">
|
|
|
+ <swiper class="swiper" circular :indicator-dots="true" indicator-color="#ffffff" indicator-active-color="#FB1438" :interval="3000" :duration="1000">
|
|
|
<swiper-item class="list" v-for="(item,index) in info.goods.file" :key="index">
|
|
|
<image class="image" :src="item.url" mode="aspectFit">
|
|
|
</image>
|
|
@@ -14,26 +13,21 @@
|
|
|
</swiper>
|
|
|
<!-- 是否关注商品 -->
|
|
|
<view class="goodsColect">
|
|
|
- <text @tap="toGoodscolect"
|
|
|
- :class="['iconfont',goodsColect?'icon-yduishoucangshixin-copy':'icon-yduishoucangkongxin']"></text>
|
|
|
+ <text @tap="toGoodscolect" :class="['iconfont',goodsColect?'icon-yduishoucangshixin-copy':'icon-yduishoucangkongxin']"></text>
|
|
|
</view>
|
|
|
<view class="acttags" v-if="info.goods.act_tags&&info.goods.act_tags.length>0">
|
|
|
<text v-for="i in info.goods.act_tags" :key="i">{{i.label}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="one_2">
|
|
|
- <text class="money_1"
|
|
|
- v-if="infospecs.leader_price"><text>团长价¥</text>{{infospecs.leader_price||0}}</text>
|
|
|
+ <text class="money_1" v-if="infospecs.leader_price"><text>团长价¥</text>{{infospecs.leader_price||0}}</text>
|
|
|
<text class="money" v-if="infospecs.price"><text>特价¥</text>{{infospecs.price||0}}</text>
|
|
|
- <text class="money"
|
|
|
- v-if="!infospecs.price&&!infospecs.leader_price"><text>¥</text>{{infospecs.sell_money||0}}</text>
|
|
|
+ <text class="money" v-if="!infospecs.price&&!infospecs.leader_price"><text>¥</text>{{infospecs.sell_money||0}}</text>
|
|
|
<text class="money"><text>¥</text>{{infospecs.flow_money||0}}</text>
|
|
|
</view>
|
|
|
<view class="one_3" v-if="discount">
|
|
|
- <text v-if="discount.full_decrement" class="act"
|
|
|
- v-for="(item,index) in discount.full_decrement" :key="index">{{item}}</text>
|
|
|
- <text v-if="discount.full_fold" class="act" v-for="(item,index) in discount.full_fold"
|
|
|
- :key="index">{{item}}</text>
|
|
|
+ <text v-if="discount.full_decrement" class="act" v-for="(item,index) in discount.full_decrement" :key="index">{{item}}</text>
|
|
|
+ <text v-if="discount.full_fold" class="act" v-for="(item,index) in discount.full_fold" :key="index">{{item}}</text>
|
|
|
</view>
|
|
|
<view class="one_3">
|
|
|
<text class="num">已售{{info.goods.sell_num||0}}件</text>
|
|
@@ -80,8 +74,7 @@
|
|
|
</view>
|
|
|
<view class="one_7_2">
|
|
|
<view class="image" v-for="(set,index) in info.sets[0].set" :key="index">
|
|
|
- <image class="image" :src="set.file&&set.file.length>0?set.file[0].url:''"
|
|
|
- mode="aspectFit">
|
|
|
+ <image class="image" :src="set.file&&set.file.length>0?set.file[0].url:''" mode="aspectFit">
|
|
|
</image>
|
|
|
</view>
|
|
|
<view class="money">
|
|
@@ -93,9 +86,7 @@
|
|
|
<view class="one_8">
|
|
|
<view class="one_8_1">
|
|
|
<view class="shop_1">
|
|
|
- <image class="image"
|
|
|
- :src="info.shop.logo&&info.shop.logo.length>0?info.shop.logo[0].url:''"
|
|
|
- mode="aspectFit"></image>
|
|
|
+ <image class="image" :src="info.shop.logo&&info.shop.logo.length>0?info.shop.logo[0].url:''" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
<view class="shop_2">
|
|
|
<view class="name">{{info.shop.name}}</view>
|
|
@@ -134,8 +125,7 @@
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
<view class="two">
|
|
|
- <uni-goods-nav :options="options" :button-group="buttonGroup" @click="toNavleft"
|
|
|
- @buttonClick="toNavright" />
|
|
|
+ <uni-goods-nav :options="options" :button-group="buttonGroup" @click="toNavleft" @buttonClick="toNavright" />
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 跳转菜单 -->
|
|
@@ -143,8 +133,7 @@
|
|
|
<text @tap="toMenubar" class="iconfont icon-gengduo"></text>
|
|
|
</view>
|
|
|
<view class="bar_2" v-if="is_menu">
|
|
|
- <view class="list" v-for="(item,index) in barList" :key="index" v-if="item.is_use=='0'"
|
|
|
- @click="toPath(item)">
|
|
|
+ <view class="list" v-for="(item,index) in barList" :key="index" v-if="item.is_use=='0'" @click="toPath(item)">
|
|
|
<image class="image" :src="item.normal&&item.normal.length>0?item.normal[0].url:''"></image>
|
|
|
<text class="name"> {{item.name}}</text>
|
|
|
</view>
|
|
@@ -162,18 +151,13 @@
|
|
|
<view class="one">
|
|
|
<view class="one_1">
|
|
|
<view class="l">
|
|
|
- <image class="image"
|
|
|
- :src="specsInfo.file.length>0?specsInfo.file[0].url:info.goods.file[0].url"
|
|
|
- mode="aspectFill" @tap="diaView"></image>
|
|
|
+ <image class="image" :src="specsInfo.file.length>0?specsInfo.file[0].url:info.goods.file[0].url" mode="aspectFill" @tap="diaView"></image>
|
|
|
</view>
|
|
|
<view class="r">
|
|
|
<view class="money">
|
|
|
- <text v-if="specsInfo.leader_price"
|
|
|
- class="money_2"><text>团长价¥</text>{{specsInfo.leader_price}}</text>
|
|
|
- <text v-if="specsInfo.price"
|
|
|
- class="money_1"><text>特价¥</text>{{specsInfo.price}}</text>
|
|
|
- <text v-if="!specsInfo.price&&!specsInfo.leader_price"
|
|
|
- class="money_1"><text>¥</text>{{specsInfo.sell_money}}</text>
|
|
|
+ <text v-if="specsInfo.leader_price" class="money_2"><text>团长价¥</text>{{specsInfo.leader_price}}</text>
|
|
|
+ <text v-if="specsInfo.price" class="money_1"><text>特价¥</text>{{specsInfo.price}}</text>
|
|
|
+ <text v-if="!specsInfo.price&&!specsInfo.leader_price" class="money_1"><text>¥</text>{{specsInfo.sell_money}}</text>
|
|
|
<text class="money_1"><text>¥</text>{{specsInfo.flow_money}}</text>
|
|
|
</view>
|
|
|
<view class="other_1">
|
|
@@ -191,9 +175,7 @@
|
|
|
规格
|
|
|
</view>
|
|
|
<view class="one_2_2">
|
|
|
- <view
|
|
|
- :class="['list',is_specs!=index&&item.num>0?'list':is_specs!=index&&item.num<=0?'huilist':is_specs==index&&item.num>0?'redlist':is_specs==index&&item.num<=0?'huiilist':'list']"
|
|
|
- v-for="(item,index) in info.specs" :key="index" @tap="toSpecs(item)">
|
|
|
+ <view :class="['list',is_specs!=index&&item.num>0?'list':is_specs!=index&&item.num<=0?'huilist':is_specs==index&&item.num>0?'redlist':is_specs==index&&item.num<=0?'huiilist':'list']" v-for="(item,index) in info.specs" :key="index" @tap="toSpecs(item)">
|
|
|
<text>{{item.name}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -203,13 +185,11 @@
|
|
|
<text>数量</text>
|
|
|
</view>
|
|
|
<view class="one_3_1">
|
|
|
- <uni-number-box v-model="buy_num" @change="toCount" :min="1"
|
|
|
- :max="specsInfo.num">
|
|
|
+ <uni-number-box v-model="buy_num" @change="toCount" :min="1" :max="specsInfo.num">
|
|
|
</uni-number-box>
|
|
|
</view>
|
|
|
<view class="one_3_1">
|
|
|
- <text>库存{{specsInfo.num||0}}</text><text class="limit"
|
|
|
- v-if="specsInfo.limit_num">({{specsInfo.buy_name||'暂无'}}{{specsInfo.limit_num||0}}个)</text>
|
|
|
+ <text>库存{{specsInfo.num||0}}</text><text class="limit" v-if="specsInfo.limit_num">({{specsInfo.buy_name||'暂无'}}{{specsInfo.limit_num||0}}个)</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -247,8 +227,7 @@
|
|
|
<view class="title_2" v-if="item.type=='2'">
|
|
|
<view class="specList" v-for="(tag,indexx) in item.list" :key="indexx">
|
|
|
<view class="name">规格:{{tag.spec_name}}</view>
|
|
|
- <view class="giftList" v-for="(tags,indexs) in tag.gift" :key="indexs"
|
|
|
- @tap.stop="tags.type=='0' && getDetail(tags)">
|
|
|
+ <view class="giftList" v-for="(tags,indexs) in tag.gift" :key="indexs" @tap.stop="tags.type=='0' && getDetail(tags)">
|
|
|
<view class="left">
|
|
|
<view class="goods">{{tags.goods_name}}{{tags.spec_name}}</view>
|
|
|
<view class="goods">{{tags.desc}}</view>
|
|
@@ -270,10 +249,8 @@
|
|
|
<view class="list" v-for="(item,index) in info.sets" :key="index">
|
|
|
<view class="name"><text class="set">套装</text>{{item.name}}</view>
|
|
|
<view class="set">
|
|
|
- <view class="set_1" v-for="(tag,indexx) in item.set" :key="indexx"
|
|
|
- @tap="toDeatil(tag)">
|
|
|
- <image class="image" :src="tag.file&&tag.file.length>0?tag.file[0].url:''"
|
|
|
- mode="aspectFit">
|
|
|
+ <view class="set_1" v-for="(tag,indexx) in item.set" :key="indexx" @tap="toDeatil(tag)">
|
|
|
+ <image class="image" :src="tag.file&&tag.file.length>0?tag.file[0].url:''" mode="aspectFit">
|
|
|
</image>
|
|
|
<view class="goods textOver">{{tag.goods_name}}</view>
|
|
|
<view class="spec textOver">{{tag.spec_name}}</view>
|
|
@@ -299,8 +276,7 @@
|
|
|
<swiper class="swiper" circular @change="diaSpecs" :current="is_specs">
|
|
|
<swiper-item class="list" v-for="(item,index) in info.specs" :key="index">
|
|
|
<view class="list_1">
|
|
|
- <image class="image" :src="item.file.length>0?item.file[0].url:info.goods.file[0].url"
|
|
|
- mode="aspectFit"></image>
|
|
|
+ <image class="image" :src="item.file.length>0?item.file[0].url:info.goods.file[0].url" mode="aspectFit"></image>
|
|
|
</view>
|
|
|
<view class="name">
|
|
|
<text>{{item.name}}</text>
|