From d7acca68e02711a40da8f480de4825cc6ef67c4e Mon Sep 17 00:00:00 2001 From: "liujw155@outlook.com" Date: Fri, 6 Jun 2025 18:24:33 +0800 Subject: [PATCH] add style --- src/subpackage/groupon/components/site/footer.vue | 100 ++++++++++++ src/subpackage/groupon/components/site/table.vue | 190 ++++++++++++++++++++++ src/subpackage/groupon/pages/site_select.vue | 82 ++-------- 3 files changed, 302 insertions(+), 70 deletions(-) create mode 100644 src/subpackage/groupon/components/site/footer.vue create mode 100644 src/subpackage/groupon/components/site/table.vue diff --git a/src/subpackage/groupon/components/site/footer.vue b/src/subpackage/groupon/components/site/footer.vue new file mode 100644 index 0000000..541eee3 --- /dev/null +++ b/src/subpackage/groupon/components/site/footer.vue @@ -0,0 +1,100 @@ + + + + + \ No newline at end of file diff --git a/src/subpackage/groupon/components/site/table.vue b/src/subpackage/groupon/components/site/table.vue new file mode 100644 index 0000000..33a14ae --- /dev/null +++ b/src/subpackage/groupon/components/site/table.vue @@ -0,0 +1,190 @@ + + + + + \ No newline at end of file diff --git a/src/subpackage/groupon/pages/site_select.vue b/src/subpackage/groupon/pages/site_select.vue index ad4f0b5..75c3322 100644 --- a/src/subpackage/groupon/pages/site_select.vue +++ b/src/subpackage/groupon/pages/site_select.vue @@ -2,15 +2,10 @@ import { onLoad } from '@dcloudio/uni-app'; import { reactive, ref, computed } from 'vue'; import { stadiumBookList } from "@/api"; +import siteTable from "../components/site/table.vue"; +import siteFooter from "../components/site/footer.vue"; const siteData = ref([]); -const timeList = computed(_=> { - let _items = siteData?.value?.[0]?.items ?? [], _tempArr; - _tempArr = _items.reduce((_arr, val)=>_arr.concat(val.time.split('-')), []); - // 去重前减掉最后一位,去重后再补上 - // 00:00-00:30 && 23:00-00:00 ,这两个时间段去重后少一个节点 - return [...new Set(_tempArr.splice(0, _tempArr.length-2)), _tempArr[_tempArr.length-1]]; -}) onLoad(() => { stadiumBookList({ data: { stadium_id: 167, @@ -56,18 +51,10 @@ onLoad(() => { 6月10日 - - - - - {{ e || '-'}} - - - - {{ e?.name ?? '-' }} - - - + + + + @@ -188,56 +175,11 @@ onLoad(() => { } } } - .sm-site-data{ - position: relative; - height: 500upx; - .ssd-top-sticky{ - position: sticky; - top: 0; - z-index: 2; - width: fit-content; - white-space: nowrap; - background-color: #ff0; - font-size: 0; - .sts-item{ - width: 196upx; - display: inline-block; - text-align: center; - overflow: hidden; - white-space: nowrap; - text-overflow: ellipsis; - border-bottom: 1px solid #D8D8D8; - @include flcw(24upx, 70upx, #333, 500); - } - } - .ssd-left-sticky{ - position: sticky; - left: 0; - top: 0; - float: left; - background-color: rgba($color: pink, $alpha: .7); - z-index: 5; - height: fit-content; - .sls-item{ - position: relative; - width: 112upx; - height: 100upx; - background-color: #fff; - border-right: 2upx solid #D8D8D8; - .si-txt{ - position: absolute; - right: 0upx; - bottom: -36upx; - z-index: 1; - padding-right: 16upx; - width: 100%; - text-align: right; - @include tHide(1); - @include flcw(24upx, 100upx, #333); - } - } - - } - } +} +.ss-footer{ + position: fixed; + left: 0; + bottom: 0; + width: 100%; } \ No newline at end of file