userinfo.html 35.5 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 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066
<script type="text/javascript" src="__PUBLIC__/js/rem_new.js"></script>
<!DOCTYPE html >
<html>
<head>
<meta charset="UTF-8">
<title>我的资料</title>

	<include file="public/header"/>

<link rel="stylesheet" type="text/css" href="__STATIC__/js/layer/layui.css"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/jquery.scroller-1.0.2.min.css"/>
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/user_data.css"/>
    <script type="text/javascript" src="__STATIC__/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/layer/layui.js"></script>

<script type="text/javascript" src="__STATIC__/js/jquery.scroller-1.0.2.min.js"></script><style>
	.li1 {
		background: -webkit-gradient(linear, right top, left bottom, from(#7370fb), color-stop(0.5, #6895fa), to(#5ecafb));
	}

	.li2 {
		background: -webkit-gradient(linear, right top, left bottom, from(#8f24f0), color-stop(0.5, #ac2bc6), to(#c22fb1));
	}

	.li3 {
		background: -webkit-gradient(linear, right top, left bottom, from(#dc507f), color-stop(0.5, #e4656c), to(#f69254));
	}
	.vipcard ul li {
		padding: 0 10px;
		height:100px;
	}

	.vipcard ul li .top {
		position: relative;
	}

	.li1 .top {
		border-color: #4f85df;
	}

	.li2 .top {
		border-color: #ae1da0;
	}

	.li3 .top {
		border-color: #ec7b51;
	}

	.vipcard ul li .ly, .vipcard ul li .ry {
		position: absolute;
		bottom: -12.5px;
		margin-top: -12.5px;
		width: 25px;
		height: 25px;
		background-color: #fff
	}

	.vipcard ul li .bottom {
		text-align: center;
		padding: 10px 0;
	}



	.vipcard ul li .top {
		padding: 10px 0;
	}

	.top .disfx .fx1:first-child {
		font-size: 18px;
		line-height: 40px;
		color: #fff
	}

	.top .disfx .fx1:first-child img {
		width: 25px;
	}

	.top .disfx .fx1:last-child {
		font-size: 12px;
		color: #fff;
		text-align: right
	}

	.top .num {
		font-size: 24px;
		color: #fff;
		text-align: center;
		padding: 8px 0 0;
	}

	.top .num em {
		font-size: 16px;
	}

	.bottom .buynew {
		display: inline-block;
		padding: 3px 10px;
		border-radius: 24px;
		color: #fff;
		background-color: rgba(255, 255, 255, 0.5)
	}

	.layermbtn {
		border-top: 1px #ddd solid;
		background-color: #fff;
	}
	.loadingdiv
	{
		font-size: .35rem;
	}
	.layermbox0 .layermchild{ width: 90%;}
	.layermbtn{ background-color: #C4182E;}


	.Personal .innercontent1 .name span, .Personal .innercontent1 .name1 span{width: 21%;}
	.yt{float: right; color: red;}
    .tcbox .addr-name{
        padding:0px;
    }
    .img-right{
        transform:rotate(180deg);
        font-size: 0.28rem;
    }

  .user_information{
      width:65px;
      height: 54px;
      bottom: 0px;
      right: 21px;
  }
    .user_information .word{
    margin-top: 39px;
    margin-left: 8px;
    }
    .layermbox .close{
        width: 25px;

        height: 25px;
    }
    .tcbox .close{
        background-size: 22px 22px;
    }
    .name input{
        height: 25px;
		border: 1px solid #fff;
    }
    .choice_store_frame .defaults{
      width: 40%;
      margin-left: 0.1rem;
      border: 0.01rem solid #999;
      border-radius: 0.2rem;
      height: 0.35rem;

  }
    .choice_store_frame{
        height: 0.8rem;

        border-top: 0.01rem solid #eee;
    }
    .select_circle{
        width: 0.2rem;
        height: 0.2rem;
        border: 0.01rem solid #999;

    }
    .sn{
        width: 0.20rem;
        height: 0.20rem;
        background:#C4182E;
        border: none;
        font-size: 0.15rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transform:rotate(-125deg);
    }
    .tcbox .addr-name li{
        width: 97%;
    }
    .data-frame{
        width: auto;

        border-radius: 5px;
        padding-top: 3px;

    }
    .birthday{
        width: 8px;height: 16px; transform:rotate(90deg);margin-right: 10px;
       padding-top: 5px;
    }
	.data_inputs{
		width:85% !important;
		background: #eee !important;
		border: none!important;
		padding-left: 5px!important;
	}
	.flex{
		display: flex!important;
	}
	input{
		border: #fff !important;
		box-shadow:none !important;
	}
	
	.name input {
	    padding-bottom: 0px;
	}
	.hengStyle{
	height: 5px;
	}
	.user-interest-frame{
       width: 100%;
		height: auto;
		border-bottom: 4px solid #eee;
	}
	.user-interest-title{
		width: 95%;
		margin: auto;
		border-bottom: 1px solid #eee;

		height: 40px;
		line-height: 40px;
	}
	.label-frame{
		min-height: 40px;
		width: 95%;
		margin: auto;
		height: auto;
		padding-bottom: 15px;
	}
	.add-label{
		text-align: right;
		width: 47px;
		padding-right: 8px;
		border: 1px solid #eee;
		border-radius: 20px;
		display: inline-block;
		height: 23px;
		line-height: 25px;
		margin-bottom: 10px;
	}
	.add-symbol{
		position: absolute;
		top: 0px;
		left:6px;
	}
      .lable-user{
		padding: 3px 10px;
		background:#ff8aa0;
		border-radius: 20px;
		  margin-right: 6px;
		  margin-bottom: 10px;
		  padding-bottom: 3px;
	}

</style>

<body style="margin: auto;">
<include file="public/menu" />
<include file="public/navBall" />
<if id="tbh5v0">
	<div class="Personal">
		<div id="tbh5v1">
			<div class="innercontent1">
<!--				<div class="vipcard">-->
<!--				<if condition="$cardinfo">-->
<!--					<ul>-->
<!--						<li class="li1">-->
<!--							<div class="top">-->
<!--								<Div style="float: left; width: 60%">-->
<!--								<div class="disfx">-->
<!--									<span class="fx1"><img src="__STATIC__/images/user/j1.png" alt=""> {$cardinfo['MemCardName']}</span>-->
<!--									<span class="fx1"><br>有效期至{$cardinfo['ExpiryDate']|substr=0,10}</span>-->
<!--								</div>-->
<!--								</Div>-->
<!--								<Div style="float: right; ">-->

<!--								<div class="num"><em>¥</em>-->
<!--									<if condition="$cardinfo['cardfee']">-->
<!--									    {$cardinfo['cardfee']|number_format=###, 2, '.', ''}-->
<!--									<else/>-->
<!--										0-->
<!--									</if>-->
<!--								</div>-->
<!--								<div class="bottom">-->
<!--									<if condition="$cardinfo['cardfee']">-->
<!--									   <a href="javascript:void(0);" class="buynew" data-expire="{$cardinfo['newexpiredate']}" data-fee="{$cardinfo['cardfee']|number_format=###, 2, '.', ''}" onclick="xufei(this);">立即续费</a>-->
<!--									</if>-->
<!--								</div>-->
<!--								</Div>-->
<!--							</div>-->
<!--						</li>-->
<!--					</ul>-->

<!--					<else/>-->
<!--					<if condition="$cardimg"><a href="/index.php/Mobile/User/vipcard/stoid/{$Think.request.stoid}.html"><img src="{$cardimg}" style=" width: 100%"/></a> </if>-->

<!--				</if>-->
<!--			</div>-->

                <div class="user-top-frame flex rel">
                    <div class="b_circle circle">
                        <img class="b_circle circle" src="{$user.head_pic}">
                    </div>
                    <div class="name-frame ">
                        <div class="fs18">{$user.nickname}</div>
                        <div class="flex  ai_center card-frame ">
                            <if condition="$init_data.data.isBool && $GradeName">

								<a href="{:U('User/gorw_up',array('stoid'=>$Think.request.stoid))}">
                                <div class="card-black flex fs018 fc" onclick="integral_user()">
<!--                                    margin-right: 3px-->
                                    <img src="__STATIC__/images/user_card/black_cards.png" style="margin-right: 3px">{$GradeName}

                                </div>
								</a>
                            </if>

							<if condition="$card_label">
								 <a href="{:U('User/cardinfo',array('stoid'=>$Think.request.stoid))}">
                            <div class="puls-black flex fs018 fc ai_center" >

                                    <img src="__STATIC__/images/user_card/puls-user.png" style="margin-right: 3px">{$card_label}
                                </div>
								 </a>

                            </if>

                        </div>
                    </div>
                    <div  class="user_information abs fs12 fc t_c" style="background: url('__STATIC__/images/user_card/user_information_img.png') no-repeat; background-size: 100% 100%;"  onClick="clickCode()">
                        <div class="word fs018">我的名片</div>
                    </div>

                        <!--<img src="__STATIC__/images/user_card/modify_name.png">-->
                    </div>
                   <!-- <div class="user_id fs15 fc555 t_c">
                        ID:{$user.user_id}
                    </div>-->

				<div style="clear:both"></div>
				<form method="post" action="" id="edit_profile" onSubmit="return checkinfo()">

					<if condition="$pm_erpid">
				    <div>
						<!--新增卡号   20170316-->
						 <div class="name">
                             <div class="card_number_frame flex jc_sb" >
                             <span>卡 号</span>
                             <span id="vipno" class="card_number">{$user_info.erpvipno}</span>
                             </div>
						</div>
                      <!--  消费密码-->
						<div class="name passwd_mioney "   >
							<div class="flex jc_sb" style="width: 96%;margin: auto">
							<div class="flex" style="width: 100%">
                            <span class="consume-password">是否启用消费密码</span>
                            <div class="calendar " onclick="buypwd(this);">
                                <div class="trueCalendar <if condition='$user_info.vipnopwd eq 1'>calendarOn</if>" id="sel_paypwd"></div>
                                启用密码消费
                                <input  name="vipnopwd" id="vipnopwd" value="{$user_info.vipnopwd|default=0}" type="hidden">
                            </div>
							</div>

                        </div>
						</div>

                     <!--设置消费密码-->
						<div class="name"id="payshow" style="<if condition='$user_info.vipnopwd neq 1'>display:none;</if>">
							<div class="user-name flex jc_sb ai_center">
								<span style="width: 20%;">消费密码</span>

								<div style="text-align: right;width: 75%" >
									<input class="payment t_r" type="password" name="vippass" id="vippass" value="{$user_info.vippass}" placeholder="请输入密码" class="c-f-text" style="width:88%">
									<img class="see_img" image="0" src="__STATIC__/images/user_card/no_see.png" onclick="see_img()">
								</div>

							</div>
						</div>

						<!--新增卡号  end-->
						<div class="name" >
                            <div class="user-name flex jc_sb ai_center">
                              <span>昵 称</span>
                                <div  class="t_r">
							      <input style="width: auto;" type="text" name="nickname" id="nickname" value="{$user_info.nickname}" placeholder="*昵称" class="c-f-text t_r">
                                </div>
                                </div>
                            </div>
						<div class="name1">
                            <div class="user-name flex jc_sb" >
                            <span>性 别</span>
							<input  id="inp_sex"  type="hidden" name="sex" value="{$user_info['sex']}" />

							<ul class="flex jc_fe" style="width: auto;">
								<li class="flex jc_fe ai_center xc_tset" style="width: 78px"  data-xb="1"onclick="is_nan(this)" <?php if($user_info[ 'sex']==1) {echo 'class="on"';} ?>  >


                                 <div id="is_nan_frame" class="male-frame flex ai_center jc_center fs12 <if condition="$user_info['sex'] eq 1">fr red-border</if>">

                                      <img class="gender-img" id="is_nan" src="__STATIC__/images/user_card/<if condition="$user_info['sex'] eq 1">is_male.png<else/>no_male.png</if>">
                                      <div style="line-height: 0px"></div>
			                     </div>
								</li>


								<li class="flex jc_fe ai_center xc_tsets"  style="width: 68px" data-xb="2" onclick="is_nv(this)"<?php if($user_info[ 'sex']==1) {echo 'class="on"';} ?> >

			                     <div id="is_nv_frame" class="female-frame flex ai_center jc_center <if condition="$user_info['sex'] eq 2">fr red-border</if>">
                                    <img class="gender-img" id="is_nv" src="__STATIC__/images/user_card/<if condition="$user_info['sex'] eq 2">is_female.png<else/>no_female.png</if>">
                                    <div style="line-height: 0px"></div>
                                  </div>
								</li>
								
								<if condition="empty($user_info['sex'])">
									<if condition="$reg_info['sex_state'] eq 1">
									   <a class="yt">&nbsp;&nbsp;+{$reg_info['sex']}<if condition="$reg_info.sex_state_type">成长值<else/>积分</if></a>
									</if>
								</if>
							</ul>
							
                            </div>

						</div>



						<div class="name bor-bo-none">
                            <div class="user-name flex jc_sb ai_center">
                                <div class="flex jc_sb">
                            <span style="width: auto">出生日期</span>

                                <div class="calendar">
                                    <div style="margin-bottom: 1px;" class="trueCalendar <if condition="$user_info.islunar eq 1">calendarOn</if>" <empty name="birthday">onclick="translunar(this);"</empty>></div>农历
                                        <input name="islunar" value="<if condition="$user_info.islunar eq 1">1<else/>2</if>" type="hidden">
                                    </div>
                              </div>



                               <div id="input_frame" class="data-frame flex ai_center"data-input="1" onclick="show_input()">

									   <input  style="direction: rtl;"  align="right" type="date"  id="birthday"  name="birthday"  class="c-form-txt-normal t-r" value="{$birthday|default="2000-1-1"}" placeholder="*生日" <if condition="$birthday">readonly="readonly"  disabled="disabled" </if>>
									   <if condition="empty($user_info['birthday'])">
									    	<if condition="$reg_info['birthday_state'] eq 1">
									   	    	<div class="yt">&nbsp;&nbsp;+{$reg_info['birthday']}<if condition="$reg_info.birthday_type">成长值<else/>积分</if></div>
									    	</if>
									   </if>

                               </div>
						
						   </div>
				    </div>





					<div class="hengStyle"></div>
					<div class="name">
                        <div class="user-name flex jc_sb ai_center">
                        <span>姓名 </span>
						<input class="t_r" type="text" maxlength="4" name="vipname" id="vipname" value="{$user_info.vipname}" placeholder="*姓名" class="c-f-text">
						<if condition="empty($user_info['vipname'])">
							<if condition="$reg_info['name_state'] eq 1">
								<div class="yt">&nbsp;&nbsp;+{$reg_info['name']}<if condition="$reg_info.name_val_type">成长值<else/>积分</if></div>
							</if>
						</if>

                        </div>
					</div>
					<div class="name">
                        <div class="user-name flex jc_sb ai_center">
                        <span>身份证 </span>
						<input class="t_r" type="text" name="idcard" id="idcard" value="{$user_info.idcard}" placeholder="*身份证" style="width: 45%" class="c-f-text">
						<if condition="empty($user_info['idcard'])">
							<if condition="$reg_info['idcard_state'] eq 1">
								<div class="yt">&nbsp;&nbsp;+{$reg_info['idcard']}<if condition="$reg_info.idcard_type">成长值<else/>积分</if></div>
							</if>
						</if>
                        </div>
					</div>
			        <div class="name" id="btnmobile" >
                        <div class="user-name flex jc_sb ai_center">
                        <span>更换手机</span>
			        	<input type="tel" name="moblie" id="fmobile"
							   readonly="readonly"  disabled="disabled"
							   value="{$user_info.mobile}" placeholder="手机" class="c-f-text t_r" style="padding-top: 3px; padding-right:10px">
						<img class="calendar " src="__STATIC__/images/category/leftTip.png" style="width: 8px;height: 16px;" />
                        </div>
			        </div>

					<div class="name">
                        <div class="user-name flex jc_sb ai_center">
                        <span>地址  </span>
						<input class="t_r" type="text" name="address" id="address" placeholder="*地址 " value="{$user_info.address}" class="c-f-text">
						<if condition="empty($user_info['address'])">
							<if condition="$reg_info['address_state'] eq 1">
								<div class="yt">&nbsp;&nbsp;+{$reg_info['address']}<if condition="$reg_info.address_type">成长值<else/>积分</if></div>
							</if>
						</if>
                        </div>
					</div>
					<div class="name shop bor-bo-none" style="border-bottom: none!important;">
                        <div  class="user-name flex jc_sb ai_center">
						<span >所属门店  </span>
							<div class="t-r" style="width: 80%">
						<i id='pick_name' class="t_r" > {$pickup_name|default="<font style='color: #adadab'>*选择门店</font>"}</i>
						<input type="hidden" name="pickup_id" id="pickup_id" value="{$user_info.pickup_id}">
							<img class="calendar " src="__STATIC__/images/category/leftTip.png" style="width: 8px;height: 16px;margin-left: 6px;" />
							<!--新增  20170405-->

						<if condition="empty($user_info['pickup_id'])">
							<if condition="$reg_info['pick_state'] eq 1">
								<div class="yt">+{$reg_info['pick']}<if condition="$reg_info.pick_type">成长值<else/>积分</if></div>
							</if>
						</if>
							</div>
						<!--<img class="calendar mt20" src="__STATIC__/images/category/leftTip.png" style="width: 8px;height: 16px;" />-->
                        </div>
					</div>
					<div class="hengStyle"></div>

                <if condition="$init_data.data.isBool and $user_label_set">
                    <div class="user-interest-frame">
						<a href="{:U('Userlabel/user_label',array('stoid'=>$Think.request.stoid,'oldurl'=>getFullUrl()))}">
							<div class="flex ai_center jc_sb user-interest-title">
								<text class="fs14" style="margin-left: 7px">我的兴趣</text>
								<img class="calendar " src="__STATIC__/images/category/leftTip.png" style="width: 8px;height: 16px;margin-right: 10px;" />
							</div>
						</a>
						<div class="label-frame">

							<ul style="margin-top: 10px;">

								<foreach name="label_name" key="k" item="vv">
									<if condition="$vv">
									<li class="d-il lable-user fc fs12">{$vv}</li>
									</if>
								</foreach>
								<a href="{:U('Userlabel/user_label',array('stoid'=>$Think.request.stoid))}">
								 <li class="fg fs12 add-label rel"><text class="abs fs15 add-symbol"></text>标签</li>
								</a>
							</ul>

						</div>

					</div>
				</if>
					<a href="{:U('User/address_list',array('stoid'=>$Think.request.stoid))}">
						<div class="name">
                            <div class="user-name flex jc_sb ai_center">
                            <span>收货地址 </span>

							<img class="calendar " src="__STATIC__/images/category/leftTip.png" style="width: 8px;height: 16px;" />
                            </div>
                            </div>
					</a>
<!--					<div class="name" onClick="clickCode()">-->
<!--                        <div class="user-name flex jc_sb ai_center">-->
<!--                            <div>我的二维码名片</div>-->
<!--						<img class="calendar" src="__STATIC__/images/category/code.png" style="width: 30px;height: 30px;" />-->
<!--						&lt;!&ndash;<img alt="扫码推广" src="/index.php?m=Home&c=Index&a=qr_code&data=123456789" style="width:150px;height:150px;"/>&ndash;&gt;-->
<!--                        </div>-->
<!--                        </div>-->
					<div class="name" style="border-bottom: none">
                        <div class="user-name flex jc_sb ai_center">
                        <span>绑定时间 </span> <span class="t_r" id="billdate" style="width:51%;">{$BillDate}</span>
                        </div>
                        </div>

					<div class="field submit-btn confirm-frame">
						<input type="button" value="确认修改" class="btn_big1 confirm" onclick="checkup()" />
					</div>
				</form>

		</div>
	</div>
	<!--弹窗 20170414二维码-->
	<div class="layercode layermbox layermbox0_1 dn">
		<div class="laymshade"></div>
		<div class="layermmain">
			<div class="ewmbox">
				<div class="vip_info">
					<img class="img" src="{$user_info.head_pic}" style="width: 30%; margin: 10px 0 10px 30px;border-radius: 4px" />
					<div class="ml20">
						<p>{$user_info.nickname}
							<if condition="$user_info['sex'] eq 1 ">
							<img class="pic_n" src="__STATIC__/images/user/man.png"/>
							</if>
							<if condition="$user_info['sex'] eq 2 ">
								<img class="pic_n" src="__STATIC__/images/user/wum.png"/>
							</if>
						</p>
						<p class="address" style="padding-top: 10px;font-size: 14px;color: #999999;">{$user_info.address}</p>
					</div>
				</div>
				<div class="codeImg">
					<img class="small" src="{$user_info.head_pic}" style="border-radius:4px ; border: 4px solid #fff;"/>
					<img src="/index.php?m=Home&c=Index&a=qr_code&data={$user_info.mobile}" />
				</div>
				<p class="txt">扫一扫上面的二维码图案,即可消费</p>
			</div>
		</div>
	</div>
<!--弹窗 20170414地址-->
<div class="layeraddr layermbox layermbox0_1 dn">
	<div class="laymshade"></div>
	<div class="layermmain">
		<div class="section">
			<div class="layermchild  layermanim">
				<div class="layermcont">
					<ul class="tcbox">
						<span class="close"></span>
						<li class="area">
							<div class="tcTit" style="border-bottom: 1px solid #dadada;">
								<&nbsp;重新选择门店 </div>
							<ol class="addr-name" id="category">
							</ol>
						</li>
						<li class="store dn">
							<div id="category_name" class="tcTit" style="border-bottom: 1px solid #dadada;"><&nbsp;&nbsp; </div>
							<ol class="addr-name" id="pick">
							</ol>
						</li>
					</ul>
					<!--<div class="layermbtn">确定</div>-->
				</div>
			</div>
		</div>
	</div>
</div>
</div>
<if condition="$cardinfo">
	<form action="/Mobile/Payment/getPay" method="post" name="points" id="points" style="display: none;">
		<input name="stoid" value="{$Think.request.stoid}" type="hidden">
		<input name="recharge_type" value="4" type="hidden">
		<input type="hidden" value="{$cardinfo['CorrPrice']}"  name="newcorrprice" />
		<input type="hidden" value="{$cardinfo['GradeCardID']}"  name="cardid" />
		<input type="hidden" value="{$cardinfo['cardfee']|number_format=###, 2, '.', ''}"  name="fee" />
		<input type="hidden" value="{$cardinfo['keys']}"  name="keys" />

	</form>
</if>

<script language="javascript">


    $(function(){

		var sex="{$user_info['sex']}";
		if(parseFloat(sex)<=0){
            $('input:radio[name="sex"]').removeAttr('checked');
		};
//时间插件




    });
    //点击性别
    $('.name1 ul li').click(function() {
        $(this).find("input").attr("checked", "checked");
        $('.name1 ul li').removeClass("on");
        $(this).addClass("on");
    });

    //单击二维码图片函数
    function clickCode() {
        $(".layercode").removeClass("dn");
    }
    //点击二维码,关闭二维码弹窗
    $(".layercode").click(function(){
        $(".layermbox").addClass("dn");
    });

    //点击所属门店
    $(".shop").click(function() {
        $(".layeraddr").removeClass("dn");
        get_category();
    });
    //关闭门店弹窗
    $(".layermbox .close").click(function() {
        $(".layermbox").addClass("dn");
    });
    $(".layermbox .area .tcTit").click(function() {
        $(".layermbox").addClass("dn");
    });
    //返回上一级
    $(".layermbox .store .tcTit").click(function() {
        $(".layermbox .area").removeClass("dn");
        $(".layermbox .store").addClass("dn")
    });
    //点击门店分类
    $("#category li").click(function() {
        $(".layermbox .area").addClass("dn");
        $(".layermbox .store").removeClass("dn")

    });
    //点击门店
    $("#pick li").click(function() {
       // alert($(this).text());
    });

    function checkinfo() {
        var nickname = $('#nickname').val();
        var email = $('#email_ep').val();

        if (nickname == '') {
            alert("昵称不能为空");
            return false;
        }
		/*---
        if (!checkEmail(email)) {
            alert("邮箱格式不正确");
            return false;
        }--*/
        return true;
    }

    //获取门店分类
    function get_category (){
        var stoid="<?php echo I('stoid'); ?>";
        $.ajax({
                type: 'get',
                url: "/index.php?m=Mobile&c=User&a=ajax_get_category&stoid="+{$Request.param.stoid},
            data: {},
        dataType: 'json',
            success: function(data) {
            if(data.code == 1) {
                var arry = data.data;
                //console.log(arry);
                if(arry != undefined && arry.length > 0) {
                    $("#category").empty();
                    for(var i = 0; i < arry.length; i++) {
                        $("#category").append("<li  class='flex  jc_sb' category_id="+arry[i].cat_id+" onclick='click_category(this)'>"+arry[i].cat_name+"</li>")
                    }
                    $("#category").append("<li category_id=0></li>")
                }
               
            }
        }
    })
    }



	var pick_id;
    var pick_name;
	//点击门店分类,获取自提门店
	function click_category (obj){

		var category_id = $(obj).attr("category_id");

		$("#category_name").text("<   "+$(obj).text());
		$.ajax({
			type: 'post',
			url: "/index.php?m=Mobile&c=User&a=ajax_get_pick&stoid="+{$Request.param.stoid}+"&category_id=" + category_id ,
			data: {},
			dataType: 'json',
			success: function(data) {
				if(data.code == 1) {

					var arry = data.data;
					// console.log(arry);
					if(arry != undefined && arry.length > 0) {
						$("#pick").empty();
						for(var i = 0; i < arry.length; i++) {
							$("#pick").append("<li pick_id="+arry[i].pickup_id+" onclick='click_pick(this)'>"+arry[i].pickup_name+"</li>")
						}
					}

					$(".layermbox .area").addClass("dn");
					$(".layermbox .store").removeClass("dn")
				}
			}
		})
	}
    //点击自提门店

    function click_pick (obj){
        var pick_id = $(obj).attr("pick_id");
		$("#pickup_id").val(pick_id);
		$(".layermbox").addClass("dn");
		$("#pick_name").text($(obj).text());
    }
    function select_shop() {
		var pick_id = $(obj).attr("pick_id");
		$("#pickup_id").val(pick_id);
		$(".layermbox").addClass("dn");
		$("#pick_name").text($(obj).text());
    }
    //
    //    $(document).ready(function(){
    //        alert(789);
    //        layer.open({content:'努力中...'}) ;
    //        $.ajax({
    //            type : "get", url: "/index.php?m=Mobile&c=User1&a=SelectUser&stoid="+{$Request.param.stoid} ,
    //            error: function(request) {
    //                layer.closeAll();
    //                layer.open({content:'服务器繁忙, 请联系管理员!'});return;
    //            },
    //            success: function(data) {
    //                layer.closeAll();
    //                var data=JSON.parse(data);
    //                if(data.code=="1" || data.code==1) {
    //					var vipinfo = data.data;
    //					console.log(vipinfo[0].vipno);
    //                    $("#vipno").text(vipinfo[0].vipno);
    //                    $("#billdate").text(vipinfo[0].BillDate.substring(0,10));
    //                    $("#nickname").val(vipinfo[0].vipname);
    //                    $("#pickup_id").val(vipinfo[0].StoragesId);
    //                    $("#birthday").val(vipinfo[0].BirthDate.substring(0,10));
    //                    $("#idcard").val(vipinfo[0].IDCard);
    //                    $("#address").val(vipinfo[0].Address);
    //                    $("#pick_name").val(vipinfo[0].storagename);
    //                }
    //                else {
    //                    $("#vipno").text("");
    //                    $("#billdate").text("");
    //                    $("#nickname").val("");
    //                    $("#pickup_id").val("");
    //                    $("#birthday").val("");
    //                    $("#idcard").val("");
    //                    $("#address").val("");
    //                    $("#pick_name").val("");
    //				}
    //
    //
    //
    //
    ////                if(data==""){
    ////                    layer.open("未找到数据",{icon:2,time:1000});
    ////                    return;
    ////                }
    ////                var data=JSON.parse(data);
    ////                if(data.code="1" || data.code==1){
    ////                    if(data.count==undefined || data.count<=0){
    ////                        layer.open("未找到数据",{icon:2,time:1000});
    ////                        return;
    ////                    }
    ////                    seardata=data.data;
    ////                    if(seardata.length==1){
    ////                        m_call_back(seardata[0]);
    ////                    }else{
    ////                        layer.open({
    ////                            type: 2,
    ////                            title: '选择商品',
    ////                            shadeClose: true,
    ////                            shade: 0.2,
    ////                            area: ['96%', '70%'],
    ////                            content: url2,
    ////                        });
    ////                    }
    //
    //            }
    //        });
    //
    //    });
	//新农历
	function translunar(obj) {
		if($(obj).hasClass('calendarOn'))  //选择新历
		{
             $("input[name=islunar]").val('2');
		}
		else
		{
            $("input[name=islunar]").val('1');
		}
		$(obj).toggleClass('calendarOn');
    }

    //消费密码
    function buypwd(obj) {

        if($("#sel_paypwd").hasClass('calendarOn'))
        {

            $("input[name=vipnopwd]").val('0');
            $("#vippass").val('');
           $("#payshow").hide();
        }
        else //选中
        {

            $("input[name=vipnopwd]").val('1');

            $("#payshow").show();
        }
        $("#sel_paypwd").toggleClass('calendarOn');
    }

    //立即续费
	function xufei(obj) {
        var nday=$(obj).attr('data-expire');
        var tsum=$(obj).attr('data-fee');
        layer.open({
            content: '<p>需支付<span style=\"color:red;font-size:18px;\">¥' + tsum + '</span></p><p>有效期至:' + nday + '</p>',
            btn: ['确定支付', '取 消'],
            yes: function (index) {
                $("#points").submit();
            }
        });
    }

    //提交
    function checkup() {

 console.log("有进来吗");
        if ($("#vipnopwd").val()=="1")
		{
            if ($("#vippass").val()=="" || $("#vippass").val().length<6)
			{
                layer.open({content:'消费密码不能为空或不能小于6位',time:1});
                return false;
			}
		}
       // var sex=$("input[name='sex']:checked").val();
       // var sex1="{$user_info['sex']}";
        var sex=$("#inp_sex").val();
        console.log("没有值吗",sex);
       if((sex=="" || sex==undefined) && parseFloat(sex1)>0){
          layer.open({content:'请选择性别',time:1});
          return false;
	   }

       var bir=$("input[name='birthday']").val();
       var bir1="{$user_info['birthday']}";
       if(bir=="" || bir==undefined){
           if(bir1!="" && bir1!="0") {
               layer.open({content: '请输入生日', time: 1});
               return false;
           }
       }

       if(bir!='' && bir!=undefined){
            var date = new Date;
            var d = new Date(Date.parse(bir));
            var year = date.getFullYear();
            var year2 = d.getFullYear();
            var diff = year - year2;
            if (diff <= 10) {
                layer.closeAll();
                layer.open({content: "会员生日不能小于十岁以下", time: 1});
                return false;
            }
            if (diff >= 70) {
                layer.closeAll();
                layer.open({content: "会员生日不能大于七十岁以上", time: 1});
                return false;
            }
        }

        var vipname=$("input[name='vipname']").val();
        var vipname1="{$user_info['vipname']}";
        if(vipname=="" || vipname==undefined){
            if(vipname1!="") {
                layer.open({content: '请输入姓名', time: 1});
                return false;
            }
        }

        var idcard=$("input[name='idcard']").val();
        var idcard1="{$user_info['idcard']}";
        if(idcard=="" || idcard==undefined){
            if(idcard1!="") {
                layer.open({content: '请输入身份证', time: 1});
                return false;
            }
       }
       if(idcard!="" && idcard!="") {
            if (!Identy(idcard)) {
            	console.log("身份证验证",idcard);
                layer.open({content: '身份证号码格式不正确', time: 1});
                return false;
            }
       }

       var address=$("input[name='address']").val();
       var address1="{$user_info['address']}";
       if(address=="" || address==undefined){
            if(address1!="") {
                layer.open({content: '请输入地址', time: 1});
                return false;
            }
       }

       var pickup_id=$("input[name='pickup_id']").val();
       var pickup_id1="{$user_info['pickup_id']}";
       if(pickup_id=="" || pickup_id==undefined || pickup_id=='0'){
           if(pickup_id1!="") {
               layer.open({content: '请选择门店', time: 1});
               return false;
           }
       }
       $("#edit_profile").submit();
    }
  //更换手机
    $("#btnmobile").click(function () {
        var stoid="<?php echo I('stoid'); ?>";
        location.href="/index.php?m=Mobile&c=User&a=modimobile&stoid="+stoid;
    });
    //选择性别
   function is_nan(){

       var  datas=$(".xc_tset").attr("data-xb");

           var sex=$("#inp_sex").val(1);
       $("#is_nan_frame").addClass("fr red-border");
       $("#is_nv_frame").removeClass("fr red-border");
       $("#is_nan").attr('src','__STATIC__/images/user_card/is_male.png');
       $("#is_nv").attr('src','__STATIC__/images/user_card/no_female.png');
   }
   //点击选择女的性别
    function is_nv(){
        var  datas=$(".xc_tsets").attr("data-xb");
        var sex=$("#inp_sex").val(2);

        $("#is_nan_frame").removeClass("fr red-border");
        $("#is_nv_frame").addClass("fr red-border");
        $("#is_nan").attr('src','__STATIC__/images/user_card/no_male.png');
        $("#is_nv").attr('src','__STATIC__/images/user_card/is_female.png');
    }
    //跟换显示消费密码
    function  see_img(){
      var val=$(".see_img").attr("image");
      if(val==0){
          var val=$(".see_img").attr("src","__STATIC__/images/user_card/see.png");
          var val=$(".see_img").attr("image","1");
          //$("#vippass").attr("type","text");
          document.getElementById("vippass").type="text";
      }else {
          var val=$(".see_img").attr("src","__STATIC__/images/user_card/no_see.png");
          var val=$(".see_img").attr("image","0");
          //$("#vippass").attr("type","password");
          document.getElementById("vippass").type="password";
      }
        var val=$(".see_img").attr("image");
      console.log("img是说明",val);
    }
    //控制生日的输入框显示隐藏
    function  show_input(){
   	  var data_input=$("#input_frame").attr("data-input");
	  var birthdays=$("#birthdays").val();

   	  if(data_input==1&&birthdays!=""&&birthdays!=null&&birthdays!=undefined){
		  var data_input=$("#input_frame").attr("data-input","0");
		  $("#birthdays").hide();
		  $("#birthday").show();
		  console.log("含有数据隐藏显示没有数据的input");

	  }else{
		  var data_input=$("#input_frame").attr("data-input","1");
		  $("#birthdays").hide();
		  $("#birthday").show();
          console.log("含有数据隐藏显示没有数据的input");

	  }
	}
    
    
</script>
</body>

</html>