mall-applet1/pages/tabbar/cart/cart.vue

45 lines
871 B
Vue

<template>
<view class="pad-x160">
<status-container :ifReturn="false" titlet="购物车" :ifCustomer='false'>
<view slot="content" style="margin: 0rpx -20rpx 0 -20rpx;">
<cart-slide ref="cart" :skuId='skuId'></cart-slide>
</view>
</status-container>
<!-- 底部tab -->
<view class="foot-box"><foot-tab current="2"></foot-tab></view>
</view>
</template>
<script>
// 底部组件
import footTab from '@/components/foot-tabs/foot-tab.vue';
import cartSlide from '@/components/shopping-carts/cart-slide';
export default {
components:{
'foot-tab' :footTab,
cartSlide
},
data() {
return {
skuId:''
}
},
onReachBottom() {
this.$refs.cart.getList();
},
onShow() {
uni.removeStorageSync('buyList');
},
onLoad(op) {
if(op.skuId) this.skuId = op.skuId;
},
methods: {
}
}
</script>
<style>
</style>