|
@@ -17,6 +17,7 @@ Page({ |
|
@@ -17,6 +17,7 @@ Page({ |
|
17
|
hasOnlineReserve:false,
|
17
|
hasOnlineReserve:false,
|
|
18
|
activeTab:'detail',
|
18
|
activeTab:'detail',
|
|
19
|
hasFullHouse:false,//满房
|
19
|
hasFullHouse:false,//满房
|
|
|
|
20
|
+ hasDishesImage:false,//是否有菜品图
|
|
20
|
},
|
21
|
},
|
|
21
|
|
22
|
|
|
22
|
/**
|
23
|
/**
|
|
@@ -92,9 +93,11 @@ Page({ |
|
@@ -92,9 +93,11 @@ Page({ |
|
92
|
seller.room_image[i]=url.replace('//qn.colorcun','//nosqn.colorcun')
|
93
|
seller.room_image[i]=url.replace('//qn.colorcun','//nosqn.colorcun')
|
|
93
|
})
|
94
|
})
|
|
94
|
}
|
95
|
}
|
|
|
|
96
|
+ let hasDishesImage=false;
|
|
95
|
if(seller.dishes.length>0){
|
97
|
if(seller.dishes.length>0){
|
|
96
|
seller.dishes.some((dishes)=>{
|
98
|
seller.dishes.some((dishes)=>{
|
|
97
|
if(dishes.image){
|
99
|
if(dishes.image){
|
|
|
|
100
|
+ hasDishesImage=true
|
|
98
|
dishes.image=dishes.image.replace('//qn.colorcun','//nosqn.colorcun')
|
101
|
dishes.image=dishes.image.replace('//qn.colorcun','//nosqn.colorcun')
|
|
99
|
}
|
102
|
}
|
|
100
|
})
|
103
|
})
|
|
@@ -113,6 +116,7 @@ Page({ |
|
@@ -113,6 +116,7 @@ Page({ |
|
113
|
}
|
116
|
}
|
|
114
|
this.setData({
|
117
|
this.setData({
|
|
115
|
seller:seller,
|
118
|
seller:seller,
|
|
|
|
119
|
+ hasDishesImage:hasDishesImage,
|
|
116
|
hasOnlineReserve:seller.is_online_reserve==1,
|
120
|
hasOnlineReserve:seller.is_online_reserve==1,
|
|
117
|
})
|
121
|
})
|
|
118
|
}
|
122
|
}
|