<?php include_once(mvc::$cfg['PATH_TPL'].'public/headBase.php');?>
<script type="text/javascript" src="<?php echo mvc::$cfg['SELF_URL'];?>static/js/crm.js?ver=<?php echo mvc::$cfg['VER']['js'];?>"></script>
<div class="layui-form" style="padding: 10px;">
   
    <table class="layui-table" style="">
       
        <tr>
            <th class="textRight">门头照:</th>
            <td colspan="3">
                <span class="virewer-img" data-replace="/240/#/">
                    <?php foreach($dataArr['shop_img'] as $img){?>
                        <img src="<?=$img?>" style="max-width: 50px;max-height: 50px;"/>
                    <?php } ?>
                </span>
            </td>
            
        </tr>
        <tr>
            <th class="textRight">商铺:</th>
            <td>
                <?php if($dataArr['ctr_pjl_shop_id'] > 0 && $dataArr['shop_vip_etime'] > time()){?>
                    <span style='color: #009688;'>使用中<span>
                <?php }elseif($dataArr['ctr_pjl_shop_id'] > 0 && $dataArr['shop_vip_etime'] <= time() && $dataArr['shop_vip_etime'] > 0) {?>
                    <span style='color: #FF5722;'>已过期<span>
                <?php }elseif($dataArr['ctr_pjl_shop_id'] > 0 && $dataArr['shop_vip_etime'] == 0){?>
                    <span style='color:#FFB800;'>未缴费<span>
                <?php }elseif($dataArr['ctr_pjl_shop_id'] == 0 && $dataArr['shop_vip_etime'] == 0){?>
                    <span style='color: #999999;'>未申请<span>
                <?php } ?>
            </td>
            <th class="textRight">到期/申请:</th>
            <td>
                <?php if($dataArr['ctr_pjl_shop_id'] > 0 && $dataArr['shop_vip_etime'] > time()){?>
                    <span style='color: #009688;'><?=date('Y-m-d',$dataArr['shop_vip_etime'])?>到期 [<?=ceil(($dataArr['shop_vip_etime']-time())/3600/24)?>]<span>
                <?php }elseif($dataArr['ctr_pjl_shop_id'] > 0 && $dataArr['shop_vip_etime'] <= time() && $dataArr['shop_vip_etime'] > 0) {?>
                    <span style='color: #FF5722;'><?=date('Y-m-d',$dataArr['shop_vip_etime'])?>到期 [过<?=ceil((time()-$dataArr['shop_vip_etime'])/3600/24)?>]<span>
                <?php }elseif($dataArr['ctr_pjl_shop_id'] > 0 && $dataArr['shop_vip_etime'] == 0){?>
                        <span style='color:#FFB800;'><?=date('Y-m-d',$dataArr['shop_apply_time'])?>+申请 [<?=date('Y-m-d',$dataArr['shop_apply_time'])?>]<span>
                <?php }elseif($dataArr['ctr_pjl_shop_id'] == 0 && $dataArr['shop_vip_etime'] == 0){?>
                    
                <?php } ?>
            </td>
        </tr>
        <tr>
            <th class="textRight">浏览:</th>
            <td>
                <?=$dataArr['ua_pv']?>
                <!-- <input type="text" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly" value="<?=$dataArr['ua_pv']?>"> -->
            </td>
            <th class="textRight">VIN:</th>
            <td>
                <?=$dataArr['ua_vin_count']?>
            </td>
        </tr>
        <tr>
            <th class="textRight">号码:</th>
            <td>
            <input type="text" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly" value="<?=$dataArr['ua_number_count']?>">
            </td>
            <th class="textRight">EPC:</th>
            <td>
                <?=$dataArr['ua_epc_count']?>
            </td>
        </tr>
        <tr>
            <th class="textRight">电话:</th>
            <td>
            <input type="text" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly" value="<?=$dataArr['call_count']?>">
            </td>
            <th class="textRight">配件:</th>
            <td>
                <?=$dataArr['product_count']?>
            </td>
        </tr>

        <tr>
            <th class="textRight">报价:</th>
            <td>
            <input type="text" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly" value="<?=$dataArr['shop_quoted_count']?>">
            </td>
            <th class="textRight">最近:</th>
            <td>
                <?=$dataArr['recent_pv_count']?>
            </td>
        </tr>
        <tr>
            <th class="textRight">推送:</th>
            <td colspan="3">
                <?=$dataArr['tui_song']?>
            </td>
           
        </tr>
       
        <tr>
            <th class="textRight">主营类别:</th>
            <td colspan="3">
                <input type="text" value="<?=$dataArr['part']?implode(',',array_column($dataArr['part'],'cla_name')):'' ?>" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly">
            </td>
        </tr>
        <tr>
            <th class="textRight">关注零件:</th>
            <td colspan="3">
                <input type="text"  value="<?=implode(',',$dataArr['act_part'])?>" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly">
            </td>
        </tr>
        <tr>
            <th class="textRight">主营车型:</th>
            <td colspan="3">
                <input type="text"  value="<?=$dataArr['make']?implode(',',array_column($dataArr['make'],'cla_name')):''?>" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly">
            </td>
        </tr>
        <tr>
            <th class="textRight">关注品牌:</th>
            <td colspan="3">
                <input type="text"  value="<?=implode(',',$dataArr['act_make'])?>" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly">
            </td>
        </tr>
        
        <tr>
            <th class="textRight">地区:</th>
            <td colspan="3">
                <input type="text"  value="<?=implode(' ',$dataArr['pcts'])?>" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly">
            </td>
        </tr>
        <tr>
            <th class="textRight">地址:</th>
            <td colspan="3">
                <input type="text"  value="<?=$dataArr['ctr_addr']?>" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly">
            </td>
        </tr>
        <tr>
            <th class="textRight">客服人:</th>
            <td colspan="3">
                <input type="text"  value="<?=$dataArr['ctr_kefu_name']?>" style="border:none;" autocomplete="off" class="layui-input" readonly="readonly">
            </td>
        </tr>
    </table>
  
</div>
<?php include_once(mvc::$cfg['PATH_TPL'].'public/footBase.php');?>
