Skip to content
切换导航面板
P
项目
G
群组
S
代码片段
帮助
成立
/
weiduh5
当前项目
正在载入...
登录
切换导航面板
转到一个项目
项目
版本库
问题
0
合并请求
0
流水线
维基
代码片段
设置
活动
图像
图表
创建新的问题
作业
提交
问题看板
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
9eb1a3ac
authored
Jan 17, 2018
by
颜景龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
静态页面修改
parent
2d911f5d
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
53 行增加
和
38 行删除
groupIntro.html
personal/class.css
personal/personalClassAppointDetail.html
personal/personalDetail.html
readmine.md
groupIntro.html
查看文件 @
9eb1a3ac
...
...
@@ -48,7 +48,7 @@
.page2
.main
{
padding
:
0
;
border-bottom
:
1px
solid
rgba
(
255
,
255
,
255
,
1
);
/* border-bottom: 1px solid rgba(255, 255, 255, 1); */
}
.page2
.main
:last-child
{
...
...
personal/class.css
查看文件 @
9eb1a3ac
...
...
@@ -188,4 +188,8 @@ body {
font-size
:
1.5rem
!important
;
}
.label-price
>
span
{
font-size
:
.6rem
;
}
personal/personalClassAppointDetail.html
查看文件 @
9eb1a3ac
...
...
@@ -165,47 +165,57 @@
// $('.class-banner').css({'background-image': `url(./banner.png)`, height: $(window).width()*200/375});
var
id
=
getUrlParam
(
'id'
);
var
classId
=
getUrlParam
(
'classId'
);
var
userId
=
getUrlParam
(
'userId'
);
var
dayList
=
[
'今天'
,
'明天'
,
'后天'
];
if
(
id
)
{
$
.
get
(
HTTP_URL
+
"/wedofit/personalClass/mineClassWebDetails/"
+
id
,
function
(
data
){
var
result
=
JSON
.
parse
(
data
);
if
(
result
.
code
==
0
)
{
var
obj
=
result
.
data
;
$
(
'.class-banner'
).
css
({
'background-image'
:
`url(
${
obj
.
classImg
}
)`
,
height
:
$
(
window
).
width
()
*
200
/
375
});
$
(
'#className'
).
text
(
obj
.
className
+
'/'
+
obj
.
trainerName
);
$
(
'#classTime'
).
text
(
obj
.
minEnrollment
+
'课时'
);
$
(
"
<
p
><
/p>"
)
.html
(
obj.introduction
)
.appendTo
(
$
(
".class-block"
)[
2
])
;
$
(
"
<
p
><
/p>"
)
.html
(
obj.trainingEffect
)
.appendTo
(
$
(
".class-block"
)[
3
])
;
$
(
"
<
p
><
/p>"
)
.html
(
obj.classDuration
)
.appendTo
(
$
(
".class-block"
)[
4
])
;
$
(
"
<
p
><
/p>"
)
.html
(
obj.suitableFor
)
.appendTo
(
$
(
".class-block"
)[
5
])
;
$
(
"
<
p
><
/p>"
)
.html
(
obj.suggestion
)
.appendTo
(
$
(
".class-block"
)[
6
])
;
for
(
var
j
=
0
;
j
<
dayList
.
length
;
j
++
)
{
var
timeLine
=
$
(
'
<
div
><
/div>'
)
.addClass
(
"clearfix mb10"
)
;
$
(
'
<
div
><
/div>'
)
.addClass
(
'time-day'
)
.text
(
dayList
[
j
])
.appendTo
(
timeLine
)
;
var
timeUL
=
$
(
"
<
ul
><
/ul>"
)
.addClass
(
"time-line clearfix"
)
;
if
(
obj
.
appointmentTime
&&
obj
.
appointmentTime
.
length
>
0
&&
obj
.
appointmentTime
[
j
].
length
>
0
)
{
var
lineList
=
caculateWidth
(
obj
.
appointmentTime
[
j
]);
for
(
var
l
=
0
;
l
<
lineList
.
length
;
l
++
)
{
$
(
"
<
li
><
/li>"
)
.css
(
{'width': lineList
[
l
]
.width*0.5+'rem', left: lineList
[
l
]
.start*0.5+'rem'}
)
.appendTo
(
timeUL
)
;
if
(
classId
&&
userId
)
{
$
.
ajax
({
type
:
'POST'
,
url
:
HTTP_URL
+
"/wedofit/personalClass/mineClassWebDetails"
,
data
:
JSON
.
stringify
({
classId
:
classId
,
userId
:
userId
}),
contentType
:
'application/json'
,
dataType
:
'json'
,
success
:
function
(
result
){
if
(
result
.
code
==
0
)
{
var
obj
=
result
.
data
;
$
(
'.class-banner'
).
css
({
'background-image'
:
`url(
${
obj
.
classImg
}
)`
,
height
:
$
(
window
).
width
()
*
200
/
375
});
$
(
'#className'
).
text
(
obj
.
className
+
'/'
+
obj
.
trainerName
);
$
(
'#classTime'
).
text
(
'剩余'
+
obj
.
count
+
'课时'
);
$
(
"
<
p
><
/p>"
)
.html
(
obj.introduction
)
.appendTo
(
$
(
".class-block"
)[
2
])
;
$
(
"
<
p
><
/p>"
)
.html
(
obj.trainingEffect
)
.appendTo
(
$
(
".class-block"
)[
3
])
;
$
(
"
<
p
><
/p>"
)
.html
(
obj.classDuration
)
.appendTo
(
$
(
".class-block"
)[
4
])
;
$
(
"
<
p
><
/p>"
)
.html
(
obj.suitableFor
)
.appendTo
(
$
(
".class-block"
)[
5
])
;
$
(
"
<
p
><
/p>"
)
.html
(
obj.suggestion
)
.appendTo
(
$
(
".class-block"
)[
6
])
;
for
(
var
j
=
0
;
j
<
dayList
.
length
;
j
++
)
{
var
timeLine
=
$
(
'
<
div
><
/div>'
)
.addClass
(
"clearfix mb10"
)
;
$
(
'
<
div
><
/div>'
)
.addClass
(
'time-day'
)
.text
(
dayList
[
j
])
.appendTo
(
timeLine
)
;
var
timeUL
=
$
(
"
<
ul
><
/ul>"
)
.addClass
(
"time-line clearfix"
)
;
if
(
obj
.
appointmentTime
&&
obj
.
appointmentTime
.
length
>
0
&&
obj
.
appointmentTime
[
j
].
length
>
0
)
{
var
lineList
=
caculateWidth
(
obj
.
appointmentTime
[
j
]);
for
(
var
l
=
0
;
l
<
lineList
.
length
;
l
++
)
{
$
(
"
<
li
><
/li>"
)
.css
(
{'width': lineList
[
l
]
.width*0.5+'rem', left: lineList
[
l
]
.start*0.5+'rem'}
)
.appendTo
(
timeUL
)
;
}
}
timeLine
.
append
(
timeUL
);
$
(
'#timeBody'
).
append
(
timeLine
);
}
timeLine
.
append
(
timeUL
);
$
(
'#timeBody'
).
append
(
timeLine
);
setTimeout
(
function
()
{
$
(
'.loading'
).
remove
();
},
200
);
}
setTimeout
(
function
()
{
$
(
'.loading'
).
remove
();
},
200
);
}
});
}
...
...
personal/personalDetail.html
查看文件 @
9eb1a3ac
...
...
@@ -82,6 +82,7 @@
$
(
"#className"
).
text
(
obj
.
className
);
$
(
"#className"
).
append
(
$
(
"
<
span
><
/span>"
)
.text
((
obj.minEnrollment
?
obj.minEnrollment : '-'
)
+'节起售'
)
.addClass
(
"sub-text"
))
;
$
(
"#classPrice"
).
text
(
'¥ '
+
obj
.
totalPrice
);
$
(
"
<
span
>
/课时</
span
>
").appendTo($("
#
classPrice
"));
$("
<
p
><
/p>"
)
.html
(
obj.introduction
)
.appendTo
(
$
(
".class-block"
)[
1
])
;
$
(
"
<
p
><
/p>"
)
.html
(
obj.trainingEffect
)
.appendTo
(
$
(
".class-block"
)[
2
])
;
...
...
readmine.md
查看文件 @
9eb1a3ac
### 私教预约课程详情(
id="课程i
d")
> http://192.168.31.182:8080/wedo-fit/htmlpages/
course/personal/personalClassAppointDetail.html
### 私教预约课程详情(
classId="课程id", userId="用户I
d")
> http://192.168.31.182:8080/wedo-fit/htmlpages/
personal/personalClassAppointDetail.html?classId=8455817859507200&userId=8455341890544640
### 私教详情 (id="课程id")
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此消息的编辑!
取消
请
注册
或
登录
后发表评论