作者 王晓刚
1 个管道 的构建 通过 耗费 1 秒

商户申请

... ... @@ -81,6 +81,7 @@ class Index extends WechatBase
}
$goodsModel = new Goods();
$data = $goodsModel->selectPageData(['id'=>['not in',$goods_ids]],$page,$pageNum);
$this->success('SUCCESS','',$data);
foreach($data as $key => $vo){
if(!empty($vo['video'])){
$data[$key]['video'] = $domain_name.$vo['video'];
... ...
... ... @@ -21,7 +21,7 @@ class Goods extends Model
$where['admin_is_up'] = ['eq',1];
$where['user_deletetime'] = ['eq',0];
$where['admin_deletetime'] = ['eq',0];
$data = $this->where($where)->order('exp desc,end_time asc')->page($page,$pageNum)->select();
$data = $this->where($where)->order('exp desc,end_time asc')->page($page,$pageNum)->fetchSql()->select();
return $data;
}
public function findData($where){
... ...
... ... @@ -91,6 +91,7 @@
type:"POST",
data:{'page':page},
success:function(res){
alert(res.data);
if(res.code == 1){
if(res.data == ''){
$('.justify_center').html("<div>没有更多了~</div>");
... ...