SellerEditablePage.php 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542
  1. <?php
  2. namespace app\home\controller;
  3. use think\facade\View;
  4. use think\facade\Lang;
  5. use think\facade\Db;
  6. /**
  7. * ============================================================================
  8. * DSMall多用户商城
  9. * ============================================================================
  10. * 版权所有 2014-2028 长沙德尚网络科技有限公司,并保留所有权利。
  11. * 网站地址: http://www.csdeshang.com
  12. * ----------------------------------------------------------------------------
  13. * 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用 .
  14. * 不允许对程序代码以任何形式任何目的的再发布。
  15. * ============================================================================
  16. * 控制器
  17. */
  18. class SellerEditablePage extends BaseSeller {
  19. var $type = 'pc';
  20. var $model_dir = 'home@default/base/editable_page_model/';
  21. public function initialize() {
  22. parent::initialize();
  23. Lang::load(base_path() . 'home/lang/' . config('lang.default_lang') . '/seller_editable_page.lang.php');
  24. Lang::load(base_path() . 'admin/lang/' . config('lang.default_lang') . '.php');
  25. }
  26. public function page_list($type = 'pc') {
  27. $this->type = $type;
  28. $keyword = input('param.editable_page_name');
  29. $condition = array();
  30. if ($keyword) {
  31. $condition[]=array('editable_page_name','like', '%' . $keyword . '%');
  32. }
  33. View::assign('filtered', empty($condition) ? 0 : 1);
  34. if (!in_array($type, array('pc', 'h5'))) {
  35. $type = 'pc';
  36. }
  37. $editable_page_model = model('editable_page');
  38. $condition = array_merge(array(array('store_id' ,'=', $this->store_info['store_id']), array('editable_page_client' ,'=', $type)), $condition);
  39. $editable_page_list = $editable_page_model->getEditablePageList($condition, 10);
  40. foreach ($editable_page_list as $key => $val) {
  41. if ($val['editable_page_client'] == 'pc') {
  42. $editable_page_list[$key]['edit_url'] = (string)url('SellerEditablePage/page_setting', ['store_id' => $this->store_info['store_id'], 'editable_page_id' => $val['editable_page_id']]);
  43. $editable_page_list[$key]['view_url'] = (string)url('StoreSpecial/index', ['store_id' => $this->store_info['store_id'], 'special_id' => $val['editable_page_id']]);
  44. } else {
  45. $editable_page_list[$key]['edit_url'] = (string)url('SellerEditablePage/mobile_page_setting', array('store_id' => $this->store_info['store_id'], 'editable_page_id' => $val['editable_page_id']));
  46. $editable_page_list[$key]['view_url'] = config('ds_config.h5_site_url') . '/' . 'pages/home/storespecial/Index' . '?' . http_build_query(['id' => $this->store_info['store_id'], 'special_id' => $val['editable_page_id']]);
  47. }
  48. }
  49. View::assign('show_page', $editable_page_model->page_info->render());
  50. View::assign('editable_page_list', $editable_page_list);
  51. View::assign('type', $type);
  52. /* 设置卖家当前菜单 */
  53. $this->setSellerCurMenu($type == 'h5' ? 'seller_editable_page_h5' : 'seller_editable_page_pc');
  54. /* 设置卖家当前栏目 */
  55. $this->setSellerCurItem('page_list');
  56. return View::fetch($this->template_dir . 'page_list');
  57. }
  58. public function h5_page_list() {
  59. return $this->page_list('h5');
  60. }
  61. /**
  62. * 新增页面
  63. */
  64. public function page_add() {
  65. $editable_page_path = input('param.editable_page_path');
  66. $editable_page_item_id = intval(input('param.editable_page_item_id'));
  67. $editable_page_model = model('editable_page');
  68. if (!request()->isPost()) {
  69. return View::fetch($this->template_dir . 'page_form');
  70. } else {
  71. $data = array(
  72. 'store_id' => $this->store_info['store_id'],
  73. 'editable_page_name' => input('post.editable_page_name'),
  74. 'editable_page_path' => $editable_page_path,
  75. 'editable_page_item_id' => $editable_page_item_id,
  76. 'editable_page_client' => input('param.type', 'pc'),
  77. 'editable_page_theme' => 'style_1',
  78. 'editable_page_edit_time' => TIMESTAMP,
  79. 'editable_page_theme_config' => json_encode(array(
  80. 'back_color' => input('param.back_color')
  81. ))
  82. );
  83. $result = $editable_page_model->addEditablePage($data);
  84. $condition = array();
  85. $condition[] = array('store_id','=',$data['store_id']);
  86. $condition[] = array('editable_page_id','<>',$result);
  87. $condition[] = array('editable_page_path','=',$data['editable_page_path']);
  88. $condition[] = array('editable_page_client','=',$data['editable_page_client']);
  89. if (!in_array($data['editable_page_path'], array('store/index'))) {
  90. $condition[] = array('editable_page_item_id','=',$data['editable_page_item_id']);
  91. }
  92. $editable_page_model->editEditablePage($condition, array('editable_page_path' => '', 'editable_page_item_id' => 0));
  93. if ($result) {
  94. $this->recordSellerlog(lang('ds_add') . ($data['editable_page_client'] == 'h5' ? lang('editable_page_h5') : lang('editable_page_pc')) . '[flex_' . $result . ':' . input('post.editable_page_name') . ']');
  95. ds_json_encode(10000, lang('ds_common_op_succ'));
  96. } else {
  97. ds_json_encode(10001, lang('ds_common_op_fail'));
  98. }
  99. }
  100. }
  101. public function page_setting(){
  102. $editable_page_id = intval(input('param.editable_page_id'));
  103. $editable_page_model = model('editable_page');
  104. $editable_page_info = $editable_page_model->getOneEditablePage(array('editable_page_id' => $editable_page_id));
  105. if (!$editable_page_info) {
  106. $this->error(lang('param_error'));
  107. }
  108. $editable_page_info['editable_page_theme_config'] = json_decode($editable_page_info['editable_page_theme_config'], true);
  109. View::assign('editable_page', $editable_page_info);
  110. $editable_page_config_model = model('editable_page_config');
  111. $editable_page_config_list=$editable_page_config_model->getEditablePageConfigList(array(array('editable_page_id', '=', $editable_page_id)));
  112. $config_list=array();
  113. foreach($editable_page_config_list as $key => $val){
  114. $config_info=json_decode($val['editable_page_config_content'], true);
  115. $model_id=$val['editable_page_model_id'];
  116. $var_html=array();
  117. $var_config=array();
  118. if(!empty($config_info)){
  119. require_once PLUGINS_PATH.'/editable_page_model/'.$model_id.'/config.php';
  120. $model_name='Model'.$model_id;
  121. $model=new $model_name();
  122. $res=$model->filterData($config_info);
  123. if($res['code']){
  124. $var_config['config_info']=$res['data'];
  125. $res=$model->formatData(json_encode($res['data']),$this->store_info['store_id']);
  126. if($res['code']){
  127. $var_html['config_info']=$res['data'];
  128. }
  129. }
  130. }
  131. $html=View::fetch('../../../plugins/editable_page_model/'.$model_id.'/index',$var_html);
  132. $config=View::fetch('../../../plugins/editable_page_model/'.$model_id.'/config',$var_config);
  133. $config_list[]=array(
  134. 'val'=>$val,
  135. 'html'=>$html,
  136. 'config'=>$config
  137. );
  138. }
  139. View::assign('config_list', $config_list);
  140. return View::fetch($this->template_dir . 'page_setting');
  141. }
  142. /**
  143. * 设置手机端页面
  144. */
  145. public function mobile_page_setting() {
  146. $this->type = 'h5';
  147. $editable_page_id = intval(input('param.editable_page_id'));
  148. $editable_page_model = model('editable_page');
  149. $editable_page_info = $editable_page_model->getOneEditablePage(array('editable_page_id' => $editable_page_id));
  150. if (!$editable_page_info) {
  151. $this->error(lang('param_error'));
  152. }
  153. $editable_page_info['editable_page_theme_config'] = json_decode($editable_page_info['editable_page_theme_config'], true);
  154. View::assign('editable_page', $editable_page_info);
  155. $editable_page_config_model = model('editable_page_config');
  156. $editable_page_config_list=$editable_page_config_model->getEditablePageConfigList(array(array('editable_page_id', '=', $editable_page_id)));
  157. $config_list=array();
  158. foreach($editable_page_config_list as $key => $val){
  159. $config_info=json_decode($val['editable_page_config_content'], true);
  160. $model_id=$val['editable_page_model_id'];
  161. $var_html=array();
  162. $var_config=array();
  163. if(!empty($config_info)){
  164. require_once PLUGINS_PATH.'/editable_page_model/h5_'.$model_id.'/config.php';
  165. $model_name='Model'.$model_id;
  166. $model=new $model_name();
  167. $res=$model->filterData($config_info);
  168. if($res['code']){
  169. $var_config['config_info']=$res['data'];
  170. $res=$model->formatData(json_encode($res['data']),$this->store_info['store_id']);
  171. if($res['code']){
  172. $var_html['config_info']=$res['data'];
  173. }
  174. }
  175. }
  176. $html=View::fetch('../../../plugins/editable_page_model/h5_'.$model_id.'/index',$var_html);
  177. $config=View::fetch('../../../plugins/editable_page_model/h5_'.$model_id.'/config',$var_config);
  178. $config_list[]=array(
  179. 'val'=>$val,
  180. 'html'=>$html,
  181. 'config'=>$config
  182. );
  183. }
  184. View::assign('store_info', $this->store_info);
  185. View::assign('config_list', $config_list);
  186. /* 设置卖家当前菜单 */
  187. $this->setSellerCurMenu($this->type == 'h5' ? 'seller_editable_page_h5' : 'seller_editable_page_pc');
  188. /* 设置卖家当前栏目 */
  189. $this->setSellerCurItem('mobile_page_setting');
  190. return View::fetch($this->template_dir . 'mobile_page_setting');
  191. }
  192. /**
  193. * 编辑页面
  194. */
  195. public function page_edit() {
  196. $editable_page_id = intval(input('param.editable_page_id'));
  197. $editable_page_model = model('editable_page');
  198. $editable_page_info = $editable_page_model->getOneEditablePage(array('store_id' => $this->store_info['store_id'], 'editable_page_id' => $editable_page_id));
  199. if (!$editable_page_info) {
  200. ds_json_encode(10001, lang('param_error'));
  201. }
  202. $editable_page_info['editable_page_theme_config'] = json_decode($editable_page_info['editable_page_theme_config'], true);
  203. if (!request()->isPost()) {
  204. View::assign('editable_page', $editable_page_info);
  205. return View::fetch($this->template_dir . 'page_form');
  206. } else {
  207. $data = array(
  208. 'editable_page_path' => input('post.editable_page_path'),
  209. 'editable_page_item_id' => intval(input('post.editable_page_item_id')),
  210. 'editable_page_name' => input('post.editable_page_name'),
  211. 'editable_page_theme_config' => json_encode(array(
  212. 'back_color' => input('param.back_color')
  213. ))
  214. );
  215. $result = $editable_page_model->editEditablePage(array('editable_page_id' => $editable_page_id), $data);
  216. $condition = array();
  217. $condition[] = array('store_id','=',$this->store_info['store_id']);
  218. $condition[] = array('editable_page_id','<>',$editable_page_id);
  219. $condition[] = array('editable_page_path','=',$data['editable_page_path']);
  220. $condition[] = array('editable_page_client','=',$editable_page_info['editable_page_client']);
  221. if (!in_array($data['editable_page_path'], array('store/index'))) {
  222. $condition[] = array('editable_page_item_id','=',$data['editable_page_item_id']);
  223. }
  224. $editable_page_model->editEditablePage($condition, array('editable_page_path' => '', 'editable_page_item_id' => 0));
  225. if ($result) {
  226. $this->recordSellerlog(lang('ds_edit') . ($editable_page_info['editable_page_client'] == 'h5' ? lang('editable_page_h5') : lang('editable_page_pc')) . '[' . $editable_page_info['editable_page_name'] . ']');
  227. ds_json_encode(10000, lang('ds_common_op_succ'));
  228. } else {
  229. ds_json_encode(10000, lang('ds_common_op_fail'));
  230. }
  231. }
  232. }
  233. /**
  234. * 删除页面
  235. */
  236. public function page_del() {
  237. $editable_page_id = intval(input('param.editable_page_id'));
  238. $editable_page_model = model('editable_page');
  239. $editable_page_info = $editable_page_model->getOneEditablePage(array('store_id' => $this->store_info['store_id'], 'editable_page_id' => $editable_page_id));
  240. if (!$editable_page_info) {
  241. ds_json_encode(10001, lang('param_error'));
  242. }
  243. if (!$editable_page_model->delEditablePage($editable_page_id)) {
  244. ds_json_encode(10001, lang('ds_common_op_fail'));
  245. }
  246. $this->recordSellerlog(lang('ds_del') . ($editable_page_info['editable_page_client'] == 'h5' ? lang('editable_page_h5') : lang('editable_page_pc')) . '[ID:' . $editable_page_info['editable_page_id'] . ':' . $editable_page_info['editable_page_name'] . ']');
  247. ds_json_encode(10000, lang('ds_common_del_succ'));
  248. }
  249. /**
  250. * 搜索店铺
  251. */
  252. public function search_store() {
  253. $store_model = model('store');
  254. /**
  255. * 查询条件
  256. */
  257. $where = array();
  258. $search_store_name = trim(input('param.keyword'));
  259. if ($search_store_name != '') {
  260. $where[]=array('store_name','like', '%' . $search_store_name . '%');
  261. }
  262. $store_list = $store_model->getStoreOnlineList($where, 12);
  263. View::assign('store_list', $store_list);
  264. View::assign('show_page', $store_model->page_info->render());
  265. echo View::fetch($this->model_dir . 'search_store');
  266. exit;
  267. }
  268. /**
  269. * 搜索商品
  270. */
  271. public function search_goods() {
  272. $goods_model = model('goods');
  273. /**
  274. * 查询条件
  275. */
  276. $where = array();
  277. $where[]=array('store_id','=',$this->store_info['store_id']);
  278. $search_goods_name = trim(input('param.keyword'));
  279. $type = trim(input('param.type'));
  280. if ($search_goods_name != '') {
  281. $where[]=array('goods_name|store_name','like', '%' . $search_goods_name . '%');
  282. }
  283. switch($type){
  284. case 'bargain':
  285. $condition=array();
  286. $condition[] = array('bargain_state','=',\app\common\model\Pbargain::PINTUAN_STATE_NORMAL);
  287. $condition[] = array('bargain_endtime','>',TIMESTAMP);
  288. $subQuery=Db::name('pbargain')->field('bargain_goods_id')->where($condition)->buildSql();
  289. $where[]=array('goods_id','exp',Db::raw('in '.$subQuery));
  290. break;
  291. case 'groupbuy':
  292. $condition=array();
  293. $condition[] = array('groupbuy_state','=',\app\common\model\Groupbuy::GROUPBUY_STATE_NORMAL);
  294. $condition[] = array('groupbuy_endtime','>',TIMESTAMP);
  295. $subQuery=Db::name('groupbuy')->field('goods_commonid')->where($condition)->buildSql();
  296. $where[]=array('goods_commonid','exp',Db::raw('in '.$subQuery));
  297. break;
  298. case 'pintuan':
  299. $condition=array();
  300. $condition[] = array('pintuan_state', '=', \app\common\model\Ppintuan::PINTUAN_STATE_NORMAL);
  301. $condition[] = array('pintuan_end_time', '>', TIMESTAMP);
  302. $subQuery=Db::name('ppintuan')->field('pintuan_goods_commonid')->where($condition)->buildSql();
  303. $where[]=array('goods_commonid','exp',Db::raw('in '.$subQuery));
  304. break;
  305. case 'presell':
  306. $condition=array();
  307. $condition[] = array('presell_state','=',\app\common\model\Presell::PRESELL_STATE_NORMAL);
  308. $condition[] = array('presell_end_time','>',TIMESTAMP);
  309. $subQuery=Db::name('presell')->field('goods_id')->where($condition)->buildSql();
  310. $where[]=array('goods_id','exp',Db::raw('in '.$subQuery));
  311. break;
  312. case 'xianshi':
  313. $condition=array();
  314. $condition[] = array('xianshigoods_state','=',\app\common\model\Pxianshigoods::XIANSHI_GOODS_STATE_NORMAL);
  315. $condition[] = array('xianshigoods_end_time','>',TIMESTAMP);
  316. $subQuery=Db::name('pxianshigoods')->field('goods_id')->where($condition)->buildSql();
  317. $where[]=array('goods_id','exp',Db::raw('in '.$subQuery));
  318. break;
  319. }
  320. $goods_list = $goods_model->getGoodsOnlineList($where, '*', 12);
  321. View::assign('goods_list', $goods_list);
  322. View::assign('show_page', $goods_model->page_info->render());
  323. $goods_id=input('param.goods_id/a');
  324. if(!empty($goods_id)){
  325. $where = array();
  326. $where[]=array('goods_id','in', array_keys($goods_id));
  327. $goods_list = $goods_model->getGoodsOnlineList($where);
  328. $selected_goods=array();
  329. foreach($goods_list as $v){
  330. $selected_goods[$v['goods_id']]=array_merge($v,array('sort'=>$goods_id[$v['goods_id']]['sort']));
  331. }
  332. View::assign('goods_id', $selected_goods);
  333. }
  334. echo View::fetch($this->template_dir.'search_goods');
  335. exit;
  336. }
  337. public function image_del() {
  338. $file_id = intval(input('param.upload_id'));
  339. $res = model('editable_page_model', 'logic')->imageDel($file_id);
  340. if (!$res['code']) {
  341. ds_json_encode(10001, $res['msg']);
  342. }
  343. ds_json_encode(10000);
  344. }
  345. /**
  346. * 图片上传
  347. */
  348. public function image_upload() {
  349. $res = model('editable_page_model', 'logic')->imageUpload(input('param.name'), input('param.config_id'));
  350. if (!$res['code']) {
  351. ds_json_encode(10001, $res['msg']);
  352. }
  353. $data = $res['data'];
  354. ds_json_encode(10000, '', $data);
  355. }
  356. public function goods_class(){
  357. $id=intval(input('param.id'));
  358. $parent_id=intval(input('param.parent_id'));
  359. $goodsclass_model=model('goodsclass');
  360. if($id){
  361. $data=array('id'=>array(),'list'=>array());
  362. $goodsclass_info=$goodsclass_model->getGoodsclassInfoById($id);
  363. if($goodsclass_info){
  364. $data['id'][]=$goodsclass_info['gc_id'];
  365. $data['list'][]=$goodsclass_model->getGoodsclassListByParentId($goodsclass_info['gc_parent_id']);
  366. if($goodsclass_info['gc_parent_id']){
  367. $goodsclass_info=$goodsclass_model->getGoodsclassInfoById($goodsclass_info['gc_parent_id']);
  368. if($goodsclass_info){
  369. $data['id'][]=$goodsclass_info['gc_id'];
  370. $data['list'][]=$goodsclass_model->getGoodsclassListByParentId($goodsclass_info['gc_parent_id']);
  371. if($goodsclass_info['gc_parent_id']){
  372. $goodsclass_info=$goodsclass_model->getGoodsclassInfoById($goodsclass_info['gc_parent_id']);
  373. if($goodsclass_info){
  374. $data['id'][]=$goodsclass_info['gc_id'];
  375. $data['list'][]=$goodsclass_model->getGoodsclassListByParentId($goodsclass_info['gc_parent_id']);
  376. }
  377. }
  378. }
  379. }
  380. }
  381. $data['id']=array_reverse($data['id']);
  382. $data['list']=array_reverse($data['list']);
  383. }else{
  384. $data=$goodsclass_model->getGoodsclassListByParentId($parent_id);
  385. }
  386. ds_json_encode(10000, '', $data);
  387. }
  388. public function config_load(){
  389. $if_h5=intval(input('param.if_h5'));
  390. $model_id=intval(input('param.model_id'));
  391. $config_info=input('param.config_info/a');
  392. if(!$model_id){
  393. ds_json_encode(10001, lang('param_error'));
  394. }
  395. $var_html=array();
  396. $var_config=array();
  397. if(!empty($config_info)){
  398. require_once PLUGINS_PATH.'/editable_page_model/'.($if_h5?'h5_':'').$model_id.'/config.php';
  399. $model_name='Model'.$model_id;
  400. $model=new $model_name();
  401. $res=$model->filterData($config_info);
  402. if($res['code']){
  403. $res=$model->formatData(json_encode($res['data']),$this->store_info['store_id']);
  404. if($res['code']){
  405. $var_html['config_info']=$res['data'];
  406. }else{
  407. ds_json_encode(10001, $res['msg']);
  408. }
  409. }else{
  410. ds_json_encode(10001, $res['msg']);
  411. }
  412. }
  413. $html=View::fetch('../../../plugins/editable_page_model/'.($if_h5?'h5_':'').$model_id.'/index',$var_html);
  414. $config=View::fetch('../../../plugins/editable_page_model/'.($if_h5?'h5_':'').$model_id.'/config',$var_config);
  415. ds_json_encode(10000, '', array('html'=>$html,'config'=>$config));
  416. }
  417. public function config_edit(){
  418. $if_h5=intval(input('param.if_h5'));
  419. $config_list=input('param.config_list/a');
  420. $editable_page_id=intval(input('param.page_id'));
  421. $editable_page_model = model('editable_page');
  422. $editable_page_info = $editable_page_model->getOneEditablePage(array('editable_page_id' => $editable_page_id));
  423. if (!$editable_page_info) {
  424. ds_json_encode(10001, lang('param_error'));
  425. }
  426. try{
  427. $data=array();
  428. $new_data=array();
  429. $editable_page_theme_config=array();
  430. foreach($config_list as $sort_order => $config_info){
  431. $model_id=$config_info['model_id'];
  432. switch($model_id){
  433. case 'page':
  434. case 'jump':
  435. case 'button':
  436. if($model_id=='page'){
  437. $data['editable_page_name']=$config_info['page_title'];
  438. }
  439. $editable_page_theme_config=array_merge($editable_page_theme_config,$config_info);
  440. break;
  441. default:
  442. require_once PLUGINS_PATH.'/editable_page_model/'.($if_h5?'h5_':'').$model_id.'/config.php';
  443. $model_name='Model'.$model_id;
  444. $model=new $model_name();
  445. $res=$model->filterData($config_info);
  446. if($res['code']){
  447. $new_data[]=array(
  448. 'editable_page_id'=>$editable_page_id,
  449. 'editable_page_model_id'=>$model_id,
  450. 'editable_page_config_sort_order'=>$sort_order,
  451. 'editable_page_config_content'=>json_encode($res['data'])
  452. );
  453. }else{
  454. throw new \think\Exception($res['msg'], 10006);
  455. }
  456. }
  457. }
  458. $data['editable_page_theme_config']=json_encode($editable_page_theme_config);
  459. $data['editable_page_edit_time']=TIMESTAMP;
  460. $editable_page_config_model = model('editable_page_config');
  461. $editable_page_config_model->delEditablePageConfig(array(array('editable_page_id', '=', $editable_page_id)));
  462. if(!empty($new_data)){
  463. $editable_page_config_model->addEditablePageConfigAll($new_data);
  464. }
  465. $result = $editable_page_model->editEditablePage(array('editable_page_id' => $editable_page_id), $data);
  466. if (!$result) {
  467. throw new \think\Exception(lang('ds_common_op_fail'), 10006);
  468. }
  469. }catch(\Exception $e){
  470. ds_json_encode(10001, $e->getMessage());
  471. }
  472. $this->recordSellerlog(lang('ds_edit') . ($editable_page_info['editable_page_client'] == 'h5' ? lang('editable_page_h5') : lang('editable_page_pc')) . '[' . $editable_page_info['editable_page_name'] . ']');
  473. ds_json_encode(10000, lang('ds_common_op_succ'));
  474. }
  475. /**
  476. * 栏目菜单
  477. */
  478. function getSellerItemList() {
  479. if(request()->action()=='mobile_page_setting'){
  480. $menu_array[] = array(
  481. 'name' => 'mobile_page_setting',
  482. 'text' => lang('mobile_page_setting'),
  483. 'url' => 'javascript:void(0)',
  484. );
  485. }else{
  486. $menu_array[] = array(
  487. 'name' => 'page_list',
  488. 'text' => lang('page_list'),
  489. 'url' => 'javascript:void(0)',
  490. );
  491. }
  492. return $menu_array;
  493. }
  494. }