<template>
|
<view class="container">
|
<view class="content-box">
|
<!-- 二维码部分 - 显著放大 -->
|
<view class="qr-card">
|
<view class="qr-frame">
|
<image class="qr-code" :src="qrCodeImg" mode="aspectFit"></image>
|
</view>
|
|
<view class="qr-info">
|
<view class="wechat-id" @click="copyText('meiyikuang')">
|
<text>微信号:meiyikuang</text>
|
</view>
|
</view>
|
</view>
|
|
<!-- 信息列表部分 -->
|
<view class="info-section">
|
<view class="section-title">
|
<view class="line"></view>
|
<text>更多联系方式</text>
|
</view>
|
|
<view class="info-card">
|
<view class="info-item" @click="makePhoneCall('19980834650')">
|
<view class="icon-box hot">
|
<u-icon name="phone-fill" color="#fff" size="32"></u-icon>
|
</view>
|
<view class="item-content">
|
<text class="label">客服热线 1</text>
|
<text class="value phone">19980834650</text>
|
</view>
|
<u-icon name="arrow-right" color="#ccc" size="28"></u-icon>
|
</view>
|
|
<view class="info-item" @click="makePhoneCall('13880719801')">
|
<view class="icon-box hot">
|
<u-icon name="phone-fill" color="#fff" size="32"></u-icon>
|
</view>
|
<view class="item-content">
|
<text class="label">客服热线 2</text>
|
<text class="value phone">13880719801</text>
|
</view>
|
<u-icon name="arrow-right" color="#ccc" size="28"></u-icon>
|
</view>
|
|
<view class="info-item" @click="makePhoneCall('028-84472936')">
|
<view class="icon-box complain">
|
<u-icon name="error-circle-fill" color="#fff" size="32"></u-icon>
|
</view>
|
<view class="item-content">
|
<text class="label">投诉电话</text>
|
<text class="value phone">028-84472936</text>
|
</view>
|
<u-icon name="arrow-right" color="#ccc" size="28"></u-icon>
|
</view>
|
|
<view class="info-item" @click="makePhoneCall('13730617649')">
|
<view class="icon-box business">
|
<u-icon name="clock-fill" color="#fff" size="32"></u-icon>
|
</view>
|
<view class="item-content">
|
<text class="label">商务洽谈</text>
|
<text class="value phone">13730617649</text>
|
</view>
|
<u-icon name="arrow-right" color="#ccc" size="28"></u-icon>
|
</view>
|
|
<view class="info-item no-click">
|
<view class="icon-box time">
|
<u-icon name="clock-fill" color="#fff" size="32"></u-icon>
|
</view>
|
<view class="item-content">
|
<text class="label">工作时间</text>
|
<text class="value">9:00 - 22:00</text>
|
</view>
|
</view>
|
</view>
|
</view>
|
|
<view class="footer-tip">
|
我们将竭诚为您服务
|
</view>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
import qrCodeImg from './qrcode.png';
|
|
export default {
|
data() {
|
return {
|
qrCodeImg
|
};
|
},
|
methods: {
|
copyText(text) {
|
uni.setClipboardData({
|
data: text,
|
success: () => {
|
uni.showToast({
|
title: '复制成功',
|
icon: 'success'
|
});
|
}
|
});
|
},
|
makePhoneCall(phoneNumber) {
|
uni.makePhoneCall({
|
phoneNumber: phoneNumber
|
});
|
}
|
}
|
};
|
</script>
|
|
<style lang="scss" scoped>
|
.container {
|
min-height: 100vh;
|
background-color: #f8f8f8;
|
}
|
|
.content-box {
|
padding: 30rpx;
|
}
|
|
// 二维码卡片样式
|
.qr-card {
|
background-color: #fff;
|
border-radius: 24rpx;
|
padding: 40rpx;
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
margin-bottom: 40rpx;
|
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.05);
|
|
.qr-header {
|
display: flex;
|
align-items: center;
|
margin-bottom: 30rpx;
|
|
.title {
|
font-size: 34rpx;
|
font-weight: bold;
|
color: #333;
|
margin-left: 12rpx;
|
}
|
}
|
|
.qr-frame {
|
position: relative;
|
padding: 20rpx;
|
background-color: #fff;
|
margin-bottom: 30rpx;
|
|
.qr-code {
|
width: 700rpx; // 放大二维码
|
height: 700rpx;
|
background-color: #fafafa;
|
display: block;
|
}
|
}
|
|
.qr-info {
|
display: flex;
|
flex-direction: column;
|
align-items: center;
|
|
.wechat-id {
|
display: flex;
|
align-items: center;
|
background-color: #f0fdf4;
|
padding: 12rpx 30rpx;
|
border-radius: 100rpx;
|
margin-bottom: 16rpx;
|
border: 1rpx solid #dcfce7;
|
|
text {
|
font-size: 28rpx;
|
color: #07c160;
|
font-weight: 500;
|
margin-right: 8rpx;
|
}
|
}
|
|
.qr-tip {
|
font-size: 24rpx;
|
color: #999;
|
}
|
}
|
}
|
|
// 信息列表部分样式
|
.info-section {
|
.section-title {
|
display: flex;
|
align-items: center;
|
margin-bottom: 24rpx;
|
padding-left: 10rpx;
|
|
.line {
|
width: 8rpx;
|
height: 32rpx;
|
background: linear-gradient(180deg, #07c160, #22c55e);
|
border-radius: 4rpx;
|
margin-right: 16rpx;
|
}
|
|
text {
|
font-size: 30rpx;
|
font-weight: bold;
|
color: #333;
|
}
|
}
|
|
.info-card {
|
background-color: #fff;
|
border-radius: 24rpx;
|
padding: 0 30rpx;
|
box-shadow: 0 8rpx 32rpx rgba(0, 0, 0, 0.05);
|
|
.info-item {
|
display: flex;
|
align-items: center;
|
padding: 36rpx 0;
|
border-bottom: 1rpx solid #f5f5f5;
|
|
&:last-child {
|
border-bottom: none;
|
}
|
|
&.no-click {
|
pointer-events: none;
|
}
|
|
.icon-box {
|
width: 72rpx;
|
height: 72rpx;
|
border-radius: 20rpx;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
margin-right: 24rpx;
|
|
&.hot { background: linear-gradient(135deg, #3b82f6, #2563eb); }
|
&.complain { background: linear-gradient(135deg, #f59e0b, #d97706); }
|
&.business { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
|
&.time { background: linear-gradient(135deg, #64748b, #475569); }
|
}
|
|
.item-content {
|
flex: 1;
|
display: flex;
|
flex-direction: column;
|
|
.label {
|
font-size: 24rpx;
|
color: #999;
|
margin-bottom: 4rpx;
|
}
|
|
.value {
|
font-size: 30rpx;
|
color: #333;
|
font-weight: 500;
|
|
&.phone {
|
color: #333;
|
}
|
}
|
}
|
}
|
}
|
}
|
|
.footer-tip {
|
text-align: center;
|
font-size: 24rpx;
|
color: #ccc;
|
margin-top: 60rpx;
|
padding-bottom: 40rpx;
|
}
|
</style>
|