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
75b8caa4
Commit
75b8caa4
authored
Dec 03, 2020
by
zhaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
c29b8621
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
9 deletions
+22
-9
prize-dialog.axml
client/components/dialog/prize-dialog/prize-dialog.axml
+4
-1
prize-dialog.js
client/components/dialog/prize-dialog/prize-dialog.js
+12
-0
rank-dialog.acss
client/components/dialog/rank-dialog/rank-dialog.acss
+1
-3
rank-dialog.axml
client/components/dialog/rank-dialog/rank-dialog.axml
+1
-1
awards.controller.ts
server/duibats/src/controller/awards.controller.ts
+2
-2
awards.service.ts
server/duibats/src/service/awards.service.ts
+2
-2
No files found.
client/components/dialog/prize-dialog/prize-dialog.axml
View file @
75b8caa4
...
@@ -13,8 +13,11 @@
...
@@ -13,8 +13,11 @@
size="large"
size="large"
class="probability-prize-content-formItem"
class="probability-prize-content-formItem"
label="是否降级奖品"
label="是否降级奖品"
validateState="{{nameTips.status}}" help="{{nameTips.content}}"
required>
required>
<radio-group value="{{prizeInitData.isBackUp}}" onChange="onswitchIsBackUpChange">
<radio value="{{true}}">是</radio>
<radio value="{{false}}">否</radio>
</radio-group>
</form-item>
</form-item>
<form-item style="width:100%" size="large" class="probability-prize-content-formItem" label="奖品类型" required>
<form-item style="width:100%" size="large" class="probability-prize-content-formItem" label="奖品类型" required>
<view class="probability-prize-content-formitem-choosePrize-wrap">
<view class="probability-prize-content-formitem-choosePrize-wrap">
...
...
client/components/dialog/prize-dialog/prize-dialog.js
View file @
75b8caa4
...
@@ -24,6 +24,7 @@ const INIT_DATA = {
...
@@ -24,6 +24,7 @@ const INIT_DATA = {
probability
:
""
,
probability
:
""
,
name
:
""
,
name
:
""
,
switchStock
:
STOCK_NO_LIMIT
,
switchStock
:
STOCK_NO_LIMIT
,
isBackUp
:
false
,
useStock
:
0
,
useStock
:
0
,
rank
:
""
,
rank
:
""
,
amount
:
""
,
amount
:
""
,
...
@@ -94,6 +95,7 @@ Component({
...
@@ -94,6 +95,7 @@ Component({
probability
:
""
,
probability
:
""
,
name
:
""
,
name
:
""
,
switchStock
:
STOCK_NO_LIMIT
,
switchStock
:
STOCK_NO_LIMIT
,
isBackUp
:
false
,
useStock
:
0
,
useStock
:
0
,
rank
:
""
,
rank
:
""
,
amount
:
""
,
amount
:
""
,
...
@@ -230,6 +232,7 @@ Component({
...
@@ -230,6 +232,7 @@ Component({
credits
:
""
,
credits
:
""
,
probability
:
""
,
probability
:
""
,
name
:
""
,
name
:
""
,
isBackUp
:
false
,
switchStock
:
STOCK_NO_LIMIT
,
switchStock
:
STOCK_NO_LIMIT
,
};
};
if
(
type
!==
value
)
{
if
(
type
!==
value
)
{
...
@@ -276,6 +279,13 @@ Component({
...
@@ -276,6 +279,13 @@ Component({
},
},
});
});
},
},
onswitchIsBackUpChange
(
e
){
this
.
setData
({
prizeInitData
:{
isBackUp
:
e
.
detail
.
value
}
})
},
async
uploadImage
()
{
async
uploadImage
()
{
try
{
try
{
this
.
setData
({
this
.
setData
({
...
@@ -353,6 +363,7 @@ Component({
...
@@ -353,6 +363,7 @@ Component({
credits
,
credits
,
useStock
,
useStock
,
switchStock
,
switchStock
,
isBackUp
,
endTime
,
endTime
,
rank
,
rank
,
itemId
,
itemId
,
...
@@ -543,6 +554,7 @@ Component({
...
@@ -543,6 +554,7 @@ Component({
useStock
:
+
useStock
,
useStock
:
+
useStock
,
rank
,
rank
,
switchStock
,
switchStock
,
isBackUp
,
prizeDataType
:
+
prizeDataType
,
prizeDataType
:
+
prizeDataType
,
itemId
,
itemId
,
amount
,
amount
,
...
...
client/components/dialog/rank-dialog/rank-dialog.acss
View file @
75b8caa4
...
@@ -22,9 +22,7 @@
...
@@ -22,9 +22,7 @@
align-items: center;
align-items: center;
}
}
.rank-dialog-wrap .operator-btns {
.rank-dialog-wrap .operator-btns {
margin-bottom: 15px;
margin-bottom: 10px;
width: 300px;
float: right;
}
}
.rank-dialog-wrap .long-item .next-select {
.rank-dialog-wrap .long-item .next-select {
width: 150px;
width: 150px;
...
...
client/components/dialog/rank-dialog/rank-dialog.axml
View file @
75b8caa4
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
<view a:if="{{x.record.type == 3}}">
<view a:if="{{x.record.type == 3}}">
<view>{{(x.record.receiveName || '')}}</view>
<view>{{(x.record.receiveName || '')}}</view>
<view>{{( x.record.phone || '')}} </view>
<view>{{( x.record.phone || '')}} </view>
<view>{{ ( x.record.province + x.record.city + x.record.area + x.record.
addressd
etail || '') }}</view>
<view>{{ ( x.record.province + x.record.city + x.record.area + x.record.
streetName + x.record.addressD
etail || '') }}</view>
<view a:if="{{!x.record.receiveName}}">暂未填写</view>
<view a:if="{{!x.record.receiveName}}">暂未填写</view>
</view>
</view>
<view a:else>/</view>
<view a:else>/</view>
...
...
server/duibats/src/controller/awards.controller.ts
View file @
75b8caa4
...
@@ -117,7 +117,7 @@ export default class BaseController {
...
@@ -117,7 +117,7 @@ export default class BaseController {
if
(
v
.
prizeDataType
==
2
)
prizeDataType
=
'排行榜'
if
(
v
.
prizeDataType
==
2
)
prizeDataType
=
'排行榜'
if
(
v
.
prizeDataType
==
3
)
prizeDataType
=
'分享获得'
if
(
v
.
prizeDataType
==
3
)
prizeDataType
=
'分享获得'
if
(
v
.
type
==
PRIZE_TYPE
.
EQUITY
)
prizeType
=
'
实物
'
if
(
v
.
type
==
PRIZE_TYPE
.
EQUITY
)
prizeType
=
'
优惠券
'
if
(
v
.
type
==
PRIZE_TYPE
.
CREDITS
)
prizeType
=
'积分'
if
(
v
.
type
==
PRIZE_TYPE
.
CREDITS
)
prizeType
=
'积分'
if
(
v
.
type
==
PRIZE_TYPE
.
OBJECT
)
{
if
(
v
.
type
==
PRIZE_TYPE
.
OBJECT
)
{
prizeType
=
'实物'
prizeType
=
'实物'
...
@@ -137,7 +137,7 @@ export default class BaseController {
...
@@ -137,7 +137,7 @@ export default class BaseController {
v
.
type
==
2
?
`
${
v
.
credits
||
0
}
积分`
:
v
.
name
||
''
,
v
.
type
==
2
?
`
${
v
.
credits
||
0
}
积分`
:
v
.
name
||
''
,
v
.
type
==
3
?
v
.
receiveName
||
''
:
'/'
,
v
.
type
==
3
?
v
.
receiveName
||
''
:
'/'
,
v
.
type
==
3
?
(
v
.
phone
?
v
.
phone
+
''
:
'暂未填写'
)
:
'/'
,
v
.
type
==
3
?
(
v
.
phone
?
v
.
phone
+
''
:
'暂未填写'
)
:
'/'
,
v
.
type
==
3
?
v
.
province
+
v
.
city
+
v
.
area
+
v
.
addressd
etail
||
'暂未填写'
:
'/'
,
v
.
type
==
3
?
v
.
province
+
v
.
city
+
v
.
area
+
v
.
streetName
+
v
.
addressD
etail
||
'暂未填写'
:
'/'
,
shipTxt
,
shipTxt
,
v
.
type
==
3
?
v
.
shipCompany
||
''
:
'/'
,
v
.
type
==
3
?
v
.
shipCompany
||
''
:
'/'
,
v
.
type
==
3
?
(
v
.
shipNum
?
v
.
shipNum
+
''
:
''
)
:
'/'
v
.
type
==
3
?
(
v
.
shipNum
?
v
.
shipNum
+
''
:
''
)
:
'/'
...
...
server/duibats/src/service/awards.service.ts
View file @
75b8caa4
...
@@ -88,9 +88,9 @@ export default class AwardsService {
...
@@ -88,9 +88,9 @@ export default class AwardsService {
let
c
=
startTime
>
0
&&
endTime
>
0
?
{
createTime
:
{
$gt
:
startTime
,
$lt
:
endTime
}
}
:
null
let
c
=
startTime
>
0
&&
endTime
>
0
?
{
createTime
:
{
$gt
:
startTime
,
$lt
:
endTime
}
}
:
null
let
s
=
shipStatus
let
s
=
shipStatus
?
(
shipStatus
==
1
?
(
shipStatus
==
1
?
{
shipStatus
:
{
$in
:
[
SHIP_STATUS
.
NO_ADDRESS
,
SHIP_STATUS
.
NO_SHIP
,
SHIP_STATUS
.
HAS_SHIP
]
}
}
?
{
shipStatus
:
{
$in
:
[
SHIP_STATUS
.
NO_ADDRESS
]
}
}
:
(
shipStatus
==
2
:
(
shipStatus
==
2
?
{
shipStatus
:
{
$in
:
[
SHIP_STATUS
.
NO_
ADDRESS
,
SHIP_STATUS
.
NO_
SHIP
]
}
}
?
{
shipStatus
:
{
$in
:
[
SHIP_STATUS
.
NO_SHIP
]
}
}
:
{
shipStatus
:
SHIP_STATUS
.
HAS_SHIP
}
:
{
shipStatus
:
SHIP_STATUS
.
HAS_SHIP
}
)
)
)
)
...
...
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