Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
jgdl
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2025-07-21 10:25:42 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
b8ebbcfb1fcc27b25442cea4c8ccbe5e6f4329e8
b8ebbcfb
1 parent
8a664d7f
feat(反馈列表): 添加点击复制联系方式功能
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
src/pages/feedBackList/index.vue
src/pages/feedBackList/index.vue
View file @
b8ebbcf
<!--
* @Date: 2022-09-19 14:11:06
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2025-07-
18 16:56:26
* @LastEditTime: 2025-07-
21 10:24:57
* @FilePath: /jgdl/src/pages/feedBackList/index.vue
* @Description: 意见反馈列表页面
-->
...
...
@@ -58,7 +58,8 @@
<!-- 联系方式 -->
<view class="contact-info" v-if="item.contact">
<text class="contact-label">联系方式:</text>
<text class="contact-text">{{ item.contact }}</text>
<!-- 点击复制内容 -->
<text class="contact-text" @tap="copyContact(item.contact)">{{ item.contact }}</text>
</view>
<!-- 回复内容 -->
...
...
@@ -301,6 +302,22 @@ const goToFeedback = () => {
})
}
/**
* 复制联系方式
* @param contact 联系方式
*/
const copyContact = (contact) => {
Taro.setClipboardData({
data: contact,
success: () => {
Taro.showToast({
title: '联系方式已复制',
icon: 'success'
})
}
})
}
// 页面加载时获取数据
onMounted(() => {
getFeedbackList(true)
...
...
Please
register
or
login
to post a comment