作者 刘朕
1 个管道 的构建 通过 耗费 1 秒

编辑订单默认日期修改

... ... @@ -80,7 +80,7 @@ class MemberSalesController extends HomeBaseController
</div>';
$this->sort_model[10] = '<div class="text_item no_margin form_options" data-validate="{validate}" data-type="10">
<p class="text_tit"><span class=" _validate">{name}</span>{must}</p>
<input type="text" name="" readonly="readonly" value="{value}" class="baby_input birthday" placeholder="请选择{name}" />
<input type="text" name="" readonly="readonly" id="birthday{key}" value="{value}" class="baby_input birthday" placeholder="请选择{name}" />
<img src="__TMPL__/public/mobile/images/youjiantou.png" class="jiantou" />
</div>';
$this->sort_model[11] = '<div class="text_item form_options" data-validate="{validate}" data-type="11">
... ... @@ -501,6 +501,9 @@ class MemberSalesController extends HomeBaseController
$html = str_replace('{img}',$img,$html);
$html = str_replace('{img_height}','height:auto;',$html);
}
if($formData['type'] == 10) {
$html = str_replace('{key}',$formData['id'],$html);
}
$html = str_replace('{value}',$formData['user_choose'],$html);
} else {
if($formData['type'] == 8) {
... ... @@ -509,6 +512,9 @@ class MemberSalesController extends HomeBaseController
$html = str_replace('{img}',$img,$html);
$html = str_replace('{img_height}','',$html);
}
if($formData['type'] == 10) {
$html = str_replace('{key}',$formData['id'],$html);
}
$html = str_replace('{value}','',$html);
}
return $html;
... ...
... ... @@ -184,8 +184,7 @@
onConfirm: function(result) {
var birthday = result[0].label + result[1].label + result[2].label;
obj.val(birthday)
},
id: 'datePicker'
}
});
}
... ...