Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Culm
pica-professional-exam
提交
1dfe73cf
提交
1dfe73cf
编写于
6月 12, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
已购买去学习
上级
25d75ca8
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
212 行增加
和
3 行删除
+212
-3
card-banner.vue
src/components/cme/card-banner.vue
+11
-0
card-popup copy.vue
src/components/cme/card-popup copy.vue
+168
-0
card-popup.vue
src/components/cme/card-popup.vue
+32
-2
I-credit-detail.vue
src/views/I-credit-detail.vue
+1
-1
未找到文件。
src/components/cme/card-banner.vue
浏览文件 @
1dfe73cf
...
...
@@ -9,6 +9,7 @@
</
template
>
<
script
>
import
{
getHactiveUrl
}
from
"@/utils/index"
;
import
{
mapGetters
}
from
"vuex"
;
export
default
{
data
()
{
return
{
...
...
@@ -21,10 +22,20 @@ export default {
default
:
''
}
},
computed
:
{
...
mapGetters
([
"userInfo"
])
},
methods
:
{
// 跳转到学习卡列表页面
jumpToCardList
()
{
// 如果没有登录,则要去登录页面
let
appVersion
=
this
.
userInfo
.
appVersion
;
let
appVersionNum
=
appVersion
.
split
(
'.'
).
join
(
''
);
console
.
log
(
'appVersionNum'
,
appVersionNum
);
if
(
appVersionNum
<
341
)
{
Toast
(
'请您下载新版本App'
);
return
;
}
if
(
!
this
.
userMobile
)
{
rocNative
.
gotoLogin
();
return
;
...
...
src/components/cme/card-popup copy.vue
0 → 100644
浏览文件 @
1dfe73cf
<
template
>
<section
class=
"card-popup-wrapper"
>
<van-popup
v-model=
"isShow"
position=
"center"
@
click-overlay=
"clickOverlay"
>
<article
class=
"content"
>
<p
class=
"title"
>
学分项目必须使用学习卡
</p>
<p
class=
"title"
>
请先购买学习卡
</p>
<section
class=
"card-info"
>
<img
v-if=
"cardInfo.cardType == 1"
class=
"icon"
src=
"../../images/cme/phrase2/I-card-icon.png"
alt
/>
<img
v-else
class=
"icon"
src=
"../../images/cme/phrase2/II-card-icon.png"
alt
/>
<!--
<div
class=
"info"
>
<span
class=
"name"
>
{{
cardInfo
.
goodsName
}}
</span>
<p>
<span
class=
"price"
>
¥
{{
(
cardInfo
.
preferentialPrice
||
cardInfo
.
costPrice
)
|
formatMoney
}}
</span><span
v-show=
"cardInfo.preferentialPrice"
class=
"discount"
><del>
原价¥
{{
cardInfo
.
costPrice
|
formatMoney
}}
</del></span>
</p>
</div>
-->
<div
class=
"info"
>
<span
class=
"name"
>
已购买去学习已购买去学习买去学习
</span>
<p>
<span
class=
"price"
>
¥100
</span><span
class=
"discount"
><del>
原价¥120
</del></span>
</p>
</div>
</section>
<div
class=
"line"
></div>
<div
class=
"btn"
>
<span
class=
"left"
@
click=
"cancle"
>
已购买去学习
</span>
<span
class=
"vert-line"
></span>
<span
class=
"right"
@
click=
"confirm"
>
去购买
</span>
</div>
</article>
</van-popup>
</section>
</
template
>
<
script
>
import
{
Popup
}
from
"vant"
;
export
default
{
data
()
{
return
{
}
},
props
:
{
isShow
:
{
type
:
Boolean
,
default
:
false
,
},
cardInfo
:
{
id
:
10031
,
goodsVersion
:
1
,
cardType
:
1
,
costPrice
:
0
,
preferentialPrice
:
0
,
goodsDesc
:
""
,
goodsName
:
"学习卡"
,
goodsType
:
2
,
isSale
:
1
,
}
},
methods
:
{
clickOverlay
()
{
this
.
$emit
(
'clickOverlay'
);
},
cancle
()
{
this
.
$emit
(
'cancle'
);
},
confirm
()
{
this
.
$emit
(
'confirm'
);
}
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.card-popup-wrapper
{
.content
{
font-size
:
px2rem
(
14px
);
width
:
px2rem
(
300px
);
// height: px2rem(245px);
padding-top
:
px2rem
(
30px
);
.title
{
text-align
:
center
;
font-size
:
px2rem
(
18px
);
font-weight
:
700
;
}
.card-info
{
display
:
flex
;
flex-direction
:
row
;
align-items
:
center
;
height
:
px2rem
(
76px
);
margin
:
px2rem
(
15px
);
padding
:
0
px2rem
(
8px
);
background
:
#F8F9FA
;
border-radius
:
px2rem
(
6px
);
font-size
:
px2rem
(
14px
);
.icon
{
width
:
px2rem
(
60px
);
height
:
px2rem
(
60px
);
margin-right
:
px2rem
(
8px
);
}
.info
{
width
:
100%
;
position
:
relative
;
top
:
0
;
left
:
0
;
.name
{
position
:
absolute
;
top
:
px2rem
(
-30px
);
left
:
px2rem
(
4px
);
}
p
{
position
:
absolute
;
bottom
:
px2rem
(
-34px
);
left
:
0px
;
display
:
flex
;
align-items
:
center
;
.price
{
color
:
#FB5B52
;
font-size
:
px2rem
(
18px
);
font-weight
:
700
;
margin-right
:
px2rem
(
8px
);
}
.discount
{
color
:
#979899
;
}
}
}
}
.line
{
margin-top
:
px2rem
(
30px
);
height
:
px2rem
(
1px
);
background
:
#F0F1F2
;
}
.btn
{
width
:
100%
;
display
:
flex
;
flex-direction
:
row
;
// justify-content: space-between;
align-items
:
center
;
height
:
px2rem
(
50px
);
// margin-top: px2rem(15px);
font-size
:
px2rem
(
17px
);
.left
{
flex
:
1
;
text-align
:
center
;
color
:
#979899
;
// border-right: 1px solid #F0F1F2;
}
.vert-line
{
border-right
:
1px
solid
#F0F1F2
;
// width: px2rem(1px);
height
:
100%
;
}
.right
{
flex
:
1
;
text-align
:
center
;
color
:
#449284
;
}
}
}
.van-popup.van-popup--center
{
border-radius
:
px2rem
(
4px
);
}
}
</
style
>
src/components/cme/card-popup.vue
浏览文件 @
1dfe73cf
...
...
@@ -9,14 +9,20 @@
<p
class=
"title"
>
学分项目必须使用学习卡
</p>
<p
class=
"title"
>
请先购买学习卡
</p>
<section
class=
"card-info"
>
<img
v-if=
"cardInfo.cardType == 1"
class=
"icon"
src=
"../../images/cme/phrase2/I-card-icon.png"
alt
/>
<img
v-else
class=
"i
con
"
src=
"../../images/cme/phrase2/II-card-icon.png"
alt
/>
<img
v-if=
"
!
cardInfo.cardType == 1"
class=
"icon"
src=
"../../images/cme/phrase2/I-card-icon.png"
alt
/>
<img
v-else
class=
"i
nfo2
"
src=
"../../images/cme/phrase2/II-card-icon.png"
alt
/>
<div
class=
"info"
>
<span
class=
"name"
>
{{
cardInfo
.
goodsName
}}
</span>
<p>
<span
class=
"price"
>
¥
{{
(
cardInfo
.
preferentialPrice
||
cardInfo
.
costPrice
)
|
formatMoney
}}
</span><span
v-show=
"cardInfo.preferentialPrice"
class=
"discount"
><del>
原价¥
{{
cardInfo
.
costPrice
|
formatMoney
}}
</del></span>
</p>
</div>
<!--
<div
class=
"info2"
>
<span
class=
"name"
>
已购买去学习已购买去学购买去学习买
</span>
<p>
<span
class=
"price"
>
¥100
</span><span
class=
"discount"
><del>
原价¥120
</del></span>
</p>
</div>
-->
</section>
<div
class=
"line"
></div>
<div
class=
"btn"
>
...
...
@@ -121,6 +127,30 @@ export default {
}
}
}
.info2
{
display
:
flex
;
flex-direction
:
column
;
.name
{
// position: absolute;
// top: px2rem(-30px);
// left: px2rem(4px);
}
p
{
display
:
flex
;
align-items
:
center
;
height
:
px2rem
(
24px
);
line-height
:
px2rem
(
24px
);
.price
{
color
:
#FB5B52
;
font-size
:
px2rem
(
18px
);
font-weight
:
700
;
margin-right
:
px2rem
(
8px
);
}
.discount
{
color
:
#979899
;
}
}
}
}
.line
{
margin-top
:
px2rem
(
30px
);
...
...
src/views/I-credit-detail.vue
浏览文件 @
1dfe73cf
...
...
@@ -30,7 +30,7 @@ export default {
bgColor
:
"#fff"
,
bgColor
:
'none'
,
showNavBar
:
true
,
isShowPopup
:
fals
e
,
isShowPopup
:
tru
e
,
isFixNavbar
:
true
,
oneLevelUrl
:
''
,
provinceId
:
0
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录