basic.html 40.2 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688
<include file="public/layout"/>
<style type="text/css">
	.regBox{
		margin: 10px 0;
	}
	.regBox span{
		vertical-align: middle;
		display: inline-block;
		*display: inline;
		*zoom: 1;
		padding:10px 10px 0 0;
	}
</style>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>

<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>商城设置</h3>
                <h5>网站全局内容基本选项设置</h5>
            </div>
            <ul class="tab-base nc-row">
                <li><a href="{:U('System/index')}"><span>商城信息</span></a></li>
                <li><a href="{:U('System/index',array('inc_type'=>'basic'))}" class="current"><span>基本设置</span></a></li>
                <li><a href="{:U('System/index',array('inc_type'=>'shopping'))}"><span>购物设置</span></a></li>
                <li><a href="{:U('System/index',array('inc_type'=>'sms'))}"><span>短信设置</span></a></li>
                <!--<li><a href="{:U('System/index',array('inc_type'=>'smtp'))}"><span>邮件设置</span></a></li>-->
                <!--<li><a href="{:U('System/index',array('inc_type'=>'water'))}"><span>水印设置</span></a></li>-->
                <!--<li><a href="{:U('System/index',array('inc_type'=>'distribut'))}" ><span>分销设置</span></a></li>-->
                <!--<if condition="$isopencard"><li><a href="{:U('System/index',array('inc_type'=>'cardsetup'))}"><span>PLUS设置</span></a></li></if>-->
                <!--<li><a href="{:U('System/index',array('inc_type'=>'wap'))}"><span>WAP设置</span></a></li>-->
                <!--<li><a href="{:U('System/index',array('inc_type'=>'extend'))}"><span>扩展设置</span></a></li>-->
            </ul>
        </div>
    </div>
    <!-- 操作说明 -->
   <!-- <div class="explanation" id="explanation">
        <div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span id="explanationZoom" title="收起提示"></span></div>
        <ul>
            <li>包括基础设置、购物、邮件、水印和分销等相关模块。</li>
        </ul>
    </div>-->
    <form method="post" enctype="multipart/form-data" name="form1" action="{:U('System/handle')}">
        <input type="hidden" name="inc_type" value="{$inc_type}">
        <div class="ncap-form-default">
            <dl class="row dn">
                <dt class="tit">
                    <label for="reg_integral">会员注册赠送积分</label>
                </dt>
                <dd class="opt">
                    <input id="reg_integral" name="reg_integral"  maxlength="10"
                           onkeyup="this.value=this.value.replace(/\D/g,'')"
						   onkeydown="strkeydown(event, this, 'sumbitbtn')"
                           value="{$config.reg_integral|default=1}" class="input-txt" type="text">
                    <font style="color: red">*</font>
                    <span class="err cr">只能输入整数</span>
                    <p class="notic">会员注册赠送积分</p>
                </dd>
            </dl>
            <!--<dl class="row">-->
                <!--<dt class="tit">-->
                    <!--<label for="file_size">附件上传大小</label>-->
                <!--</dt>-->
                <!--<dd class="opt">-->
                    <!--<select id="file_size" name="file_size">-->
                        <!--<option value="1" <if condition="$config[file_size] eq 1">selected="selected"</if>>1M</option>-->
                        <!--<option value="2" <if condition="$config[file_size] eq 2">selected="selected"</if>>2M</option>-->
                        <!--<option value="3" <if condition="$config[file_size] eq 3">selected="selected"</if>>3M</option>-->
                        <!--<option value="5" <if condition="$config[file_size] eq 4">selected="selected"</if>>5M</option>-->
                        <!--<option value="10" <if condition="$config[file_size] eq 10">selected="selected"</if>>10M</option>-->
                        <!--<option value="50" <if condition="$config[file_size] eq 50">selected="selected"</if>>50M</option>-->
                        <!--<option value="100" <if condition="$config[file_size] eq 100">selected="selected"</if>>100M</option>-->
                    <!--</select>-->

                    <!--<p class="notic">附件上传大小限制</p>-->
                <!--</dd>-->
            <!--</dl>-->
            <dl class="">
                <dt class="tit">
                    <label for="default_storage">默认库存</label>
                </dt>
                <dd class="opt">
                    <input pattern="^\d{1,}$" id="default_storage" maxlength="15"
                           onkeyup="this.value=this.value.replace(/\D/g,'')"
						   onkeydown="strkeydown(event, this, 'sumbitbtn')"
                           name="default_storage" value="{$config.default_storage|default=100}" class="" type="text" style="width: 80px;">
                    <font style="color: red">*</font>
                    <span class="err cr">只能输入整数</span>
                    <p class="notic">添加商品的默认库存</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="warning_storage">库存预警数</label>
                </dt>
                <dd class="opt">
                    <input id="warning_storage"  pattern="^\d{1,}$" name="warning_storage" maxlength="8"
                            onkeyup="this.value=this.value.replace(/\D/g,'')"
							onkeydown="strkeydown(evemt, this, 'sumbitbtn')"   
                            value="{$config.warning_storage|default=10}"  type="text"  style="width: 80px;">
                    <font style="color: red">*</font>
                    <span class="err cr">只能输入整数</span>
                    <p class="notic">库存预警,当商品库存少于库存预警数,将在商品列表页库存显示红色</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="distribut_need">满多少才能提现</label>
                </dt>
                <dd class="opt">
                    <input pattern="^\d{1,}$" name="distribut_need" id="distribut_need" maxlength="10"
                           onkeyup="this.value=this.value.replace(/\D/g,'')"
						   onkeydown="strkeydown(event, this, 'sumbitbtn')"
                           value="{$config.distribut_need|default=100}" class="" type="text" style="width: 80px;">
                    <font style="color: red">*</font>
                    <span class="err cr">只能输入整数</span>

                    <p class="notic">需满足设置的最少提现额度才能进行提现</p>
                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">
                    <label for="distribut_min">最低提现额度</label>
                </dt>
                <dd class="opt">
                    <input pattern="^\d{1,}$" name="distribut_min" id="distribut_min" maxlength="10"
                           onkeyup="this.value=this.value.replace(/\D/g,'')"
						   onkeydown="strkeydown(event, this, 'sumbitbtn')"
                           value="{$config.distribut_min|default=100}" class="" type="text" style="width: 80px;">
                    <font style="color: red">*</font>
                    <span class="err cr">只能输入整数</span>

                    <p class="notic">最少提现多少才能提现</p>
                </dd>
            </dl>
            <dl class="row dn">
                <dt class="tit">
                    <label for="tax">发票税率</label>
                </dt>
                <dd class="opt">
                    <input pattern="^(?!0+(?:\.0+)?$)(?:[1-9]\d*|0)(?:\.\d{1,2})?$" maxlength="3"
                           onkeyup="this.value=this.value.replace(/\D/g,'')"
						   onkeydown="strkeydown(event, this, 'sumbitbtn')"
                           name="tax" id="tax" value="0" class="input-txt" type="text">%
                    <font style="color: red">*</font>
                    <span class="err cr">只能输入整数</span>
                    <p class="notic">当买家需要发票的时候就要增加[商品金额]*[税率]的费用</p>
                </dd>
            </dl>
            <dl class="row" >
                <dt class="tit">
                    <label for="hot_keywords">首页热门搜索词</label>
                </dt>
                <dd class="opt">
                    <input id="hot_keywords" name="hot_keywords" maxlength='120' 
					   onkeydown="strkeydown(event, this, 'sumbitbtn')"
					   value="{$config.hot_keywords}" class="input-txt" type="text">
                    <font style="color: red"></font>
                    <span class="err cr">多个以|分开,如:面膜|护肤</span>
                    <p class="notic"></p>
                </dd>
            </dl>
            <dl class="row" >
                <dt class="tit">
                    <label for="hot_keywords">分类可选设置</label>
                </dt>
                <dd class="opt">
                    <label><input class="checkbox" name="categoryset1" id="categoryset1" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="stripos($config[categoryset],',1,') nheq false || empty($config[categoryset])">checked</if>>分类</label>
                    <label><input class="checkbox" name="categoryset2"  id="categoryset2" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="2" ck="mod-system" type="checkbox"  <if condition="stripos($config[categoryset],',2,') nheq false">checked</if>>国别</label>
                    <label><input class="checkbox"  name="categoryset3" id="categoryset3" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="3" ck="mod-system" type="checkbox"  <if condition="stripos($config[categoryset],',3,') nheq false">checked</if>>品牌</label>

                </dd>
            </dl>
            <dl class="row" style="">
                <dt class="tit">
                    <label for="refund_type">退款方式</label>
                </dt>
                <dd class="opt">
                    <input id="refund_type0" type="radio" name="refund_type" value="0"  onkeydown="strkeydown(event, this, 'sumbitbtn')"
                    <if condition="$config[refund_type] eq 0"> checked </if>><label for="refund_type0">用户余额</label>  &nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="refund_type1" type="radio" name="refund_type" value="1"  onkeydown="strkeydown(event, this, 'sumbitbtn')"
                    <if condition="$config[refund_type] eq 1"> checked </if>><label for="refund_type1">原路返回</label>  &nbsp;&nbsp;&nbsp;&nbsp;

                </dd>
            </dl>


            <if condition="$isopenkefu gt 0">
               <dl class="row">
                <dt class="tit">
                    <label for="ischat_type">在线客服</label>
                </dt>
                <dd class="opt">
                    <input id="ischat_type0" type="radio" name="is_chat" value="1"  onkeydown="strkeydown(event, this, 'sumbitbtn')"
                    <if condition="$config[is_chat] eq 1"> checked </if>><label for="ischat_type0">开启</label>  &nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="ischat_type1" type="radio" name="is_chat" value="0"  onkeydown="strkeydown(event, this, 'sumbitbtn')"
                    <if condition="$config[is_chat] eq 0"> checked </if>><label for="ischat_type1">关闭</label>  &nbsp;&nbsp;&nbsp;&nbsp;

                </dd>
            </dl>
            </if>

            <dl class="row">
                <dt class="tit">是否开启自动匹配门店</dt>
                <dd class="opt">
                    <div class="onoff">
                        <label for="is_sort_storage1" class="cb-enable <if condition='$config[is_sort_storage] eq 1'>selected</if>">开启</label>
                        <label for="is_sort_storage0" class="cb-disable <if condition='$config[is_sort_storage] neq 1'>selected</if>">关闭</label>
                        <input id="is_sort_storage1" name="is_sort_storage" onkeydown="strkeydown(event, this, 'sumbitbtn')"
                        <if condition="$config[is_sort_storage] eq 1"> checked </if> value="1" type="radio">
                        <input id="is_sort_storage0" name="is_sort_storage" onkeydown="strkeydown(event, this, 'sumbitbtn')"
                        <if condition="$config[is_sort_storage] eq 0"> checked </if> value="0" type="radio">
                    </div>
                    <p class="notic">开启则获取距离当前用户位置最近的门店</p>
                </dd>
            </dl>

            <!--可选-->
            <dl class="row">
                <dt class="tit">可选选项</dt>
                <dd class="opt">
                    <label><input class="checkbox" name="jfcz"  id="jfcz" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox"  <if condition="$config[jfcz_switch]">checked</if>>是否显示积分充值</label>
                    <label><input class="checkbox"  name="dhwz" id="dhwz" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox"  <if condition="$config[dhwz_switch]">checked</if>>是否显示兑换微券</label>
                    <if condition="$erpid">
                        <label><input class="checkbox"  name="yckcz" id="yckcz" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox"  <if condition="$config['yckcz_switch']">checked</if>>是否预存款充值</label>
                        <!--是否平摊至单品   空代表平摊   1代表不平摊-->
                        <label><input class="checkbox"  name="ispt_goods" id="ispt_goods" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox"  <if condition="empty($config[ispt_goods])">checked</if>>是否平摊至单品</label>
                    </if>
                    <label><input class="checkbox"  name="is_tx_wx" id="is_tx_wx" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_tx_wx]">checked</if>>是否开通提现到微信零钱</label>


                    <label><input class="checkbox"  name="is_brithday" id="is_brithday" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_brithday]">checked</if>>生日是否默认新历</label>

                    <label><input class="checkbox"  name="is_flash_return" id="is_flash_return" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_flash_return]">checked</if>>秒杀数量超出部分是否自动退款</label>
                    <br>
                    <label><input class="checkbox"  name="is_fast_reg" id="is_fast_reg" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_fast_reg]">checked</if>>是否使用会员快速注册</label>

                    <label><input class="checkbox"  name="is_close_quan" id="is_close_quan" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_close_quan]">checked</if>>是否关闭使用优惠券</label>

                    <label><input class="checkbox"  name="is_newchoosestore" id="is_newchoosestore" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_newchoosestore]">checked</if>>是否启用新版选择门店</label>

                    <label><input class="checkbox"  name="is_closecoupon" id="is_closecoupon" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_closecoupon]">checked</if>>是否关闭免费领取优惠券</label>

                    <label><input class="checkbox"  name="is_regstores" id="is_regstores" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_regstores]">checked</if>>购买门店是否默认登记门店</label>

                    <label><input class="checkbox"  name="is_newsgoodstype" id="is_newsgoodstype" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_newsgoodstype]">checked</if>>是否启用新版商城分类</label>

                    <br>
                    <label><input class="checkbox"  name="is_closetxbank" id="is_closetxbank" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_closetxbank]">checked</if>>是否关闭提现至银行</label>
                    <if condition="$erpid">
                    <label style="display: none"><input class="checkbox"  name="is_newsales_rules" id="is_newsales_rules" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[is_newsales_rules]">checked</if>>是否启用极速获取门店库存</label>
                    </if>


                </dd>
            </dl>
            <dl class="row">
                <dt class="tit">会员中心工具与服务</dt>
                <dd class="opt">
                    <volist name="usertool" id="list">
                        <label><input class="checkbox"  name="usertool[]" id="usertool" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="{$list.id}" ck="mod-system" type="checkbox"    <if condition='$config[usertool] && in_array($list.id,$config[usertool])'>checked</if>  >{$list.name}</label>
                    </volist>
                    <p class="notic">打勾代表在会员中心不显示该选项</p>
                </dd>
            </dl>
            <if condition="$erpid">
            <dl class="row">
                <dt class="tit">
                    <label for="point_rate">销售规则</label>
                </dt>
                <dd class="opt">
                    <input id="radio0" type="radio" name="sales_rules" value="1"  onkeydown="strkeydown(event, this, 'sumbitbtn')"
                    <if condition="$config[sales_rules] eq 1 or $config[sales_rules] eq 0"> checked </if>><label for="radio0">线上销售</label>  &nbsp;&nbsp;&nbsp;&nbsp;

                    <if condition="$erpid">
                    <input id="radio1" type="radio" name="sales_rules" value="2"  onkeydown="strkeydown(event, this, 'sumbitbtn')"
                    <if condition="$config[sales_rules] eq 2"> checked </if>><label for="radio1">门店销售</label>  &nbsp;&nbsp;&nbsp;&nbsp;




                    <p class="notic">线上销售取手店后台设置的库存,门店销售取线下门店库存</p>
                </if>

                </dd>
            </dl>
            </if>

            <dl class="row">
                <dt class="tit">
                    <label for="invitation_rate">邀请规则</label>
                </dt>
                <dd class="opt">
                    <div style="margin: 10px 0;" >
                    <input type="radio"  name="inv_type" id="inv_type1" value="0"  onkeydown="strkeydown(event, this, 'sumbbtn')"
                    <if condition="$config[inv_type] eq 0"> checked </if>><label for="inv_jf">积分</label>  &nbsp;&nbsp;
                    <input id="inv_jf" type="text" name="inv_jf" value="{$config.inv_jf}" onkeyup='this.value=this.value.replace(/\D/gi,"")'/>&nbsp;&nbsp;&nbsp;&nbsp;

                    <input type="radio" name="inv_type" id="inv_type2" value="1"  onkeydown="strkeydown(event, this, 'sumbbtn')"
                    <if condition="$config[inv_type] eq 1"> checked </if>>
                    <label for="radio1">微券</label>  &nbsp;&nbsp;
                    <select name="inv_coupon_id" >
                        <option value="">请选择</option>
                        <volist name="inv_coupon" id="inv_coupon">
                            <if condition="$inv_coupon[send_end_time] egt time()">
                               <option value="{$inv_coupon.id}" <if condition="$inv_coupon[id] eq $config[inv_coupon]"> selected="selected"</if> >{$inv_coupon.name}</option>
                            </if>
                        </volist>
                    </select>
                     &nbsp;
                     <if condition="$isBool">
                      <input type="radio"  name="inv_type" id="inv_type3" value="2"  onkeydown="strkeydown(event, this, 'sumbbtn')"
                        <if condition="$config[inv_type] eq 2"> checked </if>><label for="inv_type3">成长值</label>  &nbsp;&nbsp;
                         <input id="inv_cz" type="text" name="inv_cz" value="{$config.inv_cz}" onkeyup='this.value=this.value.replace(/\D/gi,"")'/>&nbsp;
                     </if>


                    </div>
                </dd>
            </dl>

             <dl class="row">
                <dt class="tit">
                    <label for="reg_rate">注册规则</label>
                </dt>
                <dd class="opt">
                    <input id="default" class="reg_type" type="radio" name="reg_type" value="0"  onkeydown="strkeydown(event, this, 'sumbbtn')"
                    <if condition="$config[reg_type] eq 0"> checked </if>><label for="default">默认</label>  &nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="reg" class="reg_type" type="radio" name="reg_type" value="1" onkeydown="strkeydown(event, this, 'sumbbtn')"
                    <if condition="$config[reg_type] eq 1"> checked </if>><label for="reg">注册信息</label>  &nbsp;&nbsp;&nbsp;&nbsp;
                		<!--默认-->
                		<div id="reg_type0" style="margin: 10px 0;"  <if condition="$config[reg_type] eq 1"> class="dn" </if>>
                			<input type="radio"  name="reg_def_ty" id="reg_default0" value="0"  onkeydown="strkeydown(event, this, 'sumbbtn')"
                    	<if condition="$config[reg_def_ty] eq 0"> checked </if>><label for="reg_default0">积分</label>  &nbsp;&nbsp;
                    	<input id="jf" type="text" name="jf" value="{$config.jf}" onkeyup='this.value=this.value.replace(/\D/gi,"")'/>&nbsp;&nbsp;&nbsp;&nbsp;

                    	<input type="radio" name="reg_def_ty" id="reg_default1" value="1"  onkeydown="strkeydown(event, this, 'sumbbtn')"
                    	<if condition="$config[reg_def_ty] eq 1"> checked </if>>
                            <label for="reg_default1">微券</label>  &nbsp;&nbsp;
                			<select name="coupon_id" style="">
                                <option value="">请选择</option>
                                <volist name="coupon" id="coupon">
                                    <if condition="$coupon[send_end_time] egt time()">
                                        <option value="{$coupon.id}" <if condition="$coupon[id] eq $config[coupon]"> selected="selected"</if> >{$coupon.name}</option>
                                    </if>
                                </volist>
                			</select>&nbsp;

                        <if condition="$isBool">
                          <input type="radio"  name="reg_def_ty" id="reg_default2" value="2"  onkeydown="strkeydown(event, this, 'sumbbtn')"
                           <if condition="$config[reg_def_ty] eq 2"> checked </if>><label for="reg_default2">成长值</label>  &nbsp;&nbsp;
                             <input id="reg_cz" type="text" name="reg_cz" value="{$config.reg_cz}" onkeyup='this.value=this.value.replace(/\D/gi,"")'/>
                        </if>


                		</div>
                		<!--注册信息-->
                		<div id="reg_type1" class="regBox" <if condition="$config[reg_type] eq 0"> style="display:none;" </if>>
                			<span>
                                <input type="checkbox" name="name" id="name" value="1" <if condition="$config[name_state] eq 1"> checked </if> />&nbsp;姓名&nbsp;<input type="text" name="name_v" id="name_v" value="{$config.name}"  onkeyup='this.value=this.value.replace(/\D/gi,"")'/>&nbsp;
                                   <if condition="$isBool">
                                         <select name="name_val_type">
                                              <option value="0" <if condition="$config[name_val_type] eq 0"> selected="selected"</if> >积分</option>
                                              <option value="1" <if condition="$config[name_val_type] eq 1"> selected="selected"</if> >成长值</option>
                                        </select>
                                   <else/>
                                       积分<input type="hidden" value="0" name="name_val_type">
                                   </if>

                            </span>
                            <span><input type="checkbox" name="sex_state" id="sex_state" value="1" <if condition="$config[sex_state] eq 1"> checked </if> />&nbsp;性别&nbsp;<input type="text" name="sex" id="sex" value="{$config.sex}"  onkeyup='this.value=this.value.replace(/\D/gi,"")'/>&nbsp;
                                     <if condition="$isBool">
                                         <select name="sex_state_type">
                                              <option value="0" <if condition="$config[sex_state_type] eq 0"> selected="selected"</if> >积分</option>
                                              <option value="1" <if condition="$config[sex_state_type] eq 1"> selected="selected"</if> >成长值</option>
                                        </select>
                                    <else/>
                                       积分<input type="hidden" value="0" name="sex_state_type">
                                    </if>
                            </span>
                            <span><input type="checkbox" name="birthday" id="birthday" value="1" <if condition="$config[birthday_state] eq 1"> checked </if> />&nbsp;会员生日&nbsp;<input type="text" name="birthday_v" id="birthday_v" value="{$config.birthday}" onkeyup='this.value=this.value.replace(/\D/gi,"")'/>&nbsp
                                    <if condition="$isBool">
                                         <select name="birthday_type">
                                             <option value="0" <if condition="$config[birthday_type] eq 0"> selected="selected"</if> >积分</option>
                                             <option value="1" <if condition="$config[birthday_type] eq 1"> selected="selected"</if> >成长值</option>
                                        </select>
                                    <else/>
                                       积分<input type="hidden" value="0" name="birthday_type">
                                    </if>
                            </span>
                			<span><input type="checkbox" name="idcard" id="idcard" value="1" <if condition="$config[idcard_state] eq 1"> checked </if> />&nbsp;身份证&nbsp;<input type="text" name="idcard_v" id="idcard_v" value="{$config.idcard}"  onkeyup='this.value=this.value.replace(/\D/gi,"")'/>
                                     <if condition="$isBool">
                                        <select name="idcard_type">
                                             <option value="0" <if condition="$config[idcard_type] eq 0"> selected="selected"</if> >积分</option>
                                             <option value="1" <if condition="$config[idcard_type] eq 1"> selected="selected"</if> >成长值</option>
                                        </select>
                                    <else/>
                                       积分<input type="hidden" value="0" name="idcard_type">
                                    </if>
                            </span>
                			<span><input type="checkbox" name="address" id="address" value="1" <if condition="$config[address_state] eq 1"> checked </if> />&nbsp;地址&nbsp;<input type="text" name="address_v" id="address_v" value="{$config.address}" onkeyup='this.value=this.value.replace(/\D/gi,"")'/>
                                    <if condition="$isBool">
                                        <select name="address_type">
                                             <option value="0" <if condition="$config[address_type] eq 0"> selected="selected"</if> >积分</option>
                                             <option value="1" <if condition="$config[address_type] eq 1"> selected="selected"</if> >成长值</option>
                                        </select>
                                    <else/>
                                       积分<input type="hidden" value="0" name="address_type">
                                    </if>
                            </span>
                			<span><input type="checkbox" name="pick"  id="pick" value="1" <if condition="$config[pick_state] eq 1"> checked </if> />&nbsp;所属门店&nbsp;<input type="text" name="pick_v" id="pick_v" value="{$config.pick}" onkeyup='this.value=this.value.replace(/\D/gi,"")'/>&nbsp;
                                     <if condition="$isBool">
                                        <select name="pick_type">
                                              <option value="0" <if condition="$config[pick_type] eq 0"> selected="selected"</if> >积分</option>
                                              <option value="1" <if condition="$config[pick_type] eq 1"> selected="selected"</if> >成长值</option>
                                        </select>
                                    <else/>
                                       积分<input type="hidden" value="0" name="pick_type">
                                    </if>
                            </span>
                            <span><input type="checkbox" name="introducer_state" id="introducer_state" value="1" <if condition="$config[introducer_state] eq 1"> checked </if> />&nbsp;介绍人&nbsp;<input type="text" name="introducer" id="introducer" value="{$config.introducer}"  onkeyup='this.value=this.value.replace(/\D/gi,"")'/>&nbsp;
                                      <if condition="$isBool">
                                        <select name="introducer_type">
                                             <option value="0" <if condition="$config[introducer_type] eq 0"> selected="selected"</if> >积分</option>
                                             <option value="1" <if condition="$config[introducer_type] eq 1"> selected="selected"</if> >成长值</option>
                                        </select>
                                    <else/>
                                       积分<input type="hidden" value="0" name="introducer_type">
                                    </if>
                            </span>

                           <span> <label for="radio1">微券</label>  &nbsp;&nbsp;<select name="reginfo_coupon" style="">
                                <option value="">请选择</option>
                                <volist name="reginfo_coupon" id="reginfo_coupon">
                                    <if condition="$reginfo_coupon[send_end_time] egt time()">
                                        <option value="{$reginfo_coupon.id}" <if condition="$reginfo_coupon[id] eq $config[reginfo_coupon]"> selected="selected"</if> >{$reginfo_coupon.name}</option>
                                    </if>
                                </volist>
                			</select>


       </span>

                        </div>
                </dd>
            </dl>

<!-- 会员兴趣标签 -->
<if condition="$isBool">
<dl class="row" >
    <dt class="tit">
        <label for="hot_keywords">会员兴趣标签</label>
    </dt>
    <dd class="opt">
        <label><input class="checkbox" name="user_label_set" id="user_label_set" onkeydown="strkeydown(event, this, 'sumbitbtn')" value="1" ck="mod-system" type="checkbox" <if condition="$config[user_label_set]">checked</if>>启用</label>
        &nbsp;&nbsp;<input type="text" name="user_label_val" id="user_label_val" value="{$config.user_label_val}" onkeyup='this.value=this.value.replace(/\D/gi,"")'/>&nbsp;
         <if condition="$isBool">
                                     <select name="user_label_type">
                                             <option value="0" <if condition="$config[user_label_type] eq 0"> selected="selected"</if> >积分</option>
                                            <option value="1" <if condition="$config[user_label_type] eq 1"> selected="selected"</if> >成长值</option>
                                        </select>
                                    <else/>
                                       积分<input type="hidden" value="0" name="pick_type">
                                    </if>
    </dd>
</dl>
</if>

<dl class="row" >
    <dt class="tit">
        <label for="service_bz">保障服务</label>
    </dt>
    <dd class="opt">
        <textarea id="service_bz" name="service_bz" style="width:400px;height: 60px">{$config.service_bz}</textarea>

        <font style="color: red"></font>
        <span class="err cr"></span>
        <p class="notic"></p>
    </dd>
</dl>

<dl class="row" >
    <dt class="tit">
        <label for="vipqy_remark">会员专项特权说明</label>
    </dt>
    <dd class="opt">
        <textarea id="vipqy_remark" name="vipqy_remark" style="width:400px;height: 120px">{$config.vipqy_remark}</textarea>
        <font style="color: red"></font>
        <span class="err cr"></span>
        <p class="notic"></p>
    </dd>
</dl>

            <div class="bot">
			    <a id='sumbitbtn' href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onclick="mcheck()">确认提交</a></div>
        </div>
    </form>
</div>

<div id="goTop">
    <a href="JavaScript:void(0);" id="btntop">
        <i class="fa fa-angle-up"></i>
    </a>
    <a href="JavaScript:void(0);" id="btnbottom">
        <i class="fa fa-angle-down"></i>
    </a>
</div>
</body>
<script type="text/javascript">
    $(".reg_type").click(function () {
        var reg_type = $(this).val();
        if(reg_type ==0){
            $("#reg_type1").fadeOut(3);
            $("#reg_type0").fadeIn(3);
        }
        else{
            $("#reg_type0").fadeOut(3);
            $("#reg_type1").fadeIn(3);

        }
    })

      function mcheck(){

		/*默认库存*/
        var def_sto=$("#default_storage").val();
        if(def_sto==""){
             $("#default_storage").parent().find("span").text("请输入默认库存");
             layer.msg('请输入默认库存', {icon: 2,time:1000},function(){
                 $("#default_storage").focus();
             });
             return;
        }  
		
		
		 /*库存预警数*/
        var warning=$("#warning_storage").val();
        if(warning==""){
             $("#warning_storage").parent().find("span").text("请输入库存预警数");
             layer.msg('请输入库存预警数', {icon: 2,time:1000},function(){
                 $("#warning_storage").focus();
             });
             return;
        }  
				
		/*满多少才能提现*/
        var need=$("#distribut_need").val();
        if(need==""){
             $("#distribut_need").parent().find("span").text("请输入满多少才能提现");
             layer.msg('请输入满多少才能提现', {icon: 2,time:1000},function(){
                 $("#distribut_need").focus();
             });
             return;
        }
        if(parseInt(need)<1){
            $("#distribut_need").parent().find("span").text("满多少才能提现不能小于1元");
            layer.msg('请输入满多少才能提现', {icon: 2,time:1000},function(){
                $("#distribut_need").focus();
            });
            return;
        }


		/*最少提现额度*/
        var min=$("#distribut_min").val();
        if(min==""){
             $("#distribut_min").parent().find("span").text("请输入最少提现额度");
             layer.msg('请输入最少提现额度', {icon: 2,time:1000},function(){
                 $("#distribut_min").focus();
             });
             return;
        }

        if(parseInt(min)<1){
              $("#distribut_min").parent().find("span").text("最少提现额度不能小于1元");
              layer.msg('请输入最少提现额度', {icon: 2,time:1000},function(){
                  $("#distribut_min").focus();
              });
              return;
        }

          /*发票税率*/
        var tax=$("#tax").val();
        if(tax==""){
             $("#tax").parent().find("span").text("请输入发票税率");
             layer.msg('请输入发票税率', {icon: 2,time:1000},function(){
                 $("#tax").focus();
             });
             return;
        }

        //邀请
          if ($("#inv_jf").val()=="" && $('#inv_type1').prop('checked')==true)
          {
              layer.msg('邀请送积分不能为空,请输入', {icon: 2,time:1000},function(){
                  $("#inv_jf").focus();
              });
              return false;
          }

        //注册
          if ($("#default").prop('checked')) {

              if ($("#jf").val()=="" && $('#reg_default0').prop('checked')==true)
              {
                  layer.msg('注册积分不能为空,请输入', {icon: 2,time:1000},function(){
                      $("#jf").focus();
                  });
                  return false;
              }
          }


//          if ($("#reg").prop('checked')) {
//              if ($("#name_v").val() != "" && $('#name').prop('checked') == false) {
//                  layer.msg('请打勾姓名', {icon: 2, time: 1000}, function () {
//                      $("#name_v").focus();
//                  });
//                  return false;
//              }
//              if ($("#name_v").val() == "" && $('#name').prop('checked') == true) {
//                  layer.msg('请输入姓名积分', {icon: 2, time: 1000}, function () {
//                      $("#name_v").focus();
//                  });
//                  return false;
//              }
//
//              if ($("#birthday_v").val() != "" && $('#birthday').prop('checked') == false) {
//                  layer.msg('请打勾会员生日', {icon: 2, time: 1000}, function () {
//                      $("#birthday_v").focus();
//                  });
//                  return false;
//              }
//              if ($("#birthday_v").val() == "" && $('#birthday').prop('checked') == true) {
//                  layer.msg('请输入会员生日积分', {icon: 2, time: 1000}, function () {
//                      $("#birthday_v").focus();
//                  });
//                  return false;
//              }
//
//              if ($("#idcard_v").val() != "" && $('#idcard').prop('checked') == false) {
//                  layer.msg('请打勾身份证', {icon: 2, time: 1000}, function () {
//                      $("#idcard_v").focus();
//                  });
//                  return false;
//              }
//              if ($("#idcard_v").val() == "" && $('#idcard').prop('checked') == true) {
//                  layer.msg('请输入身份证积分', {icon: 2, time: 1000}, function () {
//                      $("#idcard_v").focus();
//                  });
//                  return false;
//              }
//
//              if ($("#address_v").val() != "" && $('#address').prop('checked') == false) {
//                  layer.msg('请打勾地址', {icon: 2, time: 1000}, function () {
//                      $("#address_v").focus();
//                  });
//                  return false;
//              }
//              if ($("#address_v").val() == "" && $('#address').prop('checked') == true) {
//                  layer.msg('请输入地址积分', {icon: 2, time: 1000}, function () {
//                      $("#address_v").focus();
//                  });
//                  return false;
//              }
//
//              if ($("#pick_v").val() != "" && $('#pick').prop('checked') == false) {
//                  layer.msg('请打勾所属门店', {icon: 2, time: 1000}, function () {
//                      $("#pick_v").focus();
//                  });
//                  return false;
//              }
//              if ($("#pick_v").val() == "" && $('#pick').prop('checked') == true) {
//                  layer.msg('请输入所属门店积分', {icon: 2, time: 1000}, function () {
//                      $("#pick_v").focus();
//                  });
//                  return false;
//              }
//          }
          layer.msg('加载中...', {icon: 16,shade: [0.5, '#f5f5f5'],scrollbar: false,offset: '10px', time:100000}) ;
		document.form1.submit();
	  }
</script>
</html>