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
34d4b333
Commit
34d4b333
authored
Dec 08, 2020
by
zhaofei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
s
parent
441f323b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
prize-dialog.js
client/components/dialog/prize-dialog/prize-dialog.js
+10
-3
task-dialog.axml
client/components/dialog/task-dialog/task-dialog.axml
+1
-1
package-lock.json
package-lock.json
+3
-0
No files found.
client/components/dialog/prize-dialog/prize-dialog.js
View file @
34d4b333
...
@@ -279,9 +279,10 @@ Component({
...
@@ -279,9 +279,10 @@ Component({
},
},
});
});
},
},
onswitchIsBackUpChange
(
e
){
onswitchIsBackUpChange
(
e
)
{
this
.
setData
({
this
.
setData
({
prizeInitData
:{
prizeInitData
:
{
...
this
.
data
.
prizeInitData
,
isBackUp
:
e
.
detail
.
value
isBackUp
:
e
.
detail
.
value
}
}
})
})
...
@@ -306,6 +307,12 @@ Component({
...
@@ -306,6 +307,12 @@ Component({
let
imgBool
=
~
path
.
indexOf
(
".png"
)
||
~
path
.
indexOf
(
".jpg"
);
let
imgBool
=
~
path
.
indexOf
(
".png"
)
||
~
path
.
indexOf
(
".jpg"
);
if
(
height
!==
imageLimit
[
1
]
||
width
!==
imageLimit
[
0
]
||
!
imgBool
)
{
if
(
height
!==
imageLimit
[
1
]
||
width
!==
imageLimit
[
0
]
||
!
imgBool
)
{
this
.
showItemTips
(
"imageTips"
,
"error"
,
"请按要求上传图片"
);
this
.
showItemTips
(
"imageTips"
,
"error"
,
"请按要求上传图片"
);
this
.
setData
({
prizeInitData
:
{
...
this
.
data
.
prizeInitData
,
image
:
''
,
}
});
return
;
return
;
}
else
{
}
else
{
this
.
showItemTips
(
"imageTips"
,
"success"
,
""
);
this
.
showItemTips
(
"imageTips"
,
"success"
,
""
);
...
@@ -555,7 +562,7 @@ Component({
...
@@ -555,7 +562,7 @@ Component({
rank
,
rank
,
switchStock
,
switchStock
,
isBackUp
,
isBackUp
,
prizeDataType
:
+
prizeDataType
,
prizeDataType
:
+
prizeDataType
,
itemId
,
itemId
,
amount
,
amount
,
...
rest
,
...
rest
,
...
...
client/components/dialog/task-dialog/task-dialog.axml
View file @
34d4b333
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<view class="task-dialog-wrap">
<view class="task-dialog-wrap">
<form style="width: 100%" data-name="form" inline="{{true}}">
<form style="width: 100%" data-name="form" inline="{{true}}">
<form-item label="任务标题">
<form-item label="任务标题">
<input style="width: 250px" onChange="onChange" data-name="title" defaultValue="{{title}}"
maxLength="{{10}}"
maxlength="{{10}}" hasLimitHint="{{true}}" name="title" placeholder="请输入任务标题"/></form-item>
<input style="width: 250px" onChange="onChange" data-name="title" defaultValue="{{title}}" maxlength="{{10}}" hasLimitHint="{{true}}" name="title" placeholder="请输入任务标题"/></form-item>
<form-item label="任务类型" style="width:100%;">
<form-item label="任务类型" style="width:100%;">
<radio-group size="small" value="{{taskRateType}}" onChange="onTaskRateTypeChange">
<radio-group size="small" value="{{taskRateType}}" onChange="onTaskRateTypeChange">
<radio size="small" value="{{1}}">永久一次</radio>
<radio size="small" value="{{1}}">永久一次</radio>
...
...
package-lock.json
0 → 100644
View file @
34d4b333
{
"lockfileVersion"
:
1
}
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