|
@@ -58,18 +58,22 @@
|
|
|
<img src="images/index_shuatou_2.png">
|
|
|
</a>
|
|
|
</div>
|
|
|
- <div class="mui-slider-item">
|
|
|
+ <div class="mui-slider-item" tourl="pro-details.html?colorId=60">
|
|
|
+ <a>
|
|
|
+ <img src="images/1225_index.jpg">
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <div class="mui-slider-item" tourl="pro-details.html?colorId=100">
|
|
|
<a>
|
|
|
<img src="images/banner-7.jpg">
|
|
|
</a>
|
|
|
</div>
|
|
|
- <div class="mui-slider-item">
|
|
|
+ <div class="mui-slider-item" tourl="pro-details.html?colorId=42">
|
|
|
<a>
|
|
|
<img src="images/banner-1.jpg">
|
|
|
</a>
|
|
|
</div>
|
|
|
<div class="mui-slider-item">
|
|
|
- <a>
|
|
|
<img src="images/banner-2.jpg">
|
|
|
</a>
|
|
|
</div>
|
|
@@ -346,6 +350,15 @@
|
|
|
location.href = "cash-coupon.html?id=" + th.attr("name");
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
+ $(document).on('tap', '.mui-slider-item', function() {
|
|
|
+ var th = $(this);
|
|
|
+ console.log(th.attr("tourl"))
|
|
|
+ if (isEmpty(th.attr("tourl"))) {
|
|
|
+ location.href = th.attr("tourl");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
|
|
|
//刷新用户信息
|
|
|
refreshUserInfo();
|
|
@@ -374,15 +387,6 @@
|
|
|
|
|
|
//更新用户信息
|
|
|
function refreshUserInfo(){
|
|
|
- var oldrefreshUserInfo = null;
|
|
|
- if (!window.localStorage) {
|
|
|
- console.log("您的浏览器不支持localStorage");
|
|
|
- } else {
|
|
|
- oldrefreshUserInfo = localStorage.getItem('refreshUserDate');
|
|
|
- }
|
|
|
- var nowdate = new Date();
|
|
|
- var nowrefreshUserDate = nowdate.format("yyyy-MM-dd");
|
|
|
- if(nowrefreshUserDate != oldrefreshUserInfo){
|
|
|
$.ajax(base_path + '/getUserInfo?dates=' + new Date().getTime(), {
|
|
|
dataType: 'json',
|
|
|
type: 'post',
|
|
@@ -394,23 +398,14 @@
|
|
|
success: function(dt) {
|
|
|
if(dt.isRedirect) {
|
|
|
location.href = dt.redirectURL;
|
|
|
- } else {
|
|
|
- if (!window.localStorage) {
|
|
|
- console.log("您的浏览器不支持localStorage");
|
|
|
- } else {
|
|
|
- //自定义json数据
|
|
|
- var date = new Date();
|
|
|
- var refreshUserDate = date.format("yyyy-MM-dd");
|
|
|
- localStorage.setItem('refreshUserDate', refreshUserDate);
|
|
|
- }
|
|
|
}
|
|
|
},
|
|
|
error: function(xhr, type, errorThrown) {
|
|
|
console.log(xhr)
|
|
|
}
|
|
|
});
|
|
|
- }
|
|
|
}
|
|
|
+
|
|
|
|
|
|
//分享
|
|
|
// function fenxiang(){
|