vr-shopxo-uniapp/pages/cart/cart.vue

39 lines
840 B
Vue

<template>
<view>
<!-- 购物车 -->
<component-cart ref="cart"></component-cart>
<!-- 快捷导航 -->
<component-quick-nav :propIsBar="true"></component-quick-nav>
</view>
</template>
<script>
const app = getApp();
import componentQuickNav from "../../components/quick-nav/quick-nav";
import componentCart from "../../components/cart/cart";
export default {
data() {
return {};
},
components: {
componentQuickNav,
componentCart,
},
onShow() {
// 数据加载
if ((this.$refs.cart || null) != null) {
this.$refs.cart.init("cart");
}
},
// 下拉刷新
onPullDownRefresh() {
this.$refs.cart.init("cart");
},
methods: {},
};
</script>
<style></style>