You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
192 lines
8.5 KiB
192 lines
8.5 KiB
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>{$menu.menu_seo_title|default=$site_seo_title} {$site_name}</title>
|
|
<meta name="keywords" content="{$menu.menu_seo_key|default=$site_seo_keywords}" />
|
|
<meta name="description" content="{$menu.menu_seo_des|default=$site_seo_description}">
|
|
{include file="public:head" /}
|
|
</head>
|
|
<body class="home">
|
|
<div class="wrap">
|
|
{include file="public:nav" /}
|
|
<!--banner开始-->
|
|
<div class="detailsbanner"></div>
|
|
<!--banner结束-->
|
|
<!--body开始-->
|
|
<div class="content bodymb">
|
|
<div class="basictop modef1 basiccon">
|
|
<div class="moderighttag modeub modeac">
|
|
<div class="linecolor"></div>
|
|
<div class="basictitle">选择号码</div>
|
|
</div>
|
|
<form class="form-horizontal ajaxForm1" name="formcodeinfo" method="post" action="{:url('home/Listn/tsjfimg')}" enctype='multipart/form-data'>
|
|
<input type="hidden" name="apply_id" value="{$apply_id}" />
|
|
<div class="form-group">
|
|
<div class="modeub numbercon modeac">
|
|
<div class="numberlogoleft">企业Logo</div>
|
|
<div class="numbericon modeub modeac modepc" >
|
|
<img id="logo_img" src="{$baseinfo.logo|get_imgurl=1}" style="border-radius:110px;width:120px;height: 120px;">
|
|
</div>
|
|
|
|
<div class="headeright">
|
|
<div class="headerightdes">jpg、png、gif 格式图片 100*100px</div>
|
|
<div class="col-sm-4">
|
|
<input name="filelogo" type="file" id="filelogo" accept="image/png,image/jpeg,image/gif" class="modepc" data-show-preview="false" data-show-upload="false" data-show-caption="true" required>
|
|
</div>
|
|
<button class="headerightbun modeub modeac modepc" type="submit" name="btnf6" value="SUBUPLOAD"><i class="ace-icon fa fa-check bigger-110"></i>上传</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<form class="form-horizontal ajaxForm2" id="formcodeinfo2" name="formcodeinfo2" method="post" action="{:url('home/Listn/apply_runbasecode')}" >
|
|
<input type="hidden" name="apply_id" value="{$apply_id}" />
|
|
<input type="hidden" name="base_id" id="base_id" value="{$baseinfo.base_id}" />
|
|
<div class="modeub numbercon modeac">
|
|
<div class="numberlogoleft">号码类型</div>
|
|
<div class="modef1 numberleft">
|
|
<label for="man" class="radio">
|
|
<span class="radio-bg"></span>
|
|
<input type="radio" name="codetype" id="man" value="0" checked="checked" onclick="aa()" {if condition="$baseinfo.codetype eq 0"}checked{/if}/> 系统分配
|
|
<span class="radio-on"></span>
|
|
</label>
|
|
<label for="woman" class="radio">
|
|
<span class="radio-bg"></span>
|
|
<input type="radio" name="codetype" id="woman" value="1" onclick="bb()" {if condition="$baseinfo.codetype eq 1"}checked{/if}/> 特殊号段
|
|
<span class="radio-on"></span>
|
|
</label>
|
|
</div>
|
|
</div>
|
|
<div id="xl" style="display: none">
|
|
<div class="modeub numbercon modeac">
|
|
<div class="numberlogoleft checkenumber">选择号段</div>
|
|
<div class="modef1 numberleft numberbody modeub">
|
|
<div class="numberlefticon"></div>
|
|
<div class="numbercentericon modeub modeac" >
|
|
<div class="selectbg modeub modeac selectbg2">
|
|
<select id="saleno" name="saleno">
|
|
{if condition="$status eq 27"}<option value=""></option>{/if}
|
|
{foreach name="salenolist" item="vno"}
|
|
<option value="{$vno.id}" {if condition="$baseinfo['code_id'] eq $vno.id"} selected {/if}>{$vno.saleno} - {$vno.price}元</option>
|
|
{/foreach}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="numberrighticon"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modeub numbercon modeac">
|
|
<div class="numberlogoleft">企业简称</div>
|
|
<div class="modef1 numberleft numberbody modeub">
|
|
<div class="numberlefticon"></div>
|
|
<div class="numbercentericon modeub modeac">
|
|
<input type="text" name="shortname" value="{$baseinfo.shortname}" placeholder="请输入" class="numberinputwh" maxlength="100">
|
|
</div>
|
|
<div class="numberrighticon"></div>
|
|
</div>
|
|
</div>
|
|
<div class="modeub numbercon modeac">
|
|
<div class="numberlogoleft">企业名称</div>
|
|
<div class="modef1 numberleft numberbody modeub">
|
|
<div class="numberlefticon"></div>
|
|
<div class="numbercentericon modeub modeac">
|
|
<input type="text" name="codename" value="{$baseinfo.codename}" placeholder="请输入" class="numberinputwh" maxlength="100">
|
|
</div>
|
|
<div class="numberrighticon"></div>
|
|
</div>
|
|
</div>
|
|
<div class="basiccon basiccon2 basiccon3">
|
|
<div class=" modeub modept modeac modepc">
|
|
<input class="headerightbun modeub modeac modepc" type="submit" value="提交"/>
|
|
</div>
|
|
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
<!--body结束-->
|
|
<!--footer开始-->
|
|
|
|
<!--有疑问请点我结束-->
|
|
<!--右侧悬浮窗口开始-->
|
|
</div>
|
|
{include file="public:footer"/}
|
|
{include file="public:scripts"/}
|
|
<script>
|
|
function bb() {
|
|
$("#xl").show();
|
|
$("#img_id").show();
|
|
}
|
|
|
|
function aa() {
|
|
$("#xl").hide();
|
|
$("#img_id").hide();
|
|
}
|
|
|
|
|
|
window.onload = function(){
|
|
if('{$baseinfo.codetype}'==1){
|
|
$("#xl").show();
|
|
$("#img_id").show();
|
|
}
|
|
}
|
|
|
|
/* 通用表单不带检查操作,失败跳转 */
|
|
$(function () {
|
|
$('.ajaxForm1').ajaxForm({
|
|
success: complete, // 这是提交后的方法
|
|
dataType: 'json'
|
|
});
|
|
});
|
|
|
|
|
|
/* 通用表单不带检查操作,失败跳转 */
|
|
$(function () {
|
|
$('.ajaxForm2').ajaxForm({
|
|
success: complete, // 这是提交后的方法
|
|
dataType: 'json'
|
|
});
|
|
$("#filelogo").change(function(e){
|
|
if(e.currentTarget.files.length!=0) {
|
|
if (e.currentTarget.files[0].size > (20 * 1024 * 1024)) {
|
|
layer.msg('图片超过20M', {icon: 5, time: 3000});
|
|
$(this).val('');
|
|
return false;
|
|
}
|
|
var fileObj = e.currentTarget.files[0];
|
|
var reader = new FileReader();
|
|
//使用该对象读取file文件
|
|
reader.readAsDataURL(fileObj);
|
|
//读取文件成功后执行的方法函数
|
|
reader.onload=function(e) {
|
|
// 读取成功后返回的一个参数e,整个的一个进度事件
|
|
console.log(e);
|
|
// 选择所要显示图片的img,要赋值给img的src就是e中target下result里面的base64编码格式的地址
|
|
$('#logo_img').attr('src',e.target.result);
|
|
}
|
|
}
|
|
});
|
|
});
|
|
//失败跳转
|
|
function complete(data) {
|
|
if (data.code == 1) {
|
|
layer.alert(data.msg, {icon: 6}, function (index) {
|
|
layer.close(index);
|
|
window.location.href = data.url;
|
|
});
|
|
} else {
|
|
layer.alert(data.msg, {icon: 5}, function (index) {
|
|
layer.close(index);
|
|
});
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
</script>
|
|
<!--右侧悬浮窗口结束-->
|
|
</body>
|
|
</html>
|