Showing
3 changed files
with
103 additions
and
3 deletions
| @@ -229,4 +229,23 @@ class Seller extends Common | @@ -229,4 +229,23 @@ class Seller extends Common | ||
| 229 | } | 229 | } |
| 230 | return view(); | 230 | return view(); |
| 231 | } | 231 | } |
| 232 | + | ||
| 233 | + /** | ||
| 234 | + * 停用商家 | ||
| 235 | + */ | ||
| 236 | + public function sellerdetail(){ | ||
| 237 | + //print_r(Request::except('file'));die; | ||
| 238 | + $data = Request::except('file'); | ||
| 239 | + //获取运营人员列表 | ||
| 240 | + $list= file_get_contents(UNDER_LINE.'App.Seller.GetSellerById&sellerid='.$data['sid']); | ||
| 241 | + $array = json_decode($list,TRUE); | ||
| 242 | + if($array['data']['data']){ | ||
| 243 | + $array['data']['data']['daily'] = json_decode($array['data']['data']['daily'],TRUE); | ||
| 244 | + $array['data']['data']['daily_time'] = json_decode($array['data']['data']['daily_time'],TRUE); | ||
| 245 | + $array['data']['data']['cdate'] = date("Y年m月d日 H时i分s秒",$array['data']['data']['cdate']); | ||
| 246 | + } | ||
| 247 | + $this->assign ( 'data',$array['data']['data']); | ||
| 248 | + $this->assign ( 'title','商家详情页面'); | ||
| 249 | + return $this->fetch(); | ||
| 250 | + } | ||
| 232 | } | 251 | } |
| @@ -53,8 +53,6 @@ | @@ -53,8 +53,6 @@ | ||
| 53 | cols: [[ | 53 | cols: [[ |
| 54 | {field: 'id', title: '{:lang("id")}', width:60, fixed: true}, | 54 | {field: 'id', title: '{:lang("id")}', width:60, fixed: true}, |
| 55 | {field: 'sellername', title: '商家名称'}, | 55 | {field: 'sellername', title: '商家名称'}, |
| 56 | - {field: 'phone', title: '商家电话'}, | ||
| 57 | - {field: 'map_address', title: '商家地址'}, | ||
| 58 | {field: 'cuisine', align: 'center',title: '现有菜系'}, | 56 | {field: 'cuisine', align: 'center',title: '现有菜系'}, |
| 59 | {field: 'type', align: 'center',title: '现有类型'}, | 57 | {field: 'type', align: 'center',title: '现有类型'}, |
| 60 | {field: 'last_num', align: 'center',title: '短信余量'}, | 58 | {field: 'last_num', align: 'center',title: '短信余量'}, |
| @@ -63,7 +61,6 @@ | @@ -63,7 +61,6 @@ | ||
| 63 | {field: 'is_parking', align: 'center', edit: 'text',title: '是否有停车场'}, | 61 | {field: 'is_parking', align: 'center', edit: 'text',title: '是否有停车场'}, |
| 64 | {field: 'user_name', align: 'center',title: '创建人'}, | 62 | {field: 'user_name', align: 'center',title: '创建人'}, |
| 65 | {field: 'dz_version', align: 'center',title: 'APP版本'}, | 63 | {field: 'dz_version', align: 'center',title: 'APP版本'}, |
| 66 | - {field: 'cdate', align: 'center',title: '创建日期'}, | ||
| 67 | {align: 'center', width:200,title: '操作', toolbar: '#action'} | 64 | {align: 'center', width:200,title: '操作', toolbar: '#action'} |
| 68 | ]] | 65 | ]] |
| 69 | ,id: 'testReload' | 66 | ,id: 'testReload' |
| @@ -89,6 +86,24 @@ | @@ -89,6 +86,24 @@ | ||
| 89 | }); | 86 | }); |
| 90 | }); | 87 | }); |
| 91 | 88 | ||
| 89 | + //监听行双击事件 | ||
| 90 | + table.on('rowDouble(list)', function(obj){ | ||
| 91 | + //console.log(obj.tr) //得到当前行元素对象 | ||
| 92 | + console.log(obj.data) //得到当前行数据 | ||
| 93 | + layer.open({ | ||
| 94 | + type: 2, | ||
| 95 | + title: obj.data.sellername, | ||
| 96 | + shadeClose: true, | ||
| 97 | + shade: 0.8, | ||
| 98 | + area: ['90%', '90%'], | ||
| 99 | + content: '{:url("sellerdetail")}?sid='+obj.data.id //iframe的url | ||
| 100 | + /*success:function(dom){ | ||
| 101 | + let $iframeDom=$(dom[0]).find("iframe").eq(0).contents(); | ||
| 102 | + $iframeDom.find("#test").html("我是从父级传来的值哟……") | ||
| 103 | + }*/ | ||
| 104 | + }); | ||
| 105 | + }); | ||
| 106 | + | ||
| 92 | //搜索 | 107 | //搜索 |
| 93 | $('#search').on('click', function() { | 108 | $('#search').on('click', function() { |
| 94 | var key = $('#key').val(); | 109 | var key = $('#key').val(); |
| 1 | +{include file="common/head"/} | ||
| 2 | +<div class="admin-main layui-anim layui-anim-upbit"> | ||
| 3 | + <div class="table-responsive"> | ||
| 4 | + <table class="layui-table" lay-even lay-skin="line"> | ||
| 5 | + <colgroup> | ||
| 6 | + <col width="10%"> | ||
| 7 | + <col> | ||
| 8 | + </colgroup> | ||
| 9 | + <thead> | ||
| 10 | + <tr> | ||
| 11 | + <th class="text-center" colspan="2"></th> | ||
| 12 | + </tr> | ||
| 13 | + </thead> | ||
| 14 | + <tbody> | ||
| 15 | + <tr style='align:right'> | ||
| 16 | + <td>商家注册电话</td> | ||
| 17 | + <td>{$data.phone}</td> | ||
| 18 | + </tr> | ||
| 19 | + <tr> | ||
| 20 | + <td>商家预定电话</td> | ||
| 21 | + <td>{$data.seller_tel}</td> | ||
| 22 | + </tr> | ||
| 23 | + <tr> | ||
| 24 | + <td>地图地址</td> | ||
| 25 | + <td>{$data.map_address}</td> | ||
| 26 | + </tr> | ||
| 27 | + <tr> | ||
| 28 | + <td>真实地址</td> | ||
| 29 | + <td>{$data.real_address}</td> | ||
| 30 | + </tr> | ||
| 31 | + <tr> | ||
| 32 | + <td>经纬度</td> | ||
| 33 | + <td>{$data.lat} / {$data.long}</td> | ||
| 34 | + </tr> | ||
| 35 | + <tr> | ||
| 36 | + <td>是否开通点餐</td> | ||
| 37 | + <td>{if $data.isopen_dc==1}是{else}否{/if}</td> | ||
| 38 | + </tr> | ||
| 39 | + <tr> | ||
| 40 | + <td>商家接受预定时间段</td> | ||
| 41 | + <td>{if $data.daily.morning}早上:{$data.daily.morning}{/if} | ||
| 42 | + {if $data.daily.noon} 中午:{$data.daily.noon}{/if} | ||
| 43 | + {if $data.daily.night} 晚上:{$data.daily.night}{/if} | ||
| 44 | + </td> | ||
| 45 | + </tr> | ||
| 46 | + <tr> | ||
| 47 | + <td>商家营业时间段</td> | ||
| 48 | + <td>{if $data.daily_time.morning}早上:{$data.daily_time.morning}{/if} | ||
| 49 | + {if $data.daily_time.noon} 中午:{$data.daily_time.noon}{/if} | ||
| 50 | + {if $data.daily_time.night} 晚上:{$data.daily_time.night}{/if} | ||
| 51 | + </td> | ||
| 52 | + </tr> | ||
| 53 | + | ||
| 54 | + <tr> | ||
| 55 | + <td>商家创建时间</td> | ||
| 56 | + <td>{$data.cdate}</td> | ||
| 57 | + </tr> | ||
| 58 | + <tr> | ||
| 59 | + <td>商家描述</td> | ||
| 60 | + <td>{$data.sellerdesc}</td> | ||
| 61 | + </tr> | ||
| 62 | + </tbody> | ||
| 63 | + </table> | ||
| 64 | + </div> | ||
| 65 | +</div> | ||
| 66 | +{include file="common/foot"/} |
-
Please register or login to post a comment