diff --git a/package2/group/groupBuyList.vue b/package2/group/groupBuyList.vue index bad4b88..258e7a1 100644 --- a/package2/group/groupBuyList.vue +++ b/package2/group/groupBuyList.vue @@ -11,14 +11,11 @@ 饭团 宿舍拼饭局 - + - - - {{word}} - - - 热搜↑ + + 搜索 @@ -84,7 +81,7 @@ - 综合排序 + 搜索重置 @@ -130,12 +127,11 @@ - - {{item._liveAvatars[0]}} - {{item._liveAvatars[1]}} - {{item._liveAvatars[2]}} + {{item.shopScore ? item.shopScore : 5}} + + - 附近同学正在拼 @@ -404,16 +400,22 @@ this.searchForm.sortOrder = 'shoprank' this.searchForm.orderOrder = 'desc' this.searchForm.shopArea = '' + this.searchForm.shopType = '' + this.searchForm.keyWord = '' this.$delete(this.searchForm, 'isStudent') this.searchForm.sort = 'shoprank' this.searchScore = false - this.searchScore = false this.searchSale = false } else if (type == 'typeUp') { //TODO跳转新页面 } this.getShopList(); }, + goSearch() { + this.searchForm.keyWord = (this.searchForm.keyWord || '').trim() + this.searchForm.pageNumber = 1 + this.getShopList() + }, buyingye() { uni.showToast({ title: '店铺不在营业时间!', @@ -595,13 +597,9 @@ this.searchStudentShop() return } - uni.navigateTo({ - url: '/package2/group/searchGroup?shopType=' + (item.value || '') - }) + this.searchByShopType(item.value || '') } else { - uni.navigateTo({ - url: '/package2/group/searchGroup' - }) + this.goSearch() } } else { uni.navigateTo({ @@ -629,6 +627,18 @@ this.$set(this.searchForm, 'isStudent', 1) this.getShopList() }, + searchByShopType(shopType) { + this.searchForm.pageNumber = 1 + this.searchForm.shopArea = '' + this.searchForm.shopType = shopType + this.searchForm.sort = 'shoprank' + this.searchForm.sortOrder = 'shoprank' + this.searchForm.orderOrder = 'desc' + this.searchScore = false + this.searchSale = false + this.$delete(this.searchForm, 'isStudent') + this.getShopList() + }, checkArea() { this.isArea = !this.isArea } @@ -749,6 +759,16 @@ margin-left: 8rpx; } + .search-input { + flex: 1; + height: 58rpx; + line-height: 58rpx; + margin-left: 8rpx; + font-size: 22rpx; + font-weight: 800; + color: #08735d; + } + .search-hot-word { height: 58rpx; line-height: 58rpx; @@ -1373,41 +1393,27 @@ } .shop-rate { - background: rgba(255, 250, 237, 0.72); - min-height: 46rpx; - display: flex; - align-items: center; - border-radius: 46rpx; - padding: 0 14rpx 0 8rpx; - box-shadow: inset 0 0 0 1rpx rgba(255, 255, 255, 0.7); - } - - .avatar-stack { + background: rgba(249, 212, 157, 0.34); + height: 34rpx; display: flex; align-items: center; - - text { - width: 34rpx; - height: 34rpx; - line-height: 34rpx; - text-align: center; - border-radius: 50%; - background: #fff; - margin-left: -8rpx; - font-size: 18rpx; - box-shadow: 0 4rpx 10rpx rgba(0, 45, 29, 0.12); - } - - text:first-child { - margin-left: 0; - } + border-radius: 17rpx; + padding: 0 8rpx 0 0; } - .shop-rate-text { - margin-left: 10rpx; - font-size: 20rpx; - font-weight: 900; - color: #7a5942; + .shop-rate-num { + width: 42rpx; + height: 100%; + text-align: center; + background: linear-gradient(90deg, rgba(255, 77, 0, 1), rgba(255, 184, 84, 1)); + color: #fff; + line-height: 34rpx; + font-size: 18rpx; + border-bottom-left-radius: 17rpx; + border-top-left-radius: 17rpx; + border-bottom-right-radius: 8rpx; + border-top-right-radius: 8rpx; + font-weight: 700; } .shop-tag { diff --git a/package2/group/groupBuySingle.vue b/package2/group/groupBuySingle.vue index 53c4e31..87f7e65 100644 --- a/package2/group/groupBuySingle.vue +++ b/package2/group/groupBuySingle.vue @@ -145,15 +145,13 @@ - + 可拼团 {{item.productName}} - + 拼团价更香 约人一起下单 @@ -2676,6 +2674,23 @@ } } + .group-corner-badge { + position: absolute; + top: -1rpx; + left: -1rpx; + z-index: 2; + height: 34rpx; + line-height: 34rpx; + padding: 0 12rpx; + border-radius: 18rpx 18rpx 18rpx 6rpx; + background: linear-gradient(90deg, #ff6a2a, #ffb854); + color: #fff; + font-size: 18rpx; + font-weight: 900; + box-shadow: 0 8rpx 16rpx rgba(255, 106, 42, 0.28); + border: 2rpx solid rgba(255, 255, 255, 0.9); + } + .goods-bottom { width: 95%; margin: 0 auto; diff --git a/package2/group/groupPendingList.vue b/package2/group/groupPendingList.vue index f686eb9..c9152b5 100644 --- a/package2/group/groupPendingList.vue +++ b/package2/group/groupPendingList.vue @@ -1,21 +1,17 @@