20200103.html 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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,1-1,3,00,00,00);
  50. var end = new Date(2020,1-1,6,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/20200103/banner.jpg" />
  77. </div>
  78. <div class="" style="color: #d7543b;width: 50%; margin: 0 auto; padding-top: 20px;">
  79. <img width="100%" src="images/20200103/cpzj.png" />
  80. </div>
  81. <div class="slogan_class ul_class" style="padding-top:15px;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/20200103/aiberle_lv.png" />
  85. </li>
  86. <li style="margin: 0px;width: 48%;margin-left: 2%;" class="to_new_slt_2">
  87. <img style="" src="images/20200103/watero_lv.png" />
  88. </li>
  89. </ul>
  90. </div>
  91. <div class="" style="color: #d7543b;width: 50%; margin: 0 auto; padding-top: 25px;">
  92. <img width="100%" src="images/20200103/rxcp.png" />
  93. </div>
  94. <div class="mui-content" style="background: #fff;padding-top:15px ;">
  95. <!--list结束-->
  96. <div class="index-title go_web_shop" style="margin-top: 0px;">
  97. <strong>Aiberle</strong><span class="mui-pull-right go_pro_list" type="aiberle"><font>更多</font><span class="mui-icon mui-icon-arrowright"></span></span>
  98. </div>
  99. <div class="chanpin-box" style="padding-bottom: 5px;">
  100. <ul class="mui-table-view mui-grid-view my-view-no to_goods" style="width: 98%;" >
  101. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;">
  102. <a proid="36" class="go_chanpin_details" style="margin: 0px;">
  103. <img class="mui-media-object" src="images/20200103/aiberle_tz.png">
  104. </a>
  105. </li>
  106. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;">
  107. <a proid="46" class="go_chanpin_details" style="margin: 0px;">
  108. <img class="mui-media-object" src="images/20200103/fg.png">
  109. </a>
  110. </li>
  111. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;">
  112. <a proid="39" class="go_chanpin_details" style="margin: 0px;">
  113. <img class="mui-media-object" src="images/20200103/lv.png">
  114. </a>
  115. </li>
  116. </ul>
  117. <ul class="mui-table-view mui-grid-view my-view-no to_goods" style="width: 98%;" >
  118. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;" >
  119. <a proid="33" class="go_chanpin_details" style="margin: 0px;">
  120. <img class="mui-media-object" src="images/20200103/bai_wb_1.png">
  121. </a>
  122. </li>
  123. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;" >
  124. <a proid="58" class="go_chanpin_details" style="margin: 0px;">
  125. <img class="mui-media-object" src="images/20200103/S3.png">
  126. </a>
  127. </li>
  128. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;">
  129. <a proid="54" class="go_chanpin_details" style="margin: 0px;">
  130. <img class="mui-media-object" src="images/20200103/kdjsj.png">
  131. </a>
  132. </li>
  133. </ul>
  134. <!-- <ul class="mui-table-view mui-grid-view my-view-no to_goods" style="width: 98%;" > -->
  135. <!-- <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;">
  136. <a proid="52" class="go_chanpin_details" style="margin: 0px;">
  137. <img class="mui-media-object" src="images/20191212/new_hs.jpg">
  138. </a>
  139. </li>
  140. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;" >
  141. <a proid="41" class="go_chanpin_details" style="margin: 0px;">
  142. <img class="mui-media-object" src="images/20191212/old_hs.jpg">
  143. </a>
  144. </li> -->
  145. <!-- <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;">
  146. <a proid="40" class="go_chanpin_details" style="margin: 0px;">
  147. <img class="mui-media-object" src="images/20191212/longtou_new.jpg">
  148. </a>
  149. </li> -->
  150. <!-- </ul> -->
  151. </div>
  152. <div class="index-title go_web_shop2" style="">
  153. <strong>WaterO</strong><span class="mui-pull-right go_pro_list" type="watero"><font>更多</font><span class="mui-icon mui-icon-arrowright"></span></span>
  154. </div>
  155. <div class="chanpin-box">
  156. <ul class="mui-table-view mui-grid-view my-view-no to_goods" id="index-pro-list2" style="width: 98%;" >
  157. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;">
  158. <a proid="60" class="go_chanpin_details" style="margin: 0px;">
  159. <img class="mui-media-object" src="images/20200103/watero_tz.png">
  160. </a>
  161. </li>
  162. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;" >
  163. <a proid="47" class="go_chanpin_details" style="margin: 0px;">
  164. <img class="mui-media-object" src="images/20200103/zq.png">
  165. </a>
  166. </li>
  167. <li class="mui-table-view-cell mui-media mui-col-xs-4" style="margin: 0px;padding-left: 2%;padding-top: 0px;">
  168. <a proid="48" class="go_chanpin_details" style="margin: 0px;">
  169. <img class="mui-media-object" src="images/20200103/hei_sj.png">
  170. </a>
  171. </li>
  172. </ul>
  173. </div>
  174. <div class="mui-content-padded my-content-padded" id="advs_banner" style="display: block;">
  175. <!--<a><img src="images/fuqing-1.png"></a>-->
  176. </div>
  177. <!--商城首页end-->
  178. </div>
  179. <script src="js/mui.min.js"></script>
  180. <script src="js/jquery-2.1.1.min.js"></script>
  181. <script src="js/jquery.autocompleter.js"></script>
  182. <script src="js/main.js"></script>
  183. <script src="js/wechat-utils-1.0.js"></script>
  184. </body>
  185. <script>
  186. // 读取值
  187. var colors = [];
  188. var histoty = JSON.parse(localStorage.getItem('search_histoty'));
  189. var clickdate = JSON.parse(localStorage.getItem('clickdate'));
  190. //console.log(histoty)
  191. if (histoty != null) {
  192. var str = histoty.text;
  193. for (i = 0; i < str.length; i++) {
  194. var childTypeId = ''
  195. if (typeof(str[i].childTypeId) != "undefined") {
  196. childTypeId = 'childTypeid=' + str[i].childTypeId;
  197. }
  198. $("#history").append('<button type="button" class="mui-btn" name="' + str[i].id + '" typeid="' + str[i].typeId +
  199. '" ' + childTypeId + '>' + str[i].label + '</button>');
  200. }
  201. }
  202. mui.ready(function() {
  203. calculatingTime();
  204. $.ajax(base_path + '/wechat/indexData?dates=' + new Date().getTime(), {
  205. data: {},
  206. dataType: 'json',
  207. xhrFields: {
  208. withCredentials: true
  209. },
  210. crossDomain: true,
  211. type: 'post',
  212. timeout: 15000,
  213. success: function(dt) {
  214. //判断一下
  215. if (dt.isRedirect) {
  216. location.href = dt.redirectURL;
  217. }
  218. },
  219. error: function(xhr, type, errorThrown) {
  220. console.log(xhr);
  221. mui.alert("获取数据失败!网络错误");
  222. }
  223. });
  224. //搜索框焦点事件
  225. $('#search').on('focus', function(e) {
  226. window.scrollTo(0, 0, 500);
  227. $(".icon-caidan").hide();
  228. $('.my-btn-cancel').show();
  229. if ($(this).val().length > 0) {
  230. $('#search-hot').hide(500);
  231. $(".autocompleter-list").css("height", $(document).height())
  232. } else {
  233. $("#search-hot").css("height", $(document.body).height()).show();
  234. $("body").css("overflow", "hidden");
  235. }
  236. });
  237. //搜索框失去焦点事件
  238. $('#search').on('blur', function(e) {
  239. setTimeout(function() {
  240. $('#search-hot,.my-btn-cancel').hide();
  241. $("body").css("overflow", "auto");
  242. $(".icon-caidan").show();
  243. }, 700);
  244. });
  245. //点击后把text赋值到搜索框
  246. $(document).on('tap', '#history button', function() {
  247. $('#search').val($(this).text());
  248. console.log($(this).text())
  249. $('#search-hot').hide();
  250. $("body").css("overflow", "auto");
  251. var parameter = {};
  252. parameter["id"] = $(this).attr("name");
  253. parameter["label"] = $(this).text();
  254. parameter["typeId"] = $(this).attr("typeid");
  255. if (typeof($(this).attr("childtypeId")) != "undefined") {
  256. parameter["childTypeId"] = $(this).attr("childtypeid");
  257. }
  258. search(parameter);
  259. });
  260. //搜索框本地缓存
  261. function search(selected) {
  262. if (!window.localStorage) {
  263. mui.alert("您的浏览器不支持localStorage");
  264. } else {
  265. //自定义json数据
  266. var obj = {},
  267. searchobj = {};
  268. if (histoty != null) {
  269. var str = histoty.text;
  270. if (str.length > 2) {
  271. str.splice(2, 1)
  272. }
  273. str.splice(0, 0, selected)
  274. obj = {
  275. text: str
  276. }
  277. } else {
  278. obj = {
  279. text: [selected]
  280. };
  281. }
  282. searchobj = {
  283. text: [selected]
  284. }
  285. //json格式化插入
  286. localStorage.setItem('search_histoty', JSON.stringify(obj));
  287. sessionStorage.setItem('search_data', JSON.stringify(searchobj));
  288. mui.openWindow({
  289. url: 'pro-list.html?productId=' + selected.typeId
  290. });
  291. }
  292. }
  293. //监听搜索框值改变事件
  294. $('#search').on('input', function(e) {
  295. if ($(this).val().length > 0) {
  296. $('#search-hot').hide();
  297. $(".autocompleter-list").css("height", $(document).height());
  298. } else {
  299. $('#search-hot').show();
  300. $("body").css("overflow", "hidden");
  301. $(".autocompleter-list").css("height", "auto");
  302. }
  303. });
  304. $(".loading").hide().css("opacity", "0");
  305. });
  306. //取消搜索
  307. $(document).on('tap', '.my-btn-cancel', function() {
  308. $(this).hide();
  309. $('#search-hot').hide();
  310. $("body").css("overflow", "auto");
  311. $('#search').autocompleter("close");
  312. $(".autocompleter-list").empty().css("height", "auto");
  313. $('.autocompleter-hint').removeClass('autocompleter-hint-show').empty();
  314. $(".icon-caidan").show();
  315. $('#search').blur();
  316. });
  317. //打开菜单
  318. $(document).on('tap', '.icon-caidan', function() {
  319. $("#menu").css("height", $(window).height());
  320. $("#menu>li").addClass("active");
  321. });
  322. //关闭菜单
  323. $(document).on('tap', '.icon-guanbi', function() {
  324. $("#menu>li").removeClass("active");
  325. $("#menu").css("height", "0px");
  326. });
  327. //精选产品详情
  328. $(document).on('tap', '#index-pro-list .mui-table-view-cell>a', function() {
  329. location.href = 'pro-details.html?productId=' + $(this).attr("name")
  330. });
  331. //精选产品详情2
  332. $(document).on('tap', '.to_goods>li>a', function() {
  333. location.href = 'pro-details.html?productId=' + $(this).attr("proid")
  334. });
  335. mui('body').on('tap', '.to_new_slt', function() {
  336. location.href = 'pro-details.html?productId=36'
  337. });
  338. mui('body').on('tap', '.to_new_slt_2', function() {
  339. location.href = 'pro-details.html?productId=60'
  340. });
  341. mui('body').on('tap', '.to_new_xs', function() {
  342. location.href = "pro-list.html?productId=13";
  343. });
  344. //产品详情-配件
  345. $(document).on('tap', '#index-pro-items>.mui-control-item', function() {
  346. location.href = 'pro-list.html?productId=' + $(this).attr("name") + '&childTypeId=' + $(this).attr("item");
  347. });
  348. //more更多产品
  349. $(document).on('tap', '.go_pro_list', function() {
  350. if ($(this).attr("type") == "aiberle") {
  351. location.href = "pro-list.html?productId=13";
  352. } else {
  353. location.href = "pro-list.html?productId=14";
  354. }
  355. });
  356. //菜单跳转
  357. $(document).on('tap', '#menu>.line>a', function() {
  358. location.href = 'pro-list.html?productId=' + $(this).attr("name") + '&childTypeId=' + $(this).attr("item");
  359. });
  360. mui('body').on('tap', '.erweima', function() {
  361. $('.dalog').show();
  362. });
  363. // 关闭弹窗
  364. $(document).on('tap', '.icon-guanbi', function() {
  365. $('.dalog').hide();
  366. });
  367. mui('body').on('tap', '.go_cent', function() {
  368. mui.openWindow({
  369. url: 'vip-equity.html'
  370. })
  371. });
  372. </script>
  373. </html>