联系官方销售客服
1835022288
028-61286886
下载文件时积分不足会跳转到新页面提示,请问怎么实现弹窗提示啦 下面积分提示页php文件里的代码
if (!$data['is_buy']
&& $this->input->get('action') == 'confirm') {
// 会员未登录
!$this->member && $this->msg(fc_lang('会话超时,请重新登录'));
// 积分检查
-$data['score'] + $this->member['score'] < 0 && $this->msg(fc_lang(SITE_SCORE.'不足!本次需要%s'.SITE_SCORE.',当前余额%s'.SITE_SCORE, $data['score'], $this->member['score']));
// 扣减积分
$this->member_model->update_score(1, $this->uid, -$data['score'], '', '购买《'.($data['name'] ? $data['name'] : $data['title']).'》');
// 记录购买历史
$insert = array(
'uid' => $this->uid,
'url' => $data['url'],
'score' => $data['score'],
'thumb' => $data['preview'] ? $data['preview'] : ($data['thumb'] ? $data['thumb'] : ''),
'inputtime' => SYS_TIME
);
if ($id) {
$insert['cid'] = $id;
$insert['title'] = $data['title'];
} else {
$insert['eid'] = $eid;
$insert['cid'] = $data['cid'];
$insert['title'] = ($data['ctitle'] ? $data['ctitle'].' - ' : '').$data['name'];
}
$this->db->insert($table, $insert);
$this->msg(fc_lang('购买成功'), $data['url'], 1);
} else {
$this->template->assign($data);
ob_start();
$this->template->display($tpl);
$html = ob_get_contents();
ob_clean();
echo $this->input->get('callback', TRUE).'('.json_encode(array('html' => $html)).')';exit;
}
}
请问怎么将这个弄成弹窗页提示