<template>
|
<view class="container gradient-background">
|
<view style="height: 280rpx;"></view>
|
<!-- 功能按钮 -->
|
<view class="function-buttons ">
|
<view class="func-btn" @click="jumpPage(0)">
|
<image class="func-icon" src="/shop/static/icon/ic_zitihexiao@2x.png"></image>
|
<text class="func-text">我是用户</text>
|
</view>
|
<view class="func-btn" @click="jumpPage(1)">
|
<image class="func-icon" src="/shop/static/icon/ic_dingdanguanli@2x.png"></image>
|
<text class="func-text">我是门店</text>
|
</view>
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
import { mapState } from 'vuex'
|
export default {
|
computed: {
|
...mapState(['navHeight', 'statusbarHeight' ])
|
},
|
onReachBottom() {
|
console.log('store-home onReachBottom')
|
},
|
onShow() {
|
},
|
methods: {
|
jumpPage(type){
|
if(type === 0){
|
uni.switchTab({
|
url: "/pages/index/index"
|
})
|
}else{
|
uni.navigateTo({
|
url: "/shop/pages/login/login"
|
})
|
}
|
}
|
},
|
data() {
|
return {
|
bgImg: require('@/static/image/bg_card@2x.png'),
|
}
|
}
|
};
|
</script>
|
|
<style lang="scss" scoped>
|
$bg-color: #f5f5f5;
|
$primary-color: #1677ff;
|
$danger-color: #ff4d4f;
|
$text-color: #333;
|
$text-tertiary-color: #999;
|
|
.container {
|
background-color: $bg-color;
|
min-height: 100vh;
|
}
|
.loading-text {
|
padding: 18rpx 0 8rpx;
|
text-align: center;
|
font-size: 22rpx;
|
color: #a5aab3;
|
}
|
/* 渐变背景容器 */
|
.gradient-background {
|
padding: 0 30rpx;
|
box-sizing: border-box;
|
width: 100%;
|
// background: #C8F3FF;
|
background: linear-gradient(180deg, #C8F3FF 0%, #fff 100%);
|
color: #1a1a1a;
|
position: relative;
|
overflow: hidden;
|
}
|
|
|
.function-buttons {
|
margin: 30rpx 30rpx 40rpx 30rpx;
|
border-radius: 16rpx;
|
padding: 30rpx;
|
display: flex;
|
justify-content: space-between;
|
}
|
|
.func-btn {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
width: 420rpx;
|
}
|
|
.func-icon {
|
width: 188rpx;
|
height: 188rpx;
|
margin-bottom: 16rpx;
|
}
|
|
.func-text {
|
font-weight: 400;
|
font-size: 26rpx;
|
color: #333333;
|
white-space: nowrap;
|
}
|
|
.orders-section {
|
margin: 30rpx;
|
}
|
|
.section-title {
|
width: 100%;
|
font-weight: 600;
|
font-size: 32rpx;
|
color: #111111;
|
padding: 0 30rpx;
|
box-sizing: border-box;
|
}
|
|
.order-item {
|
background: #FFFFFF;
|
border-radius: 16rpx;
|
padding: 30rpx;
|
box-sizing: border-box;
|
margin-bottom: 20rpx;
|
&:last-child {
|
margin-bottom: 0;
|
}
|
}
|
|
.order-header {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin-bottom: 28rpx;
|
flex-wrap: wrap;
|
}
|
|
.order-tag {
|
background-color: #10B2FA;
|
color: white;
|
width: 104rpx;
|
height: 40rpx;
|
line-height: 40rpx;
|
font-weight: 400;
|
font-size: 22rpx;
|
color: #FFFFFF;
|
text-align: center;
|
background: #10B2FA;
|
border-radius: 8rpx;
|
margin-right: 20rpx;
|
}
|
|
.order-user {
|
font-weight: 400;
|
font-size: 28rpx;
|
color: #333333;
|
}
|
|
.order-status {
|
font-weight: 400;
|
font-size: 26rpx;
|
color: #FF0020;
|
}
|
|
.order-product {
|
display: flex;
|
justify-content: space-between;
|
align-items: flex-start;
|
margin-bottom: 26rpx;
|
}
|
|
.product-info {
|
flex: 3;
|
display: flex;
|
flex-direction: column;
|
}
|
|
.product-name {
|
font-weight: 600;
|
font-size: 28rpx;
|
color: #333333;
|
}
|
|
.product-spec {
|
font-weight: 400;
|
font-size: 24rpx;
|
color: #8C939F;
|
margin-top: 12rpx;
|
}
|
|
.product-price-count {
|
flex: 1;
|
display: flex;
|
flex-direction: column;
|
align-items: flex-end;
|
}
|
|
.product-price {
|
font-weight: 400;
|
font-size: 30rpx;
|
color: #333333;
|
}
|
|
.product-count {
|
font-weight: 400;
|
font-size: 24rpx;
|
color: #8C939F;
|
margin-top: 12rpx;
|
}
|
|
.order-footer {
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
margin: 30rpx 0;
|
}
|
|
.total-price {
|
display: flex;
|
align-items: center;
|
text {
|
&:nth-child(1) {
|
font-weight: 400;
|
font-size: 26rpx;
|
color: #333333;
|
}
|
&:nth-child(2) {
|
font-weight: 600;
|
font-size: 26rpx;
|
color: #222222;
|
}
|
}
|
}
|
|
.order-buttons {
|
display: flex;
|
gap: 20rpx;
|
}
|
|
.btn {
|
width: 160rpx;
|
height: 64rpx;
|
line-height: 64rpx;
|
text-align: center;
|
border-radius: 34rpx;
|
font-size: 28rpx;
|
padding: 0 !important;
|
|
&.secondary {
|
background-color: white;
|
color: #004096;
|
border: 2rpx solid #004096;
|
}
|
|
&.primary {
|
background-color: #004096;
|
color: white;
|
}
|
}
|
|
.order-note {
|
width: 100%;
|
font-size: 26rpx;
|
color: red;
|
background-color: #F8F9FB;
|
padding: 20rpx;
|
box-sizing: border-box;
|
border-radius: 8rpx;
|
margin-top: 20rpx;
|
}
|
</style>
|