zj
2024-06-03 96140d8eb2531144828dffe2ad8c19d0d9431009
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
<template>
  <div class="lang">
    <assets-head :title="$t('通道切换')" />
    <div
      v-for="(item, index) in baicArr"
      :key="index"
      class="flex justify-between items-center lang-padding font-35 box-border h-127 px-35"
      @click="changeModel(item.type)"
    >
      <div class="lang-title flex items-center font-26 textColor">
        {{ $t(item.title) }}{{ index }}
        <span v-if="item.value === 0" class="yuanyuan"></span>
        <span v-else class="yanse"></span>
      </div>
 
      <img
        class="w-40 h-40 lh-40"
        v-if="item.type == baic"
        src="../../assets/image/public/checked.png"
      />
    </div>
  </div>
</template>
<script>
import { mapGetters, mapMutations, mapState } from "vuex";
 
import assetsHead from "@/components/assets-head";
export default {
  data() {
    return {
      type: "white",
    };
  },
  components: {
    assetsHead,
  },
 
  computed: {
    ...mapState({
      baic: (state) => state.home.baic,
      baicArr: (state) => state.home.baicArr,
    }),
  },
  methods: {
    ...mapMutations("home", ["SET_BAIC", "SET_BAIC_ARR"]),
    changeModel(type) {
      this.type = type;
      this.SET_BAIC_ARR(type);
    },
  },
};
</script>
<style lang="scss" scoped>
.lang {
  width: 100%;
  box-sizing: border-box;
}
 
.CommonProblem-padding {
  padding-left: 50px;
  padding-right: 50px;
}
 
.lang-padding {
  padding: 43px 35px 43px 35px;
  box-sizing: border-box;
 
  @include themify() {
    border-bottom: 1px solid themed("line_color");
  }
 
  font-weight: 400;
  font-size: 35px;
  color: #000000;
  display: flex;
}
 
.lang-flex {
  flex: 1;
}
.yuanyuan {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background-color: red;
  margin-left: 10px;
}
.yanse {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 5px;
  margin-left: 10px;
  background: green;
}
</style>