|
@@ -50,9 +50,9 @@
|
|
<!--头部选项卡-->
|
|
<!--头部选项卡-->
|
|
<div id="index-top-menu" class="mui-segmented-control">
|
|
<div id="index-top-menu" class="mui-segmented-control">
|
|
<!--(默认选中哪个就加上mui-active),其他不加-->
|
|
<!--(默认选中哪个就加上mui-active),其他不加-->
|
|
- <a class="mui-control-item mui-active" href="#item1">首页</a>
|
|
|
|
- <a class="mui-control-item" href="#item2">声波牙刷</a>
|
|
|
|
- <a class="mui-control-item" href="#item3">刷头</a>
|
|
|
|
|
|
+ <a class="mui-control-item mui-active" href="#item1">soodo上朵</a>
|
|
|
|
+ <a class="mui-control-item" href="#item2">会员专区</a>
|
|
|
|
+ <!--<a class="mui-control-item" href="#item3">刷头</a>-->
|
|
</div>
|
|
</div>
|
|
</header>
|
|
</header>
|
|
<!--选项卡item1显示区域(默认选中哪个就加上mui-active),其他不加-->
|
|
<!--选项卡item1显示区域(默认选中哪个就加上mui-active),其他不加-->
|
|
@@ -180,9 +180,6 @@
|
|
<div>
|
|
<div>
|
|
<img width="100%" src="images/index-content.jpg" />
|
|
<img width="100%" src="images/index-content.jpg" />
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <!--选项卡item2显示区域-->
|
|
|
|
- <div id="item2" class="mui-control-content">
|
|
|
|
<div>
|
|
<div>
|
|
<img width="100%" src="images/banner-2.jpg" />
|
|
<img width="100%" src="images/banner-2.jpg" />
|
|
</div>
|
|
</div>
|
|
@@ -194,12 +191,9 @@
|
|
<img width="100%" src="images/index-1.jpg" />
|
|
<img width="100%" src="images/index-1.jpg" />
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
- <div class="mui-text-center mui-content-padded">
|
|
|
|
|
|
+ <!--<div class="mui-text-center mui-content-padded">
|
|
<span style="color: #f16071;">¥399.00</span>
|
|
<span style="color: #f16071;">¥399.00</span>
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <!--选项卡item3显示区域-->
|
|
|
|
- <div id="item3" class="mui-control-content">
|
|
|
|
|
|
+ </div>-->
|
|
<div>
|
|
<div>
|
|
<img width="100%" src="images/index_shuatou_2.png" />
|
|
<img width="100%" src="images/index_shuatou_2.png" />
|
|
</div>
|
|
</div>
|
|
@@ -211,9 +205,9 @@
|
|
<img width="100%" src="images/index_shuatou.png" />
|
|
<img width="100%" src="images/index_shuatou.png" />
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
- <div class="mui-text-center mui-content-padded">
|
|
|
|
|
|
+ <!--<div class="mui-text-center mui-content-padded">
|
|
<span style="color: #f16071;">¥42.00</span>
|
|
<span style="color: #f16071;">¥42.00</span>
|
|
- </div>
|
|
|
|
|
|
+ </div>-->
|
|
|
|
|
|
<div>
|
|
<div>
|
|
<img width="100%" src="images/index-tit-5.jpg" />
|
|
<img width="100%" src="images/index-tit-5.jpg" />
|
|
@@ -223,9 +217,68 @@
|
|
<img width="100%" src="images/index_d_shuatou.png" />
|
|
<img width="100%" src="images/index_d_shuatou.png" />
|
|
</a>
|
|
</a>
|
|
</div>
|
|
</div>
|
|
- <div class="mui-text-center mui-content-padded">
|
|
|
|
|
|
+ <!--<div class="mui-text-center mui-content-padded">
|
|
<span style="color: #f16071;">¥36.00</span>
|
|
<span style="color: #f16071;">¥36.00</span>
|
|
- </div>
|
|
|
|
|
|
+ </div>-->
|
|
|
|
+ </div>
|
|
|
|
+ <!--选项卡item2显示区域-->
|
|
|
|
+ <div id="item2" class="mui-control-content">
|
|
|
|
+ <div><img width="100%" src="images/banner-4.jpg"/></div>
|
|
|
|
+ <ul class="mui-table-view mui-grid-view mui-grid-9" id="menu-grid-9">
|
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4"><a>
|
|
|
|
+ <span class="iconfont icon-fenbi"></span>
|
|
|
|
+ <div class="mui-media-body">朵粉币 1200</div></a></li>
|
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4"><a href="cash-coupon-log.html">
|
|
|
|
+ <span class="iconfont icon-jilu"></span>
|
|
|
|
+ <div class="mui-media-body">兑换记录</div></a></li>
|
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-4 mui-col-sm-4"><a href="cash-coupon-dic.html">
|
|
|
|
+ <span class="iconfont icon-guize"></span>
|
|
|
|
+ <div class="mui-media-body">兑换规则</div></a></li>
|
|
|
|
+ </ul>
|
|
|
|
+
|
|
|
|
+ <ul class="mui-table-view mui-grid-view" id="grid-view">
|
|
|
|
+ <!--<li class="mui-table-view-cell mui-media mui-col-xs-6">
|
|
|
|
+ <a href="#">
|
|
|
|
+ <img class="mui-media-object" src="images/100-quan.jpg">
|
|
|
|
+ <div class="mui-media-body">100元现金券 </div>
|
|
|
|
+ <h6>商场全品类满100可用</h6>
|
|
|
|
+ <div class="prices">1000朵粉币</div>
|
|
|
|
+ <div><button type="button" class="mui-btn">兑换</button></div>
|
|
|
|
+ </a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6">
|
|
|
|
+ <a href="#">
|
|
|
|
+ <img class="mui-media-object" src="images/50-quan.jpg">
|
|
|
|
+ <div class="mui-media-body">50元现金券</div>
|
|
|
|
+ <h6>商场全品类满50可用</h6>
|
|
|
|
+ <div class="prices">500朵粉币</div>
|
|
|
|
+ <div><button type="button" class="mui-btn">兑换</button></div>
|
|
|
|
+ </a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6">
|
|
|
|
+ <a href="#">
|
|
|
|
+ <img class="mui-media-object" src="images/30-quan.jpg">
|
|
|
|
+ <div class="mui-media-body">30元现金券</div>
|
|
|
|
+ <h6>商场全品类满30可用</h6>
|
|
|
|
+ <div class="prices">300朵粉币</div>
|
|
|
|
+ <div><button type="button" class="mui-btn">兑换</button></div>
|
|
|
|
+ </a>
|
|
|
|
+ </li>
|
|
|
|
+ <li class="mui-table-view-cell mui-media mui-col-xs-6">
|
|
|
|
+ <a href="#">
|
|
|
|
+ <img class="mui-media-object" src="images/20-quan.jpg">
|
|
|
|
+ <div class="mui-media-body">20元现金券</div>
|
|
|
|
+ <h6>商场全品类满20可用</h6>
|
|
|
|
+ <div class="prices">200朵粉币</div>
|
|
|
|
+ <div><button type="button" class="mui-btn">兑换</button></div>
|
|
|
|
+ </a>
|
|
|
|
+ </li>-->
|
|
|
|
+ </ul>
|
|
|
|
+
|
|
|
|
+ </div>
|
|
|
|
+ <!--选项卡item3显示区域-->
|
|
|
|
+ <div id="item3" class="mui-control-content">
|
|
|
|
+
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--内容结束-->
|
|
<!--内容结束-->
|
|
@@ -271,6 +324,94 @@
|
|
},
|
|
},
|
|
spaceBetween: 0 //每个图片的左右间距
|
|
spaceBetween: 0 //每个图片的左右间距
|
|
});
|
|
});
|
|
|
|
+ $.ajax(base_path +'/wechat/integral_pro/list_product?dates=' + new Date().getTime(), {
|
|
|
|
+ data: {},
|
|
|
|
+ dataType: 'json',
|
|
|
|
+ xhrFields: {
|
|
|
|
+ withCredentials: true
|
|
|
|
+ },
|
|
|
|
+ crossDomain: true,
|
|
|
|
+ type: 'get',
|
|
|
|
+ timeout: 15000,
|
|
|
|
+ success: function(dt) {
|
|
|
|
+ if(dt.isRedirect) {
|
|
|
|
+ location.href = dt.redirectURL;
|
|
|
|
+ } else {
|
|
|
|
+ if(dt.status) {
|
|
|
|
+ console.log(dt)
|
|
|
|
+ } else {
|
|
|
|
+ mui.alert("获取数据失败!");
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ error: function(xhr, type, errorThrown) {
|
|
|
|
+ console.log(xhr);
|
|
|
|
+ //mui.alert("获取数据失败!网络错误");
|
|
|
|
+ var dt={
|
|
|
|
+ "status": true,
|
|
|
|
+ "message": "SUCCESS",
|
|
|
|
+ "data": {
|
|
|
|
+ "integralProductList": [
|
|
|
|
+ {
|
|
|
|
+ "integralProductId": 1,
|
|
|
|
+ "integralProductImg":"images/100-quan.jpg",
|
|
|
|
+ "integralProductName": "积分商品一",
|
|
|
|
+ "integralProductDesc": "积分商品一,其他",
|
|
|
|
+ "integralProductType": 2,
|
|
|
|
+ "integralProductNum": 1000,
|
|
|
|
+ "integralProductRemainingNum": 0,
|
|
|
|
+ "integralProductImagetext": "1111",
|
|
|
|
+ "integralProductStatus": 1,
|
|
|
|
+ "integralProductCreateTime": 1525225128000,
|
|
|
|
+ "integralProductUpdateTime": 1525225204000,
|
|
|
|
+ "convertId": 1,
|
|
|
|
+ "convertDfbi": 100,
|
|
|
|
+ "convertIsMailing": 2,
|
|
|
|
+ "convertIsPay": 1,
|
|
|
|
+ "convertPrice": 0
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ "integralProductId": 2,
|
|
|
|
+ "integralProductImg":"images/50-quan.jpg",
|
|
|
|
+ "integralProductName": "兑换券",
|
|
|
|
+ "integralProductDesc": "兑换券",
|
|
|
|
+ "integralProductType": 1,
|
|
|
|
+ "integralProductNum": 1000,
|
|
|
|
+ "integralProductRemainingNum": 1,
|
|
|
|
+ "integralProductImagetext": "1213",
|
|
|
|
+ "integralProductStatus": 1,
|
|
|
|
+ "integralProductCreateTime": 1525225200000,
|
|
|
|
+ "integralProductUpdateTime": 1525607456000,
|
|
|
|
+ "convertId": 2,
|
|
|
|
+ "convertDfbi": 100,
|
|
|
|
+ "convertIsMailing": 2,
|
|
|
|
+ "convertIsPay": 2,
|
|
|
|
+ "convertPrice": 0,
|
|
|
|
+ "couponId": 50000,
|
|
|
|
+ "couponType": 1,
|
|
|
|
+ "couponReduce": 10000
|
|
|
|
+ }
|
|
|
|
+ ],
|
|
|
|
+ "integral": 240
|
|
|
|
+ },
|
|
|
|
+ "resultCode": "200"
|
|
|
|
+}
|
|
|
|
+ var table=document.body.querySelector("#grid-view");
|
|
|
|
+ mui.each(dt.data.integralProductList, function(index) {
|
|
|
|
+ var li = document.createElement('li');//创建li标签
|
|
|
|
+ li.className='mui-table-view-cell mui-media mui-col-xs-6';
|
|
|
|
+ li.innerHTML='<a><img class="mui-media-object" src="'+this.integralProductImg+'"><div class="mui-media-body">'+this.integralProductName+'</div><h6>'+this.integralProductDesc+'</h6><div class="prices">'+this.convertDfbi+'朵粉币</div><div><button type="button" class="mui-btn" name="'+this.integralProductId+'">兑换</button></div></a>';
|
|
|
|
+ table.appendChild(li);//将li插入table
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ $(document).on('tap', '#grid-view .mui-table-view-cell .mui-btn', function() {
|
|
|
|
+ var th=$(this);
|
|
|
|
+ console.log(th.attr("name"))
|
|
|
|
+ if(th.attr("name")!="undefined"){
|
|
|
|
+ location.href="cash-coupon.html?id="+th.attr("name");
|
|
|
|
+ }
|
|
|
|
+ });
|
|
$(".loading").hide().css("opacity", "0"); //隐藏(正在加载...)
|
|
$(".loading").hide().css("opacity", "0"); //隐藏(正在加载...)
|
|
|
|
|
|
// var d = new Date().getTime();//当前时间戳
|
|
// var d = new Date().getTime();//当前时间戳
|