123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 |
- <template>
- <s-layout>
- <view class="customer-service">
- <view class="title">联系客服</view>
- <view class="subtitle">我们随时为您服务</view>
- <view class="qrcode-container">
- <view class="qrcode-item">
- <view class="qrcode-wrapper">
- <image class="qrcode" :src="query.url" mode="aspectFit"></image>
- </view>
- <view class="desc">
- <!-- <text class="name">客服小美</text> -->
- <text class="tag">主营业务咨询</text>
- </view>
- </view>
- </view>
- <view class="tips">
- <text class="tips-icon">💡</text>
- <text>扫描以上二维码添加客服微信</text>
- </view>
- <view class="contact-time">服务时间: 周一至周日 9:00-21:00</view>
- </view>
- </s-layout>
- </template>
- <script setup>
- import { onLoad, onPageScroll } from '@dcloudio/uni-app';
- import { ref } from "vue"
- const query = ref(null)
- onLoad((options) => {
- // 页面加载时执行的操作
- console.log('Page loaded:', JSON.parse(options.data));
- query.value = JSON.parse(options.data)
- })
- </script>
- <style lang="scss" scoped>
- .customer-service {
- padding: 40rpx;
- background: linear-gradient(to bottom, #f8f9fa, #ffffff);
- // min-height: 100vh;
- .title {
- font-size: 44rpx;
- font-weight: bold;
- text-align: center;
- margin-bottom: 20rpx;
- color: #333;
- }
- .subtitle {
- font-size: 28rpx;
- color: #666;
- text-align: center;
- margin-bottom: 60rpx;
- }
- .qrcode-container {
- display: flex;
- justify-content: space-around;
- align-items: center;
- margin-bottom: 50rpx;
- .qrcode-item {
- text-align: center;
- .qrcode-wrapper {
- background: #fff;
- padding: 20rpx;
- border-radius: 20rpx;
- box-shadow: 0 10rpx 20rpx rgba(0, 0, 0, 0.05);
- margin-bottom: 30rpx;
- transition: all 0.3s ease;
- &:hover {
- transform: translateY(-5rpx);
- box-shadow: 0 15rpx 30rpx rgba(0, 0, 0, 0.1);
- }
- .qrcode {
- width: 280rpx;
- height: 280rpx;
- border-radius: 10rpx;
- }
- }
- .desc {
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 10rpx;
- .name {
- font-size: 32rpx;
- color: #333;
- font-weight: 500;
- }
- .tag {
- font-size: 24rpx;
- color: #666;
- background: #f5f6f7;
- padding: 6rpx 20rpx;
- border-radius: 20rpx;
- }
- }
- }
- }
- .tips {
- font-size: 28rpx;
- color: #666;
- text-align: center;
- margin-bottom: 30rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- gap: 10rpx;
- .tips-icon {
- font-size: 32rpx;
- }
- }
- .contact-time {
- font-size: 26rpx;
- color: #999;
- text-align: center;
- padding: 20rpx;
- background: #f8f9fa;
- border-radius: 10rpx;
- }
- }
- </style>
|