Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
X
x-training-new
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
x-training-new
Commits
993fe835
提交
993fe835
authored
10月 13, 2021
作者:
lihuihui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 修改bug
上级
dbd6d201
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
35 行增加
和
22 行删除
+35
-22
DouYin.vue
src/modules/market-tools/components/DouYin.vue
+26
-16
Report.vue
src/modules/product-analysis/components/Report.vue
+7
-4
Result.vue
src/modules/product-analysis/views/Result.vue
+2
-2
没有找到文件。
src/modules/market-tools/components/DouYin.vue
浏览文件 @
993fe835
...
@@ -44,14 +44,14 @@
...
@@ -44,14 +44,14 @@
</div>
</div>
<div
class=
"step-content1 step-content3"
v-show=
"stepsIndex === 2"
>
<div
class=
"step-content1 step-content3"
v-show=
"stepsIndex === 2"
>
<div
class=
"video-box"
>
<div
class=
"video-box"
>
<div
class=
"dy-box"
v-if=
"
!dataIndex
"
>
<div
class=
"dy-box"
v-if=
"
dataIndex == 4
"
>
<img
src=
"https://webapp-pub.ezijing.com/x-training-new/dy-bg.png"
/>
<img
src=
"https://webapp-pub.ezijing.com/x-training-new/dy-bg.png"
/>
<div
class=
"works-title"
>
{{
form
.
title
}}
</div>
<div
class=
"works-title"
>
{{
form
.
title
}}
</div>
<div
class=
"works-dec"
>
{{
form
.
dec
}}
</div>
<div
class=
"works-dec"
>
{{
form
.
dec
}}
</div>
<video
:src=
"form.url"
width=
"375px"
class=
"video"
></video>
<video
:src=
"form.url"
width=
"375px"
class=
"video"
></video>
</div>
</div>
<div
class=
"register-step"
v-else
>
<div
class=
"register-step"
v-else
>
<img
:src=
"`https://webapp-pub.ezijing.com/x-training-new/data$
{dataIndex}.jpg`" />
<img
:src=
"`https://webapp-pub.ezijing.com/x-training-new/data$
{dataIndex
+ 1
}.jpg`" />
</div>
</div>
<div
class=
"register-btn"
ref=
"dataBtn"
@
click=
"dataNext"
></div>
<div
class=
"register-btn"
ref=
"dataBtn"
@
click=
"dataNext"
></div>
</div>
</div>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</div>
</div>
<div
class=
"mian-btn"
>
<div
class=
"mian-btn"
>
<el-button
type=
"primary"
@
click=
"cacheReport(1)"
v-if=
"$route.query.type != 1"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"cacheReport(1)"
v-if=
"$route.query.type != 1"
>
保存
</el-button>
<el-button
type=
"primary"
@
click=
"
stepsIndex--
"
v-if=
"stepsIndex != 0"
>
上一步
</el-button>
<el-button
type=
"primary"
@
click=
"
prevBtn
"
v-if=
"stepsIndex != 0"
>
上一步
</el-button>
<el-button
v-if=
"stepsIndex == 0"
type=
"primary"
@
click=
"registerNextBtn"
>
下一步
</el-button>
<el-button
v-if=
"stepsIndex == 0"
type=
"primary"
@
click=
"registerNextBtn"
>
下一步
</el-button>
<el-button
v-if=
"stepsIndex == 1"
type=
"primary"
@
click=
"formNextBtn"
>
下一步
</el-button>
<el-button
v-if=
"stepsIndex == 1"
type=
"primary"
@
click=
"formNextBtn"
>
下一步
</el-button>
<el-button
type=
"primary"
@
click=
"submitReport"
v-if=
"stepsIndex == 2 && $route.query.type != 1"
>
完成
</el-button>
<el-button
type=
"primary"
@
click=
"submitReport"
v-if=
"stepsIndex == 2 && $route.query.type != 1"
>
完成
</el-button>
...
@@ -93,13 +93,19 @@ export default {
...
@@ -93,13 +93,19 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
query
.
type
)
{
if
(
parseInt
(
this
.
$route
.
query
.
type
)
)
{
this
.
getReportDetail
(
this
.
$route
.
query
.
id
)
this
.
getReportDetail
(
this
.
$route
.
query
.
id
)
}
else
{
}
else
{
this
.
checkRecord
()
this
.
checkRecord
()
}
}
},
},
methods
:
{
methods
:
{
prevBtn
()
{
this
.
stepsIndex
--
if
(
this
.
stepsIndex
===
0
)
{
this
.
registerNext
(
1
)
}
},
// 验证是否有未完成的答题记录
// 验证是否有未完成的答题记录
checkRecord
()
{
checkRecord
()
{
checkRecord
(
this
.
cases
.
id
,
2
)
checkRecord
(
this
.
cases
.
id
,
2
)
...
@@ -115,7 +121,6 @@ export default {
...
@@ -115,7 +121,6 @@ export default {
}
else
{
}
else
{
if
(
this
.
registerIndex
===
4
)
{
if
(
this
.
registerIndex
===
4
)
{
this
.
stepsIndex
++
this
.
stepsIndex
++
this
.
cacheReport
()
// this.registerIndex = 0
// this.registerIndex = 0
}
else
{
}
else
{
this
.
$message
({
message
:
'请完成当前步骤'
,
type
:
'warning'
})
this
.
$message
({
message
:
'请完成当前步骤'
,
type
:
'warning'
})
...
@@ -131,11 +136,13 @@ export default {
...
@@ -131,11 +136,13 @@ export default {
})
})
if
(
isNull
===
-
1
)
{
if
(
isNull
===
-
1
)
{
this
.
stepsIndex
++
this
.
stepsIndex
++
this
.
cacheReport
()
}
else
{
}
else
{
this
.
$message
({
message
:
'请在发布视频完善信息'
,
type
:
'warning'
})
this
.
$message
({
message
:
'请在发布视频完善信息'
,
type
:
'warning'
})
}
}
}
}
if
(
this
.
stepsIndex
===
2
)
{
this
.
dataNext
(
1
)
}
},
},
// 提交报告
// 提交报告
submitReport
()
{
submitReport
()
{
...
@@ -146,7 +153,7 @@ export default {
...
@@ -146,7 +153,7 @@ export default {
this
.
$message
({
message
:
'请在发布视频完善信息'
,
type
:
'warning'
})
this
.
$message
({
message
:
'请在发布视频完善信息'
,
type
:
'warning'
})
return
false
return
false
}
}
if
(
this
.
dataIndex
!==
4
)
{
if
(
this
.
dataIndex
!==
3
)
{
this
.
$message
({
message
:
'请完成当前步骤'
,
type
:
'warning'
})
this
.
$message
({
message
:
'请完成当前步骤'
,
type
:
'warning'
})
return
false
return
false
}
}
...
@@ -200,25 +207,28 @@ export default {
...
@@ -200,25 +207,28 @@ export default {
this
.
form
.
title
=
cachData
[
0
].
title
this
.
form
.
title
=
cachData
[
0
].
title
this
.
form
.
dec
=
cachData
[
0
].
dec
this
.
form
.
dec
=
cachData
[
0
].
dec
this
.
form
.
url
=
cachData
[
0
].
url
this
.
form
.
url
=
cachData
[
0
].
url
// this.stepsIndex = cachData[1].steps
})
})
},
},
// 查看营销数据教程
// 查看营销数据教程
dataNext
(
num
)
{
dataNext
(
num
)
{
console
.
log
(
this
.
dataIndex
,
'123=123'
)
const
styles
=
{
const
styles
=
{
1
:
{
w
:
'50px'
,
t
:
'30px'
,
l
:
'320px'
,
text
:
'第二步:点击右上角,进入菜单'
},
0
:
{
w
:
'50px'
,
t
:
'30px'
,
l
:
'320px'
,
text
:
'第二步:点击右上角,进入菜单'
},
2
:
{
w
:
'200px'
,
t
:
'300px'
,
l
:
'100px'
,
text
:
'第三步:点击”创作者服务中心“'
},
1
:
{
w
:
'200px'
,
t
:
'300px'
,
l
:
'100px'
,
text
:
'第三步:点击”创作者服务中心“'
},
3
:
{
w
:
'50px'
,
t
:
'190px'
,
l
:
'290px'
,
text
:
'第四步:点击”数据中心“'
},
2
:
{
w
:
'50px'
,
t
:
'190px'
,
l
:
'290px'
,
text
:
'第四步:点击”数据中心“'
},
4
:
{
w
:
'0px'
,
t
:
'0px'
,
l
:
'0px'
,
text
:
'完成'
}
3
:
{
w
:
'0px'
,
t
:
'0px'
,
l
:
'0px'
,
text
:
'完成'
}
}
}
let
getStyle
=
''
if
(
num
!==
1
)
{
if
(
num
!==
1
)
{
if
(
this
.
dataIndex
<
4
)
this
.
dataIndex
++
if
(
this
.
dataIndex
<
3
)
this
.
dataIndex
++
getStyle
=
styles
[
this
.
dataIndex
]
}
else
{
getStyle
=
styles
[
this
.
dataIndex
]
}
}
const
getStyle
=
styles
[
this
.
dataIndex
]
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
const
getDom
=
this
.
$refs
.
dataBtn
.
style
const
getDom
=
this
.
$refs
.
dataBtn
.
style
this
.
setStyle
(
getStyle
,
getDom
)
this
.
setStyle
(
getStyle
,
getDom
)
}
,
1000
)
})
},
},
// 注册教程
// 注册教程
registerNext
(
num
)
{
registerNext
(
num
)
{
...
@@ -235,7 +245,7 @@ export default {
...
@@ -235,7 +245,7 @@ export default {
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
const
getDom
=
this
.
$refs
.
registerBtn
.
style
const
getDom
=
this
.
$refs
.
registerBtn
.
style
this
.
setStyle
(
getStyle
,
getDom
)
this
.
setStyle
(
getStyle
,
getDom
)
}
,
1000
)
})
},
},
setStyle
(
sty
,
dom
)
{
setStyle
(
sty
,
dom
)
{
dom
.
width
=
sty
.
w
dom
.
width
=
sty
.
w
...
...
src/modules/product-analysis/components/Report.vue
浏览文件 @
993fe835
...
@@ -130,7 +130,7 @@ export default {
...
@@ -130,7 +130,7 @@ export default {
})
})
},
},
// 模板 数据回显
// 模板 数据回显
caseComp
le
tions
(
id
)
{
caseComp
el
tions
(
id
)
{
caseCompletions
(
id
).
then
(
res
=>
{
caseCompletions
(
id
).
then
(
res
=>
{
res
.
data
.
items
.
map
(
item
=>
{
res
.
data
.
items
.
map
(
item
=>
{
return
item
.
completions
.
map
(
cItem
=>
{
return
item
.
completions
.
map
(
cItem
=>
{
...
@@ -159,11 +159,11 @@ export default {
...
@@ -159,11 +159,11 @@ export default {
if
(
id
)
{
if
(
id
)
{
getCommitCase
(
id
).
then
(
res
=>
{
getCommitCase
(
id
).
then
(
res
=>
{
this
.
resultCompletions
=
res
.
data
.
detail
this
.
resultCompletions
=
res
.
data
.
detail
this
.
caseComp
le
tions
(
this
.
cases
.
id
)
this
.
caseComp
el
tions
(
this
.
cases
.
id
)
this
.
$emit
(
'getScore'
,
this
.
resultCompletions
)
this
.
$emit
(
'getScore'
,
this
.
resultCompletions
)
})
})
}
else
{
}
else
{
this
.
caseComp
le
tions
(
this
.
cases
.
id
)
this
.
caseComp
el
tions
(
this
.
cases
.
id
)
}
}
},
},
input
()
{
input
()
{
...
@@ -253,7 +253,10 @@ export default {
...
@@ -253,7 +253,10 @@ export default {
type
:
'success'
type
:
'success'
})
})
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
$router
.
push
({
path
:
'/product-analysis/result'
,
query
:
{
id
:
res
.
data
.
answers
.
id
}
})
this
.
$router
.
push
({
path
:
'/product-analysis/result'
,
query
:
{
id
:
res
.
data
.
id
||
this
.
$route
.
query
.
id
}
})
},
2000
)
},
2000
)
})
})
.
catch
(
err
=>
{
.
catch
(
err
=>
{
...
...
src/modules/product-analysis/views/Result.vue
浏览文件 @
993fe835
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<div
class=
"trophy-box"
>
<div
class=
"trophy-box"
>
<img
src=
"https://webapp-pub.ezijing.com/x-training-new/trophy.png"
/>
<img
src=
"https://webapp-pub.ezijing.com/x-training-new/trophy.png"
/>
<div
class=
"text"
>
<div
class=
"text"
>
你的得分是
<span>
{{
score
}}
</span
你的得分是
<span>
{{
parseInt
(
score
)
}}
</span
>
分
>
分
</div>
</div>
</div>
</div>
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<div
class=
"tit"
>
错题解析
</div>
<div
class=
"tit"
>
错题解析
</div>
<ul>
<ul>
<li
v-for=
"(item, index) in answerList"
:key=
"index"
>
<li
v-for=
"(item, index) in answerList"
:key=
"index"
>
<div
class=
"title"
>
{{
`${index + 1
}
.${item.subject
}
`
}}
:(分值:
{{
item
.
sum_score
}}
)
<
/div
>
<div
class=
"title"
>
{{
`${index + 1
}
.${item.subject
}
`
}}
:(分值:
{{
parseInt
(
item
.
sum_score
)
}}
)
<
/div
>
<
div
class
=
"my"
>
我的答案:
{{
item
.
commit_answer
}}
<
/div
>
<
div
class
=
"my"
>
我的答案:
{{
item
.
commit_answer
}}
<
/div
>
<
div
class
=
"answer"
>
正确答案:
{{
item
.
answer
}}
<
/div
>
<
div
class
=
"answer"
>
正确答案:
{{
item
.
answer
}}
<
/div
>
<
/li
>
<
/li
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论