|
|
|
@ -284,15 +284,12 @@ |
|
|
|
|
<template v-if="isSeckill"> |
|
|
|
|
<template v-if="isBuy"> |
|
|
|
|
<template v-if="seckillText=='距离'"> |
|
|
|
|
<view class="addCar" @click="choseSku(2)" v-if="stockValue=='有货'"> |
|
|
|
|
<view class="addCar" :style="{'background': stockValue=='有货'?'#FF9E2B':'#cecece' }" @click="stockValue=='有货'?choseSku(2):''"> |
|
|
|
|
加入购物车 |
|
|
|
|
</view> |
|
|
|
|
<view class="buyNow" @click="choseSku(3)" v-if="stockValue=='有货'"> |
|
|
|
|
<view class="buyNow" :style="{'background': stockValue=='有货'?'linear-gradient(102deg, #FE5E06 0%, #F3221A 100%)':'#cecece' }" @click="stockValue=='有货'?choseSku(3):''" > |
|
|
|
|
立即购买 |
|
|
|
|
</view> |
|
|
|
|
<view class="btn-bg" v-if="stockValue=='无货'"> |
|
|
|
|
无货 |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<view class="btn-bg"> |
|
|
|
@ -307,15 +304,12 @@ |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
|
<view class="addCar" @click="choseSku(2)" v-if="stockValue=='有货'"> |
|
|
|
|
<view class="addCar" :style="{'background': stockValue=='有货'?'#FF9E2B':'#cecece' }" @click="stockValue=='有货'?choseSku(2):''"> |
|
|
|
|
加入购物车 |
|
|
|
|
</view> |
|
|
|
|
<view class="buyNow" @click="choseSku(3)" v-if="stockValue=='有货'"> |
|
|
|
|
<view class="buyNow" :style="{'background': stockValue=='有货'?'linear-gradient(102deg, #FE5E06 0%, #F3221A 100%)':'#cecece' }" @click="stockValue=='有货'?choseSku(3):''"> |
|
|
|
|
立即购买 |
|
|
|
|
</view> |
|
|
|
|
<view class="btn-bg" v-if="stockValue=='无货'"> |
|
|
|
|
无货 |
|
|
|
|
</view> |
|
|
|
|
</template> |
|
|
|
|
</template> |
|
|
|
|
<template v-if="isPre"> |
|
|
|
|