Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cooperation-cme
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-cooperation-cme
提交
2cf676ef
提交
2cf676ef
编写于
8月 24, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
参加考试等
上级
e21fcef7
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
138 行增加
和
12 行删除
+138
-12
bind-card-button-share.vue
src/components/cme/bind-card-button-share.vue
+110
-0
env-config.js
src/utils/env-config.js
+13
-5
share-merge-detail.vue
src/views/share-merge-detail.vue
+15
-7
未找到文件。
src/components/cme/bind-card-button-share.vue
0 → 100644
浏览文件 @
2cf676ef
<
template
>
<section
class=
"bind-cart-wrapper"
>
<article
class=
"left"
>
<div
class=
"top"
>
<span
class=
"discount"
>
¥
{{
cardInfo
.
costPrice
|
formatMoney
}}
</span>
<!--
<span
class=
"discount"
>
¥
{{
(
cardInfo
.
couponPrice
||
cardInfo
.
preferentialPrice
||
cardInfo
.
costPrice
)
|
formatMoney
}}
</span>
-->
<!--
<span
v-show=
"cardInfo.couponPrice || cardInfo.preferentialPrice"
class=
"price"
>
<del>
原价¥
{{
cardInfo
.
costPrice
|
formatMoney
}}
</del>
</span>
-->
</div>
<div
class=
"bottom"
>
<img
src=
"../../images/cme/phrase2/info.png"
/>
<span>
激活或购买后可学习课程
</span>
</div>
</article>
<article
class=
"right"
>
<span
class=
"left"
@
click=
"download"
>
APP购买更优惠
</span>
</article>
</section>
</
template
>
<
script
>
export
default
{
props
:
{
cardInfo
:
{
type
:
Object
,
default
:
()
=>
{}
}
},
data
()
{
return
{};
},
methods
:
{
download
()
{
window
.
location
.
href
=
"https://a.app.qq.com/o/simple.jsp?pkgname=com.picahealth.yunque"
;
},
}
};
</
script
>
<
style
lang=
"less"
scoped
>
.bind-cart-wrapper {
position: fixed;
left: 0;
bottom: 0;
z-index: 100;
width: 100%;
display: flex;
flex-direction: row;
height: 60px;
line-height: 1;
justify-content: space-between;
padding: 10px 15px;
font-size: 14px;
background: rgba(255, 255, 255, 1);
box-shadow: 0px -2px 10px 0px rgba(0, 0, 0, 0.1);
.left {
display: flex;
flex-direction: column;
height: 40px;
line-height: 1;
font-size: 12px;
// align-items: ;
.top {
margin-top: 3px;
height: 24px;
.discount {
color: #fb5b52;
font-size: 18px;
font-weight: 700;
margin-right: 4px;
}
.price {
color: #979899;
}
}
.bottom {
display: flex;
flex-direction: row;
img {
width: 12px;
height: 12px;
margin-left: 1px;
margin-right: 4px;
}
color: #979899;
}
}
.right {
display: flex;
flex-direction: row;
span {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
width: 138px;
font-size: 14px;
font-weight: 700;
text-align: center;
&.left {
border: 1px solid rgba(255, 122, 75, 1);
border-right-style: none;
color: #FFFFFF;
background:linear-gradient(137deg,rgba(255,166,95,1) 0%,rgba(255,122,75,1) 100%);
border-radius: 20px;
}
}
}
}
</
style
>
src/utils/env-config.js
浏览文件 @
2cf676ef
...
@@ -8,11 +8,19 @@ export const envConfig = {
...
@@ -8,11 +8,19 @@ export const envConfig = {
// baseUrl: 'http://10.177.15.180:10202/',
// baseUrl: 'http://10.177.15.180:10202/',
// baseUrl: 'http://192.168.140.14:10201/',
// baseUrl: 'http://192.168.140.14:10201/',
apiUrl
:
'https://dev-api.yunqueyi.com/'
,
// apiUrl: 'https://dev-api.yunqueyi.com/',
webPageUrl
:
'https://dev-phome.yunqueyi.com/'
,
// webPageUrl: 'https://dev-phome.yunqueyi.com/',
baseUrl
:
'https://dev-sc.yunqueyi.com/'
,
// baseUrl: 'https://dev-sc.yunqueyi.com/',
hactiveUrl
:
'https://dev-hactive.yunqueyi.com'
,
// hactiveUrl: 'https://dev-hactive.yunqueyi.com',
appId
:
'wxf4e66242d31c81c2'
,
// 用于微信授权登录
// appId: 'wxf4e66242d31c81c2', // 用于微信授权登录
baseUrl
:
'https://sc.yunqueyi.com/'
,
apiUrl
:
'https://api.yunqueyi.com/'
,
webPageUrl
:
'https://phome.yunqueyi.com/'
,
hactiveUrl
:
'https://hactive.yunqueyi.com'
,
appId
:
'wx2c577552a2d28550'
,
// 用于微信授权登录
// http://dev-hactive.yunqueyi.com/message_push/#/study-card
// http://dev-hactive.yunqueyi.com/message_push/#/study-card
// baseUrl: 'https://test1-sc.yunqueyi.com/',
// baseUrl: 'https://test1-sc.yunqueyi.com/',
...
...
src/views/share-merge-detail.vue
浏览文件 @
2cf676ef
...
@@ -130,14 +130,22 @@
...
@@ -130,14 +130,22 @@
:btnText=
"project.currentProgress > 1 ? '参加考试' : '学完全部课程,可参加考试'"
:btnText=
"project.currentProgress > 1 ? '参加考试' : '学完全部课程,可参加考试'"
:type=
"project.currentProgress > 1 ? 'primary' : 'disabled'"
:type=
"project.currentProgress > 1 ? 'primary' : 'disabled'"
></ExjumperButton>
></ExjumperButton>
<div
v-if=
"project.cmeType == 2 && !isWeb"
style=
"padding-top: 30px"
></div>
<!--
<div
v-if=
"project.cmeType == 2 && !isWeb"
style=
"padding-top: 30px"
></div>
-->
<div
style=
"padding-top: 20px"
></div>
<BindCardButton
<
!--
<
BindCardButton
v-if=
"project.cmeType == 2 && !hasBindCard && !isWeb"
v-if=
"project.cmeType == 2 && !hasBindCard && !isWeb"
:cardInfo=
"cardInfo"
:cardInfo=
"cardInfo"
@
changeClick=
"changeClick"
@
changeClick=
"changeClick"
@
gotoBuy=
"confirm"
@
gotoBuy=
"confirm"
></BindCardButton>
></BindCardButton>
-->
<BindCardButtonShare
v-if=
"!hasBindCard"
:cardInfo=
"cardInfo"
@
changeClick=
"changeClick"
@
gotoBuy=
"confirm"
></BindCardButtonShare>
<!--去激活-->
<!--去激活-->
<ChangeCard
<ChangeCard
...
@@ -207,7 +215,7 @@ import { mapGetters, mapActions } from "vuex";
...
@@ -207,7 +215,7 @@ import { mapGetters, mapActions } from "vuex";
import
vueFilters
from
"@/utils/filter"
;
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
Share
from
"@/components/cme/bind-card-button-share
"
;
import
ChangeCard
from
"@/components/cme/change-card"
;
import
ChangeCard
from
"@/components/cme/change-card"
;
let
cataOffsetTop
=
0
;
let
cataOffsetTop
=
0
;
...
@@ -335,7 +343,7 @@ export default {
...
@@ -335,7 +343,7 @@ export default {
// CardPopup,
// CardPopup,
CommonAdertImg
,
CommonAdertImg
,
NoMoreContent
,
NoMoreContent
,
BindCardButton
,
BindCardButton
Share
,
ChangeCard
,
ChangeCard
,
ShiKanCommonDialog
,
ShiKanCommonDialog
,
IOSDownloadDialog
IOSDownloadDialog
...
@@ -799,10 +807,10 @@ export default {
...
@@ -799,10 +807,10 @@ export default {
_this
.
preJumper
();
_this
.
preJumper
();
}
}
let
shareUrl
=
encodeURIComponent
(
location
.
href
);
//
let shareUrl = encodeURIComponent(location.href);
this
.
wechatShare
(
this
.
wechatShare
(
{
{
link
:
shareUrl
,
link
:
location
.
href
,
title
:
this
.
project
.
projectName
,
title
:
this
.
project
.
projectName
,
friendtitle
:
this
.
project
.
projectName
,
friendtitle
:
this
.
project
.
projectName
,
desc
:
this
.
project
.
projectName
,
desc
:
this
.
project
.
projectName
,
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录