member_weixinbind.html 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. {extend name="default/base/base_member" /}
  2. {block name="member_main"}
  3. {if $Think.config.ds_config.weixin_isuse == 1}
  4. <div class="dsm-bind">
  5. {notempty name="member_info.member_wxunionid"}
  6. <div class="alert">
  7. <h4>{$Think.lang.prompt_information}:</h4>
  8. <ul>
  9. <li>{$Think.lang.member_qqconnect_binding_tip_1}<em>“{:session('member_nickname')}”</em>{$Think.lang.member_wxsconnect_tip_1}<em>“{$member_info.weixin_infoarr.nickname}”</em>{$Think.lang.member_qqconnect_binding_tip_3}</li>
  10. <li>{$Think.lang.member_sconnect_modpw_tip_1}<em>“{:session('member_nickname')}”</em>{$Think.lang.member_sconnect_modpw_tip_2}</li>
  11. </ul>
  12. </div>
  13. <div class="relieve">
  14. <form method="post" id="editbind_form" name="editbind_form" action="{:url('Memberconnect/weixinunbind')}">
  15. <input type='hidden' id="is_editpw" name="is_editpw" value='no'/>
  16. <div class="ico-wx"></div>
  17. <p>{$Think.lang.member_qqconnect_unbind_click}</p>
  18. <div class="bottom">
  19. <input class="submit" type="submit" value="{$Think.lang.member_qqconnect_unbind_submit}" />
  20. </div>
  21. </form>
  22. </div>
  23. <div class="revise dsm-default-form ">
  24. <form method="post" id="editpw_form" name="editpw_form" action="{:url('Memberconnect/weixinunbind')}">
  25. <input type='hidden' id="is_editpw" name="is_editpw" value='yes'/>
  26. <dl>
  27. <dt>{$Think.lang.member_sconnect_modpw_newpw}{$Think.lang.ds_colon}</dt>
  28. <dd>
  29. <input type="password" name="new_password" id="new_password"/>
  30. <label for="new_password" generated="true" class="error"></label>
  31. </dd>
  32. </dl>
  33. <dl>
  34. <dt>{$Think.lang.member_sconnect_modpw_two_password}{$Think.lang.ds_colon}</dt>
  35. <dd>
  36. <input type="password" name="confirm_password" id="confirm_password" />
  37. <label for="confirm_password" generated="true" class="error"></label>
  38. </dd>
  39. </dl>
  40. <dl class="bottom">
  41. <dt></dt>
  42. <dd>
  43. <input class="submit" type="submit" value="{$Think.lang.member_sconnect_unbind_updatepw_submit}" />
  44. </dd>
  45. </dl>
  46. </form>
  47. </div>
  48. {else /}
  49. <div class="relieve pt50">
  50. <p class="ico"><a href="javascript:void(0);" onclick="ajax_form('weixin_form', '{$Think.lang.member_wxsconnect_tip_2}', '{:url('Connectwx/index')}', 360);">
  51. <img src="{$Think.HOME_SITE_ROOT}/images/wx_bind_small.png"></a>
  52. <p class="hint">{$Think.lang.member_wxsconnect_tip_3}</p>
  53. </div>
  54. <div class="revise pt50">
  55. <p class="qq">{$Think.lang.member_wxsconnect_tip_4}</p>
  56. <p>{$Think.lang.member_wxsconnect_tip_5}</p>
  57. <p class="hint">{$Think.lang.member_wxsconnect_tip_6}</p>
  58. </div>
  59. {/notempty}
  60. </div>
  61. {else /}
  62. <div class="warning-option"><i>&nbsp;</i><span>{$Think.lang.member_wxsconnect_tip_7}</span></div>
  63. {/if}
  64. <script type="text/javascript">
  65. $(function(){
  66. $("#unbind").hide();
  67. $('#editpw_form').validate({
  68. errorPlacement: function(error, element){
  69. var error_td = element.parent('td').next('td');
  70. error_td.find('.field_notice').hide();
  71. error_td.append(error);
  72. },
  73. rules : {
  74. new_password : {
  75. required : true,
  76. minlength : 6,
  77. maxlength : 20
  78. },
  79. confirm_password : {
  80. required : true,
  81. equalTo : '#new_password'
  82. }
  83. },
  84. messages : {
  85. new_password : {
  86. required : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.member_qqconnect_new_password_null}",
  87. minlength : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.member_qqconnect_password_range}"
  88. },
  89. confirm_password : {
  90. required : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.member_qqconnect_ensure_password_null}",
  91. equalTo : "<i class='iconfont'>&#xe64c;</i>{$Think.lang.member_qqconnect_input_two_password_again}"
  92. }
  93. }
  94. });
  95. });
  96. function showunbind(){
  97. $("#unbind").show();
  98. }
  99. function showpw(){
  100. $("#is_editpw").val('yes');
  101. $("#editbinddiv").hide();
  102. $("#editpwul").show();
  103. }
  104. </script>
  105. {/block}