|
@@ -1,493 +1,71 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <div class="plan-page">
|
|
|
|
|
|
|
+ <div class="farm-card-page">
|
|
|
<custom-header name="农事方案"></custom-header>
|
|
<custom-header name="农事方案"></custom-header>
|
|
|
- <div class="plan-title">
|
|
|
|
|
- <div class="tabs">
|
|
|
|
|
- <div class="tab" :class="{ active: activeTab === 'left' }" @click="setActiveTab('left')">专家方案</div>
|
|
|
|
|
- <div class="tab" :class="{ active: activeTab === 'right' }" @click="setActiveTab('right')">
|
|
|
|
|
- 我的方案
|
|
|
|
|
- <span class="badge-dot">2</span>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="slider" :style="sliderStyle"></div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="plan-content" v-if="activeTab === 'left'">
|
|
|
|
|
- <div class="filter-wrap">
|
|
|
|
|
- <div class="filter-l">指导专家:韦帮稳</div>
|
|
|
|
|
- <div class="filter-r" @click="toPage">更多专家<el-icon><ArrowRightBold /></el-icon></div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="expert-prescription">
|
|
|
|
|
- <div class="plan-menu">
|
|
|
|
|
- <el-anchor :container="containerRef" direction="vertical" type="default" @click="handleClick">
|
|
|
|
|
- <el-menu :default-active="defaultActive" class="el-menu-vertical-demo">
|
|
|
|
|
- <el-sub-menu v-for="(menu, index) in menuData" :key="index" :index="String(menu.id)">
|
|
|
|
|
- <template #title>
|
|
|
|
|
- <img class="menu-icon" :src="require(`@/assets/img/gallery/icon-${index}.png`)" />
|
|
|
|
|
- <span class="menu-text">{{ menu.name }}</span>
|
|
|
|
|
- </template>
|
|
|
|
|
- <el-menu-item v-for="item in menu.farmWorkArrangeList" :key="item.id" :index="`${menu.id}-${item.id}`">
|
|
|
|
|
- <el-anchor-link :href="'#'+menu.name+item.farmWorkDetail?.name" :title="item.farmWorkDetail?.name || '摇花落花'" />
|
|
|
|
|
- </el-menu-item>
|
|
|
|
|
- </el-sub-menu>
|
|
|
|
|
- </el-menu>
|
|
|
|
|
- </el-anchor>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="expert-content" ref="containerRef">
|
|
|
|
|
|
|
+ <div class="farm-card-content">
|
|
|
|
|
+ <PlanList :farm-id="93301" :container-id="route.query.containerId || 2" :default-active="defaultActive">
|
|
|
|
|
+ <template #default="{ menuData }">
|
|
|
<div v-for="(section, index) in menuData" :key="index" class="content-section">
|
|
<div v-for="(section, index) in menuData" :key="index" class="content-section">
|
|
|
- <div class="section-item" v-for="(sub, subI) in section.farmWorkArrangeList" :key="index+'-'+subI">
|
|
|
|
|
- <div class="section-id" :id="section.name+sub.farmWorkDetail?.name"></div>
|
|
|
|
|
- <record-item :record-item-data="sub">
|
|
|
|
|
|
|
+ <div
|
|
|
|
|
+ class="section-item"
|
|
|
|
|
+ v-for="(sub, subI) in section.farmWorkArrangeList"
|
|
|
|
|
+ :key="index + '-' + subI"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="section-id" :id="section.name + sub.farmWorkDetail?.name"></div>
|
|
|
|
|
+ <record-item :record-item-data="sub" @click="handleClick(sub)">
|
|
|
<template #title>
|
|
<template #title>
|
|
|
<div class="box-title">
|
|
<div class="box-title">
|
|
|
<div class="title-l">
|
|
<div class="title-l">
|
|
|
{{ sub.farmWorkDetail?.name }}
|
|
{{ sub.farmWorkDetail?.name }}
|
|
|
<span class="parent-text">{{ section.name }}</span>
|
|
<span class="parent-text">{{ section.name }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <!-- <div class="title-btn" v-if="sub.selected == 0" @click="addToMyPlan">
|
|
|
|
|
- <el-icon color="#fff" size="14"><Plus /></el-icon>
|
|
|
|
|
- </div> -->
|
|
|
|
|
|
|
+ <div class="title-r" v-if="curRole === 2">
|
|
|
|
|
+ <el-icon color="#2199F8" size="16"><Edit /></el-icon>
|
|
|
|
|
+ </div>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</record-item>
|
|
</record-item>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <!-- 底部 -->
|
|
|
|
|
- <div class="fixed-bottom">
|
|
|
|
|
- <div class="bottom-l">
|
|
|
|
|
- <div class="l-btn">
|
|
|
|
|
- <el-icon color="#666666" class="btn-icon" size="16"><Download /></el-icon>
|
|
|
|
|
- 下载处方
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="l-btn">
|
|
|
|
|
- <el-icon color="#666666" class="btn-icon" size="16"><ChatDotRound /></el-icon>
|
|
|
|
|
- 咨询专家
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="bottom-r">全部添加</div>
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="plan-content my-recipe" v-if="activeTab === 'right'">
|
|
|
|
|
- <my-prescription :isSubPage="true"></my-prescription>
|
|
|
|
|
- <!-- <div class="fixed-bottom">
|
|
|
|
|
- <div class="bottom-l">
|
|
|
|
|
- <div class="l-btn">
|
|
|
|
|
- <img class="btn-icon calculator-icon" src="@/assets/img/home/calculator.png" alt="" />
|
|
|
|
|
- 投入产出计算器
|
|
|
|
|
- </div>
|
|
|
|
|
- </div>
|
|
|
|
|
- <div class="bottom-r">新增农事</div>
|
|
|
|
|
- </div> -->
|
|
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </PlanList>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <add-group ref="addGroupRef" />
|
|
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import { computed, onMounted, ref } from "vue";
|
|
|
|
|
-import recordItem from "@/components/recordItem.vue";
|
|
|
|
|
-import addGroup from "./components/addGroup.vue";
|
|
|
|
|
-import myPrescription from "./components/myPrescription.vue";
|
|
|
|
|
import customHeader from "@/components/customHeader.vue";
|
|
import customHeader from "@/components/customHeader.vue";
|
|
|
-import { useStore } from "vuex";
|
|
|
|
|
-import { useRouter, useRoute } from "vue-router";
|
|
|
|
|
-const store = useStore();
|
|
|
|
|
-const router = useRouter()
|
|
|
|
|
-const route = useRoute()
|
|
|
|
|
-
|
|
|
|
|
-const tabBarHeight = computed(() => store.state.home.tabBarHeight);
|
|
|
|
|
-
|
|
|
|
|
-const containerRef = ref(null);
|
|
|
|
|
-const handleClick = (e) => {
|
|
|
|
|
- e.preventDefault();
|
|
|
|
|
-};
|
|
|
|
|
-const activeTab = ref("left");
|
|
|
|
|
-// const tabBarHeight = computed(() => store.state.home.tabBarHeight);
|
|
|
|
|
-const sliderStyle = computed(() => {
|
|
|
|
|
- // 根据当前激活的选项卡计算滑动条位置
|
|
|
|
|
- const position = activeTab.value === "left" ? "25%" : "75%";
|
|
|
|
|
- return {
|
|
|
|
|
- left: `calc(${position} - 12px)`, // 减去滑动条宽度的一半以实现居中
|
|
|
|
|
- };
|
|
|
|
|
-});
|
|
|
|
|
-function setActiveTab(tab) {
|
|
|
|
|
- activeTab.value = tab;
|
|
|
|
|
-}
|
|
|
|
|
-const typeVal = ref([1, 3]);
|
|
|
|
|
-
|
|
|
|
|
-const typeOptions = ref([
|
|
|
|
|
- {
|
|
|
|
|
- value: 1,
|
|
|
|
|
- label: "荔枝",
|
|
|
|
|
- children: [
|
|
|
|
|
- {
|
|
|
|
|
- value: 2,
|
|
|
|
|
- label: "井岗红糯",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 3,
|
|
|
|
|
- label: "桂味",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 4,
|
|
|
|
|
- label: "妃子笑",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 5,
|
|
|
|
|
- label: "黑叶",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 6,
|
|
|
|
|
- label: "龙眼",
|
|
|
|
|
- children: [
|
|
|
|
|
- {
|
|
|
|
|
- value: 7,
|
|
|
|
|
- label: "龙眼1",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 8,
|
|
|
|
|
- label: "龙眼2",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 9,
|
|
|
|
|
- label: "龙眼3",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 10,
|
|
|
|
|
- label: "龙眼4",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 11,
|
|
|
|
|
- label: "枇杷",
|
|
|
|
|
- children: [
|
|
|
|
|
- {
|
|
|
|
|
- value: 12,
|
|
|
|
|
- label: "枇杷1",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 13,
|
|
|
|
|
- label: "枇杷2",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 14,
|
|
|
|
|
- label: "枇杷3",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: 15,
|
|
|
|
|
- label: "枇杷4",
|
|
|
|
|
- },
|
|
|
|
|
- ],
|
|
|
|
|
- },
|
|
|
|
|
-]);
|
|
|
|
|
-
|
|
|
|
|
-const proviceVal = ref("广东");
|
|
|
|
|
-const proviceOptions = ref([
|
|
|
|
|
- {
|
|
|
|
|
- value: "广东",
|
|
|
|
|
- label: "广东省",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: "广西",
|
|
|
|
|
- label: "广西省",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: "福建",
|
|
|
|
|
- label: "福建省",
|
|
|
|
|
- },
|
|
|
|
|
- {
|
|
|
|
|
- value: "海南",
|
|
|
|
|
- label: "海南省",
|
|
|
|
|
- },
|
|
|
|
|
-]);
|
|
|
|
|
|
|
+import { ref } from "vue";
|
|
|
|
|
+import { useRoute, useRouter } from "vue-router";
|
|
|
|
|
+import recordItem from "@/components/recordItem.vue";
|
|
|
|
|
+import PlanList from "@/components/pageComponents/PlanList.vue";
|
|
|
|
|
|
|
|
|
|
+const curRole = ref(localStorage.getItem("curRole") || 0);
|
|
|
|
|
+const route = useRoute();
|
|
|
|
|
+const router = useRouter();
|
|
|
// 菜单
|
|
// 菜单
|
|
|
const defaultActive = ref("1-1");
|
|
const defaultActive = ref("1-1");
|
|
|
|
|
|
|
|
-const menuData = ref([])
|
|
|
|
|
-
|
|
|
|
|
-const activePlanIndex = ref(0);
|
|
|
|
|
-const handlePlanClick = (index) => {
|
|
|
|
|
- activePlanIndex.value = index;
|
|
|
|
|
|
|
+const handleClick = (sub) => {
|
|
|
|
|
+ if (curRole.value === 2) {
|
|
|
|
|
+ router.push(`/edit_plan?id=${sub.id}`);
|
|
|
|
|
+ }
|
|
|
};
|
|
};
|
|
|
-
|
|
|
|
|
-const addGroupRef = ref(null);
|
|
|
|
|
-// 新增方案
|
|
|
|
|
-function newPlan() {
|
|
|
|
|
- addGroupRef.value.openClientPopup();
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-// 将专家处方添加到我的处方
|
|
|
|
|
-function addToMyPlan() {
|
|
|
|
|
- addGroupRef.value.openClientPopup({type: "edit"});
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-function toPage() {
|
|
|
|
|
- router.push("/expert_list?isToSelect=true")
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-function getWorkList() {
|
|
|
|
|
- VE_API.home.getPhenologyFarmWorkList({farmId: 93301, containerId: route.query.containerId || 2}).then(({data}) => {
|
|
|
|
|
- menuData.value = data
|
|
|
|
|
- })
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
-onMounted(() => {
|
|
|
|
|
- getWorkList()
|
|
|
|
|
-})
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
-<style lang="scss" scoped>
|
|
|
|
|
-.plan-page {
|
|
|
|
|
- position: relative;
|
|
|
|
|
|
|
+<style scoped lang="scss">
|
|
|
|
|
+.farm-card-page {
|
|
|
|
|
+ width: 100%;
|
|
|
height: 100vh;
|
|
height: 100vh;
|
|
|
- .plan-title {
|
|
|
|
|
- width: 158px;
|
|
|
|
|
- margin: 0 auto;
|
|
|
|
|
- padding: 6px 0;
|
|
|
|
|
- .tabs {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- position: relative;
|
|
|
|
|
- height: 36px;
|
|
|
|
|
- line-height: 36px;
|
|
|
|
|
- .tab {
|
|
|
|
|
- flex: 1;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- cursor: pointer;
|
|
|
|
|
- color: rgba(0, 0, 0, 0.5);
|
|
|
|
|
- z-index: 2;
|
|
|
|
|
- transition: color 0.3s ease;
|
|
|
|
|
- position: relative;
|
|
|
|
|
- &.active {
|
|
|
|
|
- color: #000000;
|
|
|
|
|
- font-weight: bold;
|
|
|
|
|
- }
|
|
|
|
|
- .badge-dot {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- right: -6px;
|
|
|
|
|
- width: 16px;
|
|
|
|
|
- height: 16px;
|
|
|
|
|
- background-color: #ff0000;
|
|
|
|
|
- border-radius: 50%;
|
|
|
|
|
- font-size: 12px;
|
|
|
|
|
- line-height: 16px;
|
|
|
|
|
- color: #fff;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .slider {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- height: 4px;
|
|
|
|
|
- width: 24px;
|
|
|
|
|
- background: #2199f8;
|
|
|
|
|
- border-radius: 16px;
|
|
|
|
|
- bottom: 0;
|
|
|
|
|
- left: calc(25% - 12px); /* 初始位置在第一个选项卡中间 */
|
|
|
|
|
- transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .content {
|
|
|
|
|
- padding: 20px;
|
|
|
|
|
- background: #f8f9fa;
|
|
|
|
|
- border-radius: 8px;
|
|
|
|
|
- min-height: 200px;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .content-section {
|
|
|
|
|
- display: none;
|
|
|
|
|
- animation: fadeIn 0.5s ease;
|
|
|
|
|
-
|
|
|
|
|
- .section-item {
|
|
|
|
|
- position: relative;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .content-section.active {
|
|
|
|
|
- display: block;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- @keyframes fadeIn {
|
|
|
|
|
- from {
|
|
|
|
|
- opacity: 0;
|
|
|
|
|
- transform: translateY(10px);
|
|
|
|
|
- }
|
|
|
|
|
- to {
|
|
|
|
|
- opacity: 1;
|
|
|
|
|
- transform: translateY(0);
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .plan-content {
|
|
|
|
|
- background: #f5f7fb;
|
|
|
|
|
- .filter-wrap {
|
|
|
|
|
- padding: 10px 12px;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: space-between;
|
|
|
|
|
- .filter-r {
|
|
|
|
|
- height: 32px;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- padding: 0 18px;
|
|
|
|
|
- background: rgba(33, 153, 248, 0.1);
|
|
|
|
|
- border-radius: 20px;
|
|
|
|
|
- color: #2199F8;
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .fixed-bottom {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- bottom: 0;
|
|
|
|
|
- left: 0;
|
|
|
|
|
|
|
+ background: #f5f7fb;
|
|
|
|
|
+ .farm-card-content {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: space-between;
|
|
|
|
|
- padding: 14px 12px;
|
|
|
|
|
- background: #fff;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- border-top: 1px solid rgba(153, 153, 153, 0.2);
|
|
|
|
|
- .bottom-l {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- .l-btn {
|
|
|
|
|
- border: 1px solid rgba(153, 153, 153, 0.5);
|
|
|
|
|
- border-radius: 30px;
|
|
|
|
|
- padding: 0 8px 0 12px;
|
|
|
|
|
- height: 32px;
|
|
|
|
|
- line-height: 32px;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- color: #666666;
|
|
|
|
|
- .btn-icon {
|
|
|
|
|
- padding-right: 3px;
|
|
|
|
|
- }
|
|
|
|
|
- .calculator-icon {
|
|
|
|
|
- width: 12px;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .l-btn + .l-btn {
|
|
|
|
|
- margin-left: 10px;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .bottom-r {
|
|
|
|
|
- height: 32px;
|
|
|
|
|
- line-height: 32px;
|
|
|
|
|
- background: #2199f8;
|
|
|
|
|
- border-radius: 20px;
|
|
|
|
|
- color: #fff;
|
|
|
|
|
- padding: 0 12px;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .expert-prescription {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: calc(100vh - 52px - 48px - 50px);
|
|
|
|
|
- .plan-menu {
|
|
|
|
|
- width: 100px;
|
|
|
|
|
|
|
+ height: calc(100vh - 40px);
|
|
|
|
|
+ padding-top: 10px;
|
|
|
|
|
+ ::v-deep .expert-prescription {
|
|
|
height: 100%;
|
|
height: 100%;
|
|
|
- overflow: auto;
|
|
|
|
|
- padding: 10px 0;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- background: #fff;
|
|
|
|
|
- border-radius: 0 10px 10px 0;
|
|
|
|
|
- .menu-icon {
|
|
|
|
|
- width: 13px;
|
|
|
|
|
- }
|
|
|
|
|
- .menu-text {
|
|
|
|
|
- padding: 0 4px;
|
|
|
|
|
- }
|
|
|
|
|
- ::v-deep {
|
|
|
|
|
- .el-anchor {
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- background: none;
|
|
|
|
|
- }
|
|
|
|
|
- .el-anchor__marker {
|
|
|
|
|
- display: none;
|
|
|
|
|
- }
|
|
|
|
|
- .el-menu {
|
|
|
|
|
- background: none;
|
|
|
|
|
- border: none;
|
|
|
|
|
- .el-sub-menu__title {
|
|
|
|
|
- background: none;
|
|
|
|
|
- padding: 0 2px;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- }
|
|
|
|
|
- .el-sub-menu__title {
|
|
|
|
|
- height: 32px;
|
|
|
|
|
- }
|
|
|
|
|
- .el-sub-menu .el-sub-menu__icon-arrow {
|
|
|
|
|
- position: static;
|
|
|
|
|
- padding-top: 6px;
|
|
|
|
|
- }
|
|
|
|
|
- .el-sub-menu {
|
|
|
|
|
- margin-bottom: 16px;
|
|
|
|
|
- &.is-opened {
|
|
|
|
|
- .el-sub-menu__icon-arrow {
|
|
|
|
|
- padding-bottom: 6px;
|
|
|
|
|
- padding-top: 0;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .el-menu-item {
|
|
|
|
|
- height: 32px;
|
|
|
|
|
- line-height: 32px;
|
|
|
|
|
- margin: 4px 8px;
|
|
|
|
|
- padding: 0 2px;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- background: none;
|
|
|
|
|
- }
|
|
|
|
|
- .el-menu-item.is-active {
|
|
|
|
|
- background: none;
|
|
|
|
|
- color: #fff;
|
|
|
|
|
- }
|
|
|
|
|
- .el-anchor__item {
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- }
|
|
|
|
|
- .el-anchor__link {
|
|
|
|
|
- color: #666666;
|
|
|
|
|
- }
|
|
|
|
|
- .el-anchor__link.is-active {
|
|
|
|
|
- background: rgba(33, 153, 248, 0.1);
|
|
|
|
|
- border-radius: 20px;
|
|
|
|
|
- color: #2199F8;
|
|
|
|
|
- border: 1px solid #2199F8;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .el-anchor__list {
|
|
|
|
|
- padding-left: 0;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .expert-content {
|
|
|
|
|
- width: calc(100% - 100px);
|
|
|
|
|
- height: 100%;
|
|
|
|
|
- overflow: auto;
|
|
|
|
|
- padding-bottom: 80px;
|
|
|
|
|
- box-sizing: border-box;
|
|
|
|
|
- .content-section {
|
|
|
|
|
- position: relative;
|
|
|
|
|
- .section-item {
|
|
|
|
|
- position: relative;
|
|
|
|
|
- }
|
|
|
|
|
- .section-id {
|
|
|
|
|
- position: absolute;
|
|
|
|
|
- // top: -6px;
|
|
|
|
|
- top: 0;
|
|
|
|
|
- width: 100%;
|
|
|
|
|
- height: 1px;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ .plan-menu {
|
|
|
|
|
+ padding: 10px 0;
|
|
|
|
|
+ border-radius: 0 10px 10px 0;
|
|
|
}
|
|
}
|
|
|
.box-title {
|
|
.box-title {
|
|
|
display: flex;
|
|
display: flex;
|
|
@@ -509,71 +87,6 @@ onMounted(() => {
|
|
|
background: rgba(119, 119, 119, 0.1);
|
|
background: rgba(119, 119, 119, 0.1);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- .title-btn {
|
|
|
|
|
- width: 24px;
|
|
|
|
|
- height: 24px;
|
|
|
|
|
- border-radius: 50%;
|
|
|
|
|
- background: #2199f8;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- .my-recipe {
|
|
|
|
|
- .filter-wrap {
|
|
|
|
|
- .plan-box {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- overflow: auto;
|
|
|
|
|
- white-space: nowrap;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- padding-left: 12px;
|
|
|
|
|
- .plan-item {
|
|
|
|
|
- color: #000000;
|
|
|
|
|
- background: #f1f1f1;
|
|
|
|
|
- padding: 0 12px;
|
|
|
|
|
- height: 32px;
|
|
|
|
|
- line-height: 32px;
|
|
|
|
|
- border-radius: 20px;
|
|
|
|
|
- &.active {
|
|
|
|
|
- background: rgba(33, 153, 248, 0.2);
|
|
|
|
|
- color: #2199f8;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .plan-item + .plan-item {
|
|
|
|
|
- margin-left: 10px;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .plan-add {
|
|
|
|
|
- width: 80px;
|
|
|
|
|
- height: 30px;
|
|
|
|
|
- border: 1px solid #2199f8;
|
|
|
|
|
- border-radius: 20px;
|
|
|
|
|
- flex: none;
|
|
|
|
|
- line-height: 32px;
|
|
|
|
|
- text-align: center;
|
|
|
|
|
- margin: 0 12px;
|
|
|
|
|
- color: #2199f8;
|
|
|
|
|
- font-size: 14px;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- .title-r {
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- .btn-item {
|
|
|
|
|
- width: 24px;
|
|
|
|
|
- height: 24px;
|
|
|
|
|
- border-radius: 50%;
|
|
|
|
|
- display: flex;
|
|
|
|
|
- align-items: center;
|
|
|
|
|
- justify-content: center;
|
|
|
|
|
- background: #2199f8;
|
|
|
|
|
- &.del-btn {
|
|
|
|
|
- margin-right: 5px;
|
|
|
|
|
- background: #ff953d;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|