|
@@ -161,6 +161,7 @@ class Seller extends Common |
|
@@ -161,6 +161,7 @@ class Seller extends Common |
|
161
|
if(Request::isAjax()){
|
161
|
if(Request::isAjax()){
|
|
162
|
$cuisine = !empty($data['cuisine']) ? implode(',', array_keys($data['cuisine'])) : '';
|
162
|
$cuisine = !empty($data['cuisine']) ? implode(',', array_keys($data['cuisine'])) : '';
|
|
163
|
$type = !empty($data['type']) ? implode(',', array_keys($data['type'])) : '';
|
163
|
$type = !empty($data['type']) ? implode(',', array_keys($data['type'])) : '';
|
|
|
|
164
|
+ $mode = !empty($data['mode']) ? implode(',', array_keys($data['mode'])) : '';
|
|
164
|
|
165
|
|
|
165
|
if($cuisine)
|
166
|
if($cuisine)
|
|
166
|
$res_cuisine= file_get_contents(ON_LINE.'App.Seller.SetSellerCuisine&sellerid='.$data['sellerid'].'&cid='.$cuisine);
|
167
|
$res_cuisine= file_get_contents(ON_LINE.'App.Seller.SetSellerCuisine&sellerid='.$data['sellerid'].'&cid='.$cuisine);
|
|
@@ -169,6 +170,10 @@ class Seller extends Common |
|
@@ -169,6 +170,10 @@ class Seller extends Common |
|
169
|
$res_type= file_get_contents(ON_LINE.'App.Seller.SetSellerType&sellerid='.$data['sellerid'].'&typeid='.$type);
|
170
|
$res_type= file_get_contents(ON_LINE.'App.Seller.SetSellerType&sellerid='.$data['sellerid'].'&typeid='.$type);
|
|
170
|
//$res_type = json_decode($res_type,TRUE);
|
171
|
//$res_type = json_decode($res_type,TRUE);
|
|
171
|
|
172
|
|
|
|
|
173
|
+ if($mode)
|
|
|
|
174
|
+ $res_mode= file_get_contents(ON_LINE.'App.Seller.setSellerMode&sellerid='.$data['sellerid'].'&modeid='.$mode);
|
|
|
|
175
|
+ //$res_mode = json_decode($res_mode,TRUE);
|
|
|
|
176
|
+
|
|
172
|
$result['code'] = 1;
|
177
|
$result['code'] = 1;
|
|
173
|
$result['msg'] = "配置成功!";
|
178
|
$result['msg'] = "配置成功!";
|
|
174
|
return $result;
|
179
|
return $result;
|
|
@@ -204,6 +209,23 @@ class Seller extends Common |
|
@@ -204,6 +209,23 @@ class Seller extends Common |
|
204
|
}
|
209
|
}
|
|
205
|
}
|
210
|
}
|
|
206
|
$this->assign('channel',$channel);//获取所有来源
|
211
|
$this->assign('channel',$channel);//获取所有来源
|
|
|
|
212
|
+
|
|
|
|
213
|
+ //获取商家已有地图显示方式
|
|
|
|
214
|
+ $mode_list= file_get_contents(ON_LINE.'App.Seller.getSellerMode&sellerid='.$data['id']);
|
|
|
|
215
|
+ $mode_list = json_decode($mode_list,TRUE);
|
|
|
|
216
|
+
|
|
|
|
217
|
+ //获取所有地图显示方式
|
|
|
|
218
|
+ $mode= array(array('id'=>1,'name'=>'大图标'),array('id'=>2,'name'=>'文字'));
|
|
|
|
219
|
+ //组装数据
|
|
|
|
220
|
+ foreach ($mode_list['data'] as $key => $value) {
|
|
|
|
221
|
+ foreach ($mode as $k => $v) {
|
|
|
|
222
|
+ if($value['sm_id']==$v['id']){
|
|
|
|
223
|
+ $mode[$k]['checked'] = 1;
|
|
|
|
224
|
+ }
|
|
|
|
225
|
+ }
|
|
|
|
226
|
+ }
|
|
|
|
227
|
+ $this->assign('mode',$mode);//获取所有菜系
|
|
|
|
228
|
+
|
|
207
|
$this->assign ('data',$data); //商户信息
|
229
|
$this->assign ('data',$data); //商户信息
|
|
208
|
$this->assign ( 'title','商户菜品配置' );
|
230
|
$this->assign ( 'title','商户菜品配置' );
|
|
209
|
return $this->fetch();
|
231
|
return $this->fetch();
|