|
@@ -0,0 +1,368 @@
|
|
|
+<!DOCTYPE html>
|
|
|
+<html>
|
|
|
+
|
|
|
+ <head>
|
|
|
+ <meta charset="UTF-8">
|
|
|
+ <meta http-equiv="pragma" content="no-cache">
|
|
|
+ <meta http-equiv="cache-control" content="no-cache">
|
|
|
+ <meta http-equiv="expires" content="0">
|
|
|
+ <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
|
|
|
+ <meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
+ <meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
+ <meta name="format-detection" content="telphone=no, email=no" />
|
|
|
+ <title>Aiberle爱贝源</title>
|
|
|
+ <link rel="stylesheet" type="text/css" href="css/mui.min.css" />
|
|
|
+ <link rel="stylesheet" type="text/css" href="css/iconfont.css" />
|
|
|
+ <link rel="stylesheet" type="text/css" href="css/main.css" />
|
|
|
+ <style>
|
|
|
+ .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; }
|
|
|
+ .year-dalog.active { -webkit-transform: translateY(0%); transform: translateY(0%); }
|
|
|
+ .year-dalog img { width: 100%; }
|
|
|
+ .header { padding: 10px 0 7px 0; height: 65px; box-shadow: 0 0 0 #fff; background: #fff; }
|
|
|
+ .header h6 { text-indent: 12px; color: #999; letter-spacing: 2px; }
|
|
|
+ .go-index { width: 30%; margin-right: 1%; float: none; }
|
|
|
+ .go-index img { width: 80%; padding-top: 5px; margin-left: 12px; max-width: 100px; }
|
|
|
+ .swiper-container-horizontal>.swiper-pagination-bullets { bottom: 0; }
|
|
|
+ .swiper-pagination-bullet-active { background: #63ccde; }
|
|
|
+ .index-title { padding: 7px 12px 7px 12px; display: block; position: relative; }
|
|
|
+ .index-title strong { font-size: 17px; }
|
|
|
+ .index-title .mui-pull-right { color: #333; }
|
|
|
+ .index-title font { display: inline-block; -webkit-transform: translateY(-1px); transform: translateY(-1px); }
|
|
|
+ .pro-list .mui-media-object { background: #f2f2f2; border-radius: 5px; display: block; }
|
|
|
+ .pro-list:before,.pro-list:after {display: none;}
|
|
|
+ /* .pro-list.mui-table-view.mui-grid-view>li:nth-child(odd) {padding: 10px 8px 0 14px;} */
|
|
|
+ /* .pro-list.mui-table-view.mui-grid-view>li:nth-child(even) {padding: 10px 0 0 22px;} */
|
|
|
+ .pro-list.mui-table-view.mui-grid-view>li:nth-child(odd){padding: 0px;}
|
|
|
+ .pro-list.mui-table-view.mui-grid-view>li:nth-child(even){padding: 0px;}
|
|
|
+ .mui-table-view.mui-grid-view {padding: 0px;}
|
|
|
+ .pro-list h6 {margin: 7px 0;color: #bbb;}
|
|
|
+ .pro-list .pro-price {font-size: 14px;margin-top: 8px;}
|
|
|
+ .pro-list .pro-price span {color: #db3f53;}
|
|
|
+ .pro-list .pro-price s {color: #bbb;margin-left: 15px;}
|
|
|
+ body{padding: 0px;margin: 0px;background-color: #FFFFFF;}
|
|
|
+ .coupon_class{padding-top:12px ;}
|
|
|
+ .ul_class>ul>li{float: left;display: block;}
|
|
|
+ .ul_class>ul>li>img{display: block;width: 100%;}
|
|
|
+ .ul_class{display: block;width: 100%;}
|
|
|
+ </style>
|
|
|
+ </head>
|
|
|
+ <script>
|
|
|
+ var start = new Date(2020,2-1,3,00,00,00);
|
|
|
+ var end = new Date(2020,3-1,8,23,59,59);
|
|
|
+ var d = new Date().getTime(); //当前时间戳
|
|
|
+ if (!(d > start && d <= end)) {
|
|
|
+ location.href = "index.html";
|
|
|
+ }
|
|
|
+ </script>
|
|
|
+ <body>
|
|
|
+ <footer class="mui-bar mui-bar-tab" id="footer-bar-tab">
|
|
|
+ <a class="mui-tab-item mui-active">
|
|
|
+ <span class="iconfont icon-shouye"></span>
|
|
|
+ <span class="mui-tab-label">首页</span>
|
|
|
+ </a>
|
|
|
+ <a class="mui-tab-item">
|
|
|
+ <span class="iconfont icon-gouwuche"></span>
|
|
|
+ <span class="mui-tab-label">购物车</span>
|
|
|
+ </a>
|
|
|
+ <a class="mui-tab-item">
|
|
|
+ <span class="iconfont icon-dingdan"></span>
|
|
|
+ <span class="mui-tab-label">订单</span>
|
|
|
+ </a>
|
|
|
+ <a class="mui-tab-item">
|
|
|
+ <span class="iconfont icon-wode"></span>
|
|
|
+ <span class="mui-tab-label">我的</span>
|
|
|
+ </a>
|
|
|
+ </footer>
|
|
|
+
|
|
|
+ <div class="" style="">
|
|
|
+ <img width="100%" src="images/20200228/aiberle.png" />
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="slogan_class ul_class" style="padding-top:10px;overflow:hidden; background: #fff;">
|
|
|
+ <ul style="width: 98%;">
|
|
|
+ <li style="margin: 0px;width: 48%;margin-left: 2%;" class="to_new_slt">
|
|
|
+ <img style="" src="images/20200228/tz.png" />
|
|
|
+ </li>
|
|
|
+ <li style="margin: 0px;width: 48%;margin-left: 2%;" class="to_new_slt_2">
|
|
|
+ <img style="" src="images/20200228/jf.png" />
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mui-content" style="background: #f4f7fb; padding-top:15px;margin-top: 17px;width: 96%;margin-left: 2%;padding-bottom: 10px !important;">
|
|
|
+ <div style="text-align: center;color: #ad504e;font-size: 20px;font-weight: bold;letter-spacing: 10px;padding-bottom: 10px;">爱健康</div>
|
|
|
+ <div class="chanpin-box">
|
|
|
+ <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background: #f4f7fb;">
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
|
|
|
+ <a proid="60" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/watero_lv.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
|
|
|
+ <a proid="36" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/aiber_lv.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background: #f4f7fb;margin-top: 10px;">
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
|
|
|
+ <a proid="48" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/WA_1.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
|
|
|
+ <a proid="46" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/WB_2_bai.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background: #f4f7fb;margin-top: 10px;">
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
|
|
|
+ <a proid="64" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/wb_2_lv.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
|
|
|
+ <a proid="58" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/s3_lan.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <!-- 爱家人 -->
|
|
|
+ <div class="mui-content" style="background: #fbf9f4; padding-top:15px;margin-top: 17px;width: 96%;margin-left: 2%;padding-bottom: 10px !important;">
|
|
|
+ <div style="text-align: center;color: #ad504e;font-size: 20px;font-weight: bold;letter-spacing: 10px;padding-bottom: 10px;">爱家人</div>
|
|
|
+ <div class="chanpin-box">
|
|
|
+ <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background: #fbf9f4;">
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
|
|
|
+ <a proid="44" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/guoshuji.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
|
|
|
+ <a proid="40" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/slt.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mui-content" style="background:#fbf7f6; padding-top:15px;margin-top: 17px;width: 96%;margin-left: 2%;padding-bottom: 10px !important;">
|
|
|
+ <div style="text-align: center;color: #ad504e;font-size: 20px;font-weight: bold;letter-spacing: 10px;padding-bottom: 10px;">爱自己</div>
|
|
|
+ <div class="chanpin-box">
|
|
|
+ <ul class="mui-table-view mui-grid-view pro-list" style="width: 98%;background:#fbf7f6;">
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6" style="margin: 0px;padding-left: 2%;">
|
|
|
+ <a proid="42" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/rsj.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6 ul_li_a_left" style="margin: 0px;padding-left: 2%;" >
|
|
|
+ <a proid="41" class="go_chanpin_details" style="margin: 0px;">
|
|
|
+ <img class="mui-media-object" src="images/20200228/hs.png">
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="mui-content" style="background-color: #ffffff;margin-top: 15px;padding-bottom: 50px !important;">
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <script src="js/mui.min.js"></script>
|
|
|
+ <script src="js/jquery-2.1.1.min.js"></script>
|
|
|
+ <script src="js/jquery.autocompleter.js"></script>
|
|
|
+ <script src="js/main.js"></script>
|
|
|
+ <script src="js/wechat-utils-1.0.js"></script>
|
|
|
+ </body>
|
|
|
+ <script>
|
|
|
+ // 读取值
|
|
|
+ var colors = [];
|
|
|
+ var histoty = JSON.parse(localStorage.getItem('search_histoty'));
|
|
|
+ var clickdate = JSON.parse(localStorage.getItem('clickdate'));
|
|
|
+ //console.log(histoty)
|
|
|
+ if (histoty != null) {
|
|
|
+ var str = histoty.text;
|
|
|
+ for (i = 0; i < str.length; i++) {
|
|
|
+ var childTypeId = ''
|
|
|
+ if (typeof(str[i].childTypeId) != "undefined") {
|
|
|
+ childTypeId = 'childTypeid=' + str[i].childTypeId;
|
|
|
+ }
|
|
|
+ $("#history").append('<button type="button" class="mui-btn" name="' + str[i].id + '" typeid="' + str[i].typeId +
|
|
|
+ '" ' + childTypeId + '>' + str[i].label + '</button>');
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ mui.ready(function() {
|
|
|
+ $.ajax(base_path + '/wechat/indexData?dates=' + new Date().getTime(), {
|
|
|
+ data: {},
|
|
|
+ dataType: 'json',
|
|
|
+ xhrFields: {
|
|
|
+ withCredentials: true
|
|
|
+ },
|
|
|
+ crossDomain: true,
|
|
|
+ type: 'post',
|
|
|
+ timeout: 15000,
|
|
|
+ success: function(dt) {
|
|
|
+ //判断一下
|
|
|
+ if (dt.isRedirect) {
|
|
|
+ location.href = dt.redirectURL;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(xhr, type, errorThrown) {
|
|
|
+ console.log(xhr);
|
|
|
+ mui.alert("获取数据失败!网络错误");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ //搜索框焦点事件
|
|
|
+ $('#search').on('focus', function(e) {
|
|
|
+ window.scrollTo(0, 0, 500);
|
|
|
+ $(".icon-caidan").hide();
|
|
|
+ $('.my-btn-cancel').show();
|
|
|
+ if ($(this).val().length > 0) {
|
|
|
+ $('#search-hot').hide(500);
|
|
|
+ $(".autocompleter-list").css("height", $(document).height())
|
|
|
+ } else {
|
|
|
+ $("#search-hot").css("height", $(document.body).height()).show();
|
|
|
+ $("body").css("overflow", "hidden");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //搜索框失去焦点事件
|
|
|
+ $('#search').on('blur', function(e) {
|
|
|
+ setTimeout(function() {
|
|
|
+ $('#search-hot,.my-btn-cancel').hide();
|
|
|
+ $("body").css("overflow", "auto");
|
|
|
+ $(".icon-caidan").show();
|
|
|
+ }, 700);
|
|
|
+
|
|
|
+ });
|
|
|
+ //点击后把text赋值到搜索框
|
|
|
+ $(document).on('tap', '#history button', function() {
|
|
|
+ $('#search').val($(this).text());
|
|
|
+ console.log($(this).text())
|
|
|
+ $('#search-hot').hide();
|
|
|
+ $("body").css("overflow", "auto");
|
|
|
+ var parameter = {};
|
|
|
+ parameter["id"] = $(this).attr("name");
|
|
|
+ parameter["label"] = $(this).text();
|
|
|
+ parameter["typeId"] = $(this).attr("typeid");
|
|
|
+ if (typeof($(this).attr("childtypeId")) != "undefined") {
|
|
|
+ parameter["childTypeId"] = $(this).attr("childtypeid");
|
|
|
+ }
|
|
|
+ search(parameter);
|
|
|
+ });
|
|
|
+ //搜索框本地缓存
|
|
|
+ function search(selected) {
|
|
|
+ if (!window.localStorage) {
|
|
|
+ mui.alert("您的浏览器不支持localStorage");
|
|
|
+ } else {
|
|
|
+ //自定义json数据
|
|
|
+ var obj = {},
|
|
|
+ searchobj = {};
|
|
|
+ if (histoty != null) {
|
|
|
+ var str = histoty.text;
|
|
|
+ if (str.length > 2) {
|
|
|
+ str.splice(2, 1)
|
|
|
+ }
|
|
|
+ str.splice(0, 0, selected)
|
|
|
+ obj = {
|
|
|
+ text: str
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ obj = {
|
|
|
+ text: [selected]
|
|
|
+ };
|
|
|
+ }
|
|
|
+ searchobj = {
|
|
|
+ text: [selected]
|
|
|
+ }
|
|
|
+ //json格式化插入
|
|
|
+ localStorage.setItem('search_histoty', JSON.stringify(obj));
|
|
|
+ sessionStorage.setItem('search_data', JSON.stringify(searchobj));
|
|
|
+ mui.openWindow({
|
|
|
+ url: 'pro-list.html?productId=' + selected.typeId
|
|
|
+ });
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //监听搜索框值改变事件
|
|
|
+ $('#search').on('input', function(e) {
|
|
|
+ if ($(this).val().length > 0) {
|
|
|
+ $('#search-hot').hide();
|
|
|
+ $(".autocompleter-list").css("height", $(document).height());
|
|
|
+ } else {
|
|
|
+ $('#search-hot').show();
|
|
|
+ $("body").css("overflow", "hidden");
|
|
|
+ $(".autocompleter-list").css("height", "auto");
|
|
|
+ }
|
|
|
+ });
|
|
|
+ $(".loading").hide().css("opacity", "0");
|
|
|
+ });
|
|
|
+
|
|
|
+ //取消搜索
|
|
|
+ $(document).on('tap', '.my-btn-cancel', function() {
|
|
|
+ $(this).hide();
|
|
|
+ $('#search-hot').hide();
|
|
|
+ $("body").css("overflow", "auto");
|
|
|
+ $('#search').autocompleter("close");
|
|
|
+ $(".autocompleter-list").empty().css("height", "auto");
|
|
|
+ $('.autocompleter-hint').removeClass('autocompleter-hint-show').empty();
|
|
|
+ $(".icon-caidan").show();
|
|
|
+ $('#search').blur();
|
|
|
+ });
|
|
|
+ //打开菜单
|
|
|
+ $(document).on('tap', '.icon-caidan', function() {
|
|
|
+ $("#menu").css("height", $(window).height());
|
|
|
+ $("#menu>li").addClass("active");
|
|
|
+ });
|
|
|
+ //关闭菜单
|
|
|
+ $(document).on('tap', '.icon-guanbi', function() {
|
|
|
+ $("#menu>li").removeClass("active");
|
|
|
+ $("#menu").css("height", "0px");
|
|
|
+ });
|
|
|
+ //精选产品详情
|
|
|
+ $(document).on('tap', '.mui-table-view-cell>a', function() {
|
|
|
+ location.href = 'pro-details.html?productId=' + $(this).attr("proid")
|
|
|
+ });
|
|
|
+ mui('body').on('tap', '.to_new_slt', function() {
|
|
|
+ location.href = 'pro-details.html?productId=65'
|
|
|
+ });
|
|
|
+ mui('body').on('tap', '.to_new_slt_2', function() {
|
|
|
+ location.href = 'vip-equity.html'
|
|
|
+ });
|
|
|
+ mui('body').on('tap', '.to_new_xs', function() {
|
|
|
+ location.href = "pro-list.html?productId=13";
|
|
|
+ });
|
|
|
+ //产品详情-配件
|
|
|
+ $(document).on('tap', '#index-pro-items>.mui-control-item', function() {
|
|
|
+ location.href = 'pro-list.html?productId=' + $(this).attr("name") + '&childTypeId=' + $(this).attr("item");
|
|
|
+ });
|
|
|
+ //more更多产品
|
|
|
+ $(document).on('tap', '.go_pro_list', function() {
|
|
|
+ if ($(this).attr("type") == "aiberle") {
|
|
|
+ location.href = "pro-list.html?productId=13";
|
|
|
+ } else {
|
|
|
+ location.href = "pro-list.html?productId=14";
|
|
|
+ }
|
|
|
+ });
|
|
|
+ //菜单跳转
|
|
|
+ $(document).on('tap', '#menu>.line>a', function() {
|
|
|
+ location.href = 'pro-list.html?productId=' + $(this).attr("name") + '&childTypeId=' + $(this).attr("item");
|
|
|
+ });
|
|
|
+ mui('body').on('tap', '.erweima', function() {
|
|
|
+ $('.dalog').show();
|
|
|
+ });
|
|
|
+ // 关闭弹窗
|
|
|
+ $(document).on('tap', '.icon-guanbi', function() {
|
|
|
+ $('.dalog').hide();
|
|
|
+ });
|
|
|
+ mui('body').on('tap', '.go_cent', function() {
|
|
|
+ mui.openWindow({
|
|
|
+ url: 'vip-equity.html'
|
|
|
+ })
|
|
|
+ });
|
|
|
+ </script>
|
|
|
+
|
|
|
+</html>
|