123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- <template>
- <view class="user-collection">
- <tabs :is-scroll="false" :current="active" @change="onChange">
- <tab name="商品">
- <collection-list :type="1" :i="0" :index="active"></collection-list>
- </tab>
- <tab name="店铺">
- <collection-list :type="2" :i="1" :index="active"></collection-list>
- </tab>
- </tabs>
- </view>
- </template>
- <script>
-
- export default {
- data() {
- return {
- active: 0
- };
- },
- methods: {
- onChange(index) {
- this.active = index
- }
- }
- };
- </script>
- <style lang="scss">
-
- </style>
|