UJ.CreUser.js 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590
  1. /*12软件沈俊坚 ------动态创建登录注册页,用户资料子页面*/
  2. //动态创建登录注册
  3. UJ.Cre.C = function (a, b) {
  4. if (!$("#User")[0]) {
  5. var UJ_C = $("#UJ_C")[0];
  6. var User = $$("div", { "className": "User", "id": "User" }, UJ_C);
  7. var User_left = $$("div", { "className": "User_left", "id": "User_left" }, User);
  8. var User_left_Pic = $$("div", { "className": "User_left_Pic", "id": "User_left_Pic" }, User_left);
  9. $$("img", { "src": "img/login/login.jpg" }, User_left_Pic);
  10. }
  11. if (b == 1) {
  12. if (!$("#" + a)[0]) {
  13. var User = $("#User")[0];
  14. var User_login = $$("div", { "className": "User_login", "id": "User_login" }, User);
  15. var User_right = $$("div", { "className": "User_right", "id": "User_right" }, User_login);
  16. var User_right_C = $$("div", {}, User_right);
  17. var User_left_text = $$("div", { "className": "User_left_text", "id": "User_left_text" }, User_right_C);
  18. var h = $$("div", { "innerHTML": "欢迎光临美宝商城! 请登陆" }, User_left_text);
  19. $$("a", { "innerHTML": "免费注册", "onclick": [[UJ.Cre.C, (["User_reg", 0])]] }, h);
  20. var User_right_ul = $$("ul", {}, User_right);
  21. for (var i = 15; i < 17; i++) {
  22. var o = $$("li", {}, User_right_ul);
  23. $$("div", { "className": "User_left_text_left", "id": "User_left_text_left", "innerHTML": JBOX_arr[i][1] }, o);
  24. var User_left_text_right = $$("div", { "className": "User_left_text_right", "id": "User_left_text_right" }, o);
  25. var input = $$("input", { "type": JBOX_arr[i][4], "value": JBOX_arr[i][2], "id": JBOX_arr[i][0] }, User_left_text_right);
  26. var User_left_text_right_p = $$("div", { "className": "User_left_text_right_p", "id": "User_left_text_right_p" }, User_left_text_right);
  27. $$("img", { "src": "img/login/" + JBOX_arr[i][3] + "" }, User_left_text_right_p);
  28. }
  29. var BT = $$("div", { "className": "BT", "id": "BT", "onclick": [[UJ.User.login, (["login_reg"])]] }, User_right);
  30. $$("img", { "src": "img/login/icon4.jpg" }, BT);
  31. var rember = $$("div", { "className": "rember", "id": "rember" }, User_right);
  32. var remberL = $$("div", { "className": "remberL", "id": "remberL" }, rember);
  33. $$("input", { "type": "checkbox", "checked": "checked" }, remberL);
  34. $$("div", { "innerHTML": "记住用户名" }, remberL);
  35. var remberR = $$("div", { "className": "remberR", "id": "remberR" }, rember);
  36. $$("a", { "innerHTML": "忘记密码?", "onclick": [[UJ.Cre.C, (["User_Reback", 2])]] }, remberR);
  37. var fre = $$("div", { "className": "fre clear" }, User_right);
  38. $$("div", { "innerHTML": "使用合作网站登录:", "className": "text" }, fre);
  39. var qq = $$("div", { "className": "UJ_left" }, fre);
  40. var qq_c = $$("div", {}, qq);
  41. $$("img", { "src": "img/login/Connect_logo_3.png" }, qq_c);
  42. var weibo = $$("div", { "className": "UJ_left weibo" }, fre);
  43. var weibo_c = $$("div", {}, weibo);
  44. $$("img", { "src": "img/login/loginButton_24.png" }, weibo_c);
  45. }
  46. UJ.Fnx.showHide(["User_reg", "User_Reback"], "User_login", 0);
  47. }
  48. else {
  49. var img, o;
  50. //注册
  51. if (b == 0) {
  52. if (!$("#" + a)[0]) {
  53. var User = $("#User")[0];
  54. var User_reg = $$("div", { "className": "User_reg", "id": "User_reg" }, User);
  55. var User_right = $$("div", { "className": "User_right", "id": "User_right" }, User_reg);
  56. var User_right_C = $$("div", {}, User_right);
  57. var User_left_text = $$("div", { "className": "User_left_text", "id": "User_left_text" }, User_right_C);
  58. var h = $$("div", { "innerHTML": "欢迎光临美宝商城! 已有帐号" }, User_left_text);
  59. $$("a", { "innerHTML": "登录", "onclick": [[UJ.Cre.C, (["User_login", 1])]] }, h);
  60. var User_right_ul = $$("ul", {}, User_right);
  61. for (var i = 17; i < 21; i++) {
  62. var o = $$("li", { "className": "reg" }, User_right_ul);
  63. $$("div", { "className": "User_left_text_left User_reg_text", "id": "User_left_text_left", "innerHTML": JBOX_arr[i][1] }, o);
  64. var User_left_text_right = $$("div", { "className": "User_left_text_right", "id": "User_left_text_right" }, o);
  65. var input = $$("input", { "className": "input_text", "type": JBOX_arr[i][3], "value": JBOX_arr[i][2], "id": JBOX_arr[i][0] }, User_left_text_right);
  66. }
  67. o = $$("li", { "id": "ver_li" }, User_right_ul);
  68. $$("div", { "className": "User_left_text_left User_reg_text", "id": "User_left_text_left", "innerHTML": "验证码" }, o);
  69. var User_left_text_right = $$("div", { "className": "User_left_text_right", "id": "User_left_text_right" }, o);
  70. var input = $$("input", { "className": "input_text Ver", "type": "text", "id": "Ver" }, User_left_text_right);
  71. var img = $$("img", { "id": "Ver_img", "className": "Ver_img", "title": "看不清换一张", "onclick": [[UJ.Fnx.ChangeImg, (["Ver_img", "ver_li"])]] }, o);
  72. $$("a", { "innerHTML": "换一张", "onclick": [[UJ.Fnx.ChangeImg, (["Ver_img", "ver_li"])]] }, o);
  73. var BT = $$("div", { "className": "BT BT_n", "id": "BT", "onclick": [[UJ.User.reg, (["login_reg"])]] }, User_right);
  74. $$("img", { "src": "img/login/iconZC.jpg" }, BT);
  75. }
  76. UJ.Fnx.showHide(["User_login", "User_Reback"], "User_reg", 0);
  77. }
  78. else {
  79. if (!$("#" + a)[0]) {
  80. var User = $("#User")[0];
  81. var User_reg = $$("div", { "className": "User_reg", "id": "User_Reback" }, User);
  82. var User_right = $$("div", { "className": "User_right", "id": "User_right" }, User_reg);
  83. var User_right_C = $$("div", {}, User_right);
  84. var User_left_text = $$("div", { "className": "User_left_text", "id": "User_left_text" }, User_right_C);
  85. var h = $$("div", { "innerHTML": "欢迎光临美宝商城! 已有帐号" }, User_left_text);
  86. $$("a", { "innerHTML": "登录", "onclick": [[UJ.Cre.C, (["User_login", 1])]] }, h);
  87. var User_right_ul = $$("ul", {}, User_right);
  88. for (var i = 168; i < 171; i++) {
  89. var o = $$("li", { "className": "reg" }, User_right_ul);
  90. $$("div", { "className": "User_left_text_left User_reg_text", "id": "User_left_text_left", "innerHTML": JBOX_arr[i][1] }, o);
  91. var User_left_text_right = $$("div", { "className": "User_left_text_right", "id": "User_left_text_right" }, o);
  92. var input = $$("input", { "className": "input_text", "type": JBOX_arr[i][3], "value": JBOX_arr[i][2], "id": JBOX_arr[i][0] }, User_left_text_right);
  93. }
  94. o = $$("li", { "id": "New_li" }, User_right_ul);
  95. $$("div", { "className": "User_left_text_left User_reg_text", "id": "User_left_text_left", "innerHTML": "验证码" }, o);
  96. var User_left_text_right = $$("div", { "className": "User_left_text_right", "id": "User_left_text_right" }, o);
  97. var input = $$("input", { "className": "input_text Ver", "type": "text", "id": "Ver", "onclick": [[UJ.Fnx.ChangeImg, (["Ver_img", "New_li"])]] }, User_left_text_right);
  98. var img = $$("img", { "id": "Ver_img", "className": "Ver_img", "title": "看不清换一张" }, o);
  99. $$("a", { "innerHTML": "换一张", "onclick": [[UJ.Fnx.ChangeImg, (["Ver_img", "New_li"])]] }, o);
  100. var BT = $$("div", { "className": "BT BT_n", "id": "BT", "onclick": [[UJ.User.reg, (["login_reg"])]] }, User_right);
  101. $$("img", { "src": "img/login/iconZH.jpg" }, BT);
  102. }
  103. var o = $$("li", { "id": "ver_li" }, User_right_ul);
  104. $$("div", { "className": "User_left_text_left User_reg_text", "id": "User_left_text_left", "innerHTML": "验证码" }, o);
  105. var User_left_text_right = $$("div", { "className": "User_left_text_right", "id": "User_left_text_right" }, o);
  106. var input = $$("input", { "className": "input_text Ver", "type": "text", "id": "Ver" }, User_left_text_right);
  107. UJ.Fnx.img = $$("img", { "id": "Ver_img", "className": "Ver_img", "title": "看不清换一张", "onclick": [[UJ.Fnx.ChangeImg, ([])]] }, o);
  108. $$("a", { "innerHTML": "换一张", "onclick": [[UJ.Fnx.ChangeImg, ([])]] }, o);
  109. var BT = $$("div", { "className": "BT BT_n", "id": "BT", "onclick": [[UJ.User.reg, (["login_reg"])]] }, User_right);
  110. // $$("div", { "innerHTML": "确定找回", "className": "BT_Text" }, BT);
  111. $$("img", { "src": "img/login/iconRB.png" }, BT);
  112. }
  113. UJ.Fnx.ChangeImg("Ver_img", "New_li");
  114. }
  115. UJ.User.onfocuText();
  116. }
  117. /*动态创建用户中心*/
  118. UJ.Cre.Account = function (a, b, c) {
  119. switch (b) {
  120. case 107: if (!$("#" + c)[0]) {
  121. UJ.Cre.My_order(a)
  122. }
  123. UJ.Fnx.showHide(["Edu", "theBox", "Personal_info", "UJ_Account_safe", "UJ_Address", "Account_Help", "My_love"], c, 3);
  124. break; //我的订单
  125. case 108: if (!$("#" + c)[0]) { UJ.Cre.My_love(a) }
  126. UJ.Fnx.showHide(["Edu", "theBox", "Personal_info", "UJ_Account_safe", "UJ_Address", "Account_Help", "My_order"], c, 3);
  127. break; //我的收藏
  128. case 109: if (!$("#" + c)[0]) { UJ.Cre.Mybaby() }
  129. UJ.Fnx.showHide(["Account_Help", "Edu", "Personal_info", "UJ_Account_safe", "UJ_Address", "My_order", "Account_Eva", "My_love"], c, 3);
  130. break; //购物车
  131. case 112: if (!$("#" + c)[0]) { UJ.Cre.Account_Eva() }
  132. UJ.Fnx.showHide(["Account_Help", "Edu", "Personal_info", "UJ_Account_safe", "UJ_Address", "theBox"], c, 3);
  133. break; //用户评价
  134. case 113: if (!$("#" + c)[0]) { UJ.Cre.AccountHelp_tour() }
  135. UJ.Fnx.showHide(["Account_Eva", "Edu", "Personal_info", "UJ_Account_safe", "UJ_Address", "theBox", "User_Content"], c, 3);
  136. break; //帮助中心
  137. case 118: if (!$("#" + c)[0]) { UJ.Cre.Account_c() }
  138. UJ.Fnx.showHide(["Account_Help", "theBox", "UJ_Account_safe", "UJ_Address", "My_order", "Account_Eva", "My_love"], [c, "Edu"], 3);
  139. break; //用户信息
  140. case 119: if (!$("#" + c)[0]) { UJ.Cre.Account_safe() }
  141. UJ.Fnx.showHide(["Account_Help", "Edu", "Personal_info", "theBox", "UJ_Address", "Account_Eva"], c, 3);
  142. break; //帐号安全
  143. case 120: if (!$("#" + c)[0]) { UJ.Cre.getGoodsAddress(); }
  144. UJ.Fnx.showHide(["Account_Help", "Edu", "Personal_info", "theBox", "UJ_Account_safe", "Account_Eva"], c, 3);
  145. break; //收货地址
  146. default: break;
  147. }
  148. if ($("#UJ_bg")[0]) {
  149. $("#UJ_bg").remove();
  150. $("#Edu").remove();
  151. }
  152. }
  153. /*动态创建用户页面*/
  154. UJ.Cre.Mybaby = function () {
  155. //if (!$("#out")[0] || $("#out")[0].style.display != "block") { U.Alert("请先登录", 200); return; }
  156. var User = $$("div", { "className": "User_Content", "id": "User_Content" }, "");
  157. $("#UU")[0].insertBefore(User, $("#footer")[0]);
  158. $("#UJ_C")[0].style.marginTop = "0px";
  159. var tour = $$("div", { "className": "tour" }, User);
  160. $$("strong", { "innerHTML": "您现在所在的位置:" }, tour);
  161. $$("a", { "innerHTML": "首页" }, tour);
  162. $$("div", { "innerHTML": ">" }, tour);
  163. $$("a", { "innerHTML": "我的用户" }, tour);
  164. $$("div", { "innerHTML": ">" }, tour);
  165. $$("a", { "innerHTML": "我的购物车", "id": "UJ_UserHere" }, tour);
  166. var User_Content_left = $$("div", { "className": "User_Content_left", "id": "User_Content_left" }, User);
  167. $$("h2", { "innerHTML": "用户中心" }, User_Content_left);
  168. /*订单 客户*/
  169. for (var i = 106; i < 111; i++) {
  170. var leftItem = $$("ul", { "className": "leftItem", "id": "leftItem" }, User_Content_left);
  171. var LeftItemTitle = $$("div", { "className": "LeftItemTitle" }, leftItem);
  172. $$("strong", { "innerHTML": JBOX_arr[i][0] }, LeftItemTitle);
  173. $$("img", { "src": "img/User/icon-1.jpg" }, LeftItemTitle);
  174. for (var j = i + 1; j < i + 4; j++) {
  175. $$("li", { "id": "LeftItemContent_" + j, "className": "LeftItemContent", "innerHTML": "<a>" + JBOX_arr[j][0] + "</a>", "onclick": [[UJ.Fnx.Tour_onclick, ([User_Content_left, "LeftItemContent_" + j, 0])], [UJ.Cre.Account, ([User, j, JBOX_arr[j][1]])]] }, leftItem);
  176. }
  177. if (j != 110) { break; }
  178. i = 109;
  179. }
  180. /*改款*/
  181. var leftItem = $$("div", { "className": "leftItem" }, User_Content_left);
  182. var LeftItemTitle = $$("div", { "className": "LeftItemTitle" }, leftItem);
  183. $$("strong", { "innerHTML": "该款翻新" }, LeftItemTitle);
  184. $$("img", { "src": "img/User/icon-1.jpg" }, LeftItemTitle);
  185. for (var j = 115; j < 117; j++) {
  186. $$("li", { "id": "LeftItemContent_" + j, "className": "LeftItemContent", "innerHTML": "<a>" + JBOX_arr[j][0] + "</a>", "onclick": [[UJ.Fnx.Tour_onclick, ([User_Content_left, "LeftItemContent_" + j, 0])], [UJ.Cre.Account, ([User, j, JBOX_arr[j][1]])]] }, leftItem);
  187. }
  188. /*账户*/
  189. var leftItem = $$("ul", { "className": "leftItem", "id": "leftItem" }, User_Content_left);
  190. var LeftItemTitle = $$("ul", { "className": "LeftItemTitle" }, leftItem);
  191. $$("strong", { "innerHTML": "账户中心" }, LeftItemTitle);
  192. $$("img", { "src": "img/User/icon-1.jpg" }, LeftItemTitle);
  193. for (var i = 118; i < 123; i++) {
  194. $$("li", { "id": "LeftItemContent_" + i, "className": "LeftItemContent", "innerHTML": "<a>" + JBOX_arr[i][0] + "</a>", "onclick": [[UJ.Fnx.Tour_onclick, ([User_Content_left, "LeftItemContent_" + i, 0])], [UJ.Cre.Account, (["User_Content_right", i, JBOX_arr[i][1]])]] }, leftItem);
  195. }
  196. var User_Content_right = $$("div", { "className": "User_Content_right", "id": "User_Content_right" }, User);
  197. UJ.Cre.shopcar(User_Content_right);
  198. $("#UU #UJ_T #User_Content")[0].children[1].children[1].children[3].children[0].style.color = "#d62f75";
  199. }
  200. /*动态创建购物车*/
  201. UJ.Cre.shopcar = function (User_Content_right) {
  202. var theBox = $$("ul", { "id": "theBox", "className": "theBox" }, User_Content_right);
  203. var boxRow_1 = $$("li", { "className": "boxRow_1" }, theBox);
  204. $$("img", { "src": "img/User/slt.jpg" }, boxRow_1);
  205. $$("li", { "className": "xhx" }, theBox);
  206. $$("li", { "className": "boxRow_2", "innerHTML": "购物车" }, theBox);
  207. var boxRow_3 = $$("li", { "className": "boxRow_3" }, theBox);
  208. var br1 = $$("div", { "className": "br1" }, boxRow_3);
  209. $$("input", { "type": "checkbox", "name": "chooseall", "checked": "checked" }, br1);
  210. for (var i = 123; i < 129; i++) {
  211. $$("div", { "className": "br" + (i - 121), "innerHTML": JBOX_arr[i][0] }, boxRow_3);
  212. }
  213. var boxRow_5 = $$("li", { "className": "boxRow_5", "innerHTML": "<div class = UJ_count>0</div><div>件商品总计(不含运费):&nbsp</div><font><div className='UJ_money'>¥0.00</div></font>" }, theBox);
  214. var boxRow_6 = $$("li", { "className": "boxRow_6" }, theBox);
  215. var div1 = $$("div", { "className": "div1" }, boxRow_6);
  216. $$("img", { "src": "img/User/buy.jpg" }, div1);
  217. var div2 = $$("div", { "className": "div2" }, boxRow_6);
  218. $$("img", { "src": "img/User/qjs.jpg" }, div2);
  219. $$("div", { "className": "clear lastdiv" }, User_Content_right);
  220. }
  221. /*动态创建个人信息*/
  222. UJ.Cre.Account_c = function () {
  223. var P = $$("div", { "id": "Personal_info", "className": "Personal_info" }, "");
  224. $("#User_Content_right")[0].insertBefore(P, $(".lastdiv")[0]);
  225. var largeTitle = $$("ul", { "className": "largeTitle" }, P);
  226. $$("li", { "innerHTML": "个人信息" }, largeTitle);
  227. var infoList = $$("div", { "className": "infoList" }, P);
  228. $$("div", { "className": "infoTitle", "innerHTML": "会员信息" }, infoList);
  229. var infoContent = $$("div", { "className": "infoContent" }, infoList);
  230. var infoContentLeft = $$("ul", { "className": "infoContentLeft" }, infoContent);
  231. var infoContentRow = $$("li", { "className": "infoContentRow" }, infoContentLeft);
  232. $$("li", { "className": "icr_1", "innerHTML": "用户名:" }, infoContentRow);
  233. $$("li", { "className": "icr_2", "id": "Account_UserName" }, infoContentRow);
  234. var infoContentRow = $$("li", { "className": "infoContentRow" }, infoContentLeft);
  235. $$("li", { "className": "icr_1", "innerHTML": "真实姓名:" }, infoContentRow);
  236. var icr_2 = $$("li", { "className": "icr_2 icr_input" }, infoContentRow);
  237. $$("input", { "type": "text", "id": "Account_c_name" }, icr_2);
  238. $$("li", { "className": "icr_3", "innerHTML": "仅自己可见" }, infoContentRow);
  239. var infoContentRow = $$("li", { "className": "infoContentRow" }, infoContentLeft);
  240. $$("li", { "className": "icr_1", "innerHTML": "性别:" }, infoContentRow);
  241. var icr_2 = $$("li", { "className": "icr_2" }, infoContentRow);
  242. $$("input", { "type": "radio", "value": "0", "className": "_input" }, icr_2);
  243. $$("div", { "innerHTML": "男", "className": "sex" }, icr_2);
  244. $$("input", { "type": "radio", "value": "1", "className": "_input" }, icr_2);
  245. $$("div", { "innerHTML": "女", "className": "sex" }, icr_2);
  246. $$("input", { "type": "radio", "value": "2", "className": "_input", "checked": "checked" }, icr_2);
  247. $$("div", { "innerHTML": "保密", "className": "sex" }, icr_2);
  248. var infoContentRow = $$("li", { "className": "infoContentRow" }, infoContentLeft);
  249. $$("li", { "className": "icr_1", "innerHTML": "所在地:" }, infoContentRow);
  250. var icr_2 = $$("li", { "className": "icr_2 City" }, infoContentRow);
  251. //U.City(icr_2, "");
  252. var infoContentRow = $$("li", { "className": "infoContentRow" }, infoContentLeft);
  253. $$("li", { "className": "icr_1 part_D", "innerHTML": "生日:" }, infoContentRow);
  254. var aa = $$("li", { "className": "icr_2" }, infoContentRow);
  255. //$$("div", { "id": "partDate", "className": "U_C_left icr_2_input", "innerHTML": "1990-01-01", "onclick": [[U.Date, (['partDate'])]] }, aa)
  256. var infoContentRight = $$("ul", { "className": "infoContentRight" }, infoContent);
  257. var icr_1 = $$("li", { "className": "icr_1" }, infoContentRight);
  258. $$("img", { "src": "img/User/df.jpg " }, icr_1);
  259. var icr_2 = $$("li", { "className": "icr_2" }, infoContentRight);
  260. $$("a", { "innerHTML": "修改头像" }, icr_2);
  261. $$("ul", { "className": "clear" }, infoContent);
  262. var infoList = $$("div", { "className": "infoList" }, P);
  263. $$("div", { "className": "infoTitle", "innerHTML": "联系信息" }, infoList);
  264. var infoContent = $$("div", { "className": "infoContent2" }, infoList);
  265. var infoContentLeft = $$("ul", { "className": "infoContentLeft" }, infoContent);
  266. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  267. $$("div", { "innerHTML": "绑定邮箱:", "className": "infoDiv_1" }, infoCRow);
  268. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  269. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  270. $$("input", { "type": "button", "value": "绑定", "className": "button" }, infoDiv_2);
  271. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  272. $$("div", { "innerHTML": "绑定手机:", "className": "infoDiv_1" }, infoCRow);
  273. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  274. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  275. $$("input", { "type": "button", "value": "绑定", "className": "button" }, infoDiv_2);
  276. var infoList = $$("div", { "className": "infoList" }, P);
  277. $$("div", { "className": "infoTitle", "innerHTML": "其他信息" }, infoList);
  278. var infoContent = $$("div", { "className": "infoContent2" }, infoList);
  279. var ul = $$("ul", {}, infoContent);
  280. $$("li", { "className": "infoCRow", "innerHTML": "完善更多个人信息,有助于我们为您提供更加个性化的服务;美宝商城将尊重并保护您的隐私。" }, ul);
  281. var infoCRow = $$("li", { "className": "infoCRow" }, ul);
  282. $$("div", { "innerHTML": "婚姻状况:", "className": "infoDiv_1" }, infoCRow);
  283. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  284. $$("input", { "type": "radio", "value": "1", "className": "_input" }, infoDiv_2);
  285. $$("div", { "innerHTML": "已婚", "className": "sex" }, infoDiv_2);
  286. $$("input", { "type": "radio", "value": "0", "className": "_input" }, infoDiv_2);
  287. $$("div", { "innerHTML": "未婚", "className": "sex" }, infoDiv_2);
  288. $$("input", { "type": "radio", "value": "3", "className": "_input" }, infoDiv_2);
  289. $$("div", { "innerHTML": "恋爱中", "className": "sex" }, infoDiv_2);
  290. $$("input", { "type": "radio", "value": "2", "className": "_input", "checked": "checked" }, infoDiv_2);
  291. $$("div", { "innerHTML": "保密", "className": "sex" }, infoDiv_2);
  292. var infoCRow = $$("li", { "className": "infoCRow" }, ul);
  293. $$("div", { "innerHTML": "最高学历:", "className": "infoDiv_1" }, infoCRow);
  294. var infoDiv_2 = $$("input", { "id": "_button", "className": "infoDiv_2 _button", "type": "button", "value": "点我" }, infoCRow);
  295. infoDiv_2.onclick = function () {
  296. UJ.Fnx.Select("Edu", 129, 134, JBOX_arr, this, "Personal_info", "User_Content_left");
  297. }
  298. $$("div", { "innerHTML": "保存修改", "className": "infoList UJ_SafeRep" }, P);
  299. }
  300. /*动态创建帐号安全*/
  301. UJ.Cre.Account_safe = function () {
  302. var P = $$("div", { "id": "UJ_Account_safe", "className": "Personal_info UJ_Account_safe" }, "");
  303. $("#User_Content_right")[0].insertBefore(P, $(".lastdiv")[0]);
  304. var largeTitle = $$("ul", { "className": "largeTitle" }, P);
  305. $$("li", { "innerHTML": "帐户安全" }, largeTitle);
  306. var infoList = $$("div", { "className": "infoList" }, P);
  307. $$("div", { "className": "infoTitle", "innerHTML": "修改密码" }, infoList);
  308. var infoContent = $$("div", { "className": "infoContent2" }, infoList);
  309. // var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoList);
  310. // $$("a", { "innerHTML": "建议定期更换密码,并设置密码一个包含字母加数字或符号,长度为6-20个字符的密码" }, div);
  311. var infoContentLeft = $$("ul", { "className": "infoContentLeft" }, infoContent);
  312. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  313. $$("div", { "innerHTML": "旧密码:", "className": "infoDiv_1" }, infoCRow);
  314. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  315. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  316. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  317. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  318. $$("a", { "innerHTML": "您的旧密码" }, div);
  319. $$("div", { "innerHTML": "新密码:", "className": "infoDiv_1" }, infoCRow);
  320. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  321. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  322. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  323. $$("a", { "innerHTML": "您的新密码" }, div);
  324. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  325. $$("div", { "innerHTML": "确认密码:", "className": "infoDiv_1" }, infoCRow);
  326. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  327. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  328. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  329. $$("a", { "innerHTML": "请再一次输入新的密码" }, div);
  330. var infoList = $$("div", { "className": "infoList" }, P);
  331. $$("div", { "className": "infoTitle", "innerHTML": "信息验证" }, infoList);
  332. var infoContent = $$("div", { "className": "infoContent2" }, infoList);
  333. var infoContentLeft = $$("ul", { "className": "infoContentLeft" }, infoContent)
  334. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  335. $$("div", { "innerHTML": "邮箱验证:", "className": "infoDiv_1" }, infoCRow);
  336. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  337. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  338. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  339. $$("a", { "innerHTML": "可用于登录,您在忘记密码的时候可以通过它找回密码" }, div);
  340. var infoList = $$("div", { "className": "infoList" }, P);
  341. $$("div", { "className": "infoTitle", "innerHTML": "支付信息" }, infoList);
  342. var infoContent = $$("div", { "className": "infoContent2" }, infoList);
  343. var infoContentLeft = $$("ul", { "className": "infoContentLeft" }, infoContent)
  344. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  345. $$("div", { "innerHTML": "支付卡号:", "className": "infoDiv_1" }, infoCRow);
  346. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  347. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  348. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  349. $$("a", { "innerHTML": "用于虚拟用户支付卡号,请填写完整哦" }, div);
  350. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  351. $$("div", { "innerHTML": "支付密码:", "className": "infoDiv_1" }, infoCRow);
  352. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  353. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  354. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  355. $$("a", { "innerHTML": "用于虚拟用户支付,并设置密码一个包含字母加数字或符号,长度为6-20个字符的密码" }, div);
  356. var infoList = $$("div", { "className": "infoList" }, P);
  357. $$("div", { "className": "infoTitle", "innerHTML": "会员卡" }, infoList);
  358. var infoContent = $$("div", { "className": "infoContent2" }, infoList);
  359. var infoContentLeft = $$("ul", { "className": "infoContentLeft" }, infoContent)
  360. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  361. $$("div", { "innerHTML": "会员卡号:", "className": "infoDiv_1" }, infoCRow);
  362. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  363. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  364. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  365. $$("a", { "innerHTML": "在网站中,会员资格的卡号哦" }, div);
  366. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  367. $$("div", { "innerHTML": "会员卡密:", "className": "infoDiv_1" }, infoCRow);
  368. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  369. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  370. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  371. $$("a", { "innerHTML": "在网站中,会员资格的卡号密码哦" }, div);
  372. var infoList = $$("div", { "className": "infoList" }, P);
  373. $$("div", { "className": "infoTitle", "innerHTML": "修改会员卡密" }, infoList);
  374. var infoContent = $$("div", { "className": "infoContent2" }, infoList);
  375. var infoContentLeft = $$("ul", { "className": "infoContentLeft" }, infoContent)
  376. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  377. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  378. $$("div", { "innerHTML": "旧密码:", "className": "infoDiv_1" }, infoCRow);
  379. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  380. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  381. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  382. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  383. $$("a", { "innerHTML": "您的会员卡的旧密码哦" }, div);
  384. $$("div", { "innerHTML": "新密码:", "className": "infoDiv_1" }, infoCRow);
  385. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  386. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  387. var infoCRow = $$("li", { "className": "infoCRow" }, infoContentLeft);
  388. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  389. $$("a", { "innerHTML": "您所要设置的会员卡的新密码哦" }, div);
  390. $$("div", { "innerHTML": "确认密码:", "className": "infoDiv_1" }, infoCRow);
  391. var infoDiv_2 = $$("div", { "className": "infoDiv_2" }, infoCRow);
  392. $$("input", { "type": "text", "className": "text" }, infoDiv_2);
  393. var div = $$("div", { "className": "UJ_left UJ_Rem_Account_safe" }, infoDiv_2);
  394. $$("a", { "innerHTML": "请再一次输入新的密码" }, div);
  395. $$("div", { "innerHTML": "保存修改", "className": "infoList UJ_SafeRep" }, P);
  396. }
  397. /*动态创建用户收货地址*/
  398. UJ.Cre.getGoodsAddress = function () {
  399. var P = $$("div", { "id": "UJ_Address", "className": "Personal_info UJ_Address" }, "");
  400. $("#User_Content_right")[0].insertBefore(P, $(".lastdiv")[0]);
  401. var largeTitle = $$("ul", { "className": "largeTitle" }, P);
  402. $$("li", { "innerHTML": "收货地址管理" }, largeTitle);
  403. var creatBox = $$("div", { "className": "creatBox" }, P);
  404. var div = $$("div", { "className": "AcreatAdres", "innerHTML": "创建收货地址" }, creatBox);
  405. var writeAdress = $$("div", { "className": "writeAdress", "id": "writeAdress" }, P);
  406. div.onclick = function () {
  407. $("#" + writeAdress).animate({ "height": "450px" }, 100);
  408. var ALayout = $$("div", { "id": "ALayout", "className": "ALayout" }, writeAdress);
  409. var CreatLay = $$("div", { "id": "CreatLay", "className": "CreatLay" }, writeAdress);
  410. var UJ_close = $$("div", { "className": "UJ_Cclose", "id": "UJ_Cclose" }, CreatLay);
  411. $$("img", { "src": "img/User/NewClose.jpg" }, UJ_close);
  412. var ul = $$("ul", {}, CreatLay);
  413. for (var i = 134; i < 141; i++) {
  414. var li = $$("li", {}, ul);
  415. $$("div", { "className": "AbocListL", "innerHTML": JBOX_arr[i][0] }, li);
  416. if (i == 135) {
  417. //U.City(li, "");
  418. //return;
  419. } else {
  420. var div = $$("div", { "className": "AbocListR AsendName" }, li);
  421. $$("input", { "type": "text" }, div);
  422. $$("div", { "className": "clear" }, li);
  423. }
  424. }
  425. //$$("div", { "innerHTML": "确认信息", "className": "infoList UJ_SafeRep" }, P);
  426. $$("div", { "className": "clear" }, CreatLay);
  427. }
  428. }
  429. /*我的订单*/
  430. UJ.Cre.My_order = function (a) {
  431. var P = $$("div", { "id": "My_order", "className": "Personal_info UJ_Account_safe" }, "");
  432. $("#User_Content_right")[0].insertBefore(P, $(".lastdiv")[0]);
  433. var largeTitle = $$("ul", { "className": "largeTitle" }, P);
  434. $$("li", { "innerHTML": "我的订单" }, largeTitle);
  435. var OrderS = $$("div", { "id": "order_search", "className": "order_s" }, P); //搜索
  436. var OrderSearch = $$("ul", { "class": "OrderUl" }, OrderS);
  437. var OrderSelect = $$("li", { "class": "OrderSelect" }, OrderSearch);
  438. var OrderSelectH = $$("div", { "id": "OrderSelectText", "innerHTML": "全部订单", "className": "OrderSelectH" }, OrderSelect);
  439. OrderSelectH.onclick = function () {
  440. UJ.Fnx.Select("current_status", "184", "189", JBOX_arr, this, "order_search",""); //订单状态
  441. }
  442. $$("div", { "innerHTML": "下单时间 :", "className": "xiadansj" }, OrderSelect);
  443. $$("input", { "type": "text", "class": "", "readonly": "readonly", "onclick": "alert('后期将弹出日历');" }, OrderSelect);
  444. $$("div", { "innerHTML": "至", "className": "xiadansj" }, OrderSelect);
  445. $$("input", { "type": "text", "readonly": "readonly", "onclick": "alert('后期将弹出日历');" }, OrderSelect);
  446. $$("input", { "id": "OrderSearch", "type": "text", "class": "Search" }, OrderSelect);
  447. $$("input", { "type": "image", "className": "confirm", "src": "img/User/submit.jpg", "onclick": "alert('');" }, OrderSelect);
  448. var TheOrder = $$("div", { "className": "TheOrder" }, P);
  449. var text = $$("div", { "className": "OrderText" }, TheOrder);
  450. $$("div", { "class": "right", "innerHTML": "共 <div id='record' style='display: inline'>0</div> 条记录 共<div id='page' style='display: inline'>0</div>页 很抱歉!没有找到符合您条件的相关信息!" }, text);
  451. }
  452. /*我的收藏*/
  453. UJ.Cre.My_love = function () {
  454. var P = $$("div", { "id": "My_love", "className": "My_love" }, "");
  455. $("#User_Content_right")[0].insertBefore(P, $(".lastdiv")[0]);
  456. var largeTitle = $$("ul", { "className": "largeTitle left" }, P);
  457. var goods = $$("li", { "id": "My_love_li_major", "class": "My_love_li My_love_li_major", "innerHTML": "收藏的商品" }, largeTitle);
  458. $$("img", { "src": "../../img/User/tabBj2.jpg", "className": "left" }, largeTitle);
  459. var brand = $$("li", { "id": "My_love_li", "class": "My_love_li", "innerHTML": "收藏的品牌" }, largeTitle);
  460. var ListLaast = $$("li", { "className": "My_love_li " }, largeTitle);
  461. ListLaast.style.width = "727px";
  462. goods.onclick = function () {
  463. $("#TheOrder").css("display", "block");
  464. $("#BoxBrand").css("display", "none");
  465. $("#My_love_li").css("color", "#ADADAD");
  466. $("#My_love_li").css("background", "url(../../img/User/liBj.jpg) no-repeat 0 bottom");
  467. this.style.background = "url(../../img/User/tabBj.jpg) no-repeat 0 bottom";
  468. this.style.color = " #d82c74";
  469. }
  470. brand.onclick = function () {
  471. $("#BoxBrand").css("display", "block");
  472. $("#TheOrder").css("display", "none");
  473. $("#My_love_li_major").css("color", "#ADADAD");
  474. $("#My_love_li_major").css("background", "url(../../img/User/liBj.jpg) no-repeat 0 bottom");
  475. this.style.background = "url(../../img/User/tabBj.jpg) no-repeat 0 bottom";
  476. this.style.color = " #d82c74";
  477. }
  478. var TheOrder = $$("div", { "id": "TheOrder", "className": "TheOrder" }, P);
  479. var MyLove_select = $$("li", { "className": "MyLove_select left" }, TheOrder);
  480. $$("input", { "className": "left Mylove_font", "type": "checkbox", "onclick": "" }, MyLove_select);
  481. $$("font", { "className": "left Mylove_font", "innerHTML": "全选" }, MyLove_select);
  482. $$("div", { "className": "CLayList", "innerHTML": "加入珠宝箱" }, MyLove_select);
  483. $$("div", { "className": "CLayList", "innerHTML": "取消收藏" }, MyLove_select);
  484. var BoxMenu = $$("div", { "id": "BoxMenu", "className": "BoxMenu left ", "innerHTML": "" }, TheOrder);
  485. var BoxMenu_ul = $$("ul", { "className": "BoxMenu_ul" }, BoxMenu);
  486. for (var i = 189; i < 194; i++) {
  487. $$("li", { "id": "BoxMenu_li_" + i, "className": "BoxMenu_li left ", "innerHTML": JBOX_arr[i][0] }, BoxMenu_ul);
  488. }
  489. var text = $$("div", { "className": "OrderText" }, TheOrder);
  490. $$("div", { "class": "right", "innerHTML": "共 <div id='record' style='display: inline'>0</div> 条记录 共<div id='page' style='display: inline'>0</div>页 很抱歉!没有找到符合您条件的相关信息!" }, text);
  491. var BoxBrand = $$("div", { "id": "BoxBrand", "className": "BoxBrand" }, P);
  492. $$("p", { "className": "BoxBrand_P", "innerHTML": JBOX_arr[194][0] }, BoxBrand);
  493. $$("p", { "className": "BoxBrand_P", "innerHTML": JBOX_arr[195][0] }, BoxBrand);
  494. var text = $$("div", { "className": "OrderText" }, BoxBrand);
  495. $$("div", { "class": "right", "innerHTML": "共 <div id='record' style='display: inline'>0</div> 条记录 共<div id='page' style='display: inline'>0</div>页 很抱歉!没有找到符合您条件的相关信息!" }, text);
  496. }
  497. /*动态创建用户积分*/
  498. UJ.Cre.UJ_Integral = function () {
  499. var P = $$("div", { "id": "UJ_Integral", "className": "Personal_info UJ_Integral" }, "");
  500. $("#User_Content_right")[0].insertBefore(P, $(".lastdiv")[0]);
  501. var largeTitle = $$("ul", { "className": "largeTitle" }, P);
  502. $$("li", { "innerHTML": "积分系统" }, largeTitle);
  503. var Integral_whole = $$("div", { "className": "Integral_whole" }, P);
  504. var Integral_whole_Rule = $$("table", { "classsName": "Integral_whole_Rule" }, Integral_whole);
  505. var Integral_whole_Rule_tbody = $$("tbody", Integral_Rule);
  506. var Integral_whole_Rule_tbody_tr = $$("tr", Integral_whole_Rule_tbody);
  507. var Integral_whole_Rule_tbody_th = $$("th", Integral_whole_Rule_tbody_tr);
  508. }
  509. /*动态创建用户评价*/
  510. UJ.Cre.Account_Eva = function () {
  511. var P = $$("div", { "id": "Account_Eva", "className": "Personal_info Account_Eva" }, "");
  512. $("#User_Content_right")[0].insertBefore(P, $(".lastdiv")[0]);
  513. var largeTitle = $$("ul", { "className": "largeTitle" }, P);
  514. $$("li", { "innerHTML": "评价管理" }, largeTitle);
  515. var ul = $$("ul", { "className": "Account_Eva_Top", "id": "Account_Eva_Top" }, P);
  516. for (var i = 141; i < 144; i++) {
  517. $$("li", { "id": JBOX_arr[i][0], "innerHTML": JBOX_arr[i][1], "onclick": [[UJ.Cre.Account_Eva_Change, ([JBOX_arr[i][0], P, i])]] }, ul);
  518. }
  519. $$("div", { "className": "clear" }, ul);
  520. var ul = $$("ul", { "className": "Account_Eva_Title", "id": "Account_Eva_Title_" + JBOX_arr[143][0] }, P);
  521. for (var i = 144; i < 149; i++) {
  522. $$("li", { "innerHTML": JBOX_arr[i][0], "className": JBOX_arr[i][1] }, ul);
  523. }
  524. $$("div", { "className": "clear" }, ul);
  525. /*模拟数据库返回来的数据*/
  526. var o = [["好评", "商品让我爱不释手,卖家舒服态度也很好,真的不错的。值得推荐", "血月丶仙道", "金海湾 狐狸银手链 925银手链", "删除"]];
  527. var ul = $$("ul", { "className": "Account_Eva_content", "id": "Account_Eva_content_" + JBOX_arr[143][0] }, P);
  528. for (var i = 0; i < o.length; i++) {
  529. for (var j = 0; j < o[i].length; j++) {
  530. $$("li", { "innerHTML": o[i][j], "className": "li" + (j + 1) }, ul)
  531. }
  532. }
  533. $$("div", { "className": "clear" }, ul);
  534. $("#Account_Eva_Top")[0].children[2].style.background = "rgb(239, 64, 137)";
  535. $("#Account_Eva_Top")[0].children[2].style.color = "#fff";
  536. }
  537. /*动态创建用户评价切换*/
  538. UJ.Cre.Account_Eva_Change = function (a, b, c) {
  539. for (var i = 0; i < $("#Account_Eva_Top")[0].children.length; i++) {
  540. $("#Account_Eva_Top")[0].children[i].style.color = "black";
  541. $("#Account_Eva_Top")[0].children[i].style.background = "#e2e2e2";
  542. }
  543. $("#" + a)[0].style.color = "black";
  544. $("#" + a)[0].style.background = "rgb(239, 64, 137)";
  545. if (!$("#Account_Eva_content_" + a)[0]) {
  546. var ul = $$("ul", { "className": "Account_Eva_Title", "id": "Account_Eva_Title_" + a }, b);
  547. for (var i = 149; i < 154; i++) {
  548. $$("li", { "innerHTML": JBOX_arr[i][0], "className": JBOX_arr[i][1] }, ul);
  549. }
  550. $$("div", { "className": "clear" }, ul);
  551. /*如果以后有数据就去获取*/
  552. if ("Account_Eva_content_" + a != "Account_Eva_content_UJ_Eva_From_buyer") {
  553. var o = [["好评", "商品让我爱不释手,卖家舒服态度也很好,真的不错的。值得推荐", "血月丶仙道", "金海湾 狐狸银手链 925银手链", "删除"]];
  554. var ul = $$("ul", { "className": "Account_Eva_content", "id": "Account_Eva_content_" + JBOX_arr[c][0] }, b);
  555. for (var i = 0; i < o.length; i++) {
  556. for (var j = 0; j < o[i].length; j++) {
  557. $$("li", { "innerHTML": o[i][j], "className": "li" + (j + 1) }, ul)
  558. }
  559. }
  560. } else {
  561. UJ.Fnx.isflg = true;
  562. }
  563. if (UJ.Fnx.isflg == true) {
  564. var ul = $$("ul", { "className": "Account_Eva_content", "id": "Account_Eva_content_" + JBOX_arr[c][0] }, b);
  565. $$("li", { "innerHTML": "很抱歉!没有任何关于买家评价您的数据<a>您未开店哦</a>", "className": "UJ_No_data" }, ul)
  566. }
  567. $$("div", { "className": "clear" }, ul);
  568. }
  569. UJ.Fnx.ExShowHide(["Account_Eva_Title_UJ_Eva_From_buyer", "Account_Eva_content_UJ_Eva_From_buyer", "Account_Eva_Title_UJ_Eva_FromSeller", "Account_Eva_content_UJ_Eva_FromSeller", "Account_Eva_Title_UJ_Eva_SendOther", "Account_Eva_content_UJ_Eva_SendOther"], ["Account_Eva_content_" + a, "Account_Eva_Title_" + a], "0px", "0");
  570. }