|
@@ -21,12 +21,12 @@ Page({
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
initPrice: 28.80,
|
|
initPrice: 28.80,
|
|
nowPrice: 10.98,
|
|
nowPrice: 10.98,
|
|
- num : 10
|
|
|
|
|
|
+ num : 0
|
|
},
|
|
},
|
|
{
|
|
{
|
|
id: 2,
|
|
id: 2,
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
- foodsName: '麻辣烫',
|
|
|
|
|
|
+ foodsName: '辣烫',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
initPrice: 28.80,
|
|
initPrice: 28.80,
|
|
nowPrice: 10.98,
|
|
nowPrice: 10.98,
|
|
@@ -35,7 +35,7 @@ Page({
|
|
{
|
|
{
|
|
id: 3,
|
|
id: 3,
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
- foodsName: '麻辣烫',
|
|
|
|
|
|
+ foodsName: '麻烫',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
initPrice: 28.80,
|
|
initPrice: 28.80,
|
|
nowPrice: 10.98,
|
|
nowPrice: 10.98,
|
|
@@ -44,7 +44,7 @@ Page({
|
|
{
|
|
{
|
|
id: 4,
|
|
id: 4,
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
- foodsName: '麻辣烫',
|
|
|
|
|
|
+ foodsName: '麻辣',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
initPrice: 28.80,
|
|
initPrice: 28.80,
|
|
nowPrice: 10.98,
|
|
nowPrice: 10.98,
|
|
@@ -53,7 +53,7 @@ Page({
|
|
{
|
|
{
|
|
id: 5,
|
|
id: 5,
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
- foodsName: '麻辣烫',
|
|
|
|
|
|
+ foodsName: '辣烫',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
initPrice: 28.80,
|
|
initPrice: 28.80,
|
|
nowPrice: 10.98,
|
|
nowPrice: 10.98,
|
|
@@ -62,7 +62,7 @@ Page({
|
|
{
|
|
{
|
|
id: 6,
|
|
id: 6,
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
foodsImg: 'https://bpic.588ku.com/back_origin_min_pic/20/11/05/a7438bbf54ace893e790545815e14ef3.jpg',
|
|
- foodsName: '麻辣烫',
|
|
|
|
|
|
+ foodsName: '辣烫',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
foodsDesc: '包含香菜、菠菜、面、豆芽、海带',
|
|
initPrice: 28.80,
|
|
initPrice: 28.80,
|
|
nowPrice: 10.98,
|
|
nowPrice: 10.98,
|
|
@@ -97,13 +97,6 @@ Page({
|
|
this.setData({
|
|
this.setData({
|
|
[ans ]:'num'
|
|
[ans ]:'num'
|
|
})
|
|
})
|
|
- // for( let i = 0 ; i < showList.length ;i ++ ) {
|
|
|
|
- // showList[i].num
|
|
|
|
- // }
|
|
|
|
- // for( let i = 0 ; i < showList.length ;i ++ ) {
|
|
|
|
- // showList[i].
|
|
|
|
- // }
|
|
|
|
- // totalPrice
|
|
|
|
},
|
|
},
|
|
onSearch() {
|
|
onSearch() {
|
|
let list = this.data.foods;
|
|
let list = this.data.foods;
|
|
@@ -119,13 +112,13 @@ Page({
|
|
console.log(showList);
|
|
console.log(showList);
|
|
|
|
|
|
// showList
|
|
// showList
|
|
- if (showList.length != 0) {
|
|
|
|
|
|
+ if (showList.length == 0) {
|
|
this.setData({
|
|
this.setData({
|
|
- show: false,
|
|
|
|
|
|
+ show: true,
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
this.setData({
|
|
this.setData({
|
|
- show: true,
|
|
|
|
|
|
+ show: false,
|
|
})
|
|
})
|
|
}
|
|
}
|
|
this.setData({
|
|
this.setData({
|