备份前提交

This commit is contained in:
“13713575202” 2025-04-14 15:33:58 +08:00
parent 72be137aba
commit 63e87d1cb1
14 changed files with 318 additions and 2359 deletions

View File

@ -24,6 +24,4 @@ const size = computed(() => SettingStore.themeConfig.globalComSize);
<style lang="scss">
@import './styles/style';
@import './styles/aliiconfont';
@import './styles/global';
</style>

View File

@ -1,543 +0,0 @@
/* Logo 字体 */
@font-face {
font-family: 'iconfont logo';
src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834');
src:
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') format('embedded-opentype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'),
url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') format('svg');
}
.logo {
font-family: 'iconfont logo';
font-size: 160px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* tabs */
.nav-tabs {
position: relative;
}
.nav-tabs .nav-more {
position: absolute;
right: 0;
bottom: 0;
height: 42px;
line-height: 42px;
color: #666;
}
#tabs {
border-bottom: 1px solid #eee;
}
#tabs li {
cursor: pointer;
width: 100px;
height: 40px;
line-height: 40px;
text-align: center;
font-size: 16px;
border-bottom: 2px solid transparent;
position: relative;
z-index: 1;
margin-bottom: -1px;
color: #666;
}
#tabs .active {
border-bottom-color: #f00;
color: #222;
}
.tab-container .content {
display: none;
}
/* 页面布局 */
.main {
padding: 30px 100px;
width: 960px;
margin: 0 auto;
}
.main .logo {
color: #333;
text-align: left;
margin-bottom: 30px;
line-height: 1;
height: 110px;
margin-top: -50px;
overflow: hidden;
*zoom: 1;
}
.main .logo a {
font-size: 160px;
color: #333;
}
.helps {
margin-top: 40px;
}
.helps pre {
padding: 20px;
margin: 10px 0;
border: solid 1px #e7e1cd;
background-color: #fffdef;
overflow: auto;
}
.icon_lists {
width: 100% !important;
overflow: hidden;
*zoom: 1;
}
.icon_lists li {
width: 100px;
margin-bottom: 10px;
margin-right: 20px;
text-align: center;
list-style: none !important;
cursor: default;
}
.icon_lists li .code-name {
line-height: 1.2;
}
.icon_lists .icon {
display: block;
height: 100px;
line-height: 100px;
font-size: 42px;
margin: 10px auto;
color: #333;
-webkit-transition:
font-size 0.25s linear,
width 0.25s linear;
-moz-transition:
font-size 0.25s linear,
width 0.25s linear;
transition:
font-size 0.25s linear,
width 0.25s linear;
}
.icon_lists .icon:hover {
font-size: 100px;
}
.icon_lists .svg-icon {
/* 通过设置 font-size 来改变图标大小 */
width: 1em;
/* 图标和文字相邻时,垂直对齐 */
vertical-align: -0.15em;
/* 通过设置 color 来改变 SVG 的颜色/fill */
fill: currentColor;
/* path stroke 溢出 viewBox 部分在 IE 下会显示
normalize.css 中也包含这行 */
overflow: hidden;
}
.icon_lists li .name,
.icon_lists li .code-name {
color: #666;
}
/* markdown 样式 */
.markdown {
color: #666;
font-size: 14px;
line-height: 1.8;
}
.highlight {
line-height: 1.5;
}
.markdown img {
vertical-align: middle;
max-width: 100%;
}
.markdown h1 {
color: #404040;
font-weight: 500;
line-height: 40px;
margin-bottom: 24px;
}
.markdown h2,
.markdown h3,
.markdown h4,
.markdown h5,
.markdown h6 {
color: #404040;
margin: 1.6em 0 0.6em 0;
font-weight: 500;
clear: both;
}
.markdown h1 {
font-size: 28px;
}
.markdown h2 {
font-size: 22px;
}
.markdown h3 {
font-size: 16px;
}
.markdown h4 {
font-size: 14px;
}
.markdown h5 {
font-size: 12px;
}
.markdown h6 {
font-size: 12px;
}
.markdown hr {
height: 1px;
border: 0;
background: #e9e9e9;
margin: 16px 0;
clear: both;
}
.markdown p {
margin: 1em 0;
}
.markdown > p,
.markdown > blockquote,
.markdown > .highlight,
.markdown > ol,
.markdown > ul {
width: 80%;
}
.markdown ul > li {
list-style: circle;
}
.markdown > ul li,
.markdown blockquote ul > li {
margin-left: 20px;
padding-left: 4px;
}
.markdown > ul li p,
.markdown > ol li p {
margin: 0.6em 0;
}
.markdown ol > li {
list-style: decimal;
}
.markdown > ol li,
.markdown blockquote ol > li {
margin-left: 20px;
padding-left: 4px;
}
.markdown code {
margin: 0 3px;
padding: 0 5px;
background: #eee;
border-radius: 3px;
}
.markdown strong,
.markdown b {
font-weight: 600;
}
.markdown > table {
border-collapse: collapse;
border-spacing: 0px;
empty-cells: show;
border: 1px solid #e9e9e9;
width: 95%;
margin-bottom: 24px;
}
.markdown > table th {
white-space: nowrap;
color: #333;
font-weight: 600;
}
.markdown > table th,
.markdown > table td {
border: 1px solid #e9e9e9;
padding: 8px 16px;
text-align: left;
}
.markdown > table th {
background: #f7f7f7;
}
.markdown blockquote {
font-size: 90%;
color: #999;
border-left: 4px solid #e9e9e9;
padding-left: 0.8em;
margin: 1em 0;
}
.markdown blockquote p {
margin: 0;
}
.markdown .anchor {
opacity: 0;
transition: opacity 0.3s ease;
margin-left: 8px;
}
.markdown .waiting {
color: #ccc;
}
.markdown h1:hover .anchor,
.markdown h2:hover .anchor,
.markdown h3:hover .anchor,
.markdown h4:hover .anchor,
.markdown h5:hover .anchor,
.markdown h6:hover .anchor {
opacity: 1;
display: inline-block;
}
.markdown > br,
.markdown > p > br {
clear: both;
}
.hljs {
display: block;
background: white;
padding: 0.5em;
color: #333333;
overflow-x: auto;
}
.hljs-comment,
.hljs-meta {
color: #969896;
}
.hljs-string,
.hljs-variable,
.hljs-template-variable,
.hljs-strong,
.hljs-emphasis,
.hljs-quote {
color: #df5000;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-type {
color: #a71d5d;
}
.hljs-literal,
.hljs-symbol,
.hljs-bullet,
.hljs-attribute {
color: #0086b3;
}
.hljs-section,
.hljs-name {
color: #63a35c;
}
.hljs-tag {
color: #333333;
}
.hljs-title,
.hljs-attr,
.hljs-selector-id,
.hljs-selector-class,
.hljs-selector-attr,
.hljs-selector-pseudo {
color: #795da3;
}
.hljs-addition {
color: #55a532;
background-color: #eaffea;
}
.hljs-deletion {
color: #bd2c00;
background-color: #ffecec;
}
.hljs-link {
text-decoration: underline;
}
/* 代码高亮 */
/* PrismJS 1.15.0
https://prismjs.com/download.html#themes=prism&languages=markup+css+clike+javascript */
/**
* prism.js default theme for JavaScript, CSS and HTML
* Based on dabblet (http://dabblet.com)
* @author Lea Verou
*/
code[class*='language-'],
pre[class*='language-'] {
color: black;
background: none;
text-shadow: 0 1px white;
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
text-align: left;
white-space: pre;
word-spacing: normal;
word-break: normal;
word-wrap: normal;
line-height: 1.5;
-moz-tab-size: 4;
-o-tab-size: 4;
tab-size: 4;
-webkit-hyphens: none;
-moz-hyphens: none;
-ms-hyphens: none;
hyphens: none;
}
pre[class*='language-']::-moz-selection,
pre[class*='language-'] ::-moz-selection,
code[class*='language-']::-moz-selection,
code[class*='language-'] ::-moz-selection {
text-shadow: none;
background: #b3d4fc;
}
pre[class*='language-']::selection,
pre[class*='language-'] ::selection,
code[class*='language-']::selection,
code[class*='language-'] ::selection {
text-shadow: none;
background: #b3d4fc;
}
@media print {
code[class*='language-'],
pre[class*='language-'] {
text-shadow: none;
}
}
/* Code blocks */
pre[class*='language-'] {
padding: 1em;
margin: 0.5em 0;
overflow: auto;
}
:not(pre) > code[class*='language-'],
pre[class*='language-'] {
background: #f5f2f0;
}
/* Inline code */
:not(pre) > code[class*='language-'] {
padding: 0.1em;
border-radius: 0.3em;
white-space: normal;
}
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
color: slategray;
}
.token.punctuation {
color: #999;
}
.namespace {
opacity: 0.7;
}
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
color: #905;
}
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
color: #690;
}
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string {
color: #9a6e3a;
background: hsla(0, 0%, 100%, 0.5);
}
.token.atrule,
.token.attr-value,
.token.keyword {
color: #07a;
}
.token.function,
.token.class-name {
color: #dd4a68;
}
.token.regex,
.token.important,
.token.variable {
color: #e90;
}
.token.important,
.token.bold {
font-weight: bold;
}
.token.italic {
font-style: italic;
}
.token.entity {
cursor: help;
}

File diff suppressed because it is too large Load Diff

View File

@ -1,195 +0,0 @@
@font-face {
font-family: 'iconfont'; /* Project id 4425172 */
src:
url('iconfont.woff2?t=1725879404188') format('woff2'),
url('iconfont.woff?t=1725879404188') format('woff'),
url('iconfont.ttf?t=1725879404188') format('truetype');
}
.iconfont {
font-family: 'iconfont' !important;
font-size: 16px;
font-style: normal;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.icon-data4:before {
content: '\e60c';
}
.icon-data5:before {
content: '\e6be';
}
.icon-recharge-record:before {
content: '\e614';
}
.icon-recharge-rule:before {
content: '\e628';
}
.icon-user-profile:before {
content: '\e783';
}
.icon-achieve:before {
content: '\e616';
}
.icon-activity-level:before {
content: '\e61a';
}
.icon-skins:before {
content: '\e790';
}
.icon-data1:before {
content: '\e996';
}
.icon-data2:before {
content: '\e661';
}
.icon-data3:before {
content: '\e632';
}
.icon-data:before {
content: '\e64e';
}
.icon-game:before {
content: '\e6d0';
}
.icon-banner:before {
content: '\e613';
}
.icon-verification:before {
content: '\e601';
}
.icon-balance:before {
content: '\e6b9';
}
.icon-refund:before {
content: '\e7af';
}
.icon-wechat:before {
content: '\e681';
}
.icon-alipay:before {
content: '\e61e';
}
.icon-user:before {
content: '\e67f';
}
.icon-coupon:before {
content: '\e65a';
}
.icon-level:before {
content: '\e7d8';
}
.icon-activity:before {
content: '\e67b';
}
.icon-shop:before {
content: '\e60a';
}
.icon-member:before {
content: '\e640';
}
.icon-recharge:before {
content: '\e799';
}
.icon-marketing:before {
content: '\e765';
}
.icon-goods-sku:before {
content: '\e6d7';
}
.icon-store:before {
content: '\e62b';
}
.icon-goods-store:before {
content: '\e6c6';
}
.icon-storer:before {
content: '\e64a';
}
.icon-order:before {
content: '\e737';
}
.icon-permission:before {
content: '\e612';
}
.icon-goods:before {
content: '\e889';
}
.icon-menu:before {
content: '\e60e';
}
.icon-dict-type:before {
content: '\e652';
}
.icon-dictionary:before {
content: '\e600';
}
.icon-role:before {
content: '\e604';
}
.icon-fullscreen:before {
content: '\e8fa';
}
.icon-exit-fullscreen:before {
content: '\e8fb';
}
.icon-table:before {
content: '\e615';
}
.icon-test:before {
content: '\e610';
}
.icon-lang:before {
content: '\e649';
}
.icon-demo:before {
content: '\e6ee';
}
.icon-size:before {
content: '\e660';
}

File diff suppressed because one or more lines are too long

View File

@ -1,324 +0,0 @@
{
"id": "4425172",
"name": "sub-vue",
"font_family": "iconfont",
"css_prefix_text": "icon-",
"description": "react/vue项目后台管理平台",
"glyphs": [
{
"icon_id": "1218184",
"name": "销售明细",
"font_class": "data4",
"unicode": "e60c",
"unicode_decimal": 58892
},
{
"icon_id": "2230090",
"name": "销售明细",
"font_class": "data5",
"unicode": "e6be",
"unicode_decimal": 59070
},
{
"icon_id": "6882983",
"name": "充值记录",
"font_class": "recharge-record",
"unicode": "e614",
"unicode_decimal": 58900
},
{
"icon_id": "34611004",
"name": "充值规则",
"font_class": "recharge-rule",
"unicode": "e628",
"unicode_decimal": 58920
},
{
"icon_id": "15562252",
"name": "用户画像",
"font_class": "user-profile",
"unicode": "e783",
"unicode_decimal": 59267
},
{
"icon_id": "18747445",
"name": "成就",
"font_class": "achieve",
"unicode": "e616",
"unicode_decimal": 58902
},
{
"icon_id": "33848542",
"name": "我的-段位",
"font_class": "activity-level",
"unicode": "e61a",
"unicode_decimal": 58906
},
{
"icon_id": "20406821",
"name": "皮肤",
"font_class": "skins",
"unicode": "e790",
"unicode_decimal": 59280
},
{
"icon_id": "2214847",
"name": "个人中心-积分商城",
"font_class": "data1",
"unicode": "e996",
"unicode_decimal": 59798
},
{
"icon_id": "14233304",
"name": "价值投资",
"font_class": "data2",
"unicode": "e661",
"unicode_decimal": 58977
},
{
"icon_id": "23059951",
"name": "费用统计",
"font_class": "data3",
"unicode": "e632",
"unicode_decimal": 58930
},
{
"icon_id": "2199049",
"name": "数据报表",
"font_class": "data",
"unicode": "e64e",
"unicode_decimal": 58958
},
{
"icon_id": "36257316",
"name": "游戏管理",
"font_class": "game",
"unicode": "e6d0",
"unicode_decimal": 59088
},
{
"icon_id": "11913396",
"name": "banner",
"font_class": "banner",
"unicode": "e613",
"unicode_decimal": 58899
},
{
"icon_id": "35264323",
"name": "核销码核销",
"font_class": "verification",
"unicode": "e601",
"unicode_decimal": 58881
},
{
"icon_id": "6514128",
"name": "结算管理",
"font_class": "balance",
"unicode": "e6b9",
"unicode_decimal": 59065
},
{
"icon_id": "12025983",
"name": "退货退款",
"font_class": "refund",
"unicode": "e7af",
"unicode_decimal": 59311
},
{
"icon_id": "1207908",
"name": "wechat",
"font_class": "wechat",
"unicode": "e681",
"unicode_decimal": 59009
},
{
"icon_id": "27188513",
"name": "alipay",
"font_class": "alipay",
"unicode": "e61e",
"unicode_decimal": 58910
},
{
"icon_id": "11111017",
"name": "会员",
"font_class": "user",
"unicode": "e67f",
"unicode_decimal": 59007
},
{
"icon_id": "630079",
"name": "我的优惠券",
"font_class": "coupon",
"unicode": "e65a",
"unicode_decimal": 58970
},
{
"icon_id": "2046370",
"name": "会员等级",
"font_class": "level",
"unicode": "e7d8",
"unicode_decimal": 59352
},
{
"icon_id": "2569868",
"name": "活动",
"font_class": "activity",
"unicode": "e67b",
"unicode_decimal": 59003
},
{
"icon_id": "2681698",
"name": "门店",
"font_class": "shop",
"unicode": "e60a",
"unicode_decimal": 58890
},
{
"icon_id": "2811147",
"name": "会员",
"font_class": "member",
"unicode": "e640",
"unicode_decimal": 58944
},
{
"icon_id": "4560182",
"name": "会员充值",
"font_class": "recharge",
"unicode": "e799",
"unicode_decimal": 59289
},
{
"icon_id": "5880283",
"name": "营销",
"font_class": "marketing",
"unicode": "e765",
"unicode_decimal": 59237
},
{
"icon_id": "6982618",
"name": "商品规格",
"font_class": "goods-sku",
"unicode": "e6d7",
"unicode_decimal": 59095
},
{
"icon_id": "7307041",
"name": "商家入驻",
"font_class": "store",
"unicode": "e62b",
"unicode_decimal": 58923
},
{
"icon_id": "11639867",
"name": "小店商品库",
"font_class": "goods-store",
"unicode": "e6c6",
"unicode_decimal": 59078
},
{
"icon_id": "13872198",
"name": "商家列表",
"font_class": "storer",
"unicode": "e64a",
"unicode_decimal": 58954
},
{
"icon_id": "577335",
"name": "订单",
"font_class": "order",
"unicode": "e737",
"unicode_decimal": 59191
},
{
"icon_id": "736503",
"name": "权限",
"font_class": "permission",
"unicode": "e612",
"unicode_decimal": 58898
},
{
"icon_id": "1727271",
"name": "06商品-线性",
"font_class": "goods",
"unicode": "e889",
"unicode_decimal": 59529
},
{
"icon_id": "7587933",
"name": "菜单",
"font_class": "menu",
"unicode": "e60e",
"unicode_decimal": 58894
},
{
"icon_id": "12758820",
"name": "dictionary",
"font_class": "dict-type",
"unicode": "e652",
"unicode_decimal": 58962
},
{
"icon_id": "13768112",
"name": "dictionary",
"font_class": "dictionary",
"unicode": "e600",
"unicode_decimal": 58880
},
{
"icon_id": "37734141",
"name": "new-role",
"font_class": "role",
"unicode": "e604",
"unicode_decimal": 58884
},
{
"icon_id": "1727563",
"name": "327全屏",
"font_class": "fullscreen",
"unicode": "e8fa",
"unicode_decimal": 59642
},
{
"icon_id": "1727566",
"name": "328退出全屏",
"font_class": "exit-fullscreen",
"unicode": "e8fb",
"unicode_decimal": 59643
},
{
"icon_id": "11641852",
"name": "表格",
"font_class": "table",
"unicode": "e615",
"unicode_decimal": 58901
},
{
"icon_id": "20104468",
"name": "测试",
"font_class": "test",
"unicode": "e610",
"unicode_decimal": 58896
},
{
"icon_id": "26686335",
"name": "中英文",
"font_class": "lang",
"unicode": "e649",
"unicode_decimal": 58953
},
{
"icon_id": "30012547",
"name": "方案列表-默认",
"font_class": "demo",
"unicode": "e6ee",
"unicode_decimal": 59118
},
{
"icon_id": "37702310",
"name": "文字大小",
"font_class": "size",
"unicode": "e660",
"unicode_decimal": 58976
}
]
}

View File

@ -14,9 +14,13 @@
</div>
</div>
<div class="layout-header-top-right">
<span class="block-icon" @click="toCart">
<div class="iconfont icon-shopcar" style="font-size: 12px"></div>
<span>购物车</span>
</span>
<span>商家中心</span>
<span @click="toUserCenter">个人中心</span>
<span class="back-home" @click="toHome">
<span class="block-icon" @click="toHome">
<div class="iconfont icon-home" style="font-size: 12px"></div>
<span>返回首页</span>
</span>
@ -112,6 +116,10 @@ const toHome = () => {
const toUserCenter = () => {
router.push('/sub-operation-service/userCenter');
};
const toCart = () => {
router.push('/sub-operation-service/userCenter-shoppingCart');
};
</script>
<style lang="scss" scoped>
@ -190,11 +198,15 @@ const toUserCenter = () => {
margin-left: 0;
}
&.back-home {
&.block-icon {
.iconfont {
display: inline-block;
vertical-align: middle;
color: $color-main;
&.icon-shopcar {
font-size: 16px !important;
font-weight: bold;
}
}
span {
margin-left: 6px;

View File

@ -1,6 +1,6 @@
@import 'common/base.scss';
@import 'common/define.scss';
// @import '@/assets/fonts/iconfont.css';
@import '@/assets/fonts/aliiconfont.css';
#app {
position: relative;
@ -39,3 +39,42 @@
line-height: 1.5;
max-height: calc(1.5em * 2);
}
body {
div {
box-sizing: border-box;
}
--el-color-primary: #25bf82;
--el-color-primary-light-3: #45dda1;
--el-color-primary-light-5: #8cddbd;
--el-color-primary-light-9: rgba(37, 191, 130, 0.1);
--el-color-primary-light-8: rgba(37, 191, 130, 0.5);
.el-input {
--el-input-focus-border-color: #25bf82;
--el-input-focus-border: #25bf82;
::v-deep() {
.el-input__wrapper:focus,
.el-input__wrapper:hover,
.el-input__wrapper .is-focus {
box-shadow: 0 0 0 1px $color-main !important;
}
}
}
.el-button--primary {
--el-button-bg-color: #25bf82;
--el-button-border-color: #25bf82;
--el-button-outline-color: #45dda1;
--el-button-active-color: #158b5c;
--el-button-hover-bg-color: #45dda1;
--el-button-hover-border-color: #45dda1;
--el-button-active-bg-color: #158b5c;
--el-button-active-border-color: #158b5c;
--el-button-disabled-text-color: var(--el-color-white);
--el-button-disabled-bg-color: #45dda1;
--el-button-disabled-border-color: #45dda1;
}
--el-menu-hover-text-color: #25bf82;
--el-menu-hover-bg-color: fff;
}

View File

@ -35,9 +35,7 @@ const props = defineProps({
justify-content: space-between;
.left-menu,
.common-content {
height: 100%;
min-height: 100%;
height: calc(100% - 16px);
border-radius: 8px;
padding: 8px;
overflow-y: auto;

View File

@ -1,15 +1,277 @@
<template>
<div class="user-orders-warp">我的订单</div>
<div class="user-orders-warp">
<userHeader :title="'订单管理'"></userHeader>
<div class="user-orders-content">
<div class="order-tab">
<el-tabs v-model="activeCurrent">
<el-tab-pane v-for="(t, indext) in bottomList" :key="indext" :label="t.title" :name="t.name"> </el-tab-pane>
</el-tabs>
</div>
<div class="order-list-warp">
<div class="order-list">
<div v-for="(o, indexo) in orderList" :key="indexo" class="order-item">
<div class="order-item-top">
<div class="top-l">
<div class="top-item">
<div class="label">订单编号</div>
<div class="val">{{ o.orderNo || '--' }}</div>
</div>
<div class="top-item">
<div class="label">下单时间</div>
<div class="val">{{ o.createTime || '--' }}</div>
</div>
</div>
<div class="top-r">
<div class="top-item">
<div class="label">订单金额</div>
<div class="val amount">{{ o.payAmount.toFixed(2) || '0.00' }}</div>
</div>
</div>
</div>
<div v-if="o.goodlist && o.goodlist.length > 0" class="order-item-content">
<div class="content-list">
<div v-for="(g, indexg) in o.goodlist" :key="indexg" class="good-item">
<div class="good-img" @click="toCheckGood(index, indexg)">
<costomImg
:url="'images/ecommerce/' + 'pic.png'"
:preview-list="[getAssetsFile('images/ecommerce/' + 'pic.png')?.href ?? '']"
:is-view="false"
></costomImg>
</div>
<div class="good-info" @click="toCheckGood(index, indexg)">
<div class="good-info-pos">
<div class="txt-ellipsis clamp2">{{ g.title || '--' }}</div>
</div>
</div>
<div class="good-price-num">
<div class="good-price-num-pos">
<div class="price" @click="toCheckGood(index, indexg)">{{ g.price }} / {{ g.unit }} * {{ g.num }}</div>
<div class="total" @click="toCheckGood(index, indexg)">
<div class="amount">{{ (g.price * g.num).toFixed(2) }}</div>
<div class="carriage">( 含运费{{ g.carriage.toFixed(2) }})</div>
</div>
</div>
</div>
</div>
</div>
<div class="content-right">
<div class="content-right-pos"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</template>
<script setup>
import { ref, reactive } from 'vue';
import { isEmpty, getAssetsFile } from '@/utils';
import { useRoute, useRouter } from 'vue-router';
import userHeader from './components/userHeader.vue';
const route = useRoute();
const router = useRouter();
let bottomList = reactive([
{ title: '全部', name: 'all' },
{ title: '待付款', name: 'topay' },
{ title: '待发货', name: 'pending' },
{ title: '待收货', name: 'receive' },
{ title: '已发货', name: 'sendout' },
]);
let activeCurrent = ref('all');
let orderList = reactive([
{
id: '1',
orderNo: 'YH8888888888',
createTime: '2025.01.01 10:00:00',
payAmount: 147,
goodlist: [
{ id: '001', title: '耿马镇 原生态 有机 西红柿', price: 4.9, unit: '份', num: 10, carriage: 6 },
{ id: '002', title: '耿马镇 原生态 有机 西蓝花', price: 2.6, unit: '份', num: 10, carriage: 0 },
],
},
{
id: '2',
orderNo: 'YH8888888889',
createTime: '2025.02.01 10:00:00',
payAmount: 147,
goodlist: [
{ id: '001', title: '耿马镇 原生态 有机 西红柿', price: 4.8, unit: '份', num: 10, carriage: 6 },
{ id: '002', title: '耿马镇 原生态 有机 西蓝花', price: 2.5, unit: '份', num: 10, carriage: 6 },
{ id: '002', title: '耿马镇 原生态 有机 茄子', price: 2.5, unit: '份', num: 10, carriage: 0 },
],
},
]);
</script>
<style lang="scss" scoped>
.user-orders-warp {
width: 100%;
.user-orders-content {
width: 100%;
background: $color-fff;
border-radius: 16px;
padding: 16px;
margin-top: 16px;
height: calc(100vh - 136px);
}
.order-tab {
width: 100%;
::v-deep() {
.el-tabs__nav-wrap:after {
background: transparent !important;
}
.el-tabs__item {
font-size: 20px !important;
}
.el-tabs__active-bar {
height: 5px !important;
border-radius: 4px;
}
.el-descriptions__label,
.el-descriptions__content {
font-size: 16px !important;
}
.cell-item {
display: inline-flex;
}
.el-descriptions__label {
color: $color-999;
}
.el-descriptions__content {
color: $color-333;
}
}
}
.order-list-warp {
width: 100%;
.order-list {
width: 100%;
.order-item {
width: 100%;
.order-item-top {
display: inline-flex;
width: 100%;
padding: 16px 0;
.top-l,
.top-r {
display: inline-block;
vertical-align: middle;
}
.top-l {
display: inline-flex;
width: 80%;
gap: 64px;
justify-content: flex-start;
}
.top-r {
text-align: right;
}
.top-item {
display: inline-flex;
justify-content: flex-start;
.label,
.val {
font-size: 18px;
}
.label {
padding-right: 8px;
}
.amount::before {
content: '¥';
}
}
}
.order-item-content {
background: $color-f5;
display: inline-flex;
width: 100%;
border-radius: 16px;
.content-list,
.content-right {
display: inline-block;
vertical-align: top;
}
.content-list {
width: 100%;
.good-item {
display: inline-flex;
width: 100%;
justify-content: flex-start;
gap: 16px;
padding-left: 16px;
margin: 8px 0;
}
.good-img,
.good-info,
.good-price-num {
display: inline-block;
vertical-align: middle;
}
.good-img {
width: 120px;
height: 120px;
}
.good-info {
width: 200px;
display: inline-flex;
flex-direction: column;
justify-content: center;
.good-info-pos {
font-size: 18px;
color: $color-666;
}
}
.good-price-num {
width: calc(100% - 340px);
display: inline-flex;
justify-content: center;
flex-direction: column;
.good-price-num-pos {
display: inline-flex;
justify-content: space-around;
gap: 16px;
.price,
.total {
font-size: 20px;
}
.price {
font-weight: 400;
}
.total {
text-align: center;
.amount {
color: $color-main;
font-weight: 700;
}
.amount::before {
content: '¥';
}
.carriage {
color: $color-666;
font-size: 16px;
}
}
}
}
}
.content-right {
display: inline-flex;
justify-content: center;
flex-direction: column;
.content-right-pos {
}
}
}
}
}
}
}
</style>