2022-04-06 16:08:26 +08:00
|
|
|
<template>
|
2022-04-19 17:58:39 +08:00
|
|
|
<view class="container">
|
|
|
|
<view class="cart-empty">
|
|
|
|
<u-empty mode="car" width="500rpx" height="500rpx" icon="/static/images/empty/cart.png"></u-empty>
|
|
|
|
</view>
|
|
|
|
|
2022-04-20 03:08:59 +08:00
|
|
|
<view v-if="!hasLogin" class="login-tips-box">
|
2022-04-19 17:58:39 +08:00
|
|
|
<view class="login-tips">
|
2022-05-05 19:09:04 +08:00
|
|
|
<navigator url="/pages/login/social" open-type="navigate" hover-class="none">
|
2022-04-19 17:58:39 +08:00
|
|
|
<text class="login-link">登录</text>
|
|
|
|
</navigator>
|
|
|
|
<text>查看购物车</text>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
2022-04-06 16:08:26 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2022-04-16 22:04:02 +08:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
title: ''
|
|
|
|
}
|
|
|
|
},
|
|
|
|
onLoad() {},
|
2022-04-20 03:08:59 +08:00
|
|
|
methods: {},
|
|
|
|
computed: {
|
|
|
|
hasLogin() {
|
|
|
|
return this.$store.getters.hasLogin
|
|
|
|
}
|
|
|
|
}
|
2022-04-16 22:04:02 +08:00
|
|
|
}
|
2022-04-06 16:08:26 +08:00
|
|
|
</script>
|
|
|
|
|
2022-04-19 17:58:39 +08:00
|
|
|
<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>
|