Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
09298dd2
Commit
09298dd2
authored
Apr 06, 2017
by
fsn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志详情的显示
parent
12e9ee7e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
180 deletions
+15
-180
src/main/webapp/static/js/common/Feng.js
+12
-0
src/main/webapp/static/modular/convit/charge.js
+0
-177
src/main/webapp/static/modular/system/log/log.js
+3
-3
No files found.
src/main/webapp/static/js/common/Feng.js
View file @
09298dd2
...
@@ -22,6 +22,18 @@ var Feng = {
...
@@ -22,6 +22,18 @@ var Feng = {
error
:
function
(
info
)
{
error
:
function
(
info
)
{
Feng
.
alert
(
info
,
2
);
Feng
.
alert
(
info
,
2
);
},
},
infoDetail
:
function
(
title
,
info
)
{
var
index
=
parent
.
layer
.
open
({
title
:
title
,
type
:
1
,
skin
:
'layui-layer-rim'
,
//加上边框
area
:
[
'950px'
,
'600px'
],
//宽高
content
:
info
});
layer
.
style
(
index
,
{
padding
:
"20px"
});
},
writeObj
:
function
(
obj
)
{
writeObj
:
function
(
obj
)
{
var
description
=
""
;
var
description
=
""
;
for
(
var
i
in
obj
)
{
for
(
var
i
in
obj
)
{
...
...
src/main/webapp/static/modular/convit/charge.js
deleted
100644 → 0
View file @
12e9ee7e
/**
* 页面单例
*/
var
Charge
=
{
phone
:
""
//被操作的电话号码
};
/**
* 设置电话
* @returns
*/
function
setPhone
(
phone
){
Charge
.
phone
=
phone
;
$
(
"#telephone"
).
val
(
phone
);
}
/**
* 获取被操作的电话
* @returns
*/
function
getPhone
(){
Charge
.
phone
=
$
(
"#telephone"
).
val
();
return
Charge
.
phone
;
}
/**
* 清空电话历史记录
* @returns
*/
function
clearHisPhone
(){
var
ajax
=
Feng
.
baseAjax
(
"/charge/clearHisPhone"
,
"清空历史记录"
);
ajax
.
start
();
window
.
location
.
href
=
Feng
.
ctxPath
+
"/charge"
;
}
/**
* 修改手机号验证码
* @param val
* @returns
*/
function
chPhoneVali
(
val
){
var
phone
=
getPhone
();
var
phoneVali
=
val
;
if
(
val
==
undefined
){
phoneVali
=
$
(
"#phoneVali"
).
val
();
}
if
(
phone
==
""
||
phoneVali
==
""
){
Feng
.
error
(
"请输入手机号或验证码!"
);
return
;
}
else
{
var
ajax
=
Feng
.
changeAjax
(
"/charge/chPhoneVali"
);
ajax
.
set
(
"phone"
,
phone
);
ajax
.
set
(
"phoneVali"
,
phoneVali
);
ajax
.
start
();
}
}
/**
* 修改余额
* @param val
* @returns
*/
function
chMoney
(
val
){
var
phone
=
getPhone
();
var
money
=
val
;
if
(
val
==
undefined
){
money
=
$
(
"#money"
).
val
();
}
if
(
phone
==
""
||
money
==
""
){
Feng
.
error
(
"请输入手机号或余额!"
);
return
;
}
else
{
var
ajax
=
Feng
.
changeAjax
(
"/charge/chMoney"
);
ajax
.
set
(
"phone"
,
phone
);
ajax
.
set
(
"money"
,
money
);
ajax
.
start
();
}
}
/**
* 修改积分
* @param val
* @returns
*/
function
chIntegral
(
val
){
var
phone
=
getPhone
();
var
integral
=
val
;
if
(
val
==
undefined
){
integral
=
$
(
"#integral"
).
val
();
}
if
(
phone
==
""
||
integral
==
""
){
Feng
.
error
(
"请输入手机号或积分!"
);
return
;
}
else
{
var
ajax
=
Feng
.
changeAjax
(
"/charge/chIntegral"
);
ajax
.
set
(
"phone"
,
phone
);
ajax
.
set
(
"integral"
,
integral
);
ajax
.
start
();
}
}
/**
* 修改顺风车的状态
* @param val
* @returns
*/
function
chWayCarAuth
(
val
){
var
phone
=
getPhone
();
var
status
=
val
;
if
(
phone
==
""
){
Feng
.
error
(
"请输入手机号!"
);
return
;
}
else
{
var
ajax
=
Feng
.
changeAjax
(
"/charge/chWayCarAuth"
);
ajax
.
set
(
"phone"
,
phone
);
ajax
.
set
(
"status"
,
status
);
ajax
.
start
();
}
}
/**
* 修改出租车状态
* @param val
* @returns
*/
function
chTaxiAuth
(
val
){
var
phone
=
getPhone
();
var
status
=
val
;
if
(
phone
==
""
){
Feng
.
error
(
"请输入手机号!"
);
return
;
}
else
{
var
ajax
=
Feng
.
changeAjax
(
"/charge/chTaxiAuth"
);
ajax
.
set
(
"phone"
,
phone
);
ajax
.
set
(
"status"
,
status
);
ajax
.
start
();
}
}
/**
* 修改专车状态
* @param val
* @returns
*/
function
chSpecialAuth
(
val
){
var
phone
=
getPhone
();
var
status
=
val
;
if
(
phone
==
""
){
Feng
.
error
(
"请输入手机号!"
);
return
;
}
else
{
var
ajax
=
Feng
.
changeAjax
(
"/charge/chSpecialAuth"
);
ajax
.
set
(
"phone"
,
phone
);
ajax
.
set
(
"status"
,
status
);
ajax
.
start
();
}
}
/**
* 修改专车的车辆等级
* @param val
* @returns
*/
function
chVehiLevel
(
val
){
var
phone
=
getPhone
();
var
level
=
val
;
if
(
phone
==
""
){
Feng
.
error
(
"请输入手机号!"
);
return
;
}
else
{
var
ajax
=
Feng
.
changeAjax
(
"/charge/chVehiLevel"
);
ajax
.
set
(
"phone"
,
phone
);
ajax
.
set
(
"level"
,
level
);
ajax
.
start
();
}
}
\ No newline at end of file
src/main/webapp/static/modular/system/log/log.js
View file @
09298dd2
...
@@ -50,10 +50,10 @@ OptLog.check = function () {
...
@@ -50,10 +50,10 @@ OptLog.check = function () {
*/
*/
OptLog
.
detail
=
function
()
{
OptLog
.
detail
=
function
()
{
if
(
this
.
check
())
{
if
(
this
.
check
())
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/log/detail/"
+
this
.
seItem
.
id
,
function
(
data
)
{
var
ajax
=
new
$ax
(
Feng
.
ctxPath
+
"/log/detail/"
+
this
.
seItem
.
id
,
function
(
data
)
{
Feng
.
infoDetail
(
"日志详情"
,
data
.
message
);
},
function
(
data
)
{
},
function
(
data
)
{
Feng
.
error
(
"获取详情失败!"
);
});
});
ajax
.
start
();
ajax
.
start
();
}
}
...
...
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