|
|
@@ -29,6 +29,7 @@
|
|
|
<div class="buttom" v-for="(item, index) in merchantorLists" :key="index">
|
|
|
<div class="text">
|
|
|
<img
|
|
|
+ class="imgTop"
|
|
|
src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-02-16-03-40cShzZQEk.png"
|
|
|
alt=""
|
|
|
/>
|
|
|
@@ -37,13 +38,27 @@
|
|
|
<div class="text2">另外配送费2元</div>
|
|
|
</div>
|
|
|
<div class="calculationCon">
|
|
|
- <van-stepper
|
|
|
- :min="0"
|
|
|
- disable-input
|
|
|
- @minus="minus(item.price)"
|
|
|
- @plus="add(item.price)"
|
|
|
- @change="onChange"
|
|
|
- />
|
|
|
+ <div class="addcon">
|
|
|
+ <div v-if="item.currentNum > 0">
|
|
|
+ <img
|
|
|
+ class="add"
|
|
|
+ src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-16-10-33-22neKqYgYm.png"
|
|
|
+ alt=""
|
|
|
+ @click="minus(item)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ <div class="text" v-show="item.currentNum > 0">
|
|
|
+ {{ item.currentNum }}
|
|
|
+ </div>
|
|
|
+ <div>
|
|
|
+ <img
|
|
|
+ class="add"
|
|
|
+ src="https://ticket-exchange.oss-cn-hangzhou.aliyuncs.com/image/2021-09-16-10-41-46reAOWvaa.png"
|
|
|
+ alt=""
|
|
|
+ @click="add(item)"
|
|
|
+ />
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -109,7 +124,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <orderBtn :tal="tal" :count="count" :merchantorLists="merchantorLists"></orderBtn>
|
|
|
+ <orderBtn :tal="tal" :merchantorLists="merchantorLists"></orderBtn>
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
@@ -121,7 +136,6 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
swiperCurrent: 0,
|
|
|
- count: 1,
|
|
|
tal: 0,
|
|
|
banners: [
|
|
|
{
|
|
|
@@ -193,27 +207,6 @@ export default {
|
|
|
/deep/ .van-button {
|
|
|
.button();
|
|
|
}
|
|
|
- /deep/ .van-stepper__minus {
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- background: @prim;
|
|
|
- border-radius: 2px;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- /deep/ .van-stepper__plus {
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- background: @prim;
|
|
|
- border-radius: 2px;
|
|
|
- color: #fff;
|
|
|
- }
|
|
|
- /deep/ .van-stepper__input {
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- background: #f5f7fa;
|
|
|
- border-radius: 2px;
|
|
|
- margin: 0 2px;
|
|
|
- }
|
|
|
.swiper {
|
|
|
height: 375px;
|
|
|
img {
|
|
|
@@ -280,7 +273,7 @@ export default {
|
|
|
justify-content: space-between;
|
|
|
.text {
|
|
|
.flex();
|
|
|
- img {
|
|
|
+ .imgTop {
|
|
|
width: 13px;
|
|
|
height: 13px;
|
|
|
margin-top: 10px;
|
|
|
@@ -306,13 +299,20 @@ export default {
|
|
|
.calculationCon {
|
|
|
.flex();
|
|
|
text-align: center;
|
|
|
- .calculation {
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
- background: @prim;
|
|
|
- line-height: 24px;
|
|
|
- font-weight: bold;
|
|
|
- color: #fff;
|
|
|
+ .addcon {
|
|
|
+ display: flex;
|
|
|
+ .text {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 24px;
|
|
|
+ background: #f5f7fa;
|
|
|
+ margin: 0 4px;
|
|
|
+ }
|
|
|
+ .add {
|
|
|
+ width: 24px;
|
|
|
+ height: 24px;
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|