1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <template>
- <view class="container cart clearfix" v-if="hasLogin">
- <cart :pathType='pathType' v-if="isShowComponents"></cart>
- </view>
- </template>
- <script>
- import { mapState,mapMutations } from 'vuex';
- import cart from '@/components/cm-module/cart-components/index.vue'
- export default{
- components:{
- cart
- },
- data(){
- return{
- isShowComponents:false,
- pathType:0
- }
- },
- onLoad(){
- this.isShowComponents = true;
- },
- computed: {
- ...mapState(['hasLogin','userInfo','isWxAuthorize'])
- },
- methods:{
-
- },
- onPullDownRefresh() {//下拉刷新
- this.isShowComponents = false;
- uni.stopPullDownRefresh()
- this.isShowComponents = true;
- },
- onShow(){
-
- },
- }
- </script>
- <style lang="scss">
-
- </style>
|