12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- <?php
- namespace app\sub\controller;
- use app\common\library\MobileConstant;
- use app\common\model\Attachment;
- use app\common\model\Mobile;
- use think\Cookie;
- use think\Hook;
- use think\Validate;
- /**
- * 会员中心
- */
- class Order extends SubCommon
- {
- protected $noNeedLogin=[];
- protected $noNeedRight="*";
- public function mobile(){
- $data=input();
- $model=new Mobile();
- if(!empty($data['province_id'])){
- $model->where('province_id',$data['province_id']);
- }
- if(!empty($data['city_id'])){
- $model->where('city_id',$data['city_id']);
- }
- if(!empty($data['network']) && !empty(MobileConstant::getNetwork()[$data['network']]['search'])){
- $model->whereIn('network',MobileConstant::getNetwork()[$data['network']]['search']);
- }
- $list=$model->with(['info'])
- ->where('s_id',$this->auth->id)
- ->order('id','desc')
- ->paginate();
- $this->assign('list',$list);
- $this->assign('network',MobileConstant::getNetwork());
- return view();
- }
- }
|