From a0e267968da69ec2e572046b36d042496ca0159f Mon Sep 17 00:00:00 2001 From: liaozetao <1107136310@qq.com> Date: Fri, 26 Jan 2024 09:57:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=A4=BC=E7=89=A9=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/gift/giftLevel.js | 8 + src/api/gift/giftUnlock.js | 27 ++ src/views/users/GiftManageView.vue | 568 +++++++++++++++++++++++------ 3 files changed, 501 insertions(+), 102 deletions(-) create mode 100644 src/api/gift/giftLevel.js create mode 100644 src/api/gift/giftUnlock.js diff --git a/src/api/gift/giftLevel.js b/src/api/gift/giftLevel.js new file mode 100644 index 0000000..ada85ae --- /dev/null +++ b/src/api/gift/giftLevel.js @@ -0,0 +1,8 @@ +import request from "@/utils/request"; + +export const getGiftLevelList = () => { + return request({ + url: '/admin/gift/level/list', + method: 'get', + }); +} \ No newline at end of file diff --git a/src/api/gift/giftUnlock.js b/src/api/gift/giftUnlock.js new file mode 100644 index 0000000..def8f2c --- /dev/null +++ b/src/api/gift/giftUnlock.js @@ -0,0 +1,27 @@ +import request from "@/utils/request"; + +export const getGiftUnlockList = () => { + return request({ + url: '/admin/giftUnlock/list', + method: 'get', + }); +} + +export const getLockGiftList = (giftId) => { + return new Promise((resolve, reject) => { + $.ajax({ + type: 'get', + url: "/admin/giftUnlock/lockGift?giftId=" + giftId, + dataType: "json", + async: false, + success: function (res) { + resolve(res); + }, + error: function (res, status, e) { + console.error(res); + console.error(status); + reject(e); + } + }); + }); +} \ No newline at end of file diff --git a/src/views/users/GiftManageView.vue b/src/views/users/GiftManageView.vue index e04caa9..43a6001 100644 --- a/src/views/users/GiftManageView.vue +++ b/src/views/users/GiftManageView.vue @@ -29,7 +29,7 @@ -
+
+
+ + +
+
@@ -139,10 +148,11 @@