|
@@ -101,8 +101,8 @@
|
|
|
<navigator url="/pages/car/index" open-type="switchTab" class="to_car">
|
|
|
<image src="https://kailin-mp.oss-cn-shenzhen.aliyuncs.com/static/icon/car.png" class="car_icon"></image>
|
|
|
</navigator>
|
|
|
- <button class="show_order" data-eventsync="true" @click="showSpecPopup(1)">立即预约</button>
|
|
|
- <button class="show_car" data-eventsync="true" @click="showSpecPopup(2)">加入购物车</button>
|
|
|
+ <button class="show_order" v-if="!productInfo.hide_orderbtn" data-eventsync="true" @click="showSpecPopup(1)">立即预约</button>
|
|
|
+ <button :class="productInfo.hide_orderbtn?'show_car hide_orderbtn ':'show_car'" data-eventsync="true" @click="showSpecPopup(2)">加入购物车</button>
|
|
|
</view>
|
|
|
<view class="to_bottom"> --- 到底了 --- </view>
|
|
|
<uni-popup ref="specPopup" :show="true" type="bottom" class="popup" background-color="#FFFFFF" @change="popupChange">
|
|
@@ -297,6 +297,7 @@ export default {
|
|
|
name: "",
|
|
|
price: "0.00",
|
|
|
market_price: "0.00",
|
|
|
+ hide_orderbtn:0,
|
|
|
spec: "",
|
|
|
stock: 0,
|
|
|
thumb: "",
|
|
@@ -1396,6 +1397,12 @@ export default {
|
|
|
border-top-left-radius: 20rpx;
|
|
|
border-bottom-left-radius: 20rpx;
|
|
|
}
|
|
|
+
|
|
|
+ .show_car.hide_orderbtn{
|
|
|
+ width: 580rpx;
|
|
|
+ border-radius: 20rpx;
|
|
|
+ margin-right: 35rpx;
|
|
|
+ }
|
|
|
|
|
|
.to_car {
|
|
|
float: left;
|