|
@@ -29,8 +29,8 @@
|
|
|
<body>
|
|
|
<!--内容开始-->
|
|
|
<div class="mui-content">
|
|
|
- <ul class="mui-table-view mui-table-view-striped my-view-no mui-table-view-condensed" style="margin-top: 5px;">
|
|
|
- <li class="mui-table-view-cell">
|
|
|
+ <ul class="mui-table-view mui-table-view-striped my-view-no mui-table-view-condensed" id="con_product_list" style="margin-top: 5px;">
|
|
|
+ <!--<li class="mui-table-view-cell">
|
|
|
<div class="mui-table">
|
|
|
<div class="mui-table-cell mui-col-xs-12">
|
|
|
<img width="100%" src="images/pro-channel-1.jpg">
|
|
@@ -56,10 +56,10 @@
|
|
|
<h4 class="pro-title">上朵儿童款声波牙刷</h4>
|
|
|
<p class="pro-desc">柔羽呵护刷毛,专为孩子定制</p>
|
|
|
<span class="pro-price">¥249.00</span><s class="pro-delete">¥289.00</s>
|
|
|
- <button type="button" class="mui-btn btn-buy-know pro-datail" color="76">立即购买</button>
|
|
|
+ <button type="button" class="mui-btn btn-buy-know pro-datail" color="208">立即购买</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- </li>
|
|
|
+ </li>-->
|
|
|
</ul>
|
|
|
</div>
|
|
|
<!--内容结束-->
|
|
@@ -86,6 +86,53 @@
|
|
|
//ready事件
|
|
|
mui.ready(function() {
|
|
|
$(".loading").hide().css("opacity", "0");//隐藏(正在加载...)
|
|
|
+
|
|
|
+ $.ajax(base_path + '/wechat/channelAdmin/getProductList?dates=' + new Date().getTime(), {
|
|
|
+ data: {
|
|
|
+ "channelType": channelType,
|
|
|
+ "channelId": channelId
|
|
|
+ },
|
|
|
+ dataType: 'json',
|
|
|
+ xhrFields: {
|
|
|
+ withCredentials: true
|
|
|
+ },
|
|
|
+ crossDomain: true,
|
|
|
+ type: 'get',
|
|
|
+ timeout: 15000,
|
|
|
+ success: function(dt) {
|
|
|
+ if(dt.isRedirect) {
|
|
|
+ location.href = dt.redirectURL;
|
|
|
+ } else {
|
|
|
+ console.log(dt);
|
|
|
+ var str = '';
|
|
|
+ mui.each(dt.data, function(index) {
|
|
|
+
|
|
|
+ str += '<li class="mui-table-view-cell">'
|
|
|
+ + '<div class="mui-table">'
|
|
|
+ + '<div class="mui-table-cell mui-col-xs-12">'
|
|
|
+ + '<img width="100%" src="'+ this.productIntroduceImg +'">'
|
|
|
+ + '</div></div>'
|
|
|
+ + '<div class="mui-table">'
|
|
|
+ + ' <div class="mui-table-cell mui-col-xs-12">'
|
|
|
+ + '<h4 class="pro-title">'+ this.productName +'</h4>'
|
|
|
+ + '<p class="pro-desc">'+ this.productColorDes +'</p>'
|
|
|
+ + '<span class="pro-price">¥'+ accDiv(this.productDiscount,100) +'</span><s class="pro-delete">¥'+ accDiv(this.productPrice,100) +'</s>'
|
|
|
+ + '<button type="button" class="mui-btn btn-buy-know pro-datail" color="'+ this.colorId +'" >立即购买</button>'
|
|
|
+ + ' </div>'
|
|
|
+ + ' </div>'
|
|
|
+ + ' </li>'
|
|
|
+ });
|
|
|
+
|
|
|
+ $("#con_product_list").html(str);
|
|
|
+ $(".loading").hide().css("opacity", "0"); //隐藏(正在加载...)
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function(xhr, type, errorThrown) {
|
|
|
+ console.log(xhr);
|
|
|
+ mui.alert("获取订单列表失败!网络错误");
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
});
|
|
|
|
|
|
//跳转产品详情
|