This commit is contained in:
duanxiaohai 2023-12-07 16:31:10 +08:00
parent a779fe5f05
commit 3ee43a9ef9
1 changed files with 37 additions and 71 deletions

View File

@ -94,7 +94,6 @@
<script setup> <script setup>
import { ref, reactive } from "vue"; import { ref, reactive } from "vue";
import { RouterLink, RouterView } from "vue-router";
import b1 from "../../assets/dzdp1.png"; import b1 from "../../assets/dzdp1.png";
import b2 from "../../assets/dzdp2.png"; import b2 from "../../assets/dzdp2.png";
import f1 from "../../assets/pf.png"; import f1 from "../../assets/pf.png";
@ -254,43 +253,22 @@ const data = reactive([
]); ]);
const bdDetails = (name) => { const bdDetails = (name) => {
alert(name); alert(name);
// selctdeNum.value = num;
// router.push(path) // router.push(path)
}; };
const cNum = ref(1);
const bdName = ref("老有康养"); const bdName = ref("老有康养");
const cNum = ref(1);
const clickFun = (index) => { const clickFun = (index) => {
cNum.value = index; cNum.value = index;
}; };
const chooseId = ref("1"); const chooseId = ref("1");
const choose = (id) => { const choose = (id) => {
chooseId.value = id; chooseId.value = id;
// console.log()
}; };
// defineProps({
// msg: {
// type: String,
// required: true
// }
// })
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
// @media (min-width: 1024px) {
// .about {
// min-height: 100vh;
// display: flex;
// align-items: center;
// background-color: #fff !important;
// color: #000;
// }
// }
.mian { .mian {
min-height: 100vh; min-height: 100vh;
// display: flex;
// align-items: center;
// background-color: #fff !important;
color: #000; color: #000;
margin: 0 16px; margin: 0 16px;
.title { .title {
@ -305,7 +283,6 @@ const choose = (id) => {
} }
.List { .List {
// width: 390px;
display: flex; display: flex;
overflow-x: auto; /* 允许横向滚动 */ overflow-x: auto; /* 允许横向滚动 */
white-space: nowrap; /* 防止换行 */ white-space: nowrap; /* 防止换行 */
@ -360,57 +337,52 @@ const choose = (id) => {
} }
} }
} }
.tabsList { // .tabsList {
display: flex; // display: flex;
.tabName { // .tabName {
width: 72px; // width: 72px;
height: 16px; // height: 16px;
font-size: 18px; // font-size: 18px;
font-family: PingFang SC, PingFang SC; // font-family: PingFang SC, PingFang SC;
font-weight: 600; // font-weight: 600;
color: #333333; // color: #333333;
line-height: 16px; // line-height: 16px;
} // }
.tabnames { // .tabnames {
width: 56px; // width: 56px;
height: 14px; // height: 14px;
font-size: 14px; // font-size: 14px;
font-family: PingFang SC, PingFang SC; // font-family: PingFang SC, PingFang SC;
font-weight: 400; // font-weight: 400;
color: #666666; // color: #666666;
line-height: 14px; // line-height: 14px;
} // }
span { // span {
margin-right: 15px; // margin-right: 15px;
// background: url(); // // background: url();
} // }
// p { // // p {
// width: 30px; // // width: 30px;
// height: 8px; // // height: 8px;
// border-radius: 5px; // // border-radius: 5px;
// background: rgb(181, 202, 255); // // background: rgb(181, 202, 255);
// background: linear-gradient( // // background: linear-gradient(
// 90deg, // // 90deg,
// rgba(181, 202, 255, 1) 0%, // // rgba(181, 202, 255, 1) 0%,
// rgba(255, 255, 255, 1) 100% // // rgba(255, 255, 255, 1) 100%
// ); // // );
// // }
// } // }
}
.main { .main {
box-sizing: border-box; box-sizing: border-box;
// border: 1px solid red;
// padding: 16px;
padding-top: 0; padding-top: 0;
// overflow: hidden;
// background-color: #ffffff;
height: 68vh; height: 68vh;
.main-t { .main-t {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
// padding-left: 16px;
padding-right: 16px; padding-right: 16px;
.main-title { .main-title {
width: 85vw; width: 85vw;
@ -445,20 +417,15 @@ const choose = (id) => {
margin-bottom: 22px; margin-bottom: 22px;
margin-top: 8px; margin-top: 8px;
.tabtitle { .tabtitle {
// width: 64px;
height: 24px; height: 24px;
// background: #e0e7fb;
padding: 3px 6px; padding: 3px 6px;
// border-radius: 24px 24px 24px 24px;
font-size: 12px; font-size: 12px;
font-family: PingFang SC, PingFang SC; font-family: PingFang SC, PingFang SC;
font-weight: 500; font-weight: 500;
// color: #457bff;
line-height: 16px; line-height: 16px;
margin-right: 10px; margin-right: 10px;
} }
.tabtitles { .tabtitles {
// width: 64px;
height: 24px; height: 24px;
background: #e0e7fb; background: #e0e7fb;
padding: 3px 6px; padding: 3px 6px;
@ -475,7 +442,6 @@ const choose = (id) => {
height: 150px; height: 150px;
width: 355px; width: 355px;
box-sizing: border-box; box-sizing: border-box;
// background-color: pink;
.line { .line {
margin-bottom: 20px; margin-bottom: 20px;
width: 343px; width: 343px;