FlowPacs/yudao-ui-app/pages/cart/cart.vue

53 lines
990 B
Vue
Raw Normal View History

2022-04-06 16:08:26 +08:00
<template>
<view class="container">
<view class="cart-empty">
<u-empty mode="car" width="500rpx" height="500rpx" icon="/static/images/empty/cart.png"></u-empty>
</view>
<view v-if="!hasLogin" class="login-tips-box">
<view class="login-tips">
<navigator url="/pages/login/social" open-type="navigate" hover-class="none">
<text class="login-link">登录</text>
</navigator>
<text>查看购物车</text>
</view>
</view>
</view>
2022-04-06 16:08:26 +08:00
</template>
<script>
export default {
data() {
return {
title: ''
}
},
onLoad() {},
methods: {},
computed: {
hasLogin() {
return this.$store.getters.hasLogin
}
}
}
2022-04-06 16:08:26 +08:00
</script>
<style lang="scss" scoped>
.cart-empty {
padding-top: 100rpx;
}
.login-tips-box {
padding-top: 100rpx;
.login-tips {
@include flex-center;
color: #939393;
font-size: 28rpx;
letter-spacing: 5rpx;
}
.login-link {
color: $u-primary;
}
}
</style>