123456789101112131415161718192021222324252627282930313233343536373839 |
- <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>
|