|
@@ -131,12 +131,14 @@
|
|
|
getTakeoutList,
|
|
|
getProduct
|
|
|
} from '@/api/takeout.js';
|
|
|
+ import tags from '../../mixins/tags';
|
|
|
let app = getApp();
|
|
|
var statusBarHeight = uni.getSystemInfoSync().statusBarHeight + 'rpx';
|
|
|
export default {
|
|
|
components: {
|
|
|
navBar
|
|
|
},
|
|
|
+ mixins:[tags],
|
|
|
data() {
|
|
|
return {
|
|
|
statusBarHeight: app.globalData.statusBarHeight,
|
|
@@ -148,23 +150,23 @@
|
|
|
optionIndex: 0,
|
|
|
noDataTip: '',
|
|
|
urlDomain: this.$Cache.get("imgHost"),
|
|
|
- labelList: [{
|
|
|
- id: 1,
|
|
|
- label: "销量排行",
|
|
|
- checked: true
|
|
|
- }, {
|
|
|
- id: 2,
|
|
|
- label: "满减大促",
|
|
|
- checked: false
|
|
|
- }, {
|
|
|
- id: 3,
|
|
|
- label: "首单立减",
|
|
|
- checked: false
|
|
|
- }, {
|
|
|
- id: 4,
|
|
|
- label: "减配送费",
|
|
|
- checked: false
|
|
|
- }],
|
|
|
+ // labelList: [{
|
|
|
+ // id: 1,
|
|
|
+ // label: "销量排行",
|
|
|
+ // checked: true
|
|
|
+ // }, {
|
|
|
+ // id: 2,
|
|
|
+ // label: "满减大促",
|
|
|
+ // checked: false
|
|
|
+ // }, {
|
|
|
+ // id: 3,
|
|
|
+ // label: "首单立减",
|
|
|
+ // checked: false
|
|
|
+ // }, {
|
|
|
+ // id: 4,
|
|
|
+ // label: "减配送费",
|
|
|
+ // checked: false
|
|
|
+ // }],
|
|
|
merchantList: [],
|
|
|
loadTitle:'',
|
|
|
loading: false,
|
|
@@ -225,9 +227,9 @@
|
|
|
this.getMatchedData()
|
|
|
}
|
|
|
},
|
|
|
- getTag(){
|
|
|
- return this.labelList.filter((ite => ite.checked)).map(ite => ite.id).join(',')
|
|
|
- },
|
|
|
+ // getTag(){
|
|
|
+ // return this.labelList.filter((ite => ite.checked)).map(ite => ite.id).join(',')
|
|
|
+ // },
|
|
|
getMatchedData() {
|
|
|
if (this.loading) return;
|
|
|
this.loading = true
|