Example #1
0
 public function action_cashback_records()
 {
     $params = ['title' => '提现记录'];
     $store = \Session::get('store');
     $items = \Model_Order::query()->where(['store_id' => $store->id, 'cashback_status' => 0])->where('order_status', 'IN', ['FINISH', 'SELLER_SHIPPED', 'SECTION_FINISH'])->get();
     $params['items'] = $items;
     \View::set_global($params);
     $this->template->content = \View::forge("{$this->theme}/finance/cashback_records");
 }
Example #2
0
 public function action_history()
 {
     $user_id = \Session::get(self::SESSION_KEY_USER_ID);
     $data['orders'] = Model_Order::query()->where('member_id', $user_id)->order_by('order_date', 'desc')->get();
     $this->template->content = View::forge('website/content/orderlog', $data);
 }