最后提交

This commit is contained in:
2019-10-08 08:08:42 +08:00
parent b79cb9b77f
commit 8bd2e472b3
4 changed files with 22 additions and 93 deletions

View File

@ -91,7 +91,11 @@ function getData(page) {
this.goodsNum + '</span></div></div></div>';
})
html += '</div><div class="combination">共' + this.list.length + '件商品 合计:<o>¥' + this.realTotalMoney +
'</o>(含运费¥' + this.deliverMoney + '</div><div class="btns clearfix">';
'</o>(含运费¥' + this.deliverMoney + '</div>';
if(this.goodsType == 3){
html += '<div class="combination">助购人:'+ this.helpUser.userName +'</div>';
}
html += '<div class="btns clearfix">';
if (this.orderStatus == -2) {
html += '<div class="btns_btn ljfk" data-payName="' + this.pay_name +
'">立即付款</div><div class="btns_btn qxdd_js">取消订单</div>';

View File

@ -80,11 +80,20 @@ mui.plusReady(function() {
var nowpage = 1;
var pagesize = 10;
var isload = false;
document.querySelector('.mui-scroll-wrapper').addEventListener('scroll', function(e) {
if (scroll.y >= scroll.maxScrollY) {
if (isload == false) {
nowpage++;
// getShops(nowPage, pageSize);
console.log(nowpage)
getRecommend(nowpage, pagesize)
}
}
})
function getRecommend(nowpage, pagesize) {
var recommenddata = {
nowpage: nowpage ? nowpage : 1,
pagesize: pagesize ? pagesize : 10
page: nowpage ? nowpage : 1,
pageSize: pagesize ? pagesize : 10
}
recommenddata.shopId = shopId
@ -142,7 +151,7 @@ mui.plusReady(function() {
} else{
mui.alert(data.msg)
}
isload - false
isload = false
},
error: function(xhr, type, errorThrown) { //异常处理;
// mui.alert(errorThrown);

View File

@ -128,7 +128,7 @@ mui.plusReady(function() {
if (true == isLoading) return;
isLoading = true;
//console.log(lat);
JZL.ajax(hyhUrl('app/shopping/getHelpSaleShops'), recommenddata, function(data) {
JZL.ajax(hyhUrl('app/shopping/getHelpShops'), recommenddata, function(data) {
var html = '';
var shopLevel
if (1 == data.status) {