You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
yanzong_qianduan/pages/serve/install.vue

235 lines
5.1 KiB

<template>
<view class="install">
<view class="install_notice">
尊敬的用户为了方便您<text>下单的产品</text>预约安装售后保修以及咨询官方客服我们将家电手机平板笔记本电脑的主流品牌的预约安装售后保修的<text>官方链接整理如下</text>您只需要对应好品类选择相应的品牌即可直接预约安装售后报修查询官方服务站以及<text>联系官方客服</text>
</view>
<view class="install_content" v-for="(item,index) in list">
<view class="install_name">{{item.name}}</view>
<view class="install_bao">
<view class="install_xiu" v-for="(child,index) in item.children" :key="index" @click="onLookCord">
{{child.name}}
</view>
</view>
</view>
<view class="install_kefu">
<view class="install_cont">
感谢您对我们的信任与支持!如果您的订单有什么疑问或者需要帮助请您在线联系我们的客服人员我司全体工作人员竭诚为您服务!
</view>
</view>
<!-- 核销二维码弹窗 -->
<view class="bigCode" v-if="showQRCodePopup" @click="showQRCodePopup=false">
<view class="cm">
<view class="cm_text">
识别二维码
</view>
<view class="txm">
<image :src="qrcode"
@click="clickImg" mode="" class="codeImg"></image>
</view>
</view>
</view>
</view>
</template>
<script>
import * as newFunApi from '@/api/newFun'
import {
createQrCodeImg
} from '@/utils/qrcode'
export default {
data() {
return {
showQRCodePopup: false,
list: [{
name: '空调报修',
children: [{
name: '空调漏水'
}, {
name: '空调漏水'
}, {
name: '空调外机维修'
}, {
name: '空调漏水'
}, {
name: '空调漏水'
}, {
name: '空调外机维修'
}, {
name: '空调漏水'
}, {
name: '空调漏水'
}, {
name: '空调外机维修'
}]
}, {
name: '电视报修',
children: [{
name: '电视黑屏'
}, {
name: '电视黑屏'
}, {
name: '电视外机维修'
}, {
name: '电视黑屏'
}, {
name: '电视黑屏'
}, {
name: '电视外机维修'
}, {
name: '电视黑屏'
}, {
name: '电视黑屏'
}, {
name: '电视外机维修'
}]
}],
qrcode:''
};
},
onLoad(o) {},
methods: {
onLookCord() {
this.showQRCodePopup = true
let url='https://www.cnblogs.com/majiayin/p/16359337.html'
this.qrcode = createQrCodeImg(url, { 'size': 500 });
},
}
}
</script>
<style lang="scss" scoped>
.install {
overflow: hidden;
margin: 20rpx;
.bigCode {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(65, 65, 65, 0.46);
display: flex;
align-items: center;
justify-content: center;
.cm {
width: 560rpx;
background: #FFFFFF;
border-radius: 16rpx 16rpx 16rpx 16rpx;
opacity: 1;
padding: 40rpx 0 50rpx 0;
.cm_text {
width: 100%;
height: 42rpx;
font-size: 30rpx;
font-weight: 500;
color: #424242;
line-height: 42rpx;
text-align: center;
}
.txm {
display: flex;
justify-content: center;
margin-top: 30rpx;
.codeImg {
width: 394rpx;
height: 394rpx;
border-radius: 0rpx 0rpx 0rpx 0rpx;
opacity: 1;
}
}
}
}
.install_content {
width: 100%;
// height: 385rpx;
background: #FFFFFF;
border-radius: 10rpx;
margin-top: 25rpx;
.install_name {
height: 80rpx;
background-image: url('/static/install/install_name.png');
background-size: cover;
background-position: center;
font-family: Alibaba PuHuiTi;
font-weight: 400;
font-size: 34rpx;
line-height: 80rpx;
color: #222222;
padding-left: 32rpx;
font-weight: 700;
}
.install_bao {
overflow: hidden;
padding: 25rpx 30rpx 5rpx 30rpx;
display: flex;
justify-content: space-around;
flex-wrap: wrap;
.install_xiu {
font-family: Alibaba PuHuiTi;
font-weight: 400;
font-size: 30rpx;
color: #222222;
padding: 0 32rpx;
height: 70rpx;
background: #FFFFFF;
border-radius: 10rpx;
border: 1rpx solid #CCCCCC;
text-align: center;
line-height: 70rpx;
margin-bottom: 20rpx;
}
}
}
.install_kefu {
width: 100%;
height: 244rpx;
background-image: url('/static/install/install_footer.png');
background-size: cover;
font-family: Alibaba PuHuiTi;
font-weight: 400;
font-size: 28rpx;
color: #222222;
line-height: 48rpx;
margin-bottom: 50rpx;
margin-top: 20rpx;
position: relative;
.install_cont {
position: absolute;
right: 30rpx;
top: 28rpx;
width: 450rpx;
}
}
.install_notice {
width: 100%;
height: 354rpx;
background-image: url('/static/install/install_hedaer.png');
background-size: cover;
font-family: Alibaba PuHuiTi;
font-weight: 400;
font-size: 28rpx;
color: #222222;
padding: 35rpx;
line-height: 48rpx;
text {
font-weight: 700;
}
}
}
</style>