wangfukang 3 weeks ago
parent
commit
4dcf63de0e
  1. 3
      App.vue
  2. 6
      manifest.json
  3. 6
      package2/group/groupBuySingle.vue
  4. 8
      pages/index/index.vue

3
App.vue

@ -1,5 +1,8 @@
<script> <script>
export default { export default {
onLaunch: function() { onLaunch: function() {
uni.authorize({ uni.authorize({
scope: 'scope.userLocation', scope: 'scope.userLocation',

6
manifest.json

@ -108,9 +108,9 @@
"scope.writePhotosAlbum" : { "scope.writePhotosAlbum" : {
"desc" : "你的图片将保存到手机相册" "desc" : "你的图片将保存到手机相册"
}, },
"scope.writePhoneNumber": { "scope.writePhoneNumber" : {
"desc": "你的手机号码将用于账号安全及订单通知" "desc" : "你的手机号码将用于账号安全及订单通知"
} }
}, },
"requiredPrivateInfos" : [ "getLocation", "chooseLocation" ] "requiredPrivateInfos" : [ "getLocation", "chooseLocation" ]
}, },

6
package2/group/groupBuySingle.vue

@ -821,6 +821,12 @@
} }
}, },
onPullDownRefresh() { onPullDownRefresh() {
this.menuList = [{
categoryName: '推荐',
id: 'tuijian',
checked: true
}]
this.productItem = []
this.getCategory(this.shopItem.id); this.getCategory(this.shopItem.id);
this.getProduct(''); this.getProduct('');
}, },

8
pages/index/index.vue

@ -228,7 +228,6 @@
</view> </view>
</view> </view>
<view class="daimai-box" style="padding-bottom:180rpx;"> <view class="daimai-box" style="padding-bottom:180rpx;">
<view style="width:100%;height:100rpx;" v-if="lastScrollTop>583"></view>
<view class="daimai-tab" id="menuList" :class="{'daimai-tab--sticky': lastScrollTop>583}" <view class="daimai-tab" id="menuList" :class="{'daimai-tab--sticky': lastScrollTop>583}"
:style="{'top': (navBarHeight+46) + 'px'}"> :style="{'top': (navBarHeight+46) + 'px'}">
<view class="daimai-tab-item" :class="{'active': checked == 'waimai'}" <view class="daimai-tab-item" :class="{'active': checked == 'waimai'}"
@ -331,7 +330,8 @@
</view> </view>
</view> </view>
<scroll-view @scrolltolower="onReachPage" :scroll-y="lastScrollTop>583" class="delivery-list-wrap"> <scroll-view @scrolltolower="onReachPage" :upper-threshold="30" @scrolltoupper="gundongTop" :scroll-y="lastScrollTop>583" class="delivery-list-wrap">
<view class="empty-delivery" v-if="deliveryItem.length <= 0"> <view class="empty-delivery" v-if="deliveryItem.length <= 0">
<view class="empty-delivery-icon">校园</view> <view class="empty-delivery-icon">校园</view>
<view class="empty-delivery-title">暂时没有可抢订单</view> <view class="empty-delivery-title">暂时没有可抢订单</view>
@ -339,6 +339,7 @@
</view> </view>
<view class="list-1" v-for="(item,index) in deliveryItem" :key="index" <view class="list-1" v-for="(item,index) in deliveryItem" :key="index"
@tap="productDetail(item)"> @tap="productDetail(item)">
<view style="width:100%;height:70rpx;" v-if="lastScrollTop>560 && index == 0"></view>
<view class="daoda-time"> <view class="daoda-time">
送达时间{{item.mustFinishTime != null ? item.mustFinishTime : '' | formatHourMinute }} 送达时间{{item.mustFinishTime != null ? item.mustFinishTime : '' | formatHourMinute }}
</view> </view>
@ -1220,6 +1221,9 @@
this.searchForm.pageNum++; this.searchForm.pageNum++;
this.getDelivery(); this.getDelivery();
}, },
gundongTop(){
console.log("00000000000000000000000")
},
searchOrder(type, value) { searchOrder(type, value) {
if (type == 'getarea') { if (type == 'getarea') {
if (this.searchForm.getAreaId == value.id) { if (this.searchForm.getAreaId == value.id) {

Loading…
Cancel
Save