Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eduline
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
冷斌
eduline
Commits
281edbbe
Commit
281edbbe
authored
May 15, 2020
by
陈超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
T
parent
ae7b831b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
1 deletions
+66
-1
addons/theme/stv1/_static_w3g/css/common.css
+26
-0
apps/classroom/Tpl/default/Vip/index_w3g.html
+40
-1
No files found.
addons/theme/stv1/_static_w3g/css/common.css
View file @
281edbbe
...
...
@@ -732,3 +732,28 @@ div::-webkit-scrollbar {
.color_dianshi
{
color
:
#E58F00
;
}
.vip_content
{
box-sizing
:
border-box
;
padding
:
0.75rem
;
height
:
6.25rem
;
margin
:
1rem
1.5rem
;
position
:
relative
;
background-size
:
100%
100%
;
}
.hint_top
{
position
:
absolute
;
right
:
0
;
top
:
0
;
}
.vip_price_hint
{
width
:
6.25rem
;
height
:
2rem
;
background
:
rgba
(
255
,
255
,
255
,
1
);
border-radius
:
1rem
;
position
:
absolute
;
right
:
0
;
bottom
:
0
;
}
\ No newline at end of file
apps/classroom/Tpl/default/Vip/index_w3g.html
View file @
281edbbe
...
...
@@ -15,6 +15,20 @@
</div>
</div>
</van-sticky>
<div
class=
"vip_content"
:style=
"currentBg"
>
<div
class=
"layout_h"
>
<van-image
src=
"{:getUserFace($user['uid'],b)}"
round
width=
"32"
height=
"32"
></van-image>
<div
class=
"text_16_600 color_333333 self_center"
style=
"margin-left: 0.5rem;"
>
{:U('home/User/recharge')}
</div>
</div>
<div
class=
"hint_top layout_h"
>
<van-icon
size=
"12"
:name=
"currentHint"
></van-icon>
<div
:class=
"currentColor"
class=
"text_12_400 color_primary self_center"
>
{{currentState}}
</div>
</div>
<div
class=
"vip_price_hint layout_center"
>
<span
class=
"text_16_400"
:class=
"currentColor"
>
{{currentPrice}}
</span>
</div>
<div
class=
"text_16_400"
:class=
"currentColor"
>
{{currentCount}} 人已开通
</div>
</div>
</div>
</div>
<!-- <div class="page">
...
...
@@ -187,11 +201,36 @@
}
if
(
opt
)
{
opt
.
price
=
r
.
vip_month
+
"元/月"
opt
.
rights
=
r
.
vip_course
opt
.
id
=
r
.
id
}
})
},
computed
:
{
currentBg
:
function
()
{
let
opt
=
this
.
options
[
this
.
tab
]
return
{
background
:
"url(__THEME__/img/"
+
opt
.
bg
+
")"
}
},
currentHint
:
function
()
{
let
opt
=
this
.
options
[
this
.
tab
]
return
"__THEME__/img/"
+
opt
.
hint
},
currentColor
:
function
()
{
let
opt
=
this
.
options
[
this
.
tab
]
return
"__THEME__/img/"
+
opt
.
color
},
currentState
:
function
()
{
let
opt
=
this
.
options
[
this
.
tab
]
return
opt
.
title
==
this
.
userInfo
.
vip_title
?
"已开通"
:
"暂未开通"
},
currentPrice
:
function
()
{
return
this
.
options
[
this
.
tab
].
price
},
currentCount
:
function
()
{
return
this
.
options
[
this
.
tab
].
count
}
},
methods
:
{
onTab
:
function
(
idx
)
{
...
...
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