|
@@ -11,6 +11,14 @@
|
|
|
<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>
|
|
|
+ .dalog-618{position: fixed;width: 100%;height: 100%;left: 0;top: 0;background-color: rgba(0,0,0,.7);z-index:99;padding-top:35%;display: none;}
|
|
|
+ .dalog-618>div{position: relative;width: 300px;height: 265px;margin: 0 auto; background: url(images/dalog-618.png) center center no-repeat;background-size: 100%;}
|
|
|
+ .dalog-618 .btn-618{position: absolute;bottom: 18px;padding:10px 12px; width: 40%;left: 30%;background-color:#F1436C;color: #fff;border:0;border-radius: 0;}
|
|
|
+ .dalog-618 .title{width:100px;margin:0 auto;color: #F1436C;text-align: center;padding:38px 0 24px 0;font-size: 22px;}
|
|
|
+ .dalog-618 .msg{margin: 0 auto;text-align: center;width: 260px;color: #F1436C;font-size: 18px;}
|
|
|
+ .dalog-618 .mui-icon-close{color: #F1436C;position: absolute;right: 10px;top: 10px;}
|
|
|
+ </style>
|
|
|
<script>
|
|
|
//屏蔽分享
|
|
|
</script>
|
|
@@ -82,6 +90,14 @@
|
|
|
<footer class="mui-bar mui-bar-tab">
|
|
|
<button type="button" class="btn-submit-618" style="display: none;"></button>
|
|
|
</footer>
|
|
|
+ <div class="dalog-618">
|
|
|
+ <div>
|
|
|
+ <div class="title">提示</div>
|
|
|
+ <div class="msg">此活动仅限soodo上朵会员参与</div>
|
|
|
+ <button type="button" class="btn-618">去购买</button>
|
|
|
+ <span class="mui-icon mui-icon-close"></span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- 加载ing -->
|
|
|
<div class="loading covers">
|
|
|
<div class="loading-bj"></div>
|
|
@@ -135,12 +151,13 @@
|
|
|
li.innerHTML='<a><img class="mui-media-object mui-pull-left" src="'+this.userHead+'"><div class="name-618">'+this.userNickname+'</div><h6 class="date-618">'+this.activityCreateTime+'</h6></a>';
|
|
|
table.appendChild(li);
|
|
|
});
|
|
|
- $("#allCount").text(dt.data.activity.activityAlreadyHelp);
|
|
|
- $("#nextCount").text(dt.data.activity.activityAllHelp-dt.data.activity.activityAlreadyHelp);
|
|
|
+ if(typeof(dt.data.activity)!="undefined"){
|
|
|
+ $("#allCount").text(dt.data.activity.activityAlreadyHelp);
|
|
|
+ $("#nextCount").text(dt.data.activity.activityAllHelp-dt.data.activity.activityAlreadyHelp);
|
|
|
+ }
|
|
|
} else {
|
|
|
- mui.alert(dt.message,function(){
|
|
|
- location.href="pro-list.html";
|
|
|
- });
|
|
|
+ $(".dalog-618 .msg").text(dt.message);
|
|
|
+ $(".dalog-618").show();
|
|
|
}
|
|
|
setTimeout(function(){
|
|
|
fenxiang();
|
|
@@ -150,7 +167,7 @@
|
|
|
},
|
|
|
error: function(xhr, type, errorThrown) {
|
|
|
console.log(xhr);
|
|
|
- mui.alert("进入失败!网络错误");
|
|
|
+ mui.alert("加载数据失败!网络错误");
|
|
|
}
|
|
|
});
|
|
|
|
|
@@ -180,8 +197,11 @@
|
|
|
} else {
|
|
|
if(dt.status) {//判断接口返回状态status
|
|
|
//console.log(dt.data.imgPath);
|
|
|
+ location.href='index-2018-618.html';
|
|
|
} else {
|
|
|
- mui.alert(dt.message);
|
|
|
+ mui.alert(dt.message,function(){
|
|
|
+ location.href="index-2018-618.html";
|
|
|
+ });
|
|
|
}
|
|
|
}
|
|
|
},
|
|
@@ -205,7 +225,13 @@
|
|
|
}
|
|
|
|
|
|
});
|
|
|
-
|
|
|
+ $(document).on('tap', '.dalog-618 .mui-icon-close', function() {
|
|
|
+ $(".dalog-618").hide();
|
|
|
+ });
|
|
|
+ $(document).on('tap', '.dalog-618 .btn-618', function() {
|
|
|
+ location.href="pro-list.html";
|
|
|
+ $(".dalog-618").hide();
|
|
|
+ });
|
|
|
//分享
|
|
|
function fenxiang(){
|
|
|
var src = location.href;
|