123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736 |
- <extend name="Public:base" />
- <block name="content">
- <div class="page-header">
- <h1>
- {$breadcrumb2}
- <small>
- <i class="icon-double-angle-right"></i>
- 基本信息
- </small>
- </h1>
- </div>
- <div class="row">
- <div class="col-xs-12">
- <form class="form-horizontal" id="form" method="post" action="{:U('Settings/save')}">
- <ul class="nav nav-tabs">
- <li class="active"><a href="#tab-general" data-toggle="tab">基本信息</a></li>
- <li><a href="#tab-fenxiao" data-toggle="tab">分销参数配置</a></li>
- <li><a href="#tab-weixinkefu" data-toggle="tab">微信客服消息配置</a></li>
- <li><a href="#tab-goods" data-toggle="tab">商品参数配置</a></li>
- <li><a href="#tab-images" data-toggle="tab">图片参数配置</a></li>
- <li><a href="#tab-sms" data-toggle="tab">短信参数配置</a></li>
- <li><a href="#tab-kefu" data-toggle="tab">客服配置</a></li>
- </ul>
- <div class="tab-content">
- <!-- 常规 START -->
- <div class="tab-pane active" id="tab-general">
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left">网站LOGO </label>
- <div class="col-sm-10">
- <div class="col-sm-10" id="thumb">
- <a href="#" data-toggle="image" class="img-thumbnail">
- <img osctype="image" <if condition="$site['SITE_ICON']['value']">
- src="__ROOT__/<?php echo resize($site['SITE_ICON']['value'],100,100); ?>"
- <else />
- src="__ROOT__/Common/image/no_image_40x40.jpg"
- </if> />
- </a>
- <input osctype="image_input" type="hidden" name="SITE_ICON" value="{$site.SITE_ICON.value|default=''}" id="input-image" />
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> * 网站标题 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="SITE_TITLE" class="col-xs-10 col-sm-10 form-control" value="{$site.SITE_TITLE.value|default=''}" type="text">
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> * 网站名称 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="SITE_NAME" class="col-xs-10 col-sm-10 form-control" value="{$site.SITE_NAME.value|default=''}" type="text">
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> * 网站描述 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <textarea name="SITE_DESCRIPTION" id="input-meta-description2" class="form-control" rows="5" >{$site.SITE_DESCRIPTION.value|default=''}</textarea>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> * 微信APPID </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="APPID" class="col-xs-10 col-sm-10 form-control" value="{$site.APPID.value|default=''}" type="text">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> * 微信APPSECRET </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="APPSECRET" class="col-xs-10 col-sm-10 form-control" value="{$site.APPSECRET.value|default=''}" type="text">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> * 微信商户号 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="MCHID" class="col-xs-10 col-sm-10 form-control" value="{$site.MCHID.value|default=''}" type="text">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 网址 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="SITE_URL" class="col-xs-10 col-sm-10 form-control" value="{$site.SITE_URL.value|default=''}" type="text">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 公众号关注地址 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="SHORT_URL" class="col-xs-10 col-sm-10 form-control" value="{$site.SHORT_URL.value|default=''}" type="text">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 系统版本 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="VERSION" class="col-xs-10 col-sm-10 form-control" value="{$site.VERSION.value|default=''}" type="text">
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 联系电话 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="site_tel" class="col-xs-10 col-sm-10 form-control" value="{$site.site_tel.value|default=''}" type="text">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 工作时间 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="site_woketime" class="col-xs-10 col-sm-10 form-control" value="{$site.site_woketime.value|default=''}" type="text">
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> QQ群 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="site_qqun" class="col-xs-10 col-sm-10 form-control" value="{$site.site_qqun.value|default=''}" type="text">
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> copyright </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="copyright" class="col-xs-10 col-sm-10 form-control" value="{$site.copyright.value|default=''}" type="text">
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> ICP备案号 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="SITE_ICP" class="col-xs-10 col-sm-10 form-control" value="{$site.SITE_ICP.value|default=''}" type="text">
- </div>
- </div>
- </div>
-
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 开启海淘</label>
- <div class="col-sm-10">
- <div class="clearfix">
- <label class="radio-inline"><input <?php if($site['openhaitao']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="openhaitao">开启</label>
- <label class="radio-inline"><input <?php if($site['openhaitao']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="openhaitao">关闭</label>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 站点状态</label>
- <div class="col-sm-10">
- <div class="clearfix">
- <label class="radio-inline"><input <?php if($site['WEB_SITE_CLOSE']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="WEB_SITE_CLOSE">开启</label>
- <label class="radio-inline"><input <?php if($site['WEB_SITE_CLOSE']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="WEB_SITE_CLOSE">关闭</label>
- </div>
- </div>
- </div>
- </div>
-
- <div class="tab-pane" id="tab-weixinkefu">
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 免费送券标题 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="lottery_msg_title" class="col-xs-10 col-sm-10 form-control" value="{$site.lottery_msg_title.value|default=''}" type="text">
-
- <span class="help-inline ">
- <span class="middle red">插入标签:"{uname}"可以获得会员名称,例如:{uname}恭喜您获得免单券一张 </span>
- </span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 免费送券描述 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="lottery_msg_desc" class="col-xs-10 col-sm-10 form-control" value="{$site.lottery_msg_desc.value|default=''}" type="text">
- </div>
- </div>
- </div>
-
-
-
- </div>
- <div class="tab-pane" id="tab-fenxiao">
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 开启分销</label>
- <div class="col-sm-10">
- <div class="clearfix">
- <label class="radio-inline"><input <?php if($site['opencommiss']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="opencommiss">开启</label>
- <label class="radio-inline"><input <?php if($site['opencommiss']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="opencommiss">关闭</label>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 二维码X坐标 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="user_qrcode_x" class="col-xs-10 col-sm-10 form-control" value="{$site.user_qrcode_x.value|default=''}" type="text">
- <span class="help-inline ">
- <span class="middle red">背景图中放置的二维码位置,距离左上角的X坐标</span>
- </span>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 二维码Y坐标 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="user_qrcode_y" class="col-xs-10 col-sm-10 form-control" value="{$site.user_qrcode_y.value|default=''}" type="text">
- <span class="help-inline ">
- <span class="middle red">背景图中放置的二维码位置,距离左上角的Y坐标</span>
- </span>
- </div>
- </div>
- </div>
-
- <div class="form-group" id="goods-image-row7">
- <label class="col-sm-2 control-label no-padding-left">团长二维码背景 </label>
- <div class="col-sm-10" id="image-row7">
- <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image7" num="7">
- <img osctype="goods_image7" <if condition="$site['user_qrcode_image']['value']">
- src="__ROOT__/<?php echo resize($site['user_qrcode_image']['value'],100,100); ?>"
- <else />
- src="__ROOT__/Common/image/no_image_40x40.jpg"
- </if> />
- </a>
- <input osctype="goods_image_input7" type="hidden" name="user_qrcode_image" value="{$site.user_qrcode_image.value|default=''}" id="input-image7" />
- <span class="help-inline ">
- <span class="middle red"><b class="blue"><a href="javascript:;" id="clear_user_qrcode">清空会员二维码</a></b>超级团长二维码,用于分享邀请会员</span>
- </span>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 佣金满多少可提现 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="commiss_money_limit" class="col-xs-10 col-sm-10 form-control" value="{$site.commiss_money_limit.value|default=''}" type="text">
- <span class="help-inline ">
- <span class="middle red">团长佣金满多少可提现,0表示不限制</span>
- </span>
- </div>
- </div>
- </div>
-
- </div>
- <div class="tab-pane" id="tab-goods">
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 减库存方式</label>
- <div class="col-sm-10">
- <div class="clearfix">
- <label class="radio-inline"><input <?php if($site['kucun_method']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="kucun_method">拍下立减</label>
- <label class="radio-inline"><input <?php if($site['kucun_method']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="kucun_method">支付完减</label>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 首页搜索关键词 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="index_searchkeywords" class="col-xs-10 col-sm-10 form-control" value="{$site.index_searchkeywords.value|default=''}" type="text">
- </div>
- <p style="color:red;line-height:30px;">多个关键词用逗号隔开,如:连衣裙,小白鞋</p>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 活动商品商家报名限制 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="subject_baom" class="col-xs-10 col-sm-10 form-control" value="{$site.subject_baom.value|default='0'}" type="text">
- </div>
- <p style="color:red;line-height:30px;">每个活动商品,商家能报名的最大数量,"0"表示不限制</p>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 抽奖商品回收时间 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="expr_day" class="col-xs-10 col-sm-10 form-control" value="{$site.expr_day.value|default='0'}" type="text">
- </div>
- <p style="color:red;line-height:30px;">单位:天</p>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 是否需要审核</label>
- <div class="col-sm-10">
- <div class="clearfix">
- <label class="radio-inline"><input <?php if($site['shenhegoods']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="shenhegoods">开启</label>
- <label class="radio-inline"><input <?php if($site['shenhegoods']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="shenhegoods">关闭</label>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 显示评论</label>
- <div class="col-sm-10">
- <div class="clearfix">
- <label class="radio-inline"><input <?php if($site['OPEN_COMMENT']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="OPEN_COMMENT">显示</label>
- <label class="radio-inline"><input <?php if($site['OPEN_COMMENT']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="OPEN_COMMENT">不显示</label>
- </div>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 自提是否自动收货</label>
- <div class="col-sm-10">
- <div class="clearfix">
- <label class="radio-inline"><input <?php if($site['ziti_shouhuo']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="ziti_shouhuo">是</label>
- <label class="radio-inline"><input <?php if($site['ziti_shouhuo']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="ziti_shouhuo">否</label>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 退款订单自动退款时间 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="autoshenrefundday" class="col-xs-10 col-sm-10 form-control" value="{$site.autoshenrefundday.value|default='5'}" type="text">
- </div>
- <p style="color:red;line-height:30px;">用户申请退款,卖家多少天没处理,自动转入退款流程</p>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 自动收货时间 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="autogetday" class="col-xs-10 col-sm-10 form-control" value="{$site.autogetday.value|default='0'}" type="text">
- </div>
- <p style="color:red;line-height:30px;">自动收货时长(商家发货后)</p>
- </div>
- </div>
- </div>
- <div class="tab-pane" id="tab-images">
-
- <div class="form-group" id="goods-image-row2">
- <label class="col-sm-2 control-label no-padding-left">平台登录图片 </label>
- <div class="col-sm-10" id="image-row2">
- <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image2" num="2">
- <img osctype="goods_image2" <if condition="$site['admin_backimage']['value']">
- src="__ROOT__/<?php echo resize($site['admin_backimage']['value'],100,100); ?>"
- <else />
- src="__ROOT__/Common/image/no_image_40x40.jpg"
- </if> />
- </a>
- <input osctype="goods_image_input2" type="hidden" name="admin_backimage" value="{$site.admin_backimage.value|default=''}" id="input-image2" />
- <span class="help-inline ">
- <span class="middle red">平台登录页面,封面图(400*300),(XXX|管理后台)这个也是图片。手动FTP替换地址:Common/image/pdd_small.png</span>
- </span>
- </div>
- </div>
- <div class="form-group" id="goods-image-row3">
- <label class="col-sm-2 control-label no-padding-left">商家登录图片 </label>
- <div class="col-sm-10" id="image-row3">
- <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image3" num="3">
- <img osctype="goods_image3" <if condition="$site['seller_backimage']['value']">
- src="__ROOT__/<?php echo resize($site['seller_backimage']['value'],100,100); ?>"
- <else />
- src="__ROOT__/Common/image/no_image_40x40.jpg"
- </if> />
- </a>
- <input osctype="goods_image_input3" type="hidden" name="seller_backimage" value="{$site.seller_backimage.value|default=''}" id="input-image3" />
- <span class="help-inline ">
- <span class="middle red">商家后台登录页面,封面图(400*300),(XXX|管理后台)这个也是图片。手动FTP替换地址:Common/image/pdd_small2.png</span>
- </span>
- </div>
- </div>
- <div class="form-group" id="goods-image-row6">
- <label class="col-sm-2 control-label no-padding-left">XXX|管理后台图片 </label>
- <div class="col-sm-10" id="image-row6">
- <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image6" num="6">
- <img osctype="goods_image6" <if condition="$site['admin_xxximage']['value']">
- src="__ROOT__/<?php echo resize($site['admin_xxximage']['value'],100,100); ?>"
- <else />
- src="__ROOT__/Common/image/no_image_40x40.jpg"
- </if> />
- </a>
- <input osctype="goods_image_input6" type="hidden" name="admin_xxximage" value="{$site.admin_xxximage.value|default=''}" id="input-image6" />
- <span class="help-inline ">
- <span class="middle red">尺寸207*32。</span>
- </span>
- </div>
- </div>
-
- <div class="form-group" id="goods-image-row4">
- <label class="col-sm-2 control-label no-padding-left">首页延迟加载图片 </label>
- <div class="col-sm-10" id="image-row4">
- <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image4" num="4">
- <img osctype="goods_image4" <if condition="$site['index_ly_image']['value']">
- src="__ROOT__/<?php echo resize($site['index_ly_image']['value'],100,100); ?>"
- <else />
- src="__ROOT__/Common/image/no_image_40x40.jpg"
- </if> />
- </a>
- <input osctype="goods_image_input4" type="hidden" name="index_ly_image" value="{$site.index_ly_image.value|default=''}" id="input-image4" />
-
- <span class="help-inline ">
- <span class="middle red">根据您上传的首页横图大小制作,图案居中</span>
- </span>
- </div>
- </div>
- <div class="form-group" id="goods-image-row5">
- <label class="col-sm-2 control-label no-padding-left">列表页延迟加载图片 </label>
- <div class="col-sm-10" id="image-row5">
- <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image5" num="5">
- <img osctype="goods_image5" <if condition="$site['fan_ly_image']['value']">
- src="__ROOT__/<?php echo resize($site['fan_ly_image']['value'],100,100); ?>"
- <else />
- src="__ROOT__/Common/image/no_image_40x40.jpg"
- </if> />
- </a>
- <input osctype="goods_image_input5" type="hidden" name="fan_ly_image" value="{$site.fan_ly_image.value|default=''}" id="input-image5" />
- <span class="help-inline ">
- <span class="middle red">根据您上传的商品方形图大小制作,图案居中(分类页,主题页等正方形延迟加载图片)</span>
- </span>
- </div>
- </div>
-
- <div class="form-group" id="goods-image-row8">
- <label class="col-sm-2 control-label no-padding-left">商品水印图片 </label>
- <div class="col-sm-10" id="image-row8">
- <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image8" num="8">
- <img osctype="goods_image8" <if condition="$site['WATER_BG']['value']">
- src="__ROOT__/<?php echo resize($site['WATER_BG']['value'],100,100); ?>"
- <else />
- src="__ROOT__/Common/image/no_image_40x40.jpg"
- </if> />
- </a>
- <input osctype="goods_image_input8" type="hidden" name="WATER_BG" value="{$site.WATER_BG.value|default=''}" id="input-image8" />
- <span class="help-inline ">
- <span class="middle red">水印图片放置在商品分享图的右下角</span>
- </span>
- </div>
- </div>
-
- <div class="form-group" id="goods-image-row9">
- <label class="col-sm-2 control-label no-padding-left">微信公众号二维码 </label>
- <div class="col-sm-10" id="image-row9">
- <a href="#" data-toggle="image" class="img-thumbnail" type="goods" id="thumb-image9" num="9">
- <img osctype="goods_image9" <if condition="$site['weixin_group']['value']">
- src="__ROOT__/<?php echo resize($site['weixin_group']['value'],100,100); ?>"
- <else />
- src="__ROOT__/Common/image/no_image_40x40.jpg"
- </if> />
- </a>
- <input osctype="goods_image_input9" type="hidden" name="weixin_group" value="{$site.weixin_group.value|default=''}" id="input-image9" />
- <span class="help-inline ">
- <span class="middle red"></span>
- </span>
- </div>
- </div>
-
-
- </div>
-
- <div class="tab-pane" id="tab-sms">
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left">商家审核成功短信通知 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <label class="radio-inline"><input <?php if($site['open_sms']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="open_sms">开启</label>
- <label class="radio-inline"><input <?php if($site['open_sms']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="open_sms">关闭</label>
- </div>
- <p style="color:red;line-height:30px;">短信接口申请地址 <a href="http://www.kingtto.cn/" target="_blank">http://www.kingtto.cn/</a></p>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 短信账户名 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="sms_username" class="col-xs-10 col-sm-10 form-control" value="{$site.sms_username.value|default=''}" type="text">
- </div>
- <p style="color:red;line-height:30px;"></p>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 短信密码 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="sms_password" class="col-xs-10 col-sm-10 form-control" value="{$site.sms_password.value|default=''}" type="text">
- </div>
- <p style="color:red;line-height:30px;"></p>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 短信平台会员ID </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="sms_userid" class="col-xs-10 col-sm-10 form-control" value="{$site.sms_userid.value|default=''}" type="text">
- </div>
- <p style="color:red;line-height:30px;"></p>
- </div>
- </div>
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 短信模板 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="sms_template" class="col-xs-10 col-sm-10 form-control" value="{$site.sms_template.value|default=''}" type="text">
- </div>
- <p style="color:red;line-height:30px;"></p>
- </div>
- </div>
-
-
- </div>
-
- <div class="tab-pane" id="tab-kefu">
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 客服选择</label>
- <div class="col-sm-10">
- <div class="clearfix">
- <label class="radio-inline"><input <?php if($site['open_duokefu']['value']==1){echo ' checked="checked"';} ?> type="radio" value="1" name="open_duokefu">网页在线客服</label>
- <label class="radio-inline"><input <?php if($site['open_duokefu']['value']==0){echo ' checked="checked"';} ?> type="radio" value="0" name="open_duokefu">QQ客服</label>
- </div>
- </div>
- </div>
-
- <div class="form-group">
- <label class="col-sm-2 control-label no-padding-left"> 网页客服接待人数 </label>
- <div class="col-sm-10">
- <div class="clearfix">
- <input name="kefu_person_need" class="col-xs-10 col-sm-10 form-control" value="{$site.kefu_person_need.value|default='0'}" type="text">
- </div>
- <p style="color:red;line-height:30px;">单个卖家客服可接待几个用户</p>
- </div>
- </div>
- </div>
- </div>
-
-
-
- </form>
- <div class="form-group">
- <label class="col-sm-1 control-label no-padding-left"> </label>
- <div class="col-sm-11">
- <button form="form" type="submit" class="btn btn-sm btn-primary">提交</button>
- </div>
- </div>
- </div>
- </div>
- </block>
- <block name="javascript">
- <script src="__PUBLIC__/fileupload/jquery.ui.widget.js"></script>
- <script src="__PUBLIC__/fileupload/jquery.fileupload.js"></script>
- <script>
- $(function(){
-
- // tooltips on hover button-upload
- $('[data-toggle=\'tooltip\']').tooltip({container: 'body', html: true});
- // Makes tooltips work on ajax generated content
- $(document).ajaxStop(function() {
- $('[data-toggle=\'tooltip\']').tooltip({container: 'body'});
- });
-
- $('#clear_user_qrcode').click(function(){
- $.ajax({
- url:'{:U("settings/clearuserqrcode")}',
- type:'post',
- dataType:'json',
- success:function(ret){
- if(ret.code ==1)
- {
- alert('清空成功');
- return false;
- }
- }
- })
- })
-
- $(document).delegate('a[data-toggle=\'image\']', 'click', function(e) {
- e.preventDefault();
-
- var index=$(this).attr('num');
- var type=$(this).attr('type');
- //alert(index);
-
- var element = this;
-
- if(index==undefined){
- $(element).popover({
- html: true,
- placement: 'right',
- trigger: 'manual',
- content: function() {
- return '<button type="button" id="thumb-image" class="btn btn-primary"><i class="icon-edit"></i></button> <button type="button" id="button-clear" class="btn btn-danger"><i class="icon-trash"></i></button>';
- }
- });
- }else{
- $(element).popover({
- html: true,
- placement: 'right',
- trigger: 'manual',
- content: function() {
- return '<button type="button" n="'+index+'" t="'+type+'" class="btn btn-primary button-image"><i class="icon-edit"></i></button> ';
- }
- });
- }
-
-
- $(element).popover('toggle');
-
- //商品图片
- $('#thumb-image').on('click', function() {
-
- //alert('333');
-
- $('#modal-image').remove();
-
- $('#form-upload').remove();
-
- $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input osctype="btn_upload_image" type="file" name="file" /></form>');
-
- $('#form-upload input[name=\'file\']').trigger('click');
-
- $(element).popover('hide');
-
- $('[osctype="btn_upload_image"]').fileupload({
-
- dataType: 'json',
- url: "{:U('Image/upload_image',array('dir'=>'shop'))}",
- add: function(e, data) {
- $parent = $('#thumb');
- $input = $parent.find('[osctype="image_input"]');
- $img = $parent.find('[osctype="image"]');
- data.formData = {old_goods_image:$input.val()};
- $img.attr('src', "__IMG__/loading.gif");
- data.submit();
- },
- done: function (e,data) {
-
- var image=data.result;
-
- $parent = $('#thumb');
- $input = $parent.find('[osctype="image_input"]');
- $img = $parent.find('[osctype="image"]');
- if(image) {
- // $img.prev('i').hide();
- $img.attr('src', '__ROOT__'+image.image_thumb);
- $img.show();
- $input.val(image.image);
- } else {
- alert('上传失败');
- }
- }
- });
- });
-
- $('.button-image').on('click', function() {
- $('#modal-image').remove();
-
- $('#form-upload').remove();
-
- var i=$(this).attr('n');
- var type=$(this).attr('t');
-
- $('body').prepend('<form enctype="multipart/form-data" id="form-upload" style="display: none;"><input osctype="btn_upload_image" type="file" name="file" /></form>');
-
- $('#form-upload input[name=\'file\']').trigger('click');
-
- $(element).popover('hide');
-
- $('[osctype="btn_upload_image"]').fileupload({
-
- dataType: 'json',
- url: "{:U('Image/upload_image/dir')}"+'/'+type,
- add: function(e, data) {
- $parent = $('#image-row'+i);
- $input = $parent.find('[osctype="'+type+'_image_input'+i+'"]');
- $img = $parent.find('[osctype="'+type+'_image'+i+'"]');
- var old_name='old_'+type+'_image';
- data.formData = {old_name:$input.val()};
- $img.attr('src', "__IMG__/loading.gif");
- data.submit();
- },
- done: function (e,data) {
-
- var image=data.result;
-
- $parent = $('#'+type+'-image-row'+i);
- $input = $parent.find('[osctype="'+type+'_image_input'+i+'"]');
- $img = $parent.find('[osctype="'+type+'_image'+i+'"]');
- if(image) {
- // $img.prev('i').hide();
- $img.attr('src', '__ROOT__/'+image.image_thumb);
- $img.show();
- $input.val(image.image);
- } else {
- alert('上传失败');
- }
- }
- });
-
- });
-
- $('#button-clear').on('click', function() {
- $(element).find('img').attr('src', $(element).find('img').attr('data-placeholder'));
-
- $(element).parent().find('input').attr('value', '');
-
- $(element).popover('hide');
- });
- });
-
-
- });
-
- </script>
- </block>
|