Commit 34d4b333 authored by zhaofei's avatar zhaofei

s

parent 441f323b
......@@ -279,9 +279,10 @@ Component({
},
});
},
onswitchIsBackUpChange(e){
onswitchIsBackUpChange(e) {
this.setData({
prizeInitData:{
prizeInitData: {
...this.data.prizeInitData,
isBackUp: e.detail.value
}
})
......@@ -306,6 +307,12 @@ Component({
let imgBool = ~path.indexOf(".png") || ~path.indexOf(".jpg");
if (height !== imageLimit[1] || width !== imageLimit[0] || !imgBool) {
this.showItemTips("imageTips", "error", "请按要求上传图片");
this.setData({
prizeInitData: {
...this.data.prizeInitData,
image: '',
}
});
return;
} else {
this.showItemTips("imageTips", "success", "");
......@@ -555,7 +562,7 @@ Component({
rank,
switchStock,
isBackUp,
prizeDataType:+prizeDataType,
prizeDataType: +prizeDataType,
itemId,
amount,
...rest,
......
......@@ -2,7 +2,7 @@
<view class="task-dialog-wrap">
<form style="width: 100%" data-name="form" inline="{{true}}">
<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%;">
<radio-group size="small" value="{{taskRateType}}" onChange="onTaskRateTypeChange">
<radio size="small" value="{{1}}">永久一次</radio>
......
{
"lockfileVersion": 1
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment