From 145fbcf834a4d022f14a9a90027650001325e0f0 Mon Sep 17 00:00:00 2001 From: dengtongyu Date: Sun, 16 Apr 2023 14:46:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 7 +- src/components/bottomView/balanceView.vue | 6 +- src/components/buyGiftPop/index.js | 7 + src/components/buyGiftPop/main.vue | 168 ++++++++++++++++++++++ src/components/luckyGridView/main.vue | 101 +++++++++---- src/lib/tool.js | 2 +- src/main.js | 6 +- src/store/index.js | 103 ++++++++++++- src/views/Home.vue | 50 ++++++- src/views/recharge.vue | 108 +++++--------- 10 files changed, 439 insertions(+), 119 deletions(-) create mode 100644 src/components/buyGiftPop/index.js create mode 100644 src/components/buyGiftPop/main.vue diff --git a/src/api/index.js b/src/api/index.js index ebaf282..58d5b0b 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -57,6 +57,10 @@ const buyPack = param => { return ajax.post(`${HOST}/buyPack`, stringify(param)); }; +const buyAndLottery = param => { + return ajax.post(`${HOST}/lottery`, stringify(param)); +}; + export { queryPrizeInfo, queryTicketNum, @@ -68,5 +72,6 @@ export { rateList, getRulePic, queryPackList, - buyPack + buyPack, + buyAndLottery }; diff --git a/src/components/bottomView/balanceView.vue b/src/components/bottomView/balanceView.vue index 235dc1f..ea13f62 100644 --- a/src/components/bottomView/balanceView.vue +++ b/src/components/bottomView/balanceView.vue @@ -9,7 +9,7 @@ + + diff --git a/src/components/luckyGridView/main.vue b/src/components/luckyGridView/main.vue index 2333e31..2205107 100644 --- a/src/components/luckyGridView/main.vue +++ b/src/components/luckyGridView/main.vue @@ -21,9 +21,10 @@