tanghaolin
2022-08-31 244c4241427b9f3316f06f1e0ae2ee571edc1a23
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
<template>
  <div class="product-box">
    <!-- 头部导航栏 -->
    <van-nav-bar style="background-color: #528abe">
      <template #left>
        <div @click="pageBack" style="display: flex; align-items: center">
          <van-icon name="arrow-left" size="18" />
          <span>{{ $t("selectPage.index.TR") }}</span>
        </div>
      </template>
      <template #title>
        <label>入驻厂家</label>
      </template>
      <template #right>
        <!-- <van-icon name="search" size="18" /> -->
      </template>
    </van-nav-bar>
 
    <!-- 公司标题 -->
    <div style="width: 100%"></div>
    <!-- 显示内容 -->
    <div class="product-main">
      <van-cell
        v-for="item in m_showFactoryList"
        clickable
        is-link
        title-style="color:#000000 !important;margin-left:25px !important"
        :key="item.ID"
        :title="item.ShortName"
        @click="toSeriesDetailPump(item.ID)"
      >
        <template #icon>
          <van-image :src="item.LogoPath" width="100" height="50" />
        </template>
      </van-cell>
    </div>
  </div>
</template>
 
<script>
import languageMixin from "@/mixin/language";
export default {
  mixins: [languageMixin],
  data() {
    return {
      activeNames: "0", //默认打开的折叠面板
      m_Title: "",
      m_CatalogList: [], //类型列表
      m_FactoryList: [], //泵列表
      m_showFactoryList: [], //用于展示的泵列表
 
      m_selectCatalogName: "全部",
      m_Screen: "", //筛选
      m_catalogSelectValue: 0, //类型默认选择全部
      m_catalogSelectOption: [
        //类型选择列表
        { text: "全部", value: 0 },
      ],
    };
  },
  created() {},
  mounted() {
    let _this = this;
    _this.m_Title = _this.getSoftName();
    document.title = _this.m_Title;
    _this.getFactoryList();
  },
  methods: {
    //获取类型列表
    getFactoryList() {
      let _this = this;
      _this
        .$axios({
          methods: "get",
          url: _this.$globalConfig.WebApiUrl.MainUrl + "v1/Web/Corp/GetList",
          params: {
            lang: _this.getCurrentLanguageType(),
          },
        })
        .then(function (res) {
          //  console.log(res,"类型列表");
          let result = res.data;
          if (result.Code != 0) {
            return;
          }
          if (result.Data) {
            // console.log(result.Data,158)
            let factoryList = [];
            result.Data.forEach((element) => {
              let factoryNode = {
                Description: element.Description,
                FullName: element.FullName,
                ID: element.ID,
                LogoPath:
                  _this.$globalConfig.WebApiUrl.FileUrl + element.LogoPath,
                ShortName: element.ShortName,
              };
              factoryList.push(factoryNode);
            });
            _this.m_FactoryList = factoryList;
            _this.m_showFactoryList = JSON.parse(
              JSON.stringify(_this.m_FactoryList)
            );
          }
        })
        .catch(function (err) {
          console.log(err);
        });
    },
 
    toSeriesDetailPump(ID) {
      let query = { ID: ID };
      this.gotoPage("/Target/EBook/SeriesListLX", query, null);
      //   this.gotoPage("/EBook/SeriesDetailPump",query,null)
      // this.$router.push({
      //   path: `/${this.$getCurrentLanguageUrl()}/EBook/SeriesDetailPump`,
      //   query: { ID: ID },
      // });
    },
    //返回上一页
    pageBack() {
      this.gotoIndexPage();
    },
  },
};
</script>
 
<style lang="scss">
.product-box {
  background: #fafafa;
  width: 100%;
  height: 100vh;
 
  .van-dropdown-item__content {
    max-height: 34%;
  }
  .van-cell__title {
    text-align: start;
  }
  .van-collapse-item__content {
    padding: 0px 0px;
  }
  .product-main {
    width: 100%;
    height: calc(100% - 50px);
    overflow: auto;
    .van-cell {
      color: #528abe;
    }
    .van-cell__right-icon {
      color: #528abe;
    }
    .van-collapse-item__content {
      padding: 0px 0px;
    }
    .van-card__content {
      text-align: start;
      width: calc(100% - 88px);
    }
    .van-card__title {
      font-size: 14px;
      font-weight: 600;
    }
    .van-card {
      padding: 0px 0px;
      width: 100%;
      background-color: #ffffff;
    }
    .van-cell {
      padding: 0px 16px;
    }
    .van-card__desc {
      color: #aaaaaa;
      width: 235px;
      height: 50px;
    }
    .van-cell {
      color: #528abe;
    }
    .van-cell__right-icon {
      color: #006782;
    }
    .van-cell {
      padding: 10px 16px !important;
      align-items: center;
    }
    .van-cell-group__title {
      padding: 7px 16px 7px !important;
      text-align: left;
      background: #aaaaaa;
      font-weight: 600;
      color: #000000;
    }
    .van-cell__title,
    .van-cell__value {
      text-align: left;
      font-size: 13px;
      color: #36489e;
      font-weight: 600;
    }
 
  }
}
</style>