Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
company_app
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
毛细亚
company_app
Commits
7e6be5e2
提交
7e6be5e2
authored
8月 29, 2025
作者:
毛细亚
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新企微礼包发送记录
上级
d8d822ea
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
19 行删除
+26
-19
wxGift.vue
src/views/components/giftRecord/wxGift.vue
+26
-19
没有找到文件。
src/views/components/giftRecord/wxGift.vue
浏览文件 @
7e6be5e2
...
@@ -3,10 +3,12 @@
...
@@ -3,10 +3,12 @@
<div
ref=
"giftList"
class=
"gift-list"
@
scroll=
"handleScroll"
>
<div
ref=
"giftList"
class=
"gift-list"
@
scroll=
"handleScroll"
>
<div
v-for=
"item in giftList"
:key=
"item._id"
class=
"gift-item"
>
<div
v-for=
"item in giftList"
:key=
"item._id"
class=
"gift-item"
>
<div
class=
"gift-info"
>
<div
class=
"gift-info"
>
<div
v-if=
"item.gift_package_group_name
"
>
分组:
{{
item
.
gift_package_group_name
}}
</div>
<div
v-if=
"item.gift_package_group_name"
>
分组:
{{
item
.
gift_package_group_name
}}
</div>
<div>
礼包名称:
{{
item
.
gift_package_name
}}
</div>
<div>
礼包名称:
{{
item
.
gift_package_name
}}
</div>
<div>
发送时间:
{{
item
.
send_time
}}
</div>
<div>
发送时间:
{{
item
.
send_time
}}
</div>
<div>
礼包码:
{{
item
.
code
}}
</div>
<div>
礼包码:
{{
item
.
code
}}
</div>
<div>
领取角色:
{{
item
.
role_name
}}
(
{{
item
.
rule_id
}}
)
</div>
<div>
W 账号:
{{
item
.
username
||
'-'
}}
</div>
<div
class=
"rowFlex spaceBetween columnCenter gift-sender"
>
<div
class=
"rowFlex spaceBetween columnCenter gift-sender"
>
<div>
发送客服:
{{
item
.
cser_name
}}
</div>
<div>
发送客服:
{{
item
.
cser_name
}}
</div>
<i
class=
"el-icon-document-copy"
style=
"cursor: pointer;"
@
click=
"handleCopy(item.code)"
></i>
<i
class=
"el-icon-document-copy"
style=
"cursor: pointer;"
@
click=
"handleCopy(item.code)"
></i>
...
@@ -16,18 +18,18 @@
...
@@ -16,18 +18,18 @@
<div
v-if=
"loading"
class=
"loading-more"
>
加载中...
</div>
<div
v-if=
"loading"
class=
"loading-more"
>
加载中...
</div>
<div
v-if=
"!hasMore && giftList.length > 0"
class=
"no-more"
>
没有更多数据了
</div>
<div
v-if=
"!hasMore && giftList.length > 0"
class=
"no-more"
>
没有更多数据了
</div>
<div
v-if=
"giftList.length == 0"
class=
"noContent rowFlex allCenter"
>
<div
v-if=
"giftList.length == 0"
class=
"noContent rowFlex allCenter"
>
<noContent
/>
<noContent
/>
</div>
</div>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Clipboard
from
'clipboard'
import
Clipboard
from
'clipboard'
import
{
getSendingCodeList
}
from
'@/api/works'
import
{
getSendingCodeList
}
from
'@/api/works'
import
{
debounce
,
copyText
,
sendChatMessage
}
from
'@/utils/index'
import
{
debounce
,
copyText
,
sendChatMessage
}
from
'@/utils/index'
import
{
mapState
}
from
'vuex'
import
{
mapState
}
from
'vuex'
export
default
{
export
default
{
name
:
'wxGift'
,
name
:
'wxGift'
,
data
()
{
data
()
{
return
{
return
{
...
@@ -69,7 +71,7 @@ import Clipboard from 'clipboard'
...
@@ -69,7 +71,7 @@ import Clipboard from 'clipboard'
this
.
loading
=
false
this
.
loading
=
false
}
}
},
},
handleScroll
:
debounce
(
function
(
e
)
{
handleScroll
:
debounce
(
function
(
e
)
{
const
{
scrollHeight
,
scrollTop
,
clientHeight
}
=
e
.
target
const
{
scrollHeight
,
scrollTop
,
clientHeight
}
=
e
.
target
if
(
scrollHeight
-
scrollTop
-
clientHeight
<
50
)
{
if
(
scrollHeight
-
scrollTop
-
clientHeight
<
50
)
{
this
.
fetchGiftList
()
this
.
fetchGiftList
()
...
@@ -87,11 +89,11 @@ import Clipboard from 'clipboard'
...
@@ -87,11 +89,11 @@ import Clipboard from 'clipboard'
// })
// })
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.wx-gift-container
{
.wx-gift-container
{
height
:
100%
;
height
:
100%
;
width
:
100%
;
width
:
100%
;
background-color
:
#fff
;
background-color
:
#fff
;
...
@@ -106,11 +108,13 @@ import Clipboard from 'clipboard'
...
@@ -106,11 +108,13 @@ import Clipboard from 'clipboard'
background
:
#F7F8FA
;
background
:
#F7F8FA
;
border-radius
:
12px
;
border-radius
:
12px
;
border
:
1px
solid
#E5E6EB
;
border
:
1px
solid
#E5E6EB
;
margin-bottom
:
12px
;
margin-bottom
:
12px
;
.gift-info
{
.gift-info
{
div
{
div
{
line-height
:
26px
;
line-height
:
26px
;
}
}
.gift-name
{
.gift-name
{
font-weight
:
400
;
font-weight
:
400
;
font-size
:
14px
;
font-size
:
14px
;
...
@@ -118,6 +122,7 @@ import Clipboard from 'clipboard'
...
@@ -118,6 +122,7 @@ import Clipboard from 'clipboard'
text-align
:
left
;
text-align
:
left
;
font-style
:
normal
;
font-style
:
normal
;
}
}
.gift-code
{
.gift-code
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -129,6 +134,7 @@ import Clipboard from 'clipboard'
...
@@ -129,6 +134,7 @@ import Clipboard from 'clipboard'
color
:
#323335
;
color
:
#323335
;
text-align
:
justify
;
text-align
:
justify
;
font-style
:
normal
;
font-style
:
normal
;
span
{
span
{
color
:
#323335
;
color
:
#323335
;
font-size
:
14px
;
font-size
:
14px
;
...
@@ -158,7 +164,8 @@ import Clipboard from 'clipboard'
...
@@ -158,7 +164,8 @@ import Clipboard from 'clipboard'
line-height
:
18px
;
line-height
:
18px
;
text-align
:
justify
;
text-align
:
justify
;
font-style
:
normal
;
font-style
:
normal
;
i{
i
{
color
:
#00BF8A
;
color
:
#00BF8A
;
font-size
:
14px
;
font-size
:
14px
;
}
}
...
@@ -175,5 +182,5 @@ import Clipboard from 'clipboard'
...
@@ -175,5 +182,5 @@ import Clipboard from 'clipboard'
font-size
:
13px
;
font-size
:
13px
;
}
}
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论