Skip to content

Commit 3a9b2bf

Browse files
authored
Merge pull request bailicangdu#288 from catchonme/master
修改路由关系,修复排序页面统计数字异常,修复用户名检测问题
2 parents 3fd11ca + f093408 commit 3a9b2bf

File tree

5 files changed

+525
-527
lines changed

5 files changed

+525
-527
lines changed

src/components/common/shoplist.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
</h5>
3030
<h5 class="fee_distance">
3131
<p class="fee">
32-
¥{{item.float_minimum_order_amount}}起送
32+
¥{{item.float_minimum_order_amount}}起送
3333
<span class="segmentation">/</span>
3434
{{item.piecewise_agent_fee.tips}}
3535
</p>
@@ -123,7 +123,7 @@ export default {
123123
}
124124
//防止重复请求
125125
if (this.preventRepeatReuqest) {
126-
return
126+
return
127127
}
128128
this.showLoading = true;
129129
this.preventRepeatReuqest = true;
@@ -183,7 +183,6 @@ export default {
183183
//监听父级的确认按钮是否被点击,并且返回一个自定义事件通知父级,已经接收到数据,此时父级才可以清除已选状态
184184
confirmSelect: function (value){
185185
this.listenPropChange();
186-
this.$emit('DidConfrim');
187186
}
188187
}
189188
}
@@ -337,4 +336,4 @@ export default {
337336
.loading-enter, .loading-leave-active {
338337
opacity: 0
339338
}
340-
</style>
339+
</style>

src/page/food/food.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@
166166
<div class="back_cover" v-show="sortBy"></div>
167167
</transition>
168168
<section class="shop_list_container">
169-
<shop-list :geohash="geohash" :restaurantCategoryId="restaurant_category_id" :restaurantCategoryIds="restaurant_category_ids" :sortByType='sortByType' :deliveryMode="delivery_mode" :confirmSelect="confirmStatus" :supportIds="support_ids" v-if="latitude" @DidConfrim="clearAll"></shop-list>
169+
<shop-list :geohash="geohash" :restaurantCategoryId="restaurant_category_id" :restaurantCategoryIds="restaurant_category_ids" :sortByType='sortByType' :deliveryMode="delivery_mode" :confirmSelect="confirmStatus" :supportIds="support_ids" v-if="latitude"></shop-list>
170170
</section>
171171
</div>
172172
</template>
@@ -325,12 +325,6 @@ export default {
325325
}
326326
})
327327
},
328-
//点击取消或者确认时,需要清空当前已选的状态值
329-
clearAll(){
330-
this.delivery_mode = null;
331-
// this.support_ids.map(item => item.status = false);
332-
// this.filterNum = 0;
333-
},
334328
//只有点击清空按钮才清空数据,否则一直保持原有状态
335329
clearSelect(){
336330
this.support_ids.map(item => item.status = false);

src/page/profile/children/setusername.vue renamed to src/page/profile/children/children/setusername.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
4040
},
4141
mounted(){
42-
42+
4343
},
4444
computed:{
4545
...mapState([
@@ -56,23 +56,29 @@
5656
this.earn=false;
5757
this.bordercolor=true;
5858
this.opacityall=false;
59+
return false;
5960
}else{
6061
this.earn=true;
6162
this.bordercolor=false;
6263
this.opacityall=true;
64+
return true;
6365
}
6466
},
6567
resetName(){
68+
let checkResult = this.inputThing();
69+
if (!checkResult) {
70+
return;
71+
}
6672
this.RETSET_NAME(this.inputValue);
6773
this.$router.go(-1);
6874
}
6975
}
7076
}
7177
</script>
72-
78+
7379
<style lang="scss" scoped>
7480
@import 'src/style/mixin';
75-
81+
7682
.rating_page{
7783
position: absolute;
7884
top: 0;

0 commit comments

Comments
 (0)