|
@@ -19,11 +19,11 @@
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col :span="24" class="zero two">
|
|
<el-col :span="24" class="zero two">
|
|
- <el-col :span="6" class="twoList" v-for="(item, index) in twoList" :key="index">
|
|
|
|
- <el-col :span="24" class="title">{{ item.title }}</el-col>
|
|
|
|
|
|
+ <el-col :span="6" class="twoList" v-for="(item, index) in siteInfo.advantage" :key="index">
|
|
|
|
+ <el-col :span="24" class="title">{{ item.name }}</el-col>
|
|
<el-col :span="24" class="brief">{{ item.brief }}</el-col>
|
|
<el-col :span="24" class="brief">{{ item.brief }}</el-col>
|
|
<el-col :span="24" class="image">
|
|
<el-col :span="24" class="image">
|
|
- <el-image :src="item.url"></el-image>
|
|
|
|
|
|
+ <el-image :src="item.img_url && item.img_url.length > 0 ? item.img_url[0].uri : ''"></el-image>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
</el-col>
|
|
@@ -67,7 +67,8 @@
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
-import { mapState, createNamespacedHelpers } from 'vuex';
|
|
|
|
|
|
+import { mapState, mapGetters, mapMutations, createNamespacedHelpers } from 'vuex';
|
|
|
|
+const { mapActions } = createNamespacedHelpers('company');
|
|
const moment = require('moment');
|
|
const moment = require('moment');
|
|
export default {
|
|
export default {
|
|
name: 'homeIndex',
|
|
name: 'homeIndex',
|
|
@@ -75,6 +76,8 @@ export default {
|
|
components: {},
|
|
components: {},
|
|
data: function () {
|
|
data: function () {
|
|
return {
|
|
return {
|
|
|
|
+ // 基本信息
|
|
|
|
+ siteInfo: {},
|
|
// 轮播图
|
|
// 轮播图
|
|
bannerList: [{ url: require('@a/photo_1.jpg') }],
|
|
bannerList: [{ url: require('@a/photo_1.jpg') }],
|
|
// 新闻
|
|
// 新闻
|
|
@@ -100,29 +103,6 @@ export default {
|
|
brief: '作为网购整个流程中的重要一环,快递的作用可想而知,作为网购整个流程中的重要一环,快递的作用可想而知,',
|
|
brief: '作为网购整个流程中的重要一环,快递的作用可想而知,作为网购整个流程中的重要一环,快递的作用可想而知,',
|
|
},
|
|
},
|
|
],
|
|
],
|
|
- // 第二部分
|
|
|
|
- twoList: [
|
|
|
|
- {
|
|
|
|
- title: '商业模式开发',
|
|
|
|
- brief: '我们拥有专业的企业管理专家、咨询师,我们专为传统企业转型生活提供解决方案',
|
|
|
|
- url: require('@a/two_1.png'),
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '电子商务平台',
|
|
|
|
- brief: '我们拥有专业的企业管理专家、咨询师,我们专为传统企业转型生活提供解决方案',
|
|
|
|
- url: require('@a/two_2.png'),
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '电子商务平台',
|
|
|
|
- brief: '我们拥有专业的企业管理专家、咨询师,我们专为传统企业转型生活提供解决方案',
|
|
|
|
- url: require('@a/two_3.png'),
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- title: '系统开发与集成',
|
|
|
|
- brief: '我们拥有专业的企业管理专家、咨询师,我们专为传统企业转型生活提供解决方案',
|
|
|
|
- url: require('@a/two_4.png'),
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
// 第三部分
|
|
// 第三部分
|
|
thr_url: require('@a/thr_1.jpg'),
|
|
thr_url: require('@a/thr_1.jpg'),
|
|
// 第四部分
|
|
// 第四部分
|
|
@@ -166,8 +146,22 @@ export default {
|
|
],
|
|
],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
- created() {},
|
|
|
|
|
|
+ created() {
|
|
|
|
+ this.search();
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ ...mapMutations(['deleteUser']),
|
|
|
|
+ ...mapActions(['query']),
|
|
|
|
+ async search() {
|
|
|
|
+ // 公司信息
|
|
|
|
+ let res;
|
|
|
|
+ res = await this.query();
|
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
|
+ console.log(res.data);
|
|
|
|
+ this.$set(this, `siteInfo`, res.data);
|
|
|
|
+ sessionStorage.setItem('companyInfo', JSON.stringify(res.data));
|
|
|
|
+ }
|
|
|
|
+ },
|
|
typeEnter(e, index) {
|
|
typeEnter(e, index) {
|
|
this.$set(this, `type_active`, index);
|
|
this.$set(this, `type_active`, index);
|
|
console.log(index);
|
|
console.log(index);
|
|
@@ -186,7 +180,8 @@ export default {
|
|
},
|
|
},
|
|
},
|
|
},
|
|
computed: {
|
|
computed: {
|
|
- ...mapState(['user']),
|
|
|
|
|
|
+ ...mapState(['user', 'test']),
|
|
|
|
+ ...mapGetters(['lab_id']),
|
|
},
|
|
},
|
|
metaInfo() {
|
|
metaInfo() {
|
|
return { title: this.$route.meta.title };
|
|
return { title: this.$route.meta.title };
|