Skip to content

Commit

Permalink
Merge pull request bailicangdu#288 from catchonme/master
Browse files Browse the repository at this point in the history
修改路由关系,修复排序页面统计数字异常,修复用户名检测问题
  • Loading branch information
bailicangdu authored Feb 9, 2018
2 parents 3fd11ca + f093408 commit 3a9b2bf
Show file tree
Hide file tree
Showing 5 changed files with 525 additions and 527 deletions.
7 changes: 3 additions & 4 deletions src/components/common/shoplist.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</h5>
<h5 class="fee_distance">
<p class="fee">
¥{{item.float_minimum_order_amount}}起送
¥{{item.float_minimum_order_amount}}起送
<span class="segmentation">/</span>
{{item.piecewise_agent_fee.tips}}
</p>
Expand Down Expand Up @@ -123,7 +123,7 @@ export default {
}
//防止重复请求
if (this.preventRepeatReuqest) {
return
return
}
this.showLoading = true;
this.preventRepeatReuqest = true;
Expand Down Expand Up @@ -183,7 +183,6 @@ export default {
//监听父级的确认按钮是否被点击,并且返回一个自定义事件通知父级,已经接收到数据,此时父级才可以清除已选状态
confirmSelect: function (value){
this.listenPropChange();
this.$emit('DidConfrim');
}
}
}
Expand Down Expand Up @@ -337,4 +336,4 @@ export default {
.loading-enter, .loading-leave-active {
opacity: 0
}
</style>
</style>
8 changes: 1 addition & 7 deletions src/page/food/food.vue
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<div class="back_cover" v-show="sortBy"></div>
</transition>
<section class="shop_list_container">
<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>
<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>
</section>
</div>
</template>
Expand Down Expand Up @@ -325,12 +325,6 @@ export default {
}
})
},
//点击取消或者确认时,需要清空当前已选的状态值
clearAll(){
this.delivery_mode = null;
// this.support_ids.map(item => item.status = false);
// this.filterNum = 0;
},
//只有点击清空按钮才清空数据,否则一直保持原有状态
clearSelect(){
this.support_ids.map(item => item.status = false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
},
mounted(){
},
computed:{
...mapState([
Expand All @@ -56,23 +56,29 @@
this.earn=false;
this.bordercolor=true;
this.opacityall=false;
return false;
}else{
this.earn=true;
this.bordercolor=false;
this.opacityall=true;
return true;
}
},
resetName(){
let checkResult = this.inputThing();
if (!checkResult) {
return;
}
this.RETSET_NAME(this.inputValue);
this.$router.go(-1);
}
}
}
</script>

<style lang="scss" scoped>
@import 'src/style/mixin';
.rating_page{
position: absolute;
top: 0;
Expand Down
Loading

0 comments on commit 3a9b2bf

Please sign in to comment.