wangfukang 2 weeks ago
parent
commit
b94367476f
  1. 1
      package1/buyFood/buyFood.vue
  2. 26
      package1/group/groupBuySingle.vue

1
package1/buyFood/buyFood.vue

@ -531,6 +531,7 @@
return {
title: '我发起了一个拼团,快来一起拼单吧!',
path: path,
imageUrl:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/62c9aa038b2541ad9c400a76ddae7ef8.png'
}
}
return {

26
package1/group/groupBuySingle.vue

@ -3,7 +3,7 @@
<view class="page1" @touchmove="onPageTouchMove">
<!-- 固定顶部导航栏悬浮在背景图之上 -->
<view class="nav-bar"
:style="{'padding-top': menuButtonInfo.top +'px','background':lastScrollTop>200?'#fff':''}">
:style="{'padding-top': menuButtonInfo.top +'px','background':lastScrollTop>217?'#fff':''}">
<view class="back-btn" @tap="back">
<uni-icons type="left" size="28"></uni-icons>
</view>
@ -98,7 +98,7 @@
<view style="width: 160rpx;">{{item.categoryName}}</view>
</view>
</scroll-view>
<scroll-view class="goods-list" scroll-y :scroll-into-view="scrollIntoViewId" :scroll-top="goodsListScrollTop" @scroll="onGoodsListScroll" @scrolltoupper="onGoodsListScrollToTop" :scroll-with-animation="true">
<scroll-view class="goods-list" :style="{'overflow':lastScrollTop>217?'scroll':'hidden'}" :scroll-into-view="scrollIntoViewId" :scroll-top="goodsListScrollTop" @scroll="onGoodsListScroll" @scrolltoupper="onGoodsListScrollToTop" :scroll-with-animation="true">
<view class="goods-member" :id="'category-' + item.categoryId" v-for="(item,index) in productItem" :key="index"
@tap="goDetail('product',item)">
<view class="goods-top">
@ -411,8 +411,8 @@
<!-- 支付弹出层 -->
<uni-popup ref="payPopup" background-color="#fff">
<view class="pay-popup" style="height: 1920rpx;background: #fff;border-radius: 40rpx 40rpx 0 0;padding-top: 40rpx;">
<view class="content">
<view class="pay-popup" style="height: 290px;background: #fff;border-radius: 40rpx 40rpx 0 0;padding-top: 40rpx;">
<view class="content" style="height: 100%;margin-top:0">
<view class="box1">
<view style="height: 70rpx;line-height: 70rpx;text-align: center;">
支付剩余时间 59:09
@ -422,15 +422,15 @@
<text
style="font-size: 60rpx;">{{backendTotalAmount ? backendTotalAmount.toFixed(2) : '0.00'}}</text>
</view>
<view style="height: 40rpx;text-align: center;color: #777;">
<text v-if="groupId != '' && isFaceToFaceGroup">配送费(均摊) {{tuanzhangOrder.deliveryFee}} </text>
<text v-if="groupdeliveryType == 1"> 打包费 {{currentItem.lunchBox}} </text>
</view>
<view style="height: 40rpx;text-align: center;color: red;">
若拼团失败将会为您自动退款
</view>
<view v-if="groupId != '' && isFaceToFaceGroup" style="height: 40rpx;text-align: center;color: red;">
配送费(均摊) {{tuanzhangOrder.deliveryFee}}
</view>
<view v-if="groupdeliveryType == 1" style="height: 40rpx;text-align: center;color: red;">
包含打包费 {{currentItem.lunchBox}}
</view>
</view>
<view class="box1" style="display: flex;padding: 40rpx;">
<view style="flex: 1;">
@ -649,6 +649,7 @@
},
onPageScroll(e) {
this.lastScrollTop = e.scrollTop;
console.log(e.scrollTop)
// container
const stickyThreshold = this.containerOriginalTop - this.navBarHeight;
@ -657,6 +658,7 @@
// touchmovegoods-list
onPageTouchMove(e) {
// scroll-view
console.log(e)
},
// goods-list +
onGoodsListScroll(e) {
@ -1149,6 +1151,7 @@
return arr.join(',');
},
submitCartCheckout() {
if (this.cartItems.length === 0) {
this.$refs.warnPopup.open()
return;
@ -1352,7 +1355,6 @@
height: 100%;
font-size: 24rpx;
position: relative;
overflow: hidden;
}
/* 顶部背景图随页面滚动(不固定) */
@ -1404,7 +1406,7 @@
margin-top: -150rpx;
position: relative;
z-index: 1;
height: 88%;
height: auto;
}
.shop-img {

Loading…
Cancel
Save