|
|
@ -822,8 +822,7 @@ |
|
|
methods: { |
|
|
methods: { |
|
|
// 页面touchmove事件:吸顶后阻止页面整体滑动(让goods-list接管滚动) |
|
|
// 页面touchmove事件:吸顶后阻止页面整体滑动(让goods-list接管滚动) |
|
|
onPageTouchMove(e) { |
|
|
onPageTouchMove(e) { |
|
|
// 吸顶状态下不需要额外处理,scroll-view会自己处理 |
|
|
|
|
|
console.log(e) |
|
|
|
|
|
}, |
|
|
}, |
|
|
// goods-list滚动事件:检测分类切换 + 滚回顶部取消吸顶 |
|
|
// goods-list滚动事件:检测分类切换 + 滚回顶部取消吸顶 |
|
|
onGoodsListScroll(e) { |
|
|
onGoodsListScroll(e) { |
|
|
@ -905,7 +904,7 @@ |
|
|
if (this.productItem[i].sellBeginTime != '' && this.productItem[i].sellEndTime != '') { |
|
|
if (this.productItem[i].sellBeginTime != '' && this.productItem[i].sellEndTime != '') { |
|
|
let isEndTime = this.isWithinBusinessHours(this.productItem[i].sellBeginTime, this |
|
|
let isEndTime = this.isWithinBusinessHours(this.productItem[i].sellBeginTime, this |
|
|
.productItem[i].sellEndTime) |
|
|
.productItem[i].sellEndTime) |
|
|
console.log(isEndTime) |
|
|
|
|
|
this.productItem[i].status = isEndTime ? 0 : 1 |
|
|
this.productItem[i].status = isEndTime ? 0 : 1 |
|
|
} |
|
|
} |
|
|
if (that.productItem[i].isMoreBuy == 1) { |
|
|
if (that.productItem[i].isMoreBuy == 1) { |
|
|
@ -1034,9 +1033,7 @@ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} catch (e) { |
|
|
} catch (e) {} |
|
|
console.log(e); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
this.isPintuan = true; |
|
|
this.isPintuan = true; |
|
|
|
|
|
|
|
|
@ -1169,9 +1166,7 @@ |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} catch (e) { |
|
|
} catch (e) {} |
|
|
console.log(e); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (index == 'pintuan') { |
|
|
if (index == 'pintuan') { |
|
|
@ -1454,7 +1449,6 @@ |
|
|
|
|
|
|
|
|
const startMinutes = parseTime(begin); |
|
|
const startMinutes = parseTime(begin); |
|
|
const endMinutes = parseTime(end); |
|
|
const endMinutes = parseTime(end); |
|
|
console.log(currentMinutes + ',' + startMinutes + ',' + endMinutes) |
|
|
|
|
|
|
|
|
|
|
|
// 判断是否在区间内(包含端点) |
|
|
// 判断是否在区间内(包含端点) |
|
|
return currentMinutes >= startMinutes && currentMinutes <= endMinutes; |
|
|
return currentMinutes >= startMinutes && currentMinutes <= endMinutes; |
|
|
@ -1501,9 +1495,9 @@ |
|
|
}, |
|
|
}, |
|
|
goDetail(type) { |
|
|
goDetail(type) { |
|
|
if (type == 'goodsDetail') { |
|
|
if (type == 'goodsDetail') { |
|
|
uni.navigateTo({ |
|
|
// uni.navigateTo({ |
|
|
url: '/package1/goods/goodsDetail' |
|
|
// url: '/package1/goods/goodsDetail' |
|
|
}) |
|
|
// }) |
|
|
} else if (type == 'shopDetail') { |
|
|
} else if (type == 'shopDetail') { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: '/package1/group/groupBuyDetail?item=' + JSON.stringify(this.shopItem) |
|
|
url: '/package1/group/groupBuyDetail?item=' + JSON.stringify(this.shopItem) |
|
|
|