Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-professional-exam
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Culm
pica-professional-exam
提交
438dd4c3
提交
438dd4c3
编写于
9月 22, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1、开发激活/购买流程(内部逻辑)
2、部分弹框UI及交互 3、对接部分修改的接口
上级
5c12572a
变更
8
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
66 行增加
和
49 行删除
+66
-49
experience-dialog.vue
src/components/question/experience-dialog.vue
+6
-3
dialog-close.png
src/images/question/dialog-close.png
+0
-0
mixins.js
src/utils/mixins.js
+7
-11
goods-detail.vue
src/views/goods-detail.vue
+2
-2
merge-detail.vue
src/views/merge-detail.vue
+11
-6
purchase-rezult.vue
src/views/purchase-rezult.vue
+1
-1
question-detail.vue
src/views/question-detail.vue
+29
-20
share-merge-detail.vue
src/views/share-merge-detail.vue
+10
-6
未找到文件。
src/components/question/experience-dialog.vue
浏览文件 @
438dd4c3
<
template
>
<section
class=
"experience-dialog-wrapper"
>
<van-overlay
:show=
"
experience
Dialog"
class=
"v-overlay-q"
>
<van-overlay
:show=
"
show
Dialog"
class=
"v-overlay-q"
>
<section
class=
"loading-wrapper"
>
<article
class=
"content"
>
<img
class=
"img-tips"
src=
"../../images/question/note.png"
alt=
""
>
...
...
@@ -12,7 +12,7 @@
<span
class=
"primary"
@
click=
"buyCard"
>
去购买
</span>
</div>
</article>
<img
class=
"bt-close"
src=
"../../images/question/
close.png"
alt=
""
>
<img
class=
"bt-close"
@
click=
"close"
src=
"../../images/question/dialog-
close.png"
alt=
""
>
</section>
</van-overlay>
</section>
...
...
@@ -20,7 +20,7 @@
<
script
>
export
default
{
props
:
{
experience
Dialog
:
{
show
Dialog
:
{
type
:
Boolean
,
default
:
true
,
},
...
...
@@ -44,6 +44,9 @@ export default {
},
buyCard
()
{
this
.
$emit
(
'buyCard'
);
},
close
()
{
this
.
$emit
(
'close'
);
}
},
}
...
...
src/images/question/dialog-close.png
0 → 100644
浏览文件 @
438dd4c3
869 字节
src/utils/mixins.js
浏览文件 @
438dd4c3
...
...
@@ -215,8 +215,8 @@ module.exports = {
e
.
target
.
src
=
'https://file.yunqueyi.com/File/doctor_default.png'
;
},
//
通用token校验
commonCheckToken
(
noLoggedCallback
)
{
//
校验token,有效则调用回调函数,否则调起原生登陆页面
commonCheckToken
(
cb
)
{
let
param
=
{
token
:
this
.
token
,
setEntry
:
true
...
...
@@ -225,28 +225,24 @@ module.exports = {
if
(
res
.
code
!==
"000000"
)
{
this
.
goLogin
();
}
else
{
noLoggedCallback
&&
noLoggedCallback
()
cb
&&
cb
()
}
});
},
//
通用token校验
c
ommonNativeCheckToken
(
noLoggedCallback
)
{
//
校验token,有效则调用回调函数,否则使用调起原生登陆页面
c
heckTokenForNative
(
cb
)
{
let
param
=
{
token
:
this
.
token
,
setEntry
:
true
};
this
.
GET
(
"campaign/admin/task/checkToken"
,
param
).
then
(
res
=>
{
if
(
res
.
code
!==
"000000"
)
{
this
.
g
oLogin
();
rocNative
.
got
oLogin
();
}
else
{
noLoggedCallback
&&
noLoggedCallback
()
cb
&&
cb
()
}
});
},
// rocNative.gotoLogin();
}
}
src/views/goods-detail.vue
浏览文件 @
438dd4c3
...
...
@@ -428,9 +428,9 @@ export default {
}
return
getWebPageUrl
(
path
);
},
// 绑定项目和订单的关系
// 绑定项目和订单的关系
(idType=1)
createRelation
(
projectId
,
orderId
)
{
this
.
POST
(
`cme/projectCard/correlation/
${
projectId
}
/
${
orderId
}
`
,
{
channel
:
3
}).
then
(
res
=>
{
this
.
POST
(
`cme/projectCard/correlation/
1/
${
projectId
}
/
${
orderId
}
`
,
{
channel
:
3
}).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
//
}
else
{
...
...
src/views/merge-detail.vue
浏览文件 @
438dd4c3
...
...
@@ -394,7 +394,7 @@ export default {
let
param
=
{
setEntry
:
true
};
this
.
GET
(
`cme/projectCard/queryNoUsedCard/
3
`
,
param
).
then
(({
data
})
=>
{
this
.
GET
(
`cme/projectCard/queryNoUsedCard/
${
this
.
project
.
goodsType
}
/
${
this
.
project
.
cardType
}
`
,
param
).
then
(({
data
})
=>
{
this
.
hasNoUsedCard
=
data
.
hasNoUsedCard
;
if
(
data
.
hasNoUsedCard
==
1
)
{
this
.
cmeCardModels
=
data
.
cmeCardModels
[
0
]
||
{};
...
...
@@ -407,8 +407,11 @@ export default {
changeCardAction
(
cardKey
,
isInTips
)
{
let
_this
=
this
;
let
param
=
{
idType
:
1
,
cardKey
:
cardKey
,
cardType
:
3
,
cardType
:
this
.
project
.
cardType
||
3
,
goodsType
:
this
.
project
.
goodsType
||
3
,
channel
:
1
,
portalProjectId
:
this
.
projectId
,
setEntry
:
true
};
...
...
@@ -553,12 +556,14 @@ export default {
getCardInfoByProvinceId
(
provinceId
)
{
let
param
=
{
area
:
provinceId
+
""
,
cardType
:
3
,
pageNum
:
1
,
pageSize
:
1
cardType
:
this
.
project
.
cardType
||
3
,
cardTypeList
:
[
this
.
project
.
cardType
||
3
],
goodsType
:
this
.
project
.
goodsType
,
// pageNum: 1,
// pageSize: 1
};
param
.
setEntry
=
true
;
this
.
POST
(
"trade/goods/cardList"
,
param
).
then
(
res
=>
{
this
.
POST
(
"trade/goods/cardList
_v2
"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
showLoading
=
false
;
this
.
cardInfo
=
(
res
.
data
&&
res
.
data
[
0
])
||
{
id
:
0
,
name
:
"职称考精讲课程卡"
};
...
...
src/views/purchase-rezult.vue
浏览文件 @
438dd4c3
...
...
@@ -114,7 +114,7 @@ export default {
orderId
:
this
.
orderId
,
setEntry
:
true
};
this
.
GET
(
`cme/projectCard/status/
${
this
.
projectId
}
/
${
this
.
orderId
}
`
,
param
).
then
(({
data
})
=>
{
this
.
GET
(
`cme/projectCard/status/
1/
${
this
.
projectId
}
/
${
this
.
orderId
}
`
,
param
).
then
(({
data
})
=>
{
this
.
loading
=
false
;
this
.
bindStatus
=
data
;
// 绑定成功
...
...
src/views/question-detail.vue
浏览文件 @
438dd4c3
...
...
@@ -6,7 +6,7 @@
<no-content
v-show=
"!questionList.length"
:type=
"listType"
></no-content>
</article>
<question-footer></question-footer>
<ExperienceDialog
:
experienceDialog=
"experienceDialog"
@
activeCard=
"activeCard"
@
buyCard=
"buyCard
"
></ExperienceDialog>
<ExperienceDialog
:
showDialog=
"experienceDialog"
@
activeCard=
"activeCard"
@
buyCard=
"buyCard"
@
close=
"experienceDialog = false
"
></ExperienceDialog>
<!-- 去激活 -->
<ChangeCard
...
...
@@ -26,7 +26,7 @@
></CourseDialog>
<Loading
v-show=
"showLoading"
/>
<div
class=
"pt-
6
0"
></div>
<div
class=
"pt-
7
0"
></div>
</section>
</
template
>
<
script
>
...
...
@@ -56,6 +56,9 @@ export default {
data
()
{
return
{
// token: "", // mixns里有
questionBankId
:
""
,
cardType
:
3
,
goodsType
:
3
,
currentTitle
:
"试题集"
,
listType
:
1
,
// 1: 正常做题; 2: 免费体验; 3: 错题集; 4: 收藏夹,
experienceDialog
:
true
,
// 体验弹框
...
...
@@ -84,6 +87,9 @@ export default {
},
created
()
{
let
_this
=
this
;
this
.
questionBankId
=
this
.
$route
.
query
.
questionBankId
||
1
;
this
.
cardType
=
this
.
$route
.
query
.
cardType
||
3
;
this
.
goodsType
=
this
.
$route
.
query
.
goodsType
||
3
;
this
.
listType
=
this
.
$route
.
query
.
listType
||
1
;
this
.
currentTitle
=
this
.
$route
.
query
.
currentTitle
||
this
.
currentTitle
;
this
.
init
();
...
...
@@ -93,7 +99,6 @@ export default {
_this
.
setUserInfo
(
param
);
_this
.
getQuestionList
();
// _this.checkToken();
// _this.getProjectInfoById();
};
if
(
__isWeb
)
{
_this
.
getQuestionList
();
...
...
@@ -145,10 +150,9 @@ export default {
return
;
}
// 直接传入职称考项目ID(projectId)
let
projectId
=
this
.
project
.
projectId
;
// 直接传入题库ID(questionBankId)
let
pageUrl
=
getWebPageUrl
(
`/profexam/#/
index?id=
${
projectId
}
&projectName=
${
this
.
project
.
projectName
}
&profexamProjectId=
${
project
Id
}
`
`/profexam/#/
question-detail?id=
${
this
.
questionBankId
}
&bankName=
${
this
.
bankName
}
&questionBankId=
${
this
.
questionBank
Id
}
`
);
let
paramList
=
[
{
...
...
@@ -167,7 +171,6 @@ export default {
{
key
:
"courseUrl"
,
value
:
encodeURIComponent
(
pageUrl
),
// value: projectId,
type
:
4
,
seqNo
:
1
}
...
...
@@ -187,7 +190,7 @@ export default {
// 激活前
beforeChangeCardAction
(
cardKey
,
isInTips
)
{
this
.
c
ommonCheckToken
(()
=>
{
this
.
c
heckTokenForNative
(()
=>
{
this
.
changeCardAction
(
cardKey
,
isInTips
);
});
},
...
...
@@ -211,10 +214,12 @@ export default {
changeCardAction
(
cardKey
,
isInTips
)
{
let
_this
=
this
;
let
param
=
{
idType
:
2
,
cardKey
:
cardKey
,
cardType
:
3
,
channel
:
3
,
portalProjectId
:
this
.
projectId
,
cardType
:
this
.
cardType
||
3
,
goodsType
:
this
.
goodsType
||
3
,
channel
:
1
,
portalProjectId
:
this
.
questionBankId
,
setEntry
:
true
};
_this
.
changeCardErrorMsg
=
""
;
...
...
@@ -231,8 +236,9 @@ export default {
}
}
else
{
_this
.
showChangeCard
=
false
;
Toast
(
"激活成功,开始学习"
);
_this
.
getProjectInfoById
();
Toast
(
"激活成功,开始练习"
);
// 重新获取题库内容(从头开始)
// _this.getProjectInfoById();
}
}
else
{
Toast
(
res
.
message
);
...
...
@@ -254,7 +260,7 @@ export default {
let
param
=
{
setEntry
:
true
};
this
.
GET
(
`cme/projectCard/queryNoUsedCard/
3
`
,
param
).
then
(({
data
})
=>
{
this
.
GET
(
`cme/projectCard/queryNoUsedCard/
${
this
.
goodsType
}
/
${
this
.
cardType
}
`
,
param
).
then
(({
data
})
=>
{
this
.
hasNoUsedCard
=
data
.
hasNoUsedCard
;
if
(
data
.
hasNoUsedCard
==
1
)
{
this
.
cmeCardModels
=
data
.
cmeCardModels
[
0
]
||
{};
...
...
@@ -267,13 +273,16 @@ export default {
getCardInfoByProvinceId
(
provinceId
)
{
let
param
=
{
area
:
provinceId
+
""
,
cardType
:
3
,
pageNum
:
1
,
pageSize
:
1
cardType
:
this
.
cardType
||
3
,
cardTypeList
:
[
this
.
cardType
||
3
],
goodsType
:
this
.
goodsType
,
// pageNum: 1,
// pageSize: 1
};
param
.
setEntry
=
true
;
this
.
POST
(
"trade/goods/cardList"
,
param
).
then
(
res
=>
{
this
.
POST
(
"trade/goods/cardList
_v2
"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
showLoading
=
false
;
this
.
cardInfo
=
(
res
.
data
&&
res
.
data
[
0
])
||
{
id
:
0
,
name
:
"职称考精讲课程卡"
};
this
.
subContent
=
`您已购买“
${
this
.
cardInfo
.
goodsName
}
”,是否用此卡绑定并激活当前课程。学习卡激活码一旦使用,不可更改不可退回`
}
...
...
@@ -286,8 +295,8 @@ export default {
<
style
lang=
"less"
scoped
>
.question-detail-wrapper {
padding-top: 68px;
.pt-
6
0 {
padding-bottom:
6
0px;
.pt-
7
0 {
padding-bottom:
7
0px;
}
}
</
style
>
\ No newline at end of file
src/views/share-merge-detail.vue
浏览文件 @
438dd4c3
...
...
@@ -466,7 +466,7 @@ export default {
let
param
=
{
setEntry
:
true
};
this
.
GET
(
`cme/projectCard/queryNoUsedCard/
3
`
,
param
).
then
(({
data
})
=>
{
this
.
GET
(
`cme/projectCard/queryNoUsedCard/
${
this
.
project
.
goodsType
}
/
${
this
.
project
.
cardType
}
`
,
param
).
then
(({
data
})
=>
{
this
.
hasNoUsedCard
=
data
.
hasNoUsedCard
;
if
(
data
.
hasNoUsedCard
==
1
)
{
this
.
cmeCardModels
=
data
.
cmeCardModels
[
0
]
||
{};
...
...
@@ -479,8 +479,10 @@ export default {
changeCardAction
(
cardKey
,
isInTips
)
{
let
_this
=
this
;
let
param
=
{
idType
:
1
,
cardKey
:
cardKey
,
cardType
:
3
,
cardType
:
this
.
project
.
cardType
||
3
,
goodsType
:
this
.
project
.
goodsType
||
3
,
channel
:
3
,
portalProjectId
:
this
.
projectId
,
setEntry
:
true
...
...
@@ -539,12 +541,14 @@ export default {
getCardInfoByProvinceId
(
provinceId
)
{
let
param
=
{
area
:
provinceId
+
""
,
cardType
:
3
,
pageNum
:
1
,
pageSize
:
1
cardType
:
this
.
project
.
cardType
||
3
,
cardTypeList
:
[
this
.
project
.
cardType
||
3
],
goodsType
:
this
.
project
.
goodsType
,
// pageNum: 1,
// pageSize: 1
};
param
.
setEntry
=
true
;
this
.
POST
(
"trade/goods/cardList"
,
param
).
then
(
res
=>
{
this
.
POST
(
"trade/goods/cardList
_v2
"
,
param
).
then
(
res
=>
{
if
(
res
.
code
==
"000000"
)
{
this
.
showLoading
=
false
;
this
.
cardInfo
=
(
res
.
data
&&
res
.
data
[
0
])
||
{
id
:
0
,
name
:
"职称考精讲课程卡"
};
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录