切换导航条
此项目
正在载入...
登录
外包项目
/
signUpForCar
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
654550265
6 years ago
提交
be92998b045f4bbbf47724fd879d3f490f333cb9
1 个父辈
ea77879f
BUG修改
显示空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
60 行增加
和
51 行删除
public/themes/simpleboot3/portal/index/write_info.html
public/themes/simpleboot3/user/yuyue/my_yuyue.html
public/themes/simpleboot3/portal/index/write_info.html
查看文件 @
be92998
...
...
@@ -244,10 +244,9 @@
},
success
:
function
(
data
)
{
if
(
data
.
code
==
'1'
)
{
// alert("成功");
window
.
location
.
href
=
"{:url('portal/index/confirm_order',['gid'=>$gid])}"
;
}
else
{
alert
(
data
.
msg
);
layer
.
msg
(
data
.
msg
);
}
}
})
...
...
public/themes/simpleboot3/user/yuyue/my_yuyue.html
查看文件 @
be92998
...
...
@@ -5,7 +5,8 @@
<meta
http-equiv=
"X-UA-Compatible"
content=
"IE=edge,chrome=1"
>
<meta
content=
"yes"
name=
"apple-mobile-web-app-capable"
>
<meta
content=
"yes"
name=
"apple-touch-fullscreen"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1,maximum-scale=1,maximum-scale=1, minimum-scale=1, user-scalable=no"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1,maximum-scale=1,maximum-scale=1, minimum-scale=1, user-scalable=no"
>
<title>
我的预约
</title>
<link
rel=
"stylesheet"
href=
"/static/css/common.css"
>
<link
rel=
"stylesheet"
href=
"/static/css/style.css"
>
...
...
@@ -43,9 +44,9 @@
<div
class=
"btn_yuyue"
onclick=
location.href="{:url('user/yuyue/index')}"
>
<img
src=
"/static/image/btn_yuyue.png"
>
</div>
<else
/>
<else/>
<volist
name=
"data"
id=
"vo"
>
<div
class=
"yuyueList"
>
<div
class=
"yuyueList"
>
<div
class=
"yList_top"
>
<b>
{$vo.status|yuyue_status_name}
</b>
<i>
{$vo.yuyue_day|date_to_date}
</i>
...
...
@@ -73,16 +74,19 @@
</div>
</case>
<case
value=
"2"
>
<div
class=
"yuyue_btn"
onclick=
location.href="{:url('user/comment/index',array('id'=
>
$vo['teach_id'],'yuyue_id'=>$vo['id']))}">
<div
class=
"yuyue_btn"
onclick=
location.href="{:url('user/comment/index',array('id'=
>
$vo['teach_id'],'yuyue_id'=>$vo['id']))}">
<b
class=
"click_yuyue"
>
去评价
</b>
</div>
</case>
<case
value=
"3"
>
<div
class=
"yuyue_btn"
onclick=
location.href="{:url('user/comment/show_stu',array('yuyue_id'=
>
$vo['id']))}">
<div
class=
"yuyue_btn"
onclick=
location.href="{:url('user/comment/show_stu',array('yuyue_id'=
>
$vo['id']))}">
<b
class=
"click_yuyue"
>
查看评价
</b>
</div>
</case>
<default
/>
<default/>
</switch>
...
...
@@ -100,7 +104,7 @@
<div
class=
"btn_yuyue"
onclick=
location.href="{:url('user/yuyue/index')}"
>
<img
src=
"/static/image/btn_yuyue.png"
>
</div>
<else
/>
<else/>
<volist
name=
"dxdata"
id=
"vo"
>
<div
class=
"yuyueList"
>
<div
class=
"yList_top"
>
...
...
@@ -135,7 +139,7 @@
<div
class=
"btn_yuyue"
onclick=
location.href="{:url('user/yuyue/index')}"
>
<img
src=
"/static/image/btn_yuyue.png"
>
</div>
<else
/>
<else/>
<volist
name=
"dpdata"
id=
"vo"
>
<div
class=
"yuyueList"
>
<div
class=
"yList_top"
>
...
...
@@ -153,7 +157,8 @@
<i
class=
"yu_times"
>
{$vo.yuyue_begin}:00 - {$vo.yuyue_end}:00
</i>
</div>
</div>
<div
class=
"yuyue_btn"
onclick=
location.href="{:url('user/comment/index',array('id'=
>
$vo['teach_id'],'yuyue_id'=>$vo['id']))}">
<div
class=
"yuyue_btn"
onclick=
location.href="{:url('user/comment/index',array('id'=
>
$vo['teach_id'],'yuyue_id'=>$vo['id']))}">
<b
class=
"click_yuyue"
>
去评价
</b>
</div>
</div>
...
...
@@ -170,7 +175,7 @@
<div
class=
"btn_yuyue"
onclick=
location.href="{:url('user/yuyue/index')}"
>
<img
src=
"/static/image/btn_yuyue.png"
>
</div>
<else
/>
<else/>
<volist
name=
"ypdata"
id=
"vo"
>
<div
class=
"yuyueList"
>
<div
class=
"yList_top"
>
...
...
@@ -188,7 +193,8 @@
<i
class=
"yu_times"
>
{$vo.yuyue_begin}:00 - {$vo.yuyue_end}:00
</i>
</div>
</div>
<div
class=
"yuyue_btn"
onclick=
location.href="{:url('user/comment/show_stu',array('yuyue_id'=
>
$vo['id']))}">
<div
class=
"yuyue_btn"
onclick=
location.href="{:url('user/comment/show_stu',array('yuyue_id'=
>
$vo['id']))}">
<b
class=
"click_yuyue"
>
查看评价
</b>
</div>
</div>
...
...
@@ -214,50 +220,53 @@
<script
type=
"text/javascript"
src=
"/static/js/common.js"
></script>
<script
type=
"text/javascript"
src=
"/static/js/study_car.js"
></script>
<script>
$
(
function
(){
$
(
'.yList_top'
).
each
(
function
(){
var
colorHtml
=
$
(
this
).
children
(
'b'
).
html
();
if
(
colorHtml
==
"待学车"
){
$
(
this
).
children
(
'b'
).
css
(
"color"
,
"#53a6fa"
);
$
(
function
()
{
$
(
'.yList_top'
).
each
(
function
()
{
var
colorHtml
=
$
(
this
).
children
(
'b'
).
html
();
if
(
colorHtml
==
"待学车"
)
{
$
(
this
).
children
(
'b'
).
css
(
"color"
,
"#53a6fa"
);
}
});
$
(
'.click_yuyue'
).
click
(
function
(){
var
id
=
$
(
this
).
attr
(
"data-id"
);
var
cancel_fa
=
$
(
this
).
parent
().
parent
();
var
con_text
=
$
(
this
).
html
().
trim
();
if
(
con_text
==
"取消预约"
){
var
yu_day
=
$
(
this
).
parent
().
prev
().
prev
().
find
(
'i'
).
text
();
var
yu_times
=
$
(
this
).
parent
().
prev
().
find
(
'.yu_times'
).
text
().
split
(
'-'
)[
0
];
var
yuTime
=
new
Date
(
yu_day
+
' '
+
yu_times
).
getTime
();
var
two_hour
=
12
*
3600
*
1000
;
var
date
=
new
Date
().
getTime
();
if
(
yuTime
-
date
<=
two_hour
){
$
(
'.tan_car'
).
attr
(
"src"
,
"/static/image/tan_car2.png"
);
$
(
'.tan_car'
).
css
({
"width"
:
"4.97rem"
,
"height"
:
"2.88rem"
});
$
(
'.click_yuyue'
).
click
(
function
()
{
var
id
=
$
(
this
).
attr
(
"data-id"
);
var
cancel_fa
=
$
(
this
).
parent
().
parent
();
var
con_text
=
$
(
this
).
html
().
trim
();
if
(
con_text
==
"取消预约"
)
{
var
yu_day
=
$
(
this
).
parent
().
prev
().
prev
().
find
(
'i'
).
text
();
var
yu_times
=
$
(
this
).
parent
().
prev
().
find
(
'.yu_times'
).
text
().
split
(
'-'
)[
0
];
var
yuTime
=
new
Date
(
yu_day
+
' '
+
yu_times
).
getTime
();
var
two_hour
=
12
*
3600
*
1000
;
var
date
=
new
Date
().
getTime
();
if
(
yuTime
-
date
<=
two_hour
)
{
$
(
'.tan_car'
).
attr
(
"src"
,
"/static/image/tan_car2.png"
);
$
(
'.tan_car'
).
css
({
"width"
:
"4.97rem"
,
"height"
:
"2.88rem"
});
$
(
'.tan_text'
).
html
(
"抱歉,已过取消预约时间无法取消"
);
tankuang
();
$
(
'.btn_qr'
).
click
(
function
()
{
$
(
'.btn_qr'
).
click
(
function
()
{
$
(
"html"
).
css
(
"overflow"
,
"auto"
);
$
(
"body"
).
css
(
"overflow"
,
"auto"
);
$
(
".full_bg"
).
hide
();
$
(
".yu_tan"
).
hide
();
});
}
else
{
}
else
{
tankuang
();
$
(
'.btn_qr'
).
click
(
function
(){
$
(
"html"
).
css
(
"overflow"
,
"auto"
);
$
(
"body"
).
css
(
"overflow"
,
"auto"
);
$
(
'.btn_qr'
).
click
(
function
()
{
$
(
"html"
).
css
(
"overflow"
,
"auto"
);
$
(
"body"
).
css
(
"overflow"
,
"auto"
);
$
(
".full_bg"
).
hide
();
$
(
".yu_tan"
).
hide
();
$
.
ajax
({
url
:
"{:url('redo')}"
,
type
:
"post"
,
data
:{
id
:
id
},
success
:
function
(
res
)
{
if
(
res
.
code
==
1
){
url
:
"{:url('redo')}"
,
type
:
"post"
,
data
:
{
id
:
id
},
success
:
function
(
res
)
{
if
(
res
.
code
==
1
)
{
cancel_fa
.
remove
();
layer
.
msg
(
"取消预约成功"
);
setTimeout
(
function
()
{
window
.
history
.
go
(
0
);
},
1500
);
}
}
})
...
...
@@ -266,24 +275,25 @@
}
});
});
$
(
function
(){
function
get
(
url
/*后台的地址*/
,
obj
/*后台需要的数据*/
){
var
promise
=
new
Promise
(
function
(
resolve
,
reject
){
$
(
function
()
{
function
get
(
url
/*后台的地址*/
,
obj
/*后台需要的数据*/
)
{
var
promise
=
new
Promise
(
function
(
resolve
,
reject
)
{
$
.
ajax
({
url
:
url
,
data
:
obj
,
success
:
function
(
res
){
url
:
url
,
data
:
obj
,
success
:
function
(
res
)
{
resolve
(
res
);
},
failure
:
function
(
err
)
{
failure
:
function
(
err
)
{
reject
(
err
);
}
})
});
//等一下发嗯
return
promise
;
}
var
$div_li
=
$
(
".yuyueMenu ul li"
);
$div_li
.
click
(
function
(){
var
$div_li
=
$
(
".yuyueMenu ul li"
);
$div_li
.
click
(
function
()
{
$
(
this
).
addClass
(
"yuyue_cur"
)
.
siblings
().
removeClass
(
"yuyue_cur"
);
var
index
=
$div_li
.
index
(
this
);
...
...
请
注册
或
登录
后发表评论