Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Culm
pica-professional-exam
提交
3e36c191
提交
3e36c191
编写于
7月 09, 2020
作者:
kai.wang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
提交兑换ui
上级
cf7a9ab4
变更
4
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
139 行增加
和
81 行删除
+139
-81
package-lock.json
package-lock.json
+26
-75
bind-card-button.vue
src/components/cme/bind-card-button.vue
+4
-1
change-card.vue
src/components/cme/change-card.vue
+96
-0
merge-detail.vue
src/views/merge-detail.vue
+13
-5
未找到文件。
package-lock.json
浏览文件 @
3e36c191
此差异已折叠。
点击以展开。
src/components/cme/bind-card-button.vue
浏览文件 @
3e36c191
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
</div>
</div>
</article>
</article>
<article
class=
"right"
>
<article
class=
"right"
>
<span
class=
"left"
>
去兑换
</span>
<span
class=
"left"
@
click=
"changeClick"
>
去兑换
</span>
<span
class=
"right"
>
去购买
</span>
<span
class=
"right"
>
去购买
</span>
</article>
</article>
</section>
</section>
...
@@ -30,6 +30,9 @@ export default {
...
@@ -30,6 +30,9 @@ export default {
return
{};
return
{};
},
},
methods
:
{
methods
:
{
changeClick
(){
this
.
$emit
(
"changeClick"
,
"去兑换"
)
},
btnClick
()
{
btnClick
()
{
this
.
$emit
(
"btnClick"
);
this
.
$emit
(
"btnClick"
);
}
}
...
...
src/components/cme/change-card.vue
0 → 100644
浏览文件 @
3e36c191
<
template
>
<van-popup
v-model=
"show"
closeable
close-icon-position=
"top-right"
position=
"bottom"
>
<section
class=
"bind-cart-wrapper"
>
<article
class=
"title"
>
兑换详情
</article>
<article
class=
"tip"
>
<div
class=
"left"
>
<img
src=
"../../images/cme/phrase2/info.png"
/>
<span>
激活码用于兑换课程,您可以从订单详情或已购买到实体卡查看激活码密码。激活码一旦兑换,不可退回。
</span>
</div>
</article>
<article
class=
"code"
>
<van-field
v-model=
"value"
clearable
label=
"激活码"
placeholder=
"请输入激活码"
error-message=
"请输入正确的激活码"
/>
</article>
<article
class=
"bottom"
>
<van-button
size=
"large"
round
color=
"#449284"
>
确认兑换
</van-button></article>
</section>
</van-popup>
</
template
>
<
script
>
export
default
{
props
:
{
cardInfo
:
{
type
:
Object
,
default
:
()
=>
{}
},
show
:
{
type
:
Boolean
,
default
:
false
,
}
},
data
()
{
return
{
activationCode
:
''
,
};
},
methods
:
{
}
};
</
script
>
<
style
lang=
"scss"
scoped
>
@import
"../../style/mixin"
;
.bind-cart-wrapper
{
width
:
100%
;
display
:
flex
;
line-height
:
1
;
padding
:
px2rem
(
10px
)
px2rem
(
15px
);
display
:
flex
;
flex-direction
:
column
;
background
:
rgba
(
255
,
255
,
255
,
1
);
box-shadow
:
0px
-2px
10px
0px
rgba
(
0
,
0
,
0
,
0
.1
);
.title
{
display
:
flex
;
flex-direction
:
row
;
font-size
:
18px
;
align-items
:
center
;
justify-content
:
center
;
width
:
100%
;
margin-top
:
px2rem
(
20px
);
}
.tip
{
display
:
flex
;
margin-top
:
px2rem
(
40px
);
.left
{
display
:
flex
;
line-height
:
1
.2
;
font-size
:
px2rem
(
12px
);
img
{
width
:
px2rem
(
12px
);
height
:
px2rem
(
12px
);
margin-left
:
1px
;
margin-right
:
px2rem
(
4px
);
}
color
:
#979899
;
}
}
.code
{
display
:
flex
;
}
.bottom
{
display
:
flex
;
margin-bottom
:
px2rem
(
4px
);
}
}
</
style
>
\ No newline at end of file
src/views/merge-detail.vue
浏览文件 @
3e36c191
...
@@ -130,8 +130,10 @@
...
@@ -130,8 +130,10 @@
:type=
"project.currentProgress > 1 ? 'primary' : 'disabled'"
></ExjumperButton>
:type=
"project.currentProgress > 1 ? 'primary' : 'disabled'"
></ExjumperButton>
<div
v-if=
"project.cmeType == 2"
style=
"padding-top: 30px"
></div>
<div
v-if=
"project.cmeType == 2"
style=
"padding-top: 30px"
></div>
<BindCardButton
v-if=
"project.cmeType == 2 && !project.hasBindCard"
:cardInfo=
"cardInfo"
></BindCardButton>
<BindCardButton
v-if=
"project.cmeType == 2 && !project.hasBindCard"
:cardInfo=
"cardInfo"
@
changeClick=
"changeClick"
></BindCardButton>
<!--去兑换-->
<ChangeCard
:show=
"show"
:cardInfo=
"cardInfo"
></ChangeCard>
<!--
<CardPopup
:cardInfo=
"cardInfo"
:isShow=
"isShowPopup"
@
clickOverlay=
"clickOverlay"
@
cancle=
"jumpToCardList()"
@
confirm=
"confirm"
></CardPopup>
-->
<!--
<CardPopup
:cardInfo=
"cardInfo"
:isShow=
"isShowPopup"
@
clickOverlay=
"clickOverlay"
@
cancle=
"jumpToCardList()"
@
confirm=
"confirm"
></CardPopup>
-->
<Loading
v-show=
"showLoading"
/>
<Loading
v-show=
"showLoading"
/>
</div>
</div>
...
@@ -165,7 +167,7 @@ import vueFilters from "@/utils/filter";
...
@@ -165,7 +167,7 @@ import vueFilters from "@/utils/filter";
import
{
Toast
}
from
'vant'
;
import
{
Toast
}
from
'vant'
;
// import CardPopup from "@/components/cme/card-popup";
// import CardPopup from "@/components/cme/card-popup";
import
BindCardButton
from
"@/components/cme/bind-card-button"
;
import
BindCardButton
from
"@/components/cme/bind-card-button"
;
import
ChangeCard
from
"@/components/cme/change-card"
;
let
cataOffsetTop
=
0
;
let
cataOffsetTop
=
0
;
let
intorOffsetTop
=
0
;
let
intorOffsetTop
=
0
;
let
titleOffsetHeight
=
50
;
let
titleOffsetHeight
=
50
;
...
@@ -262,6 +264,7 @@ export default {
...
@@ -262,6 +264,7 @@ export default {
id
:
0
id
:
0
},
},
advertInfoList
:
[],
advertInfoList
:
[],
show
:
false
,
//是否展示兑换弹框
};
};
},
},
components
:
{
components
:
{
...
@@ -283,7 +286,8 @@ export default {
...
@@ -283,7 +286,8 @@ export default {
// CardPopup,
// CardPopup,
CommonAdertImg
,
CommonAdertImg
,
NoMoreContent
,
NoMoreContent
,
BindCardButton
BindCardButton
,
ChangeCard
},
},
computed
:
{
computed
:
{
...
@@ -635,7 +639,11 @@ export default {
...
@@ -635,7 +639,11 @@ export default {
}
}
});
});
},
},
//去兑换
changeClick
(
msg
){
console
.
log
(
msg
)
this
.
show
=
!
this
.
show
;
},
// 弹框按钮事件
// 弹框按钮事件
handlerAction
(
data
)
{
handlerAction
(
data
)
{
this
.
isShowDialog
=
false
;
this
.
isShowDialog
=
false
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录