规格数量修改
This commit is contained in:
commit
87a544a526
|
|
@ -9,10 +9,7 @@
|
||||||
<!-- 顶部面板 -->
|
<!-- 顶部面板 -->
|
||||||
<view class="top--panel">
|
<view class="top--panel">
|
||||||
<navseat :opacity='opacity' :titleshow='true' :heightshow='opacity'></navseat>
|
<navseat :opacity='opacity' :titleshow='true' :heightshow='opacity'></navseat>
|
||||||
<!-- #ifdef MP-WEIXIN -->
|
|
||||||
<!-- #endif -->
|
|
||||||
<!-- 顶部面板,可添加所需要放在页面顶部的内容代码。比如banner图 -->
|
<!-- 顶部面板,可添加所需要放在页面顶部的内容代码。比如banner图 -->
|
||||||
<!-- https://czg-qr-order.oss-cn-beijing.aliyuncs.com/orderfood/shuangyu1.png -->
|
|
||||||
<image class="panelimgbackground" :src="shopInfo.storeInfo.coverImg" mode="aspectFill">
|
<image class="panelimgbackground" :src="shopInfo.storeInfo.coverImg" mode="aspectFill">
|
||||||
</image>
|
</image>
|
||||||
<view class="panelone">
|
<view class="panelone">
|
||||||
|
|
@ -357,22 +354,16 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onPageScroll(e) {
|
onPageScroll(e) {
|
||||||
try {
|
if (e.scrollTop <= 44) { //搜索导航栏显示影藏
|
||||||
if (e.scrollTop <= 44) { //搜索导航栏显示影藏
|
this.opacity = false
|
||||||
this.opacity = false
|
} else {
|
||||||
} else {
|
this.opacity = true
|
||||||
this.opacity = true
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
//TODO handle the exception
|
|
||||||
}
|
}
|
||||||
this.$u.debounce(() => {
|
this.$u.debounce(() => {
|
||||||
console.log(e.scrollTop, this.scrollTopSize)
|
|
||||||
if (e.scrollTop >= this.scrollTopSize) { //控制大图层
|
if (e.scrollTop >= this.scrollTopSize) { //控制大图层
|
||||||
// this.isFixed = false;
|
this.isFixed = false;
|
||||||
this.$set(this, 'isFixed', false);
|
|
||||||
} else {
|
} else {
|
||||||
this.$set(this, 'isFixed', true);
|
this.isFixed = true;
|
||||||
}
|
}
|
||||||
}, 10)
|
}, 10)
|
||||||
|
|
||||||
|
|
@ -526,21 +517,6 @@
|
||||||
* @param {Object} b
|
* @param {Object} b
|
||||||
*/
|
*/
|
||||||
shopAdd(item, index, index1, a, b) {
|
shopAdd(item, index, index1, a, b) {
|
||||||
let flag = true;
|
|
||||||
// if ( this.cartLists.data.length > 0) {
|
|
||||||
// this.cartLists.data.forEach((v,e)=>{
|
|
||||||
// if ( v.productId == item.id) {
|
|
||||||
// flag = false;
|
|
||||||
// }
|
|
||||||
// console.log(v)
|
|
||||||
// })
|
|
||||||
// }
|
|
||||||
console.log(a)
|
|
||||||
console.log(this.amountcartNumber)
|
|
||||||
console.log(this.skuNumber)
|
|
||||||
console.log(this.skuSuit)
|
|
||||||
console.log(flag)
|
|
||||||
console.log(item)
|
|
||||||
if ( a == "+" ){
|
if ( a == "+" ){
|
||||||
if ( this.skuNumber < this.skuSuit) {
|
if ( this.skuNumber < this.skuSuit) {
|
||||||
this.amountcartNumber = this.amountcartNumber + (item.suit==0?1:item.suit);
|
this.amountcartNumber = this.amountcartNumber + (item.suit==0?1:item.suit);
|
||||||
|
|
@ -875,7 +851,7 @@
|
||||||
/* 获取最后一项的高度,设置填充高度。判断和填充时做了 +-20 的操作,是为了滚动时更好的定位 */
|
/* 获取最后一项的高度,设置填充高度。判断和填充时做了 +-20 的操作,是为了滚动时更好的定位 */
|
||||||
let last = res[res.length - 1].height;
|
let last = res[res.length - 1].height;
|
||||||
if (last - 20 < this.scrollHeight) {
|
if (last - 20 < this.scrollHeight) {
|
||||||
this.fillHeight = this.scrollHeight - last + 20;//这是吸到顶部的距离
|
this.fillHeight = this.scrollHeight - last + 20; //这是吸到顶部的距离
|
||||||
// this.fillHeight = 200;
|
// this.fillHeight = 200;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
@ -905,15 +881,18 @@
|
||||||
},
|
},
|
||||||
/* 左侧导航点击 */
|
/* 左侧导航点击 */
|
||||||
leftTap(e) {
|
leftTap(e) {
|
||||||
console.log(this.scrollTopSize + this.HeighT,11)
|
let HeighTdata = null
|
||||||
|
if (this.opacity) {
|
||||||
|
HeighTdata = this.HeighT
|
||||||
|
} else {
|
||||||
|
HeighTdata = this.HeighT * 2
|
||||||
|
}
|
||||||
|
console.log(this.scrollTopSize + HeighTdata, 11)
|
||||||
try {
|
try {
|
||||||
if (this.isFixed) {
|
uni.pageScrollTo({
|
||||||
uni.pageScrollTo({
|
scrollTop: this.scrollTopSize + HeighTdata, //滑动需要的距离 nav+列表距离的高度
|
||||||
scrollTop: this.scrollTopSize + this.HeighT, //滑动需要的距离 nav+列表距离的高度
|
duration: 0
|
||||||
duration: 100
|
});
|
||||||
});
|
|
||||||
this.isFixed = false
|
|
||||||
}
|
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
//TODO handle the exception
|
//TODO handle the exception
|
||||||
}
|
}
|
||||||
|
|
@ -1816,11 +1795,13 @@
|
||||||
color: #999999;
|
color: #999999;
|
||||||
margin-bottom: 8rpx;
|
margin-bottom: 8rpx;
|
||||||
}
|
}
|
||||||
.describe,.name{
|
|
||||||
|
.describe,
|
||||||
|
.name {
|
||||||
width: 270rpx;
|
width: 270rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue