切换导航条
此项目
正在载入...
登录
潘浩文
/
scoreshop
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
潘浩文
7 years ago
提交
30319a2127f4963875139c9cb47f5a9217fad590
1 个父辈
c41a2589
1 个管道 的构建
通过
耗费 0 秒
测试反馈修改
变更
2
构建
1
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
18 行增加
和
6 行删除
app/portal/controller/BrandController.php
public/themes/simpleboot3/portal/brand/brand_detail.html
app/portal/controller/BrandController.php
查看文件 @
30319a2
...
...
@@ -128,12 +128,24 @@ class BrandController extends WeChatBaseController
return
$this
->
fetch
(
'brand_detail'
);
}
public
function
comment
(){
$id
=
$this
->
request
->
param
(
'id'
);
$re
=
Db
::
name
(
'users'
)
->
where
([
'open_id'
=>
session
(
'wechat_user'
)[
'id'
]])
->
find
();
if
(
!
$re
[
'mobile'
]){
return
2
;
}
else
{
return
url
(
'portal/brand/comment2'
,
array
(
'id'
=>
$id
));
}
}
//品牌评论页面
public
function
comment
()
public
function
comment
2
()
{
$id
=
$this
->
request
->
param
(
'id'
);
$this
->
assign
(
'id'
,
$id
);
return
$this
->
fetch
();
return
$this
->
fetch
(
'comment'
);
}
public
function
commentPost
()
...
...
public/themes/simpleboot3/portal/brand/brand_detail.html
查看文件 @
30319a2
...
...
@@ -356,13 +356,13 @@
id
:
"{$list.id}"
,
},
success
:
function
(
data
)
{
if
(
data
==
1
)
{
window
.
location
.
href
=
"{:url('portal/brand/comment2'}"
if
(
data
!=
2
)
{
window
.
location
.
href
=
data
}
else
{
else
{
var
a
=
confirm
(
"是否注册"
)
if
(
a
==
true
){
window
.
location
.
href
=
data
window
.
location
.
href
=
"{:url('user/register/register')}"
}
}
}
...
...
请
注册
或
登录
后发表评论