style: ai店铺ui
This commit is contained in:
+140
-7
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<s-pages title="AI店铺" navPreset="blue" tabbar="/pages/index/aiStore" :showLeftButton="false">
|
||||
<s-pages title="AI店铺" :pink_bg="false" navPreset="blue" tabbar="/pages/index/aiStore" :showLeftButton="false">
|
||||
<view class="ai-store-page h100 flex-column">
|
||||
<view class="top-area">
|
||||
<view class="tab-header">
|
||||
@@ -15,7 +15,7 @@
|
||||
<view class="tab-line" :style="{ left: index === 0 ? '25%' : '75%' }"></view>
|
||||
</view>
|
||||
|
||||
<view class="search-wrap flex-center">
|
||||
<view class="search-wrap flex-center" v-if="index === 0">
|
||||
<view class="search-input flex1 flex-center">
|
||||
<uni-icons class="m-r-16" type="search" color="#9AA7C7" size="18" />
|
||||
<uni-easyinput
|
||||
@@ -71,9 +71,42 @@
|
||||
</view>
|
||||
</scroll-view>
|
||||
</view>
|
||||
<view style="padding: 120rpx 0" v-if="index === 1&&false">
|
||||
<view style="position: relative">
|
||||
<view class="shop-summary-card">
|
||||
<view class="shop-summary-top flex-row">
|
||||
<view class="shop-summary-icon-wrap shrink flex-center">
|
||||
<image class="shop-summary-icon" src="/static/index/shop1.png" mode="aspectFit" />
|
||||
</view>
|
||||
<view class="shop-summary-info flex1">
|
||||
<view class="shop-summary-title">{{ shopSummary.title }}</view>
|
||||
<view class="shop-summary-id">ID:{{ shopSummary.id }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="shop-summary-bottom" v-if="index === 1">
|
||||
<view class="shop-summary-metrics flex-center">
|
||||
<view class="metric flex1">
|
||||
<view class="metric-label">总收益</view>
|
||||
<view class="metric-value">{{ formatAmount(shopSummary.totalEarnings) }}</view>
|
||||
</view>
|
||||
<view class="metric-divider"></view>
|
||||
<view class="metric flex1">
|
||||
<view class="metric-label">店铺数量</view>
|
||||
<view class="metric-value">{{ shopSummary.shopCount }}</view>
|
||||
</view>
|
||||
<view class="metric-divider"></view>
|
||||
<view class="metric flex1">
|
||||
<view class="metric-label">店铺等级</view>
|
||||
<view class="metric-value">{{ shopSummary.level }}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="list-wrap flex1">
|
||||
<!-- :style="{ marginTop: index === 1 ? '150rpx' : '0' }" -->
|
||||
<view class="list-wrap flex1" >
|
||||
<card_pages
|
||||
ref="pageCommodity"
|
||||
:navList="nav"
|
||||
@@ -301,16 +334,34 @@
|
||||
function shipment() {
|
||||
pageCommodity.value?.downCallback();
|
||||
}
|
||||
|
||||
const shopSummary = ref({
|
||||
title: '我的店铺',
|
||||
id: '123726492',
|
||||
totalEarnings: 26873.8,
|
||||
shopCount: 12,
|
||||
level: 'LV.3',
|
||||
});
|
||||
|
||||
const formatAmount = (value) => {
|
||||
const num = Number(value);
|
||||
if (!Number.isFinite(num)) return '0.00';
|
||||
const fixed = num.toFixed(2);
|
||||
const [intPart, decPart] = fixed.split('.');
|
||||
const withComma = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
||||
return `${withComma}.${decPart}`;
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.ai-store-page {
|
||||
min-height: 100vh;
|
||||
background: #2556ec;
|
||||
}
|
||||
|
||||
.top-area {
|
||||
padding: 24rpx 24rpx 0;
|
||||
padding: 24rpx 24rpx;
|
||||
background: #2556ec;
|
||||
border-radius: 0 0 30rpx 30rpx;
|
||||
}
|
||||
|
||||
.tab-header {
|
||||
@@ -367,7 +418,7 @@
|
||||
|
||||
.notice-card {
|
||||
margin-top: 18rpx;
|
||||
padding: 0 40rpx;
|
||||
padding: 20rpx 40rpx;
|
||||
}
|
||||
|
||||
.notice-item {
|
||||
@@ -425,4 +476,86 @@
|
||||
:deep(.ai-button1) {
|
||||
background: linear-gradient(to bottom right, #2c8cfa 0%, #3d5efb 100%) !important;
|
||||
}
|
||||
|
||||
.shop-summary-card {
|
||||
width: 94% !important;
|
||||
border-radius: 26rpx;
|
||||
overflow: hidden;
|
||||
position: absolute;
|
||||
top: -60rpx;
|
||||
left: 3%;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 0 8rpx 22rpx rgba(38, 107, 246, 0.45);
|
||||
background: linear-gradient(135deg, #2c8cfa 0%, #3d5efb 100%);
|
||||
}
|
||||
|
||||
.shop-summary-top {
|
||||
padding: 30rpx 28rpx;
|
||||
// background: linear-gradient(135deg, #2c8cfa 0%, #3d5efb 100%);
|
||||
}
|
||||
|
||||
.shop-summary-icon-wrap {
|
||||
width: 88rpx;
|
||||
height: 88rpx;
|
||||
border-radius: 24rpx;
|
||||
background: rgba(255, 255, 255, 0.2);
|
||||
backdrop-filter: blur(8rpx);
|
||||
margin-right: 20rpx;
|
||||
}
|
||||
|
||||
.shop-summary-icon {
|
||||
width: 54rpx;
|
||||
height: 54rpx;
|
||||
}
|
||||
|
||||
.shop-summary-title {
|
||||
font-size: 34rpx;
|
||||
font-weight: 700;
|
||||
color: #ffffff;
|
||||
line-height: 44rpx;
|
||||
}
|
||||
|
||||
.shop-summary-id {
|
||||
margin-top: 6rpx;
|
||||
font-size: 24rpx;
|
||||
color: rgba(255, 255, 255, 0.85);
|
||||
line-height: 32rpx;
|
||||
}
|
||||
|
||||
.shop-summary-bottom {
|
||||
background: rgba(255, 255, 255, 0.96);
|
||||
padding: 22rpx 18rpx;
|
||||
border-radius: 30rpx 30rpx 0 0;
|
||||
// position: relative;
|
||||
}
|
||||
|
||||
.shop-summary-metrics {
|
||||
align-items: stretch;
|
||||
// position: absolute;
|
||||
}
|
||||
|
||||
.metric {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.metric-label {
|
||||
font-size: 24rpx;
|
||||
color: #2c63ff;
|
||||
line-height: 34rpx;
|
||||
}
|
||||
|
||||
.metric-value {
|
||||
margin-top: 10rpx;
|
||||
font-size: 40rpx;
|
||||
font-weight: 800;
|
||||
color: #111111;
|
||||
line-height: 44rpx;
|
||||
}
|
||||
|
||||
.metric-divider {
|
||||
width: 1rpx;
|
||||
background: rgba(155, 170, 199, 0.55);
|
||||
margin: 12rpx 0;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user