Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
abb452f9
authored
Jul 29, 2019
by
施宇
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/shiyu/icsales
parents
1a6a63f1
ee390f72
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
49 additions
and
5 deletions
Application/Common/Conf/config_url.php
Application/Home/Controller/BaseController.class.php
Application/Home/Controller/CmsController.class.php
Application/Home/Controller/IndexController.class.php
Application/Home/View/QuotePrice/inquirydetail.html
Application/Home/View/public/navleft.html
dist/js/chat/index.js
dist/js/person/login.js
Application/Common/Conf/config_url.php
View file @
abb452f9
...
...
@@ -69,7 +69,7 @@ return array(
'uploadresult'
=>
'Home/Index/uploadresult'
,
'integral'
=>
'Home/Index/integral'
,
'notice'
=>
'Home/Index/notice'
,
'chat'
=>
'Home/Index/chat'
'chat'
=>
'Home/Index/chat'
,
'hotgoods'
=>
'Home/Cms/getHotGoods'
,
),
);
\ No newline at end of file
Application/Home/Controller/BaseController.class.php
View file @
abb452f9
...
...
@@ -32,7 +32,7 @@ class BaseController extends Controller
}
else
{
return
$this
->
apiReturn
(
7004
,
'未找到数据'
);
}
}
}
/**
* 统一格式返回
...
...
Application/Home/Controller/CmsController.class.php
0 → 100644
View file @
abb452f9
<?php
namespace
Home\Controller
;
use
Home\Controller\BaseController
;
class
CmsController
extends
BaseController
{
// 获取热门商品
public
function
getHotGoods
()
{
$datas
=
$this
->
apiBaseCache
(
'pc_hot_goods'
,
''
,
5
);
// 热门商品
return
$this
->
jsonReturn
(
0
,
''
,
$datas
[
'data'
]);
}
/**
* 统一格式返回
* @param integer $code [description]
* @param string $msg [description]
* @param array $extend [description]
* @return [type] [description]
*/
protected
function
jsonReturn
(
$code
=
0
,
$msg
=
''
,
$extend
=
array
())
{
$data
=
array
(
'err_code'
=>
$code
,
'err_msg'
=>
$msg
,
'data'
=>
$extend
,
);
if
(
isset
(
$_GET
[
'callback'
])
&&
!
empty
(
$_GET
[
'callback'
])){
echo
$_GET
[
'callback'
]
.
'('
.
json_encode
(
$data
)
.
')'
;
exit
;
}
else
{
echo
json_encode
(
$data
);
exit
;
}
}
}
\ No newline at end of file
Application/Home/Controller/IndexController.class.php
View file @
abb452f9
...
...
@@ -11,7 +11,7 @@ class IndexController extends BaseController
public
function
_initialize
()
{
parent
::
_initialize
();
if
(
!
cookie
(
'token'
)
&&
ACTION_NAME
!=
'login'
&&
ACTION_NAME
!=
'register'
&&
ACTION_NAME
!=
'index'
&&
ACTION_NAME
!=
'indexsearch'
)
{
if
(
!
cookie
(
'token'
)
&&
ACTION_NAME
!=
'login'
&&
ACTION_NAME
!=
'register'
&&
ACTION_NAME
!=
'index'
&&
ACTION_NAME
!=
'indexsearch'
&&
ACTION_NAME
!=
'forget'
)
{
$this
->
redirect
(
'/login'
);
}
}
...
...
Application/Home/View/QuotePrice/inquirydetail.html
View file @
abb452f9
This diff is collapsed.
Click to expand it.
Application/Home/View/public/navleft.html
View file @
abb452f9
...
...
@@ -24,7 +24,7 @@
<span
class=
"li_right icon iconfont"
>
</a>
<dl
<
if
condition=
"(ACTION_NAME eq 'inquiry') || (ACTION_NAME eq 'releaseinquiry') || (ACTION_NAME eq 'inquirydetail') || (ACTION_NAME eq 'quote') || (ACTION_NAME eq 'quotedetail')"
>
style="display:block"
</if>
>
<dd
<
if
condition=
"(ACTION_NAME eq 'inquiry') || (ACTION_NAME eq 'releaseinquiry') || (ACTION_NAME eq 'inquirydetail')"
>
class="active"
</if>
>
<a
href=
"
homeicsales
/inquiry"
>
我的询价
</a></dd>
<dd
<
if
condition=
"(ACTION_NAME eq 'inquiry') || (ACTION_NAME eq 'releaseinquiry') || (ACTION_NAME eq 'inquirydetail')"
>
class="active"
</if>
>
<a
href=
"/inquiry"
>
我的询价
</a></dd>
<dd
<
if
condition=
"(ACTION_NAME eq 'quote') || (ACTION_NAME eq 'quotedetail')"
>
class="active"
</if>
>
<a
href=
"homeicsales/quote"
>
我的报价
</a></dd>
</dl>
</li>
...
...
dist/js/chat/index.js
View file @
abb452f9
This diff is collapsed.
Click to expand it.
dist/js/person/login.js
View file @
abb452f9
...
...
@@ -107,6 +107,8 @@
if
(
!
$mobile
.
val
())
{
$mobile
.
parent
(
'.input-wrap'
).
addClass
(
'error'
);
$
(
".error-text"
).
show
().
find
(
"span"
).
text
(
'请填写手机号'
);
return
false
;
...
...
@@ -115,6 +117,8 @@
if
(
!
$password
.
val
()
&&
type
===
1
)
{
$password
.
parent
().
parent
(
'.input-wrap'
).
addClass
(
'error'
);
$
(
".error-text"
).
show
().
find
(
"span"
).
text
(
'请填写密码'
);
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment