1
PC-20250623MANY\Administrator
2025-09-25 4f437aec7cfb60fe87daec1c5e52b3ed1d10e719
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
<template>
  <div class="page_head">
    <div class="head_content flex-between" :class="fixed ? 'fixed' : ''">
      <div class="head_left flex-start" @click="$router.go(-1)">
        <van-icon name="arrow-left" size=".4em" />
      </div>
      <div class="head_title line-one">{{ title }}</div>
      <div class="head_right flex-end">
        <slot name="right"></slot>
      </div>
    </div>
  </div>
</template>
 
<script>
export default {
  name: "pageHead",
  props: {
    title: {
      type: String,
      default: ""
    },
    fixed: {
      type: Boolean,
      default: true
    }
  },
  data() {
    return {};
  }
};
</script>
 
<style lang="less" scoped>
@green: #c4d600;
.page_head {
  font-size: 10vw;
  height: 1.22em;
  position: relative;
  .fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
  }
  .head_content {
    height: 1.22em;
    padding: 0 0.25em;
    border-bottom: 0.01em solid #f5f5f5;
    & > div {
      min-width: 1em;
    }
 
    .head_left {
      color: @green;
    }
 
    .head_title {
      font-size: 0.4em;
      font-weight: 500;
      width: 60%;
      text-align: center;
    }
  }
}
</style>