Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
taobao-mini-template
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
2
Issues
2
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinhaitao
taobao-mini-template
Commits
e7a028b3
Commit
e7a028b3
authored
Oct 11, 2020
by
李硕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交B端修改导出中奖名单
parent
e7ba37fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
7 deletions
+8
-7
prize-dialog.js
client/components/dialog/prize-dialog/prize-dialog.js
+6
-5
rankopenprize.service.js
server/duiba/service/rankopenprize.service.js
+2
-2
No files found.
client/components/dialog/prize-dialog/prize-dialog.js
View file @
e7a028b3
...
...
@@ -198,7 +198,7 @@ Component({
prizeInitData
:
{
...
INIT_DATA
,
type
,
_id
:
null
,
_id
:
null
,
rank
,
},
});
...
...
@@ -419,12 +419,13 @@ Component({
this
.
showItemTips
(
"imageTips"
,
"error"
,
"请配置奖品图片"
);
}
}
//库存奖品的库存值判断
let
usePass
=
switchStock
==
1
?
+
stock
>
=
(
useStock
||
0
)
:
true
;
console
.
log
(
"stock=="
,
stock
,
"useStock=="
,
useStock
,
'type==='
,
type
);
//
库存奖品的库存值判断
let
usePass
=
switchStock
==
1
?
+
stock
>
(
useStock
||
0
)
:
true
;
//
console.log("stock==", stock, "useStock==", useStock, 'type===', type);
let
intNum
=
/^
[
1-9
]
+
[
0-9
]
*$/
;
let
stockPass
=
switchStock
==
1
?
(
intNum
.
test
(
+
stock
)
&&
+
stock
>
0
&&
+
stock
<=
99999
)
:
true
;
console
.
log
(
intNum
.
test
(
+
stock
),
+
stock
<=
0
,
+
stock
>
99999
,
usePass
);
if
(
!
intNum
.
test
(
+
stock
)
||
+
stock
<=
0
||
+
stock
>
99999
||
!
usePass
)
{
if
(
!
stockPass
||
!
usePass
)
{
this
.
showItemTips
(
"prizeNumberTips"
,
"error"
,
...
...
server/duiba/service/rankopenprize.service.js
View file @
e7a028b3
...
...
@@ -56,7 +56,7 @@ class RankopenprizeService {
}
//《条件搜索》查询中奖信息
async
getUserPrizeByActivityId
(
activityId
,
pageNo
,
pageSize
,
prizeId
,
userNick
,
timeStart
,
timeEnd
,
shipStatus
,
type
)
{
async
getUserPrizeByActivityId
(
activityId
,
pageNo
,
pageSize
,
prizeId
,
userNick
,
timeStart
,
timeEnd
,
shipStatus
,
type
,
prizeDataType
)
{
let
p
=
prizeId
?
{
_id
:
prizeId
}
:
''
;
let
u
=
userNick
?
{
userNick
:
{
$regex
:
".*"
+
userNick
+
".*"
}
}
:
''
;
let
c
=
(
timeStart
>
0
&&
timeEnd
>
0
)
?
{
createTime
:
{
$gt
:
timeStart
,
$lt
:
timeEnd
}
}
:
''
;
...
...
@@ -88,7 +88,7 @@ class RankopenprizeService {
//《条件搜索》获取中奖名单长度
async
getTotalObjectCount
(
activityId
,
prizeId
,
userNick
,
timeStart
,
timeEnd
,
shipStatus
,
type
)
{
async
getTotalObjectCount
(
activityId
,
prizeId
,
userNick
,
timeStart
,
timeEnd
,
shipStatus
,
type
,
prizeDataType
)
{
let
p
=
prizeId
?
{
_id
:
prizeId
}
:
''
;
let
u
=
userNick
?
{
userNick
:
{
$regex
:
".*"
+
userNick
+
".*"
}
}
:
''
;
let
c
=
(
timeStart
>
0
&&
timeEnd
>
0
)
?
{
createTime
:
{
$gt
:
timeStart
,
$lt
:
timeEnd
}
}
:
''
;
...
...
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