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
f837d158
Commit
f837d158
authored
Nov 26, 2020
by
zhaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
4f74537c
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
11 additions
and
6 deletions
+11
-6
prize-dialog.axml
client/components/dialog/prize-dialog/prize-dialog.axml
+4
-3
prize-dialog.js
client/components/dialog/prize-dialog/prize-dialog.js
+3
-3
probability-prize-table.axml
...rize/probability-prize-table/probability-prize-table.axml
+1
-0
probability-prize-table.js
.../prize/probability-prize-table/probability-prize-table.js
+1
-0
rank-table.axml
client/components/rank/rank-table/rank-table.axml
+1
-0
rank-table.js
client/components/rank/rank-table/rank-table.js
+1
-0
No files found.
client/components/dialog/prize-dialog/prize-dialog.axml
View file @
f837d158
...
...
@@ -11,9 +11,10 @@
<form-item style="width:100%" size="large" class="probability-prize-content-formItem" label="奖品类型" required>
<view class="probability-prize-content-formitem-choosePrize-wrap">
<select onChange="onPrizeTypeChange" defaultValue="{{isEdit ? prizeDialogData.record.type : prizeInitData.type}}">
<option value="{{1}}">优惠券</option>
<option value="{{2}}">积分</option>
<option value="{{3}}">实物</option>
<option a:if="{{typeChecked.includes(1)}}" value="{{1}}">优惠券</option>
<option a:if="{{typeChecked.includes(2)}}" value="{{2}}">积分</option>
<option a:if="{{typeChecked.includes(3)}}" value="{{3}}">实物</option>
<option a:if="{{typeChecked.includes(5)}}" value="{{5}}">降级奖品</option>
</select>
</view>
</form-item>
...
...
client/components/dialog/prize-dialog/prize-dialog.js
View file @
f837d158
...
...
@@ -8,7 +8,7 @@ import { passUrlList, urlCheck } from "../../../utils/helper";
const
EQUITY_TYPE
=
1
;
const
CREDITS_TYPE
=
2
;
const
OBJECT_TYPE
=
3
;
const
THANKS
_TYPE
=
5
;
const
LOWER
_TYPE
=
5
;
const
STOCK_LIMIT
=
1
;
const
STOCK_NO_LIMIT
=
2
;
...
...
@@ -38,7 +38,7 @@ Component({
EQUITY_TYPE
,
CREDITS_TYPE
,
OBJECT_TYPE
,
THANKS
_TYPE
,
LOWER
_TYPE
,
showDialogMask
:
true
,
dialogTop
:
""
,
rankTips
:
{
...
...
@@ -115,6 +115,7 @@ Component({
datasource
:
[],
prizeDataType
:
null
,
conditionKeys
:
[],
typeChecked
:
[],
onCloseDialog
:
function
()
{
},
onUpdate
:
function
()
{
},
},
...
...
@@ -385,7 +386,6 @@ Component({
COUPON_TYPE
,
CREDITS_TYPE
,
OBJECT_TYPE
,
THANKS_TYPE
,
}
=
this
.
data
;
if
(
type
===
LUKCY_POCKET_TYPE
&&
!
ename
)
{
...
...
client/components/prize/probability-prize-table/probability-prize-table.axml
View file @
f837d158
...
...
@@ -41,6 +41,7 @@
isEdit="{{isEdit}}"
conditionKeys="{{conditionKeys}}"
prizeDialogData="{{prizeDialogData}}"
typeChecked="{{typeChecked}}"
onClose="onCloseDialog"
type="{{type}}"
imageLimit="{{imageLimit}}"
...
...
client/components/prize/probability-prize-table/probability-prize-table.js
View file @
f837d158
...
...
@@ -13,6 +13,7 @@ Component({
conditionKeys
:
[],
imageLimit
:
[
250
,
250
],
prizeDataType
:
null
,
typeChecked
:
[],
type
:
''
},
didMount
()
{
},
...
...
client/components/rank/rank-table/rank-table.axml
View file @
f837d158
...
...
@@ -41,6 +41,7 @@
prizeDialogData="{{prizeDialogData}}"
prizeDataType="{{prizeDataType}}"
imageLimit="{{imageLimit}}"
typeChecked="{{typeChecked}}"
onClose="onCloseDialog"
type="rank"
maxRankLimit="{{maxRankLimit}}"
...
...
client/components/rank/rank-table/rank-table.js
View file @
f837d158
...
...
@@ -12,6 +12,7 @@ Component({
conditionKeys
:
[],
maxRankLimit
:
''
,
list
:
[],
typeChecked
:
[],
prizeDataType
:
null
,
onChange
:
()
=>
{
},
dataName
:
''
...
...
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