Commit 006653cb authored by zhaofei's avatar zhaofei

s

parent 12274733
<dialog-wrap
visible="{{visible}}"
onClose="onCloseDialog"
width="460"
>
<dialog-wrap visible="{{visible}}" onClose="onCloseDialog" width="460">
<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> -->
<!-- <form-item label="任务类型" style="width:100%;">
<radio-group size="small" value="{{taskRateType}}" onChange="onTaskRateTypeChange">
<radio size="small" value="{{1}}">永久一次</radio>
<radio size="small" value="{{2}}" >每天限次</radio>
<radio size="small" value="{{3}}" >不限次</radio>
</radio-group>
</form-item>
<form-item style="width:100%;" a:if="{{taskRateType === 2}}">
<view class="task-day-limit">
<view>每天最多完成</view>
<view style="margin: 0 6px;">
<select value="{{times}}" onChange="onTimesChange" dataSource="{{dataSource}}"/>
</view>
次任务
</view>
</form-item> -->
<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> -->
<!--<form-item label="任务类型" style="width:100%;"><radio-group size="small" value="{{taskRateType}}" onChange="onTaskRateTypeChange"><radio size="small" value="{{1}}">永久一次</radio><radio size="small" value="{{2}}">每天限次</radio><radio size="small" value="{{3}}">不限次</radio></radio-group></form-item><form-item style="width:100%;" a:if="{{taskRateType === 2}}"><view class="task-day-limit"><view>每天最多完成</view><view style="margin: 0 6px;"><select value="{{times}}" onChange="onTimesChange" dataSource="{{dataSource}}"/></view>
次任务</view></form-item> -->
<form-item label="跳转链接" a:if="{{hasLink}}">
<input style="width: 250px" onChange="onChange" data-name="link" defaultValue="{{link}}" name="link" placeholder="请输入跳转链接"/>
<input style="width: 250px" onChange="onChange" data-name="link" defaultValue="{{link}}" name="link" placeholder="请输入跳转链接"/>
</form-item>
<form-item label="商品编辑" a:if="{{hasItems}}" style="width:100%;">
<items-config itemIds="{{itemIds}}" onUpdate="onItemIdsChange"/>
</form-item>
<!--
<form-item label="任务类型" style="width:100%;">
<!-- <radio-group size="small" value="{{taskRateType}}" onChange="onTaskRateTypeChange">
<radio size="small" value="{{1}}">永久一次</radio>
<radio size="small" value="{{2}}">每天限次</radio>
<radio size="small" value="{{3}}">不限次</radio>
</radio-group> -->
{{frequency}}
</form-item>
<form-item label="任务奖励">
<input onChange="onChange" data-name="value" defaultValue="{{value}}" name="value" addonTextAfter="{{unit}}" placeholder="1-999" maxLength="{{3}}"/>
</form-item> -->
<!--<input onChange="onChange" data-name="value" defaultValue="{{value}}" name="value" addonTextAfter="{{unit}}" placeholder="1-999" maxLength="{{3}}"/> -->
{{value}}{{unit}}
</form-item>
</form>
<view class="task-content-btn">
<button class="task-content-btn_confirm" onTap="onSaveTask" type="primary">保存</button>
......
......@@ -29,6 +29,7 @@ Component({
hasItems: false,
type: '',
unit: '',
frequency:'',
taskData: {
title: '',
taskRateType: 1,
......
......@@ -6,6 +6,7 @@
onClose="onClose"
onUpdate="onUpdate"
unit="{{unit}}"
frequency="{{frequency}}"
hasItems="{{hasItems}}"
hasLink="{{hasLink}}"
taskData="{{taskData}}"
......
......@@ -6,6 +6,7 @@ Component({
props: {
hasLink: false,
unit: '',
frequency:'',
onUpdate: ()=> {},
taskData: {
title: '',
......
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