<template>
     <movable-area class="fixed-box">
       <movable-view @click="switchToShopCar"  class="fixed-button" direction="all" :inertia="true">
            <div class="btn-toShopCar-new" >
                <badge :count="shopCount">
                    <div class="icon-shopcar"></div>
                </badge>
            </div>
        </movable-view>
    </movable-area> 
</template>

<script>
import {mapGetters, mapActions} from 'vuex'
import { jumpPage,errToast } from "@/utils/uniapi.js";
export default {
    computed: {
        ...mapGetters({
            shopCount: 'cartPage/carCount',
            isLogin: "login/isLogin",
        })
    },
    methods: {
        switchToShopCar() {
            jumpPage('navigateTo','/pages/cart/index')
        }
    }
}
</script>

<style lang="scss">
@import "./index.scss";
</style>