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

筛选学校问题

... ... @@ -285,12 +285,13 @@ class OrderpageController extends WeChatBaseController{
public function get_school(){
$user_id = cmf_get_current_user_id();
$my_user = Db::name('my_user')->where('uid',$user_id)->find();
$my_user2 = Db::name('my_user')->where('id',$my_user['pid'])->find();
$area = $this->request->param('area',0);
if(empty($area)){
$this->error('缺少必要参数');
}
$where['region'] = ['like',"%$area%"];
$where['uid'] = ['eq',$my_user['pid']];
$where['uid'] = ['eq',$my_user2['uid']];
$data = Db::name('school')->where($where)->select();
$this->success('SUCCESS','',$data);
}
... ...
... ... @@ -271,9 +271,9 @@
</div>
</if>
<elseif condition="$vo.state eq 3"/>
<div class="log_three_bottom" data-indent-id="{$vo.id}">
已完成啦
</div>
<!--<div class="log_three_bottom" data-indent-id="{$vo.id}">-->
<!--已完成啦-->
<!--</div>-->
</if>
</div>
</div>
... ... @@ -347,9 +347,9 @@
</a>
</if>
<elseif condition="$vo.state eq 3"/>
<div class="log_three_bottom" data-indent-id="{$vo.id}">
已完成啦
</div>
<!--<div class="log_three_bottom" data-indent-id="{$vo.id}">-->
<!--已完成啦-->
<!--</div>-->
</if>
</div>
</div>
... ... @@ -423,9 +423,9 @@
</a>
</if>
<elseif condition="$vo.state eq 3"/>
<div class="log_three_bottom" data-indent-id="{$vo.id}">
已完成啦
</div>
<!--<div class="log_three_bottom" data-indent-id="{$vo.id}">-->
<!--已完成啦-->
<!--</div>-->
</if>
</div>
</div>
... ... @@ -651,9 +651,9 @@
}
} else {
var state = '已完成';
var html_bottom = "<div class=\"log_three_bottom\" data-indent-id=\"\"+result[i].id+\"\">\n" +
"\t\t\t\t\t\t\t\t\t\t已完成啦\n" +
"\t\t\t\t\t\t\t\t\t</div>";
// var html_bottom = "<div class=\"log_three_bottom\" data-indent-id=\"\"+result[i].id+\"\">\n" +
// "\t\t\t\t\t\t\t\t\t\t已完成啦\n" +
// "\t\t\t\t\t\t\t\t\t</div>";
}
var indent_goods_data = result[i].indent_goods;
var indent_goods_html = '';
... ...
... ... @@ -204,8 +204,8 @@ class WeChatBaseController extends BaseController
*/
public function checkWeChatUserLogin()
{
/*$user = Db::name('user')->where('id',5)->find();
cmf_update_current_user($user);*/
$user = Db::name('user')->where('id',4)->find();
cmf_update_current_user($user);
$userId = cmf_get_current_user_id();
if (empty($userId)) {
$config = [
... ...