|
|
@@ -1,33 +1,49 @@
|
|
|
<template>
|
|
|
<div class="shop">
|
|
|
- <van-tabs sticky shrink v-model="active" swipeable :swipe-threshold="2">
|
|
|
+ <van-tabs sticky shrink v-model:active="active" swipeable :swipe-threshold="2">
|
|
|
<van-tab title="通行证购买">
|
|
|
<div class="list">
|
|
|
<pass-card isChoose></pass-card>
|
|
|
<pass-card v-for="i in 6" :key="i"></pass-card>
|
|
|
</div>
|
|
|
</van-tab>
|
|
|
- <van-tab title="通行证兑换">内容 2</van-tab>
|
|
|
- <van-tab title="藏品兑换">内容 3</van-tab>
|
|
|
+ <van-tab title="通行证兑换">
|
|
|
+ <pass-card isChoose></pass-card>
|
|
|
+ <pass-card v-for="i in 6" :key="i"></pass-card
|
|
|
+ ></van-tab>
|
|
|
+ <van-tab title="藏品兑换">
|
|
|
+ <div class="list">
|
|
|
+ <product-info isChoose></product-info>
|
|
|
+ <product-info></product-info>
|
|
|
+ <product-info></product-info>
|
|
|
+ </div>
|
|
|
+ </van-tab>
|
|
|
</van-tabs>
|
|
|
+
|
|
|
+ <div class="bottom">
|
|
|
+ <van-button type="primary" block>确认兑换</van-button>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
import PassCard from '../components/PassCard.vue';
|
|
|
+import ProductInfo from '../components/product/productInfo.vue';
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
|
- active: 0,
|
|
|
+ active: 2
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
- PassCard
|
|
|
+ PassCard,
|
|
|
+ ProductInfo
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
<style lang="less" scoped>
|
|
|
.shop {
|
|
|
+ position: relative;
|
|
|
/deep/.van-tabs__nav {
|
|
|
.flex();
|
|
|
justify-content: space-between;
|
|
|
@@ -41,4 +57,15 @@ export default {
|
|
|
.list {
|
|
|
padding: 8px;
|
|
|
}
|
|
|
+
|
|
|
+.bottom {
|
|
|
+ padding: 9px 28px;
|
|
|
+ position: fixed;
|
|
|
+ bottom: 0;
|
|
|
+ left: 0;
|
|
|
+ right: 0;
|
|
|
+ .fixedBottom(50px);
|
|
|
+ background-color: @bg;
|
|
|
+ z-index: 20;
|
|
|
+}
|
|
|
</style>
|