public function __construct() { parent::__construct(); $config = M('Config'); $this->config_buy_max = $config->where('id=67')->getField('value'); $this->config_buy_min = $config->where('id=68')->getField('value'); }
public function __construct() { parent::__construct(); $this->pageSize = 9; //初始化商品查询显示条数 $this->goodsList = T('Home@Xiaomi/list'); }
public function __construct() { parent::__construct(); $openId = get_openid(); //获取openid $customerInfo = get_customer_info($openId); $this->customerId = $customerInfo['id']; }
public function __construct() { $this->orderRelation = new OrderRelationModel(); parent::__construct(); $this->openId = get_openid(); $custmoer = get_customer_info($this->openId); $this->id = $custmoer['id']; }
public function __construct() { parent::__construct(); $this->url = U('load'); //获取loadAction的路径,用于分页加载 $this->rootPath = add_root_path(''); $this->pageSize = 10; //单页记录数 $this->goodsDetailUrl = U('Goods/GoodsDetail/index'); }
public function __construct() { parent::__construct(); $openId = get_openid(); //获取openid $this->open_id = $openId; $this->customerInfo = get_customer_info($openId); $this->customerId = $this->customerInfo['id']; // $config = D("Config"); // $configArr = $config->fetConfig(); // $this->beginDate = $configArr[0]['value']; // $this->endDate = $configArr[1]['value']; }
public function __construct() { parent::__construct(); $this->shoppingcart = D('ShoppingCart'); }