Files
tk-mini-program/pages/Mine/minecomponents/contact.vue

162 lines
3.0 KiB
Vue
Raw Normal View History

2025-05-30 22:04:45 +08:00
<template>
2025-06-23 22:00:46 +08:00
<view class="contact">
<view class="bg">
<image
class="bgImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/HomeBackground.png"
mode="scaleToFill"
/>
2025-06-06 22:36:41 +08:00
</view>
<view class="Return" @click="onBack">
2025-06-23 22:00:46 +08:00
<image
class="ReturnImg"
src="https://vv-1317974657.cos.ap-shanghai.myqcloud.com/util/Return.png"
mode="scaleToFill"
/>
2025-06-06 22:36:41 +08:00
</view>
<view class="title">联系客服</view>
2025-06-19 22:27:00 +08:00
<view class="content">
2025-07-01 21:30:08 +08:00
<view class="contactContent">
<view class="Title">长按下方复制客服邮箱即可直接发送邮件给客服我们将竭诚为您服务</view>
<text class="copy-text" @longpress="handleCopy">{{ content }}</text>
2025-06-19 22:27:00 +08:00
</view>
</view>
2025-06-23 22:00:46 +08:00
</view>
2025-05-30 22:04:45 +08:00
</template>
<script>
2025-06-23 22:00:46 +08:00
export default {
data() {
return {
title: "Hello",
2025-07-01 21:30:08 +08:00
content:"PK@TikTok0.xyz"
2025-06-23 22:00:46 +08:00
};
},
onLoad() {
// 页面加载时执行
},
onShareAppMessage(res) {
if (res.from === "menu") {
return {
title: "分享",
path: "/pages/Home/Home",
};
2025-05-30 22:04:45 +08:00
}
2025-06-23 22:00:46 +08:00
},
methods: {
2025-07-01 21:30:08 +08:00
//长按复制邮箱
handleCopy() {
// 复制到剪贴板
uni.setClipboardData({
data: this.content,
success: () => {
// 显示成功提示
uni.showToast({
title: '复制成功',
icon: 'success',
duration: 1500
});
},
fail: (err) => {
console.error('复制失败:', err);
}
});
},
// 返回上一页
2025-06-23 22:00:46 +08:00
onBack() {
wx.navigateBack({
delta: 1,
});
},
},
};
2025-05-30 22:04:45 +08:00
</script>
<style scoped>
2025-06-06 22:36:41 +08:00
.bg {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1;
}
.bgImg {
width: 100%;
height: 100%;
}
.Return {
position: absolute;
top: 110rpx;
left: 35rpx;
width: 46rpx;
height: 46rpx;
}
.title {
position: absolute;
top: 120rpx;
2025-07-01 21:30:08 +08:00
left: 325rpx;
2025-06-06 22:36:41 +08:00
font-size: 34rpx;
color: #100e0f;
2025-06-16 22:09:12 +08:00
font-weight: bold;
2025-06-06 22:36:41 +08:00
}
.ReturnImg {
width: 100%;
height: 100%;
}
2025-06-19 22:27:00 +08:00
/* 建设中 */
2025-06-23 22:00:46 +08:00
.content {
2025-06-19 22:27:00 +08:00
position: absolute;
top: 250rpx;
left: 0rpx;
right: 0rpx;
bottom: 100rpx;
}
2025-07-01 21:30:08 +08:00
.contactContent{
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
2025-06-23 22:00:46 +08:00
.building {
2025-06-19 22:27:00 +08:00
width: 100%;
height: 90%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
2025-06-23 22:00:46 +08:00
.buildingTitle {
2025-06-19 22:27:00 +08:00
font-size: 40rpx;
color: #999999;
font-weight: bold;
text-align: center;
margin-top: 50rpx;
}
2025-07-01 21:30:08 +08:00
.Title{
width: 80%;
font-size: 30rpx;
color: #4fcacd;
font-weight: bold;
text-align: center;
margin-top: 50rpx;
line-height: 50rpx;
}
.copy-text{
width: 60%;
height: 200rpx;
font-size: 28rpx;
color: #ffffff;
font-weight: bold;
text-align: center;
margin-top: 100rpx;
line-height: 200rpx;
background-image: linear-gradient(135deg, #4fcacd, #5fdbde);
border-radius:20rpx;
padding: 20rpx;
}
2025-06-23 22:00:46 +08:00
</style>