Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
company_app
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
毛细亚
company_app
Commits
f1131306
提交
f1131306
authored
2月 07, 2026
作者:
施汉文
浏览文件
操作
浏览文件
下载
差异文件
合并分支 'release' 到 'master'
新增礼包类型 查看合并请求
!64
上级
7ef326e3
1107301a
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
18 行增加
和
15 行删除
+18
-15
vipTools.vue
src/views/components/quickSendGame/vipTools.vue
+18
-15
没有找到文件。
src/views/components/quickSendGame/vipTools.vue
浏览文件 @
f1131306
...
...
@@ -170,7 +170,7 @@ export default {
role_name
:
""
,
role_id
:
""
,
gift_package_id
:
""
,
recharge_total
:
undefined
recharge_total
:
undefined
,
},
loading
:
false
,
};
...
...
@@ -189,7 +189,7 @@ export default {
role_name
:
""
,
role_id
:
""
,
gift_package_id
:
""
,
recharge_total
:
undefined
recharge_total
:
undefined
,
};
},
computed
:
{
...
...
@@ -209,7 +209,7 @@ export default {
methods
:
{
initGiftCodeForm
()
{
const
username
=
this
.
bindGameUserList
.
find
(
(
item
)
=>
item
.
member_id
===
this
.
accountSelect
(
item
)
=>
item
.
member_id
===
this
.
accountSelect
,
).
username
;
this
.
giftCodeForm
=
{
member_id
:
this
.
accountSelect
,
...
...
@@ -217,7 +217,7 @@ export default {
role_name
:
""
,
role_id
:
""
,
gift_package_id
:
""
,
recharge_total
:
undefined
recharge_total
:
undefined
,
};
},
sendVipGift
()
{
...
...
@@ -289,7 +289,7 @@ export default {
handleFlowerLinkSuccess
(
url
)
{
if
(
url
)
{
this
.
sendChatMessage
(
url
,
"text"
);
this
.
$message
.
success
(
'发送成功'
)
this
.
$message
.
success
(
"发送成功"
);
}
},
// 发送举报申诉自助链接
...
...
@@ -339,12 +339,12 @@ export default {
},
// 确定提交
getGiftCodeSubmit
(
form
)
{
const
{
member_id
,
role_id
,
username
,
role_name
,
recharge_total
}
=
form
;
const
{
member_id
,
role_id
,
username
,
role_name
,
recharge_total
}
=
form
;
this
.
giftCodeForm
.
username
=
username
;
this
.
giftCodeForm
.
role_name
=
role_name
;
this
.
giftCodeForm
.
member_id
=
member_id
;
this
.
giftCodeForm
.
role_id
=
role_id
;
this
.
giftCodeForm
.
recharge_total
=
recharge_total
this
.
giftCodeForm
.
recharge_total
=
recharge_total
;
this
.
sendGameCode
();
},
sendGameCodeCopyDialog
(
items
)
{
...
...
@@ -353,7 +353,7 @@ export default {
this
.
game_name
=
items
.
name
;
this
.
initGiftCodeForm
();
this
.
giftCodeForm
.
gift_package_id
=
items
.
id
;
if
(
items
.
package_type
==
3
)
{
if
(
items
.
package_type
==
3
||
items
.
package_type
==
5
)
{
this
.
dialogVisible
=
true
;
}
else
{
this
.
sendGameCode
();
...
...
@@ -379,9 +379,12 @@ export default {
gift_package_id
:
this
.
giftCodeForm
.
gift_package_id
,
user_type
:
3
,
};
// 如果存在 recharge_total 则添加到请求参数中 表示是 角色礼包
if
(
this
.
giftCodeForm
.
recharge_total
!==
undefined
&&
this
.
giftCodeForm
.
recharge_total
!==
null
)
{
data
.
recharge_total
=
this
.
giftCodeForm
.
recharge_total
// 如果存在 recharge_total 则添加到请求参数中 表示是 角色礼包
if
(
this
.
giftCodeForm
.
recharge_total
!==
undefined
&&
this
.
giftCodeForm
.
recharge_total
!==
null
)
{
data
.
recharge_total
=
this
.
giftCodeForm
.
recharge_total
;
}
const
res
=
await
sendGiftCode
(
data
);
if
(
res
.
status_code
===
1
)
{
...
...
@@ -390,13 +393,13 @@ export default {
}
else
{
this
.
$message
.
error
(
res
.
msg
||
"发送失败"
);
}
this
.
giftCodeForm
.
recharge_total
=
undefined
this
.
giftCodeForm
.
recharge_total
=
undefined
;
this
.
loading
=
false
;
},
handleAccount
()
{
if
(
this
.
bindGameUserList
.
length
>
0
)
{
const
account
=
this
.
bindGameUserList
.
find
(
(
item
)
=>
item
.
member_id
==
this
.
accountSelect
(
item
)
=>
item
.
member_id
==
this
.
accountSelect
,
);
if
(
account
)
{
return
true
;
...
...
@@ -423,13 +426,13 @@ export default {
}
else
{
}
const
username
=
this
.
bindGameUserList
.
find
(
(
item
)
=>
item
.
member_id
==
this
.
accountSelect
(
item
)
=>
item
.
member_id
==
this
.
accountSelect
,
).
username
;
passwardEncryption
({
member_id
:
this
.
accountSelect
})
.
then
((
res
)
=>
{
this
.
sendChatMessage
(
`
${
str
}${
item
.
url
}
\n账号:
${
username
}
\n密码:
${
res
.
data
.
password
}
`
,
"text"
"text"
,
);
})
.
catch
((
err
)
=>
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论