12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <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="format-detection" content="telephone=no">
- <meta name="apple-mobile-web-app-status-bar-style" content="black">
- <title>soodo上朵</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" />
- <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
- <script>
- //屏蔽分享
- document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
- WeixinJSBridge.call('hideOptionMenu');
- });
- </script>
- </head>
- <body>
- <div class="mui-content" style="padding-bottom: 50px;">
- <div class="mui-content-padded">
- <img width="100%" id="hd-618" src="" />
- </div>
- <div class="mui-content-padded">
- <h6>请保存至手机,发送给好友助力,即可免费领取soodo上朵刷头。</h6>
- </div>
- </div>
- <!-- 加载ing -->
- <div class="loading covers">
- <div class="loading-bj"></div>
- <p>加载中...</p>
- </div>
- <!-- 加载ing END -->
- <script src="js/mui.min.js"></script>
- <script src="js/jquery-2.1.1.min.js"></script>
- <script src="js/main.js"></script>
- <script>
- window.addEventListener('pageshow', function(e) {
- // 通过persisted属性判断是否存在 BF Cache
- if(e.persisted) {
- location.reload();
- }
- });
-
- mui.ready(function() {
-
- mui.alert("活动已过期!", function() {
- location.href = "index.html?dates=" + new Date().getTime(); // 前往首页
- });
- return false;
-
-
- $.ajax(base_path + '/wechat/activity/get_activity?dates=' + new Date().getTime(), {
- data: {},// ajax参数 没有则不写
- dataType: 'json',
- xhrFields: {
- withCredentials: true
- },
- crossDomain: true,
- type: 'get',
- timeout: 15000,
- success: function(dt) {
- if(dt.isRedirect) {//先判断isRedirect,然后跳转redirectURL
- location.href = dt.redirectURL;
- } else {
- if(dt.status) {//判断接口返回状态status
- console.log(dt)
- $("#hd-618").attr("src",base_path+"/"+dt.data.activity.activityImg);
- } else {
- mui.alert(dt.message,function(){
- location.href='index-2018-618-list.html';
- });
- }
- }
- $(".loading").hide();//隐藏loadilng
- },
- error: function(xhr, type, errorThrown) {
- console.log(xhr);
- mui.alert("获取数据失败!网络错误");
- }
- });
- });
- </script>
- </body>
- </html>
|