杨磊
2025-08-07 375513370cc01fcd976987d07797249600b0bb3e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
<template>
  <div class="indexPage">
    <div class="contentBox logoBox">
      <div class="logo">
        <img
          @click="
            () => {
              $router.push({
                path: '/home',
              });
            }
          "
          src="@/assets/images/yinpian/home/image-2@2x.png"
        />
        <img
          style="width: 200px; height: 44px"
          src="@/assets/images/yinpian/home/sylogo.svg"
        />
      </div>
      <div class="searchBox">
        <div class="loginInfoBox">
          <div v-if="!userInfo" class="loginBtnBox">
            <a
              @click="
                () => {
                  // $router.push({
                  //   path: '/register',
                  // });
                }
              "
              >注册</a
            >
            |
            <a
              @click="
                () => {
                  // $router.push({
                  //   path: '/login',
                  //   query: {
                  //     redirectPath: $route.fullPath,
                  //   },
                  // });
                }
              "
              >登录</a
            >
          </div>
          <div v-else class="userInfoBox">
            <el-dropdown @command="handleCommand">
              <span style="cursor: pointer">欢迎您,{{ userInfo.name }}!</span>
              <el-dropdown-menu slot="dropdown">
                <el-dropdown-item
                  icon="el-icon-user"
                  command="gotoPersonalCenter"
                  >个人中心</el-dropdown-item
                >
                <el-dropdown-item icon="el-icon-switch-button" command="logout"
                  >退出登录</el-dropdown-item
                >
              </el-dropdown-menu>
            </el-dropdown>
          </div>
        </div>
      </div>
    </div>
    <div class="contentBox homeContent">
      <div class="homeTitle">中药饮片在线学习与机器视觉识别平台</div>
      <div class="subTitle">
        <p>
          中药饮片在线学习与机器视觉识别平台是中药饮片在线学习与机器视觉识别平台是借助互联网和机器视觉技术,为中药饮片在线交
        </p>
        <p>
          互式学习、识别与鉴定等提供服务的平台,涵盖中药饮片数据库查询、在线学习、机器视觉识别等功能。
        </p>
      </div>
      <div class="searchBox">
        <div class="searchText">中药饮片数据库</div>
        <div class="searchInput">
          <el-input
            style="border: none"
            v-model="searchValue"
            placeholder="请输入内容"
          ></el-input>
        </div>
        <div class="searchBtn">
          <i class="el-icon-search"></i>
          <span>检索</span>
        </div>
      </div>
      <div class="cardBox">
        <div @click="$router.push({ path: '/home/search' })" class="database">中药饮片数据库</div>
        <el-popover placement="bottom" trigger="hover">
          <popover />
          <div slot="reference" class="learningSystem">中药饮片学习系统</div>
        </el-popover>
 
        <div class="recognitionSystem">饮片视觉识别系统</div>
      </div>
    </div>
  </div>
</template>
 
<script>
import { mapState } from "vuex";
import popover from "./popover.vue";
export default {
  computed: {
    ...mapState(["userInfo"]),
  },
  components: {
    popover,
  },
  name: "home",
  data() {
    return {
      bannerList: [],
      informationData: [],
      noticeData: [],
      honorData: [],
      menuData: [],
      bookListData: [],
      bookListTotal: 0,
      bookListLoading: true,
      showMenuIndex: 0,
      searchValue: "",
    };
  },
 
  methods: {
    //点击轮播图跳转
  },
};
</script>
 
<style lang="less" scoped>
@import "@/assets/css/theme.less";
.indexPage {
  min-width: 1220px;
  background-color: #fff;
  background-image: url("@/assets/images/yinpian/home/home_bg.png");
 
  .logoBox {
    padding: 25px 0;
    overflow: hidden;
    max-width: 1200px !important;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    .logo {
      height: 66px;
      display: flex;
      align-items: center;
      img {
        height: 100%;
        cursor: pointer;
      }
    }
    .searchBox {
      width: 670px;
      float: right;
      padding-right: 10px;
      line-height: 66px;
      display: flex;
      justify-content: end;
      .searchItem {
        width: 120px;
        vertical-align: initial;
      }
      .searchBtn {
        width: auto;
        background: #144941;
        color: #fff;
        padding: 0 20px;
        height: 40px;
      }
    }
  }
 
  .homeContent {
    padding: 100px 0;
    text-align: center;
    .homeTitle {
      font-size: 36px;
      color: #01644c;
      font-weight: 700;
    }
    .subTitle {
      line-height: 29px;
      margin-top: 30px;
    }
  }
  .searchBox {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
    .searchText {
      font-size: 18px;
      background: url("@/assets/images/yinpian/home/yinpianshujuku.png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
      width: 180px;
      height: 60px;
      text-align: center;
      line-height: 60px;
    }
    .searchInput {
      width: 700px;
      height: 60px;
      background: url("@/assets/images/yinpian/home/search_fill.png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
      padding: 0 20px;
      box-sizing: border-box;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .searchBtn {
      font-size: 18px;
      color: #fff;
      background: url("@/assets/images/yinpian/home/search.png");
      background-repeat: no-repeat;
      background-size: 100% 100%;
      width: 180px;
      height: 60px;
      text-align: center;
      line-height: 60px;
    }
  }
  .cardBox {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
  }
}
.database,
.learningSystem,
.recognitionSystem {
  width: 380px;
  height: 130px;
  line-height: 130px;
  font-size: 24px;
  color: #01644c;
  cursor: pointer;
}
.database {
  background: url("@/assets/images/yinpian/home/shujuku.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.learningSystem {
  background: url("@/assets/images/yinpian/home/xuexixitong_bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.recognitionSystem {
  background: url("@/assets/images/yinpian/home/shijueshibie_Bg.png");
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
</style>
<style>
.searchInput .el-input__inner {
  height: 50px;
  line-height: 50px;
  border: 0;
}
</style>