12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- {extend name="common/common2" /}
- {block name="main"}
- <div class="row">
- <div class="col-xs-12">
- <div class="panel panel-default">
- <div class="panel-body">
- <form class="form" data-next="true" action="#" method="GET">
- <input type="hidden" name="id" value="{$id}">
- <div class="form-group">
- <div class="form-group">
- <label class="control-label">电话</label>
- <input class="form-control" readonly value="{$info['phone']}" placeholder="电话" />
- </div>
- <div class="form-group">
- <label class="control-label">订单类型</label>
- <select name="mode" class="form-control" onchange="changeType(this)">
- {foreach $worktype as $k=>$v}
- <option value="{$v['id']}">{$v['title']}</option>
- {/foreach}
- </select>
- </div>
- <div class="form-group text-center">
- <button type="button" onclick="tt()" class="btn btn-sm btn-primary">下一步</button>
- </div>
- </div>
- </form>
- </div>
- </div>
- </div>
- </div>
- {/block}
- {block name="script"}
- <script>
- var mode = 1;
- function changeType(_self) {
- mode = $(_self).val();
- }
- function tt() {
- var title = '';
- if(mode == 1){
- title = '添加报修';
- }else if(mode == 2){
- title = '添加保洁';
- }else if(mode == 3){
- title = '添加运送';
- }else if(mode == 4){
- title = '添加应急';
- }else{
- title = '添加';
- }
- var url = '{:url("orders/dispatchAdd",[],"")}/mode/'+mode+'?id={$id}';
- lay_open(title,url);
- }
- function lay_open (title,url) {
- parent.layer.open({
- type: 2,
- title: title,
- shadeClose: true,
- shade: 0.3,
- maxmin: true,
- area: ['90%', '90%'],
- content: url,
- end: function () {
- }
- });
- }
- </script>
- {/block}
|