Introduce.php
3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
<?php
/**
* tpshop
* ============================================================================
* * 版权所有 2015-2027 深圳搜豹网络科技有限公司,并保留所有权利。
* 网站地址: http://www.tpshop.cn
* ----------------------------------------------------------------------------
* 这不是一个自由软件!您只能在不用于商业目的的前提下对程序代码进行修改和使用 .
* 不允许对程序代码以任何形式任何目的的再发布。
* ============================================================================
* $Author: IT宇宙人 2015-08-10 $
*
* TPshop为照顾新手,让新手们都能读懂代码,将代码写的比较通俗易懂,不写太过高深代码。
*/
namespace app\home\controller;
use think\Controller;
use Think\Exception;
use think\Url;
use think\Config;
use think\Page;
use think\Verify;
use think\Db;
use think\Cookie;
use think\Cache;
class Introduce extends Base {
public function _initialize() {
$islogin=0;
if (getAdminId()) {
$islogin=1;
$where = array('a.admin_id' => getAdminId());
$res = M('admin')->alias('a')->join('store b', ' a.store_id=b.store_id', 'left')
->where($where)->field('b.isweb_reg,b.reg_mobile,b.ERPId,b.store_logo')->find();
$this->assign("stoinfo",$res);
}
$this->assign("islogin",$islogin);
define('MODULE_NAME',$this->request->module()); // 当前模块名称是
define('CONTROLLER_NAME',$this->request->controller()); // 当前控制器名称
define('ACTION_NAME',$this->request->action()); // 当前操作名称是
define('PREFIX',C('database.prefix')); // 数据库表前缀
$type_list[0]=array("id"=>1,"title"=>"线上线下");
$type_list[1]=array("id"=>2,"title"=>"自定义模板");
$type_list[2]=array("id"=>3,"title"=>"分销系统");
$type_list[3]=array("id"=>4,"title"=>"促销方式");
$type_list[4]=array("id"=>5,"title"=>"在线客服");
$type_list[5]=array("id"=>6,"title"=>"优惠券");
$type_list[6]=array("id"=>7,"title"=>"积分");
$type_list[7]=array("id"=>8,"title"=>"会员管理");
$type_list[8]=array("id"=>9,"title"=>"卡包");
$type_list[9]=array("id"=>10,"title"=>"数据分析");
$this->assign("typelist",$type_list);
}
public function index1(){
$gettypeid=1;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index1_1(){
$gettypeid=1;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index2(){
$gettypeid=2;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index3(){
$gettypeid=3;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index4(){
$gettypeid=4;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index5(){
$gettypeid=5;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index6(){
$gettypeid=6;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index7(){
$gettypeid=7;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index8(){
$gettypeid=8;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index9(){
$gettypeid=9;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
public function index10(){
$gettypeid=10;
$this->assign("gettypeid",$gettypeid);
return $this->fetch();
}
}