diff --git a/package2/group/groupBuyList.vue b/package2/group/groupBuyList.vue index b06c888..00399ce 100644 --- a/package2/group/groupBuyList.vue +++ b/package2/group/groupBuyList.vue @@ -218,6 +218,7 @@ totalPages: 1, searchForm: { regionId: JSON.parse(uni.getStorageSync('area')).id, + merchantType: 1, shopType: '', shopArea: '', pageNumber: 1, @@ -287,11 +288,12 @@ url: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/e6adc80518c24c488522ab19f036af27.png', index: 4 }, { - name: '看病买药', - displayName: '救急小站', - sticker: '急', + name: '同学小店', + displayName: '同学店铺', + sticker: '校', + isStudentOnly: true, value: '', - url: 'https://jewel-shop.oss-cn-beijing.aliyuncs.com/766761af471a4f9f90e9a137f9c4f701.png', + url: '/static/images/img/songshu.png', index: 5 }], menuBtn1: [{ @@ -404,6 +406,7 @@ this.searchForm.sortOrder = 'shoprank' this.searchForm.orderOrder = 'desc' this.searchForm.shopArea = '' + this.$delete(this.searchForm, 'isStudent') this.searchForm.sort = 'shoprank' this.searchScore = false this.searchScore = false @@ -564,6 +567,10 @@ }) } else if (type == 'search') { if (item) { + if (item.isStudentOnly) { + this.searchStudentShop() + return + } uni.navigateTo({ url: '/package2/group/searchGroup?shopType=' + (item.value || '') }) @@ -581,6 +588,18 @@ back() { uni.navigateBack() }, + searchStudentShop() { + this.searchForm.pageNumber = 1 + this.searchForm.shopArea = '' + this.searchForm.shopType = '' + this.searchForm.sort = 'shoprank' + this.searchForm.sortOrder = 'shoprank' + this.searchForm.orderOrder = 'desc' + this.searchScore = false + this.searchSale = false + this.$set(this.searchForm, 'isStudent', 1) + this.getShopList() + }, checkArea() { this.isArea = !this.isArea } diff --git a/package2/group/studentStoreList.vue b/package2/group/studentStoreList.vue index b4fdf85..a909cb1 100644 --- a/package2/group/studentStoreList.vue +++ b/package2/group/studentStoreList.vue @@ -40,7 +40,7 @@ - 上升 + 搜索 @@ -59,18 +59,8 @@ 校园拼团雷达 - 随便逛 - 正在热拼 - 同校推荐 - - {{areaTitle}} - - 全部区域 - - {{item.title}} - - - + 拼单最多 + 同学最爱 @@ -166,6 +156,7 @@ totalPages: 1, searchForm: { regionId: '', + merchantType: 2, shopName: '', shopType: '', keyWord: '', @@ -184,63 +175,64 @@ tabList: [{ name: '全部', key: '', - keyword: '', + value: '', icon: '逛', sub: '随便看看' }, { name: '学生小店', key: 'student', - keyword: '学生', + value: 5, + isStudentOnly: true, icon: '舍', sub: '宿舍宝藏' }, { - name: '课程资料', + name: '考学课程', key: 'course', - keyword: '课', + value: 11, icon: '课', sub: '学分救星' }, { - name: '零食饮品', - key: 'snack', - keyword: '零食', + name: '美食', + key: 'food', + value: 1, icon: '吃', - sub: '夜宵补给' + sub: '烤肉/火锅' }, { - name: '美甲服务', - key: 'nail', - keyword: '美甲', - icon: '美', - sub: '周末变美' + name: '休闲玩乐', + key: 'play', + value: 12, + icon: '玩', + sub: '网台K棋' }, { - name: 'KTV', - key: 'ktv', - keyword: 'KTV', - icon: '唱', - sub: '开嗓搭子' + name: '美发美容', + key: 'beauty', + value: 13, + icon: '美', + sub: '清爽一下' }, { - name: '台球', - key: 'billiards', - keyword: '台球', - icon: '球', - sub: '下课约局' + name: '甜点饮品', + key: 'drink', + value: 2, + icon: '咖', + sub: '快乐补给' }, { - name: '烤肉套餐', - key: 'bbq', - keyword: '烤肉', - icon: '肉', - sub: '拼桌快乐' + name: '酒店民宿', + key: 'hotel', + value: 14, + icon: '店', + sub: '小憩一下' }, { - name: '网吧', - key: 'internet', - keyword: '网吧', - icon: '开', - sub: '五黑集合' + name: '电影演出', + key: 'movie', + value: 15, + icon: '演', + sub: '下课约影' }, { - name: '棋牌室', - key: 'chess', - keyword: '棋牌', - icon: '牌', - sub: '凑桌开玩' + name: '其他', + key: 'other', + value: 16, + icon: '其', + sub: '更多美好' }], hotWords: ['🍢 宿舍夜宵拼团', '🎤 KTV四人局还差1人', '💅 周末美甲搭子', '🥩 烤肉套餐同校热拼'], quickHotWords: ['夜宵', 'KTV', '美甲', '台球', '烤肉', '资料'], @@ -374,9 +366,15 @@ }, switchTab(item) { this.checkedTab = item.key - this.searchForm.keyWord = item.keyword - this.searchForm.shopType = item.value || '' this.resetList() + this.searchForm.keyWord = '' + if (item.isStudentOnly) { + this.searchForm.shopType = '' + this.$set(this.searchForm, 'isStudent', 1) + } else { + this.searchForm.shopType = item.value || '' + this.$delete(this.searchForm, 'isStudent') + } this.getShopList() }, quickSearch(item) { @@ -408,13 +406,11 @@ this.areaTitle = '区域' } } else if (type == 'score') { - this.sortMode = 'score' - this.searchScore = true + this.searchScore = !this.searchScore this.searchSale = false this.searchForm.sort = 'shopScore' } else if (type == 'sale') { - this.sortMode = 'sale' - this.searchSale = true + this.searchSale = !this.searchSale this.searchScore = false this.searchForm.sort = 'saleCount' } else if (type == 'all') { @@ -422,6 +418,10 @@ this.searchForm.sortOrder = 'shoprank' this.searchForm.orderOrder = 'desc' this.searchForm.shopArea = '' + this.searchForm.shopType = '' + this.searchForm.keyWord = '' + this.$delete(this.searchForm, 'isStudent') + this.checkedTab = '' this.searchForm.sort = 'shoprank' this.areaTitle = '区域' this.searchScore = false diff --git a/package2/shop/merchantRegister.vue b/package2/shop/merchantRegister.vue index 7840566..1b2e079 100644 --- a/package2/shop/merchantRegister.vue +++ b/package2/shop/merchantRegister.vue @@ -1,40 +1,54 @@