Пример #1
0
 function _initialize()
 {
     parent::_initialize();
     // 使用提示
     $param['shop_id'] = $this->shop_id;
     $param['publicid'] = get_token_appinfo('', 'id');
     $normal_tips = '点击选中下面模板即可实时切换模板,请慎重点击。选择后可点击<a target="_blank" href="' . addons_url('Shop://Wap/index', $param) . '">这里</a>进行预览';
     $this->assign('normal_tips', $normal_tips);
 }
Пример #2
0
 function config()
 {
     // 使用提示
     $param['token'] = get_token();
     $normal_tips = '在微信里回复商店名或者通过地址访问商店:' . addons_url('Shop://Shop/index', $param) . ' ,也可点击<a target="_blank" href="' . U('index', $param) . '">这里</a>在预览';
     $this->assign('normal_tips', $normal_tips);
     if (IS_POST) {
         D('Common/Keyword')->set($_POST['config']['title'], _ADDONS, 1, 0);
     }
     parent::config();
 }
Пример #3
0
 function _initialize()
 {
     $this->model = $this->getModel('shop');
     parent::_initialize();
     $controller = strtolower(_CONTROLLER);
     // $res ['title'] = '商店管理';
     // $res ['url'] = addons_url ( 'Shop://Shop/lists' );
     // $res ['class'] = ($controller == 'shop' && _ACTION == "lists") ? 'current' : '';
     // $nav [] = $res;
     $res['title'] = '我的店铺';
     $res['url'] = addons_url('Shop://Shop/summary');
     $res['class'] = $controller == 'shop' && _ACTION == "summary" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '基本信息';
     $res['url'] = addons_url('Shop://Shop/edit');
     $res['class'] = $controller == 'shop' && _ACTION == "edit" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '幻灯片';
     $res['url'] = addons_url('Shop://Slideshow/lists');
     $res['class'] = $controller == 'slideshow' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '商品分组';
     $res['url'] = addons_url('Shop://Category/lists');
     $res['class'] = $controller == 'category' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '商品管理';
     $res['url'] = addons_url('Shop://Goods/lists');
     $res['class'] = $controller == 'goods' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '订单管理';
     $res['url'] = addons_url('Shop://Order/lists');
     $res['class'] = $controller == 'order' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '模板管理';
     $res['url'] = addons_url('Shop://Template/lists');
     $res['class'] = $controller == 'template' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     $res['title'] = '支付配置';
     $res['url'] = addons_url('Payment://Payment/lists');
     $res['class'] = $controller == 'payment' && _ACTION == "lists" ? 'current' : '';
     $nav[] = $res;
     //$nav = array ();
     $this->assign('nav', $nav);
 }
Пример #4
0
 public function del()
 {
     parent::common_del($this->model);
 }
Пример #5
0
 function _initialize()
 {
     $this->model = $this->getModel('shop');
     parent::_initialize();
 }
Пример #6
0
 public function del()
 {
     $id = I('id');
     $ids = I('ids');
     if (!empty($id)) {
         $key = 'Goods_getInfo_' . $id;
         S($key, null);
     } else {
         foreach ($ids as $i) {
             $key = 'Goods_getInfo_' . $i;
             S($key, null);
         }
     }
     parent::common_del($this->model);
 }
Пример #7
0
 public function _initialize()
 {
     $this->model = $this->getModel('shop_order');
     parent::_initialize();
 }