123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208 |
- <template>
- <view class="center">
- <heard></heard>
- <view class="test_title">关于我们</view>
- <view class="aboutBox">
- <view class="aboutBox-title" @click="qiehuan(0)">公司介绍</view>
- <view class="aboutBox-title" @click="qiehuan(1)">产品介绍</view>
- <view class="aboutBox-title" @click="qiehuan(2)">联系我们</view>
- </view>
- <swiper :current="currentIndex" :duration="1000" style="height: 1000rpx;">
- <swiper-item>
- <!-- v-html="gsjj.content" -->
- <view class="swiper-item" v-html="gsjj.content"></view>
- </swiper-item>
- <swiper-item><view class="swiper-item" v-html="products.content"></view></swiper-item>
- <swiper-item>
- <view class="swiper-item swiperRight">
- <view class="swiperRight-img"><image src="../../static/img/map.png" mode=""></image></view>
- <view class="text">
- <text>咨询热线:xxxxxxxxxx</text>
- <text>报修电话:xxxxxxxxxx</text>
- </view>
- </view>
- </swiper-item>
- </swiper>
- <aboutUs class="aboutUs"></aboutUs>
- </view>
- </template>
- <script>
- import { changeTaber } from '@/utils/tarberChange.js';
- import { articleDetail, articlelist, productlist, productDetail } from '@/api/index.js';
- import aboutUs from '@/components/public/introduce.vue';
- import heard from '@/components/public/heard.vue';
- export default {
- components: {
- aboutUs,
- heard
- },
- data() {
- return {
- indexList: [],
- topNavWidth: '12%', //设置导航默认宽度
- classIndex: 0, //当前进行中的活动
- itemWidht: 0, //顶部分类宽度
- loadingType: 'more', //加载更多状态
- actionClassInd: 0,
- page: 1,
- limit: 10,
- currentIndex: 0,
- gsjj: {},
- products: {}
- };
- },
- onLoad() {
- this.getGsjj(2);
- this.getproducts(3);
- },
- onShow() {
- this.$nextTick(function() {
- changeTaber(1);
- });
- },
- methods: {
- async loadData() {
- const obj = this;
- },
- tabClass(item, index) {
- this.classIndex = index;
- this.actionClassId = index;
- let ls = this.indexList[this.actionClassInd];
- },
- qiehuan(index) {
- console.log(index);
- this.currentIndex = index * 1;
- },
- getGsjj(id) {
- articleDetail({}, id)
- .then(res => {
- console.log(res, '111111');
- this.gsjj = res.data;
- })
- .catch(err => {
- this.gsjj = err.data;
- console.log(err, 'cuoww');
- });
- },
- getproducts(id) {
- productDetail({}, id)
- .then(res => {
- console.log(res, '111111');
- this.products = res.data;
- })
- .catch(err => {
- this.products = err.data;
- console.log(err, 'cuoww');
- });
- }
- }
- };
- </script>
- <style lang="scss">
- .img {
- margin: 17rpx 0 17rpx 41rpx;
- width: 208rpx;
- height: 52rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- .test_title {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 60rpx;
- font-size: 22rpx;
- font-family: Adobe Heiti Std;
- font-weight: normal;
- color: #ffffff;
- background-color: #0165b5;
- }
- // .class-box {
- // background: #FFFFFF;
- // white-space: nowrap;
- // height: 78rpx;
- // .item {
- // text-align: center;
- // display: inline-block;
- // color: $font-color-base;
- // margin: 26rpx 34rpx 15rpx 29rpx;
- // background-color: #ffffff;
- // line-height: 1;
- // .time {
- // font-family: PingFang SC;
- // font-weight: bold;
- // font-size: 30rpx;
- // padding-bottom: 19rpx;
- // &.action {
- // color: #ff0000;
- // border-bottom: 4rpx solid #FF0000;
- // }
- // }
- // }
- .aboutBox {
- display: flex;
- justify-content: space-between;
- width: 100%;
- height: 60rpx;
- .aboutBox-title {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 33.3%;
- background: #127fd5;
- font-size: 22rpx;
- font-family: Adobe Heiti Std;
- font-weight: normal;
- color: #ffffff;
- line-height: 67rpx;
- }
- }
- .swiper-item {
- }
- .swiperRight {
- margin-top: 140rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- .swiperRight-img {
- width: 560rpx;
- height: 266rpx;
- image {
- width: 100%;
- height: 100%;
- }
- }
- }
- .text {
- margin-top: 80rpx;
- display: flex;
- flex-direction: column;
- font-size: 10rpx;
- font-family: Adobe Heiti Std;
- font-weight: normal;
- color: #000000;
- line-height: 40rpx;
- }
- </style>
|