From 9fdae9a33816a137365d7512f3c5de9605127dec Mon Sep 17 00:00:00 2001
From: hzj <1304805162@qq.com>
Date: Fri, 7 Nov 2025 16:08:26 +0800
Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E2=80=9C=E8=B5=A0=E9=80=81?=
=?UTF-8?q?=E9=81=93=E5=85=B7=E5=88=B8=E2=80=9D=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/props.js | 106 ++++---
src/constant/type.js | 7 +
src/views/props/props-send-tool/index.vue | 26 +-
.../props/props-send-tool/send-ticket.vue | 285 ++++++++++++++++++
4 files changed, 364 insertions(+), 60 deletions(-)
create mode 100644 src/views/props/props-send-tool/send-ticket.vue
diff --git a/src/api/props.js b/src/api/props.js
index e45b5eb..4beda93 100644
--- a/src/api/props.js
+++ b/src/api/props.js
@@ -1,151 +1,159 @@
-
-import request from '@/utils/request'
+import request from "@/utils/request";
// 道具资源-分页列表
export function pagePropsSource(params) {
return request({
- url: '/props/source/record/page',
- method: 'get',
+ url: "/props/source/record/page",
+ method: "get",
params
- })
+ });
}
// 道具资源-添加
export function addPropsSource(data) {
return request({
- url: '/props/source/record/add',
- method: 'post',
+ url: "/props/source/record/add",
+ method: "post",
data
- })
+ });
}
// 道具资源-修改
export function updatePropsSource(data) {
return request({
- url: '/props/source/record/update',
- method: 'post',
+ url: "/props/source/record/update",
+ method: "post",
data
- })
+ });
}
// 道具资源-上下架
export function offShelfPropsSource(id, offShelf) {
return request({
url: `/props/source/record/off/shelf`,
- method: 'get',
+ method: "get",
params: { id, offShelf }
- })
+ });
}
// 获取资源列表-平台+类型获取
export function listSysOriginTypeList(sysOrigin, type) {
return request({
- url: '/props/source/record/sys-origin/type/list',
- method: 'get',
+ url: "/props/source/record/sys-origin/type/list",
+ method: "get",
params: { sysOrigin, type }
- })
+ });
}
// 获取资源列表-类型获取-排除家族资源-根据平台
export function listNotFamilyBySysOriginType(sysOrigin, type) {
return request({
- url: '/props/source/record/sys-origin/type/list/exclude-family',
- method: 'get',
+ url: "/props/source/record/sys-origin/type/list/exclude-family",
+ method: "get",
params: { sysOrigin, type }
- })
+ });
}
// 活动道具奖励配置-分页
export function pagePropsActivityRewardGroup(params) {
return request({
- url: '/props/activity/reward/group/page',
- method: 'get',
+ url: "/props/activity/reward/group/page",
+ method: "get",
params
- })
+ });
}
// 根据资源组ID获得活动道具奖励配置
export function getByGroupId(id) {
return request({
- url: '/props/activity/reward/group/' + id,
- method: 'get'
- })
+ url: "/props/activity/reward/group/" + id,
+ method: "get"
+ });
}
// 活动道具奖励配置-修改/添加
export function saveOrUpdatePropsActivityRewardGroup(data) {
return request({
- url: '/props/activity/reward/group/save-or-update',
- method: 'post',
+ url: "/props/activity/reward/group/save-or-update",
+ method: "post",
data
- })
+ });
}
// 活动道具奖励配置-上下架
export function offPropsActivityRewardGroup(id, offShelf) {
return request({
url: `/props/activity/reward/group/off/shelf/${id}/${offShelf}`,
- method: 'get'
- })
+ method: "get"
+ });
}
// 活动道具规则-分页
export function pagePropsActivityRuleConfig(params) {
return request({
- url: '/props/activity/rule/config/page',
- method: 'get',
+ url: "/props/activity/rule/config/page",
+ method: "get",
params
- })
+ });
}
// 活动道具规则-添加或修改
export function savePropsActivityRuleConfig(data) {
return request({
- url: '/props/activity/rule/config/save-or-update',
- method: 'post',
+ url: "/props/activity/rule/config/save-or-update",
+ method: "post",
data
- })
+ });
}
// 活动道具规则-删除
export function delPropsActivityRuleConfig(id) {
return request({
url: `/props/activity/rule/config/del/${id}`,
- method: 'get'
- })
+ method: "get"
+ });
}
// 上架中的活动道具组
export function getGroupActivityList() {
return request({
url: `/props/activity/reward/group/get/activity/list`,
- method: 'get'
- })
+ method: "get"
+ });
}
// 赠送道具给用户
export function sendPropsGiveUser(data) {
return request({
- url: '/props/give/send',
- method: 'post',
+ url: "/props/give/send",
+ method: "post",
data
- })
+ });
+}
+
+// 赠送道具券给用户
+export function sendPropsTicketGiveUser(data) {
+ return request({
+ url: "/props/give/grant-coupon",
+ method: "post",
+ data
+ });
}
// 道具商店-分页
export function pagePropsStore(params) {
return request({
- url: '/props/store/page',
- method: 'get',
+ url: "/props/store/page",
+ method: "get",
params
- })
+ });
}
// 道具商店-添加或修改
export function addOrUpdatePropsStore(data) {
return request({
- url: '/props/store/add-or-update',
- method: 'post',
+ url: "/props/store/add-or-update",
+ method: "post",
data
- })
+ });
}
diff --git a/src/constant/type.js b/src/constant/type.js
index ce2999e..0278737 100644
--- a/src/constant/type.js
+++ b/src/constant/type.js
@@ -733,6 +733,13 @@ const propsTypes = [
{ value: "CUSTOMIZE", name: "自定义(只读)" }
];
+// 道具类型
+const propsTicket = [
+ { value: "AVATAR_FRAME", name: "头像框" },
+ { value: "RIDE", name: "座驾" },
+ { value: "NOBLE_VIP", name: "贵族" }
+];
+
// 道具商品类型
const propsCommodityTypes = [
{ value: "AVATAR_FRAME", name: "头像框" },
diff --git a/src/views/props/props-send-tool/index.vue b/src/views/props/props-send-tool/index.vue
index 6bb8ff5..839d1f7 100644
--- a/src/views/props/props-send-tool/index.vue
+++ b/src/views/props/props-send-tool/index.vue
@@ -1,31 +1,35 @@
+
+
-
+
+
+
+
diff --git a/src/views/props/props-send-tool/send-ticket.vue b/src/views/props/props-send-tool/send-ticket.vue
new file mode 100644
index 0000000..7a34a14
--- /dev/null
+++ b/src/views/props/props-send-tool/send-ticket.vue
@@ -0,0 +1,285 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
![cover]()
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 发送
+
+
+
+
+
+