|
@@ -8,18 +8,13 @@
|
|
|
<view class="one">
|
|
|
<view class="one_1">
|
|
|
<view class="l">
|
|
|
- <image class="image"
|
|
|
- :src="specfileList.length>0?specfileList[0].url:goodsfileList[0].url"
|
|
|
- mode="aspectFill" @tap="diaView"></image>
|
|
|
+ <image class="image" :src="specfileList.length>0?specfileList[0].url:goodsfileList[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">
|
|
@@ -37,9 +32,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 specsList" :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 specsList" :key="index" @tap="toSpecs(item)">
|
|
|
<text>{{item.name}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
@@ -53,8 +46,7 @@
|
|
|
</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>
|
|
@@ -92,8 +84,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>
|
|
@@ -115,8 +106,7 @@
|
|
|
<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">
|
|
|
+ <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>
|
|
@@ -226,6 +216,7 @@
|
|
|
immediate: true,
|
|
|
handler(val) {
|
|
|
if (val && val.file && val.file.length > 0) this.$set(this, `specfileList`, val?.file)
|
|
|
+ this.$set(this, `buy_num`, 1)
|
|
|
}
|
|
|
},
|
|
|
info: {
|