Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
飞
飞鹤小程序
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
FH
飞鹤小程序
Commits
d35700e9
Commit
d35700e9
authored
Sep 07, 2025
by
spc
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed
parent
d4f93304
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
312 additions
and
84 deletions
+312
-84
lottery.vue
activity0915/lottery/lottery.vue
+202
-81
request.js
api/request.js
+2
-2
act915Lottery.json
mock/act915Lottery.json
+107
-0
package-lock.json
package-lock.json
+1
-1
No files found.
activity0915/lottery/lottery.vue
View file @
d35700e9
This diff is collapsed.
Click to expand it.
api/request.js
View file @
d35700e9
...
@@ -16,10 +16,10 @@ const {
...
@@ -16,10 +16,10 @@ const {
// request.js
// request.js
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// 通常可以吧 baseUrl 单独放在一个 js 文件了
// const baseUrl = "http://172.16.230.108:7777/pmall";
// const baseUrl = "http://172.16.230.108:7777/pmall";
//
const baseUrl = "https://momclub-uat.feihe.com/pmall";//测试环境
const
baseUrl
=
"https://momclub-uat.feihe.com/pmall"
;
//测试环境
// let baseUrl = "https://momclub.feihe.com/pmall";//生产环境
// let baseUrl = "https://momclub.feihe.com/pmall";//生产环境
// const baseUrl = "https://docs.dui88.com/mock/1956/api";//mock
// const baseUrl = "https://docs.dui88.com/mock/1956/api";//mock
const
baseUrl
=
"https://feihe.m.duibatest.com.cn/pmall"
//
const baseUrl = "https://feihe.m.duibatest.com.cn/pmall"
const
request
=
(
options
=
{})
=>
{
const
request
=
(
options
=
{})
=>
{
// 在这里可以对请求头进行一些设置
// 在这里可以对请求头进行一些设置
...
...
mock/act915Lottery.json
0 → 100644
View file @
d35700e9
{
"ok"
:
true
,
"success"
:
true
,
"msg"
:
"Request successful"
,
"code"
:
"SUCCESS"
,
"data"
:
{
"activityRules"
:
"1. 活动期间,每位用户每天有一次抽奖机会。
\n
2. 抽奖结果以页面显示为准。
\n
3. 奖品将在活动结束后统一发放。"
,
"remainingChances"
:
3
,
"turntablePrizes"
:
[
{
"prizeId"
:
1001
,
"prizeName"
:
"一等奖 - 飞鹤奶粉"
,
"prizeImageUrl"
:
"/images/prizes/prize1.png"
,
"prizeType"
:
"Physical"
,
"prizeDescription"
:
"飞鹤星飞帆幼儿配方奶粉 1段 800g"
,
"displayProbability"
:
"0.1%"
,
"remainingStock"
:
5
},
{
"prizeId"
:
1002
,
"prizeName"
:
"二等奖 - 婴儿推车"
,
"prizeImageUrl"
:
"/images/prizes/prize2.png"
,
"prizeType"
:
"Physical"
,
"prizeDescription"
:
"高端婴儿推车,适合0-3岁宝宝"
,
"displayProbability"
:
"0.5%"
,
"remainingStock"
:
10
},
{
"prizeId"
:
1003
,
"prizeName"
:
"三等奖 - 玩具套装"
,
"prizeImageUrl"
:
"/images/prizes/prize3.png"
,
"prizeType"
:
"Physical"
,
"prizeDescription"
:
"益智玩具套装,适合幼儿"
,
"displayProbability"
:
"1%"
,
"remainingStock"
:
20
},
{
"prizeId"
:
1004
,
"prizeName"
:
"四等奖 - 优惠券50元"
,
"prizeImageUrl"
:
"/images/prizes/prize4.png"
,
"prizeType"
:
"Digital"
,
"prizeDescription"
:
"飞鹤商城50元优惠券"
,
"displayProbability"
:
"5%"
,
"remainingStock"
:
100
},
{
"prizeId"
:
1005
,
"prizeName"
:
"五等奖 - 积分100分"
,
"prizeImageUrl"
:
"/images/prizes/prize5.png"
,
"prizeType"
:
"Digital"
,
"prizeDescription"
:
"可用于兑换商城商品的积分"
,
"displayProbability"
:
"10%"
,
"remainingStock"
:
500
},
{
"prizeId"
:
1006
,
"prizeName"
:
"六等奖 - 谢谢参与"
,
"prizeImageUrl"
:
"/images/prizes/prize6.png"
,
"prizeType"
:
"None"
,
"prizeDescription"
:
"未中奖,再接再厉"
,
"displayProbability"
:
"83.4%"
,
"remainingStock"
:
9999
}
],
"winningCarousel"
:
[
{
"userNickname"
:
"用户123****4567"
,
"prizeName"
:
"飞鹤奶粉"
,
"winningTime"
:
"刚刚"
},
{
"userNickname"
:
"用户789****0123"
,
"prizeName"
:
"婴儿推车"
,
"winningTime"
:
"5分钟前"
},
{
"userNickname"
:
"用户456****7890"
,
"prizeName"
:
"优惠券50元"
,
"winningTime"
:
"10分钟前"
}
],
"userWinningPrizes"
:
[
{
"winningRecordId"
:
5001
,
"prizeId"
:
1004
,
"prizeName"
:
"优惠券50元"
,
"prizeImageUrl"
:
"/images/prizes/prize4.png"
,
"prizeType"
:
"Digital"
,
"prizeDescription"
:
"飞鹤商城50元优惠券"
,
"isIssued"
:
true
,
"winningTime"
:
"2023-09-15 10:30:45"
,
"issueTime"
:
"2023-09-15 10:31:00"
},
{
"winningRecordId"
:
5002
,
"prizeId"
:
1005
,
"prizeName"
:
"积分100分"
,
"prizeImageUrl"
:
"/images/prizes/prize5.png"
,
"prizeType"
:
"Digital"
,
"prizeDescription"
:
"可用于兑换商城商品的积分"
,
"isIssued"
:
true
,
"winningTime"
:
"2023-09-14 15:22:10"
,
"issueTime"
:
"2023-09-14 15:22:30"
}
]
}
}
\ No newline at end of file
package-lock.json
View file @
d35700e9
...
@@ -8,4 +8,4 @@
...
@@ -8,4 +8,4 @@
"integrity"
:
"sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
"integrity"
:
"sha512-KALDyEYgpY+Rlob/iriUtjV6d5Eq+Y191A5g4UqLAi8CyGP9N1+FdVbkc1SxKc2r4YAYqG8JzO2KGL+AizD70Q=="
}
}
}
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment