20200308.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta http-equiv="pragma" content="no-cache">
  6. <meta http-equiv="cache-control" content="no-cache">
  7. <meta http-equiv="expires" content="0">
  8. <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
  9. <meta name="apple-mobile-web-app-capable" content="yes">
  10. <meta name="apple-mobile-web-app-status-bar-style" content="black">
  11. <meta name="format-detection" content="telphone=no, email=no" />
  12. <title>Aiberle爱贝源</title>
  13. <link rel="stylesheet" type="text/css" href="css/mui.min.css" />
  14. <link rel="stylesheet" type="text/css" href="css/iconfont.css" />
  15. <link rel="stylesheet" type="text/css" href="css/main.css" />
  16. <style>
  17. .year-dalog { background: url(images/year-dalog.png) center center no-repeat rgba(0, 0, 0, .7); background-size: 80% auto; position: fixed; left: 0; top: 0; right: 0; bottom: 0; width: 100%; height: 100%; z-index: 99; display: none; -webkit-transform: translateY(-100%); transform: translateY(-100%); -webkit-transition: .5s; transition: .5s; }
  18. .year-dalog.active { -webkit-transform: translateY(0%); transform: translateY(0%); }
  19. .year-dalog img { width: 100%; }
  20. .header { padding: 10px 0 7px 0; height: 65px; box-shadow: 0 0 0 #fff; background: #fff; }
  21. .header h6 { text-indent: 12px; color: #999; letter-spacing: 2px; }
  22. .go-index { width: 30%; margin-right: 1%; float: none; }
  23. .go-index img { width: 80%; padding-top: 5px; margin-left: 12px; max-width: 100px; }
  24. .swiper-container-horizontal>.swiper-pagination-bullets { bottom: 0; }
  25. .swiper-pagination-bullet-active { background: #63ccde; }
  26. .index-title { padding: 7px 12px 7px 12px; display: block; position: relative; }
  27. .index-title strong { font-size: 17px; }
  28. .index-title .mui-pull-right { color: #333; }
  29. .index-title font { display: inline-block; -webkit-transform: translateY(-1px); transform: translateY(-1px); }
  30. .pro-list .mui-media-object { background: #f2f2f2; border-radius: 5px; display: block; }
  31. .pro-list:before,.pro-list:after {display: none;}
  32. /* .pro-list.mui-table-view.mui-grid-view>li:nth-child(odd) {padding: 10px 8px 0 14px;} */
  33. /* .pro-list.mui-table-view.mui-grid-view>li:nth-child(even) {padding: 10px 0 0 22px;} */
  34. .pro-list.mui-table-view.mui-grid-view>li:nth-child(odd){padding: 0px;}
  35. .pro-list.mui-table-view.mui-grid-view>li:nth-child(even){padding: 0px;}
  36. .mui-table-view.mui-grid-view {padding: 0px;}
  37. .pro-list h6 {margin: 7px 0;color: #bbb;}
  38. .pro-list .pro-price {font-size: 14px;margin-top: 8px;}
  39. .pro-list .pro-price span {color: #db3f53;}
  40. .pro-list .pro-price s {color: #bbb;margin-left: 15px;}
  41. body{padding: 0px;margin: 0px;background-color: #FFFFFF;}
  42. .coupon_class{padding-top:12px ;}
  43. .ul_class>ul>li{float: left;display: block;}
  44. .ul_class>ul>li>img{display: block;width: 100%;}
  45. .ul_class{display: block;width: 100%;}
  46. </style>
  47. </head>
  48. <script>
  49. var start = new Date(2020,2-1,3,00,00,00);
  50. var end = new Date(2020,3-1,8,23,59,59);
  51. var d = new Date().getTime(); //当前时间戳
  52. if (!(d > start && d <= end)) {
  53. location.href = "index.html";
  54. }
  55. </script>
  56. <body>
  57. <footer class="mui-bar mui-bar-tab" id="footer-bar-tab">
  58. <a class="mui-tab-item mui-active">
  59. <span class="iconfont icon-shouye"></span>
  60. <span class="mui-tab-label">首页</span>
  61. </a>
  62. <a class="mui-tab-item">
  63. <span class="iconfont icon-gouwuche"></span>
  64. <span class="mui-tab-label">购物车</span>
  65. </a>
  66. <a class="mui-tab-item">
  67. <span class="iconfont icon-dingdan"></span>
  68. <span class="mui-tab-label">订单</span>
  69. </a>
  70. <a class="mui-tab-item">
  71. <span class="iconfont icon-wode"></span>
  72. <span class="mui-tab-label">我的</span>
  73. </a>
  74. </footer>
  75. <div class="" style="">
  76. <img width="100%" src="images/20200228/aiberle.png" />
  77. </div>
  78. <div class="go_web_shop go_pro_list" style="margin-top: 8px;margin-left: 2%;margin-right: 2%;">
  79. <img width="100%" src="images/20200228/more.png" />
  80. </div>
  81. <div class="slogan_class ul_class" style="padding-top:10px;overflow:hidden; background: #fff;">
  82. <ul style="width: 98%;">
  83. <li style="margin: 0px;width: 48%;margin-left: 2%;" class="to_new_slt">
  84. <img style="" src="images/20200228/tz.png" />
  85. </li>
  86. <li style="margin: 0px;width: 48%;margin-left: 2%;" class="to_new_slt_2">
  87. <img style="" src="images/20200228/jf.png" />
  88. </li>
  89. </ul>
  90. </div>
  91. <div class="mui-content" style="background: #f4f7fb; padding-top:15px;margin-top: 17px;width: 96%;margin-left: 2%;padding-bottom: 10px !important;">
  92. <div style="text-align: center;color: #ad504e;font-size: 20px;font-weight: bold;letter-spacing: 10px;padding-bottom: 10px;">爱健康</div>
  93. <div class="chanpin-box">
  94. <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background: #f4f7fb;">
  95. <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
  96. <a proid="60" class="go_chanpin_details" style="margin: 0px;">
  97. <img class="mui-media-object" src="images/20200228/watero_lv.png">
  98. </a>
  99. </li>
  100. <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
  101. <a proid="36" class="go_chanpin_details" style="margin: 0px;">
  102. <img class="mui-media-object" src="images/20200228/aiber_lv.png">
  103. </a>
  104. </li>
  105. </ul>
  106. <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background: #f4f7fb;margin-top: 10px;">
  107. <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
  108. <a proid="48" class="go_chanpin_details" style="margin: 0px;">
  109. <img class="mui-media-object" src="images/20200228/WA_1.png">
  110. </a>
  111. </li>
  112. <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
  113. <a proid="46" class="go_chanpin_details" style="margin: 0px;">
  114. <img class="mui-media-object" src="images/20200228/WB_2_bai.png">
  115. </a>
  116. </li>
  117. </ul>
  118. <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background: #f4f7fb;margin-top: 10px;">
  119. <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
  120. <a proid="64" class="go_chanpin_details" style="margin: 0px;">
  121. <img class="mui-media-object" src="images/20200228/wb_2_lv.png">
  122. </a>
  123. </li>
  124. <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
  125. <a proid="58" class="go_chanpin_details" style="margin: 0px;">
  126. <img class="mui-media-object" src="images/20200228/s3_lan.png">
  127. </a>
  128. </li>
  129. </ul>
  130. </div>
  131. </div>
  132. <!-- 爱家人 -->
  133. <div class="mui-content" style="background: #fbf9f4; padding-top:15px;margin-top: 17px;width: 96%;margin-left: 2%;padding-bottom: 10px !important;">
  134. <div style="text-align: center;color: #ad504e;font-size: 20px;font-weight: bold;letter-spacing: 10px;padding-bottom: 10px;">爱家人</div>
  135. <div class="chanpin-box">
  136. <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background: #fbf9f4;">
  137. <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
  138. <a proid="44" class="go_chanpin_details" style="margin: 0px;">
  139. <img class="mui-media-object" src="images/20200228/guoshuji.png">
  140. </a>
  141. </li>
  142. <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
  143. <a proid="40" class="go_chanpin_details" style="margin: 0px;">
  144. <img class="mui-media-object" src="images/20200228/slt.png">
  145. </a>
  146. </li>
  147. </ul>
  148. </div>
  149. </div>
  150. <div class="mui-content" style="background:#fbf7f6; padding-top:15px;margin-top: 17px;width: 96%;margin-left: 2%;padding-bottom: 10px !important;">
  151. <div style="text-align: center;color: #ad504e;font-size: 20px;font-weight: bold;letter-spacing: 10px;padding-bottom: 10px;">爱自己</div>
  152. <div class="chanpin-box">
  153. <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background:#fbf7f6;">
  154. <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
  155. <a proid="42" class="go_chanpin_details" style="margin: 0px;">
  156. <img class="mui-media-object" src="images/20200228/rsj.png">
  157. </a>
  158. </li>
  159. <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
  160. <a proid="41" class="go_chanpin_details" style="margin: 0px;">
  161. <img class="mui-media-object" src="images/20200228/hs.png">
  162. </a>
  163. </li>
  164. </ul>
  165. </div>
  166. </div>
  167. <div class="mui-content" style="background-color: #ffffff;margin-top: 15px;padding-bottom: 50px !important;">
  168. </div>
  169. <script src="js/mui.min.js"></script>
  170. <script src="js/jquery-2.1.1.min.js"></script>
  171. <script src="js/jquery.autocompleter.js"></script>
  172. <script src="js/main.js"></script>
  173. <script src="js/wechat-utils-1.0.js"></script>
  174. </body>
  175. <script>
  176. // 读取值
  177. var colors = [];
  178. var histoty = JSON.parse(localStorage.getItem('search_histoty'));
  179. var clickdate = JSON.parse(localStorage.getItem('clickdate'));
  180. //console.log(histoty)
  181. if (histoty != null) {
  182. var str = histoty.text;
  183. for (i = 0; i < str.length; i++) {
  184. var childTypeId = ''
  185. if (typeof(str[i].childTypeId) != "undefined") {
  186. childTypeId = 'childTypeid=' + str[i].childTypeId;
  187. }
  188. $("#history").append('<button type="button" class="mui-btn" name="' + str[i].id + '" typeid="' + str[i].typeId +
  189. '" ' + childTypeId + '>' + str[i].label + '</button>');
  190. }
  191. }
  192. mui.ready(function() {
  193. $.ajax(base_path + '/wechat/indexData?dates=' + new Date().getTime(), {
  194. data: {},
  195. dataType: 'json',
  196. xhrFields: {
  197. withCredentials: true
  198. },
  199. crossDomain: true,
  200. type: 'post',
  201. timeout: 15000,
  202. success: function(dt) {
  203. //判断一下
  204. if (dt.isRedirect) {
  205. location.href = dt.redirectURL;
  206. }
  207. },
  208. error: function(xhr, type, errorThrown) {
  209. console.log(xhr);
  210. mui.alert("获取数据失败!网络错误");
  211. }
  212. });
  213. //搜索框焦点事件
  214. $('#search').on('focus', function(e) {
  215. window.scrollTo(0, 0, 500);
  216. $(".icon-caidan").hide();
  217. $('.my-btn-cancel').show();
  218. if ($(this).val().length > 0) {
  219. $('#search-hot').hide(500);
  220. $(".autocompleter-list").css("height", $(document).height())
  221. } else {
  222. $("#search-hot").css("height", $(document.body).height()).show();
  223. $("body").css("overflow", "hidden");
  224. }
  225. });
  226. //搜索框失去焦点事件
  227. $('#search').on('blur', function(e) {
  228. setTimeout(function() {
  229. $('#search-hot,.my-btn-cancel').hide();
  230. $("body").css("overflow", "auto");
  231. $(".icon-caidan").show();
  232. }, 700);
  233. });
  234. //点击后把text赋值到搜索框
  235. $(document).on('tap', '#history button', function() {
  236. $('#search').val($(this).text());
  237. console.log($(this).text())
  238. $('#search-hot').hide();
  239. $("body").css("overflow", "auto");
  240. var parameter = {};
  241. parameter["id"] = $(this).attr("name");
  242. parameter["label"] = $(this).text();
  243. parameter["typeId"] = $(this).attr("typeid");
  244. if (typeof($(this).attr("childtypeId")) != "undefined") {
  245. parameter["childTypeId"] = $(this).attr("childtypeid");
  246. }
  247. search(parameter);
  248. });
  249. //搜索框本地缓存
  250. function search(selected) {
  251. if (!window.localStorage) {
  252. mui.alert("您的浏览器不支持localStorage");
  253. } else {
  254. //自定义json数据
  255. var obj = {},
  256. searchobj = {};
  257. if (histoty != null) {
  258. var str = histoty.text;
  259. if (str.length > 2) {
  260. str.splice(2, 1)
  261. }
  262. str.splice(0, 0, selected)
  263. obj = {
  264. text: str
  265. }
  266. } else {
  267. obj = {
  268. text: [selected]
  269. };
  270. }
  271. searchobj = {
  272. text: [selected]
  273. }
  274. //json格式化插入
  275. localStorage.setItem('search_histoty', JSON.stringify(obj));
  276. sessionStorage.setItem('search_data', JSON.stringify(searchobj));
  277. mui.openWindow({
  278. url: 'pro-list.html?productId=' + selected.typeId
  279. });
  280. }
  281. }
  282. //监听搜索框值改变事件
  283. $('#search').on('input', function(e) {
  284. if ($(this).val().length > 0) {
  285. $('#search-hot').hide();
  286. $(".autocompleter-list").css("height", $(document).height());
  287. } else {
  288. $('#search-hot').show();
  289. $("body").css("overflow", "hidden");
  290. $(".autocompleter-list").css("height", "auto");
  291. }
  292. });
  293. $(".loading").hide().css("opacity", "0");
  294. });
  295. //取消搜索
  296. $(document).on('tap', '.my-btn-cancel', function() {
  297. $(this).hide();
  298. $('#search-hot').hide();
  299. $("body").css("overflow", "auto");
  300. $('#search').autocompleter("close");
  301. $(".autocompleter-list").empty().css("height", "auto");
  302. $('.autocompleter-hint').removeClass('autocompleter-hint-show').empty();
  303. $(".icon-caidan").show();
  304. $('#search').blur();
  305. });
  306. //打开菜单
  307. $(document).on('tap', '.icon-caidan', function() {
  308. $("#menu").css("height", $(window).height());
  309. $("#menu>li").addClass("active");
  310. });
  311. //关闭菜单
  312. $(document).on('tap', '.icon-guanbi', function() {
  313. $("#menu>li").removeClass("active");
  314. $("#menu").css("height", "0px");
  315. });
  316. //精选产品详情
  317. $(document).on('tap', '.mui-table-view-cell>a', function() {
  318. location.href = 'pro-details.html?productId=' + $(this).attr("proid")
  319. });
  320. mui('body').on('tap', '.to_new_slt', function() {
  321. location.href = 'pro-details.html?productId=65'
  322. });
  323. mui('body').on('tap', '.to_new_slt_2', function() {
  324. location.href = 'vip-equity.html'
  325. });
  326. mui('body').on('tap', '.to_new_xs', function() {
  327. location.href = "pro-list.html?productId=13";
  328. });
  329. //产品详情-配件
  330. $(document).on('tap', '#index-pro-items>.mui-control-item', function() {
  331. location.href = 'pro-list.html?productId=' + $(this).attr("name") + '&childTypeId=' + $(this).attr("item");
  332. });
  333. //more更多产品
  334. $(document).on('tap', '.go_pro_list', function() {
  335. if ($(this).attr("type") == "aiberle") {
  336. location.href = "pro-list.html?productId=13";
  337. } else {
  338. location.href = "pro-list.html?productId=14";
  339. }
  340. });
  341. //菜单跳转
  342. $(document).on('tap', '#menu>.line>a', function() {
  343. location.href = 'pro-list.html?productId=' + $(this).attr("name") + '&childTypeId=' + $(this).attr("item");
  344. });
  345. mui('body').on('tap', '.erweima', function() {
  346. $('.dalog').show();
  347. });
  348. // 关闭弹窗
  349. $(document).on('tap', '.icon-guanbi', function() {
  350. $('.dalog').hide();
  351. });
  352. mui('body').on('tap', '.go_cent', function() {
  353. mui.openWindow({
  354. url: 'vip-equity.html'
  355. })
  356. });
  357. </script>
  358. </html>