Commit 37e7b067fda01ae674b2edffd31b1558c5f2aa9a

Authored by teemitop
1 parent ad02ed14

格式调整

@@ -1006,6 +1006,9 @@ class Seller extends Common @@ -1006,6 +1006,9 @@ class Seller extends Common
1006 $rs = Db::query("SELECT * FROM `xt-member-two-LINE`.xt_dc_dz_cancel where up_rid = ".$data['rid']." order by cdate desc"); 1006 $rs = Db::query("SELECT * FROM `xt-member-two-LINE`.xt_dc_dz_cancel where up_rid = ".$data['rid']." order by cdate desc");
1007 if($rs){ 1007 if($rs){
1008 foreach ($rs as $key => $value) { 1008 foreach ($rs as $key => $value) {
  1009 + if($this->isjson_str($value['desc'])){
  1010 + $rs[$key]['desc'] = "diff";
  1011 + }
1009 switch ($value['action_type']) { 1012 switch ($value['action_type']) {
1010 case '1': 1013 case '1':
1011 $rs[$key]['action_type'] = '取消预定'; 1014 $rs[$key]['action_type'] = '取消预定';
@@ -1038,6 +1041,13 @@ class Seller extends Common @@ -1038,6 +1041,13 @@ class Seller extends Common
1038 return $this->fetch(); 1041 return $this->fetch();
1039 } 1042 }
1040 1043
  1044 + public function isjson_str($data='',$assoc = false){
  1045 + $data = json_decode($data,$assoc);
  1046 + if(($data&&is_object($data))||(is_array($data)&&!empty($data))){
  1047 + return true;
  1048 + }
  1049 + return false;
  1050 + }
1041 /** 1051 /**
1042 * 状态设置 1052 * 状态设置
1043 */ 1053 */
@@ -19,7 +19,7 @@ @@ -19,7 +19,7 @@
19 到店日期: 19 到店日期:
20 <div class="layui-input-inline" > 20 <div class="layui-input-inline" >
21 <input type="text" style = "width:300px"; class="layui-input" id="dtime" placeholder="无默认值"> 21 <input type="text" style = "width:300px"; class="layui-input" id="dtime" placeholder="无默认值">
22 - </div> 22 + </div><hr>
23 订单状态: 23 订单状态:
24 <div class="layui-input-inline layui-form"> 24 <div class="layui-input-inline layui-form">
25 <div class="layui-input-8"> 25 <div class="layui-input-8">
@@ -54,7 +54,6 @@ @@ -54,7 +54,6 @@
54 </select> 54 </select>
55 </div> 55 </div>
56 </div> 56 </div>
57 -  
58 <button class="layui-btn" id="search" data-type="reload">查询统计</button> 57 <button class="layui-btn" id="search" data-type="reload">查询统计</button>
59 </div> 58 </div>
60 <br> 59 <br>
@@ -15,7 +15,13 @@ @@ -15,7 +15,13 @@
15 (<b>{$vo.uid}</b>) 在 15 (<b>{$vo.uid}</b>) 在
16 <b>{$vo.cdate}</b> 对该订单 进行了 16 <b>{$vo.cdate}</b> 对该订单 进行了
17 <b>{$vo.action_type}</b> 17 <b>{$vo.action_type}</b>
18 - 操作 {if $vo.desc}<b>描述:{$vo.desc}</b>{/if} 18 + 操作 {if $vo.desc eq 'diff'}
  19 + <b> </b>
  20 + {elseif $vo.desc && $vo.desc neq 'diff'}
  21 + <b> 描述:{$vo.desc}</b>
  22 + {elsif $vo.desc eq ''}
  23 + <b>{$vo.desc}</b>
  24 + {/if}
19 </td> 25 </td>
20 </tr> 26 </tr>
21 {/foreach} 27 {/foreach}