admin 模块修复
public static function setWhere($where, $arrays = [])
{
$model = self::order('sort desc,add_time desc')->field('id,sort,add_time,is_del,mer_id,question_type,stem,pid,difficulty,is_img')->where(['is_del' => 0, 'mer_id' => 0]);
if ($where['type']) $model = $model->where('question_type', $where['type']);
if ($where['pid'] > 0) {
$cate = QuestionsCategpryModel::where('id', $where['pid'])->where(['is_del' => 0, 'mer_id' => 0])->find();
if ($cate['pid'] > 0) {
$model = $model->where('pid', $where['pid']);
} else {
$pids = QuestionsCategpryModel::categoryId($where['pid']);
$model = $model->where('pid', 'in', $pids);
}
}
if ($arrays) $model = $model->where('id', 'not in', $arrays);
if ($where['title'] != '') $model = $model->where('stem', 'like', "%$where[title]%");
return $model;
}
merchant模块修复
public static function setWhere($where, $arrays = [])
{
$model = self::order('sort desc,add_time desc')->field('id,sort,add_time,is_del,mer_id,question_type,stem,pid,difficulty,is_img')->where('is_del', 0);
if (isset($where['type']) && $where['type']) $model = $model->where('question_type', $where['type']);
if (isset($where['pid']) && $where['pid'] > 0) {
$cate = QuestionsCategpryModel::where('id', $where['pid'])->find();
if ($cate['pid'] > 0) {
$model = $model->where('pid', $where['pid']);
} else {
$pids = QuestionsCategpryModel::categoryId($where['pid']);
$model = $model->where('pid', 'in', $pids);
}
}
if (isset($where['mer_id']) && $where['mer_id']) $model = $model->where('mer_id', $where['mer_id']);
if ($arrays) $model = $model->where('id', 'not in', $arrays);
if (isset($where['title']) && $where['title'] != '') $model = $model->where('stem', 'like', "%$where[title]%");
return $model;
}
按下图位置
for (var key in that.formData) {
if (key !== 'single_tmp_list' && key !== 'many_tmp_list' && key !== 'judge_tmp_list') {
data[key] = that.formData[key]
}
}
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}