|
|
@@ -15,8 +15,9 @@
|
|
|
|
|
|
</view> -->
|
|
|
<view class="btm-btn">
|
|
|
- <button type="primary" class="add-btn" @click="buy(2)" v-if="goodsType == 0">加入购物车</button>
|
|
|
- <button type="primary" class="buy-btn" @click="buy(1)" :class="{'skill':goodsType != 0}">{{goodsType == 2? '立即兑换':goodsType == 3?'购买兑换券': '立即购买'}}</button>
|
|
|
+ <button type="primary" class="buy-btn" @click="buy(1)" :class="{ skill: goodsType != 0 }">
|
|
|
+ {{ goodsType == 2 ? '立即兑换' : goodsType == 3 ? '购买兑换券' : '立即购买' }}
|
|
|
+ </button>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
|
@@ -32,7 +33,7 @@ export default {
|
|
|
return {};
|
|
|
}
|
|
|
},
|
|
|
- goodsid:{
|
|
|
+ goodsid: {
|
|
|
default: ''
|
|
|
},
|
|
|
isSkill: {
|
|
|
@@ -49,7 +50,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
buy(type) {
|
|
|
- this.$emit('specOPne',type);
|
|
|
+ this.$emit('specOPne', type);
|
|
|
},
|
|
|
//收藏
|
|
|
toFavorite(item) {
|
|
|
@@ -184,39 +185,34 @@ export default {
|
|
|
width: 750rpx;
|
|
|
height: 130rpx;
|
|
|
display: flex;
|
|
|
- // justify-content: space-between;
|
|
|
justify-content: space-between;
|
|
|
- // justify-content: space-between;
|
|
|
position: fixed;
|
|
|
padding: 20rpx;
|
|
|
bottom: 0;
|
|
|
- background-color: #fff;
|
|
|
- // z-index: 666;
|
|
|
+ background-color: #ffffff;
|
|
|
.add-btn {
|
|
|
width: 339rpx;
|
|
|
height: 90rpx;
|
|
|
- border: 1px solid #901B21;
|
|
|
+ border: 1px solid #901b21;
|
|
|
border-radius: 45rpx;
|
|
|
background-color: #fff;
|
|
|
font-size: 36rpx;
|
|
|
font-weight: 500;
|
|
|
- color: #901B21;
|
|
|
+ color: #901b21;
|
|
|
line-height: 90rpx;
|
|
|
}
|
|
|
.buy-btn {
|
|
|
- width: 339rpx;
|
|
|
+ width: 697rpx;
|
|
|
height: 90rpx;
|
|
|
- background: #901B21;
|
|
|
+ background: #ee2f72;
|
|
|
border-radius: 45rpx;
|
|
|
font-size: 36rpx;
|
|
|
font-weight: 500;
|
|
|
- color: #901B21;
|
|
|
line-height: 90rpx;
|
|
|
- color: #fff;
|
|
|
+ color: #ffffff;
|
|
|
}
|
|
|
.skill {
|
|
|
width: 699rpx;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</style>
|