Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-register-show-h5
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-register-show-h5
Commits
455a498e
提交
455a498e
authored
3月 23, 2022
作者:
matian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
代码提交
上级
b763e22a
隐藏空白字符变更
内嵌
并排
正在显示
10 个修改的文件
包含
264 行增加
和
97 行删除
+264
-97
.env
.env
+1
-1
.env.dev
.env.dev
+1
-1
.env.test
.env.test
+1
-1
SignForm.vue
src/modules/home/components/SignForm.vue
+18
-12
Index.vue
src/modules/home/views/Index.vue
+7
-0
MyOrder.vue
src/modules/home/views/MyOrder.vue
+3
-5
OrderConfirm.vue
src/modules/home/views/OrderConfirm.vue
+7
-11
PayDetail.vue
src/modules/home/views/PayDetail.vue
+39
-15
SignMainPage copy.vue
src/modules/home/views/SignMainPage copy.vue
+132
-0
SignMainPage.vue
src/modules/home/views/SignMainPage.vue
+55
-51
没有找到文件。
.env
浏览文件 @
455a498e
VITE_LOGIN_URL=https://login.ezijing.com/
auth
/login/index
VITE_LOGIN_URL=https://login.ezijing.com/
highway
/login/index
VITE_SHARE_URL=https://accounts.ezijing.com
VITE_SHARE_URL=https://accounts.ezijing.com
.env.dev
浏览文件 @
455a498e
VITE_LOGIN_URL=https://login.ezijing.com/
auth
/login/index
VITE_LOGIN_URL=https://login.ezijing.com/
highway
/login/index
VITE_SHARE_URL=https://accounts.ezijing.com
VITE_SHARE_URL=https://accounts.ezijing.com
.env.test
浏览文件 @
455a498e
VITE_LOGIN_URL
=
https
://
login
.
ezijing
.
com
/
auth
/
login
/
index
VITE_LOGIN_URL
=
https
://
login
.
ezijing
.
com
/
highway
/
login
/
index
VITE_SHARE_URL
=
https
://
accounts
.
ezijing
.
com
VITE_SHARE_URL
=
https
://
accounts
.
ezijing
.
com
src/modules/home/components/SignForm.vue
浏览文件 @
455a498e
...
@@ -122,7 +122,8 @@ export default {
...
@@ -122,7 +122,8 @@ export default {
},
},
myInfoList
:
{
myInfoList
:
{
type
:
Array
type
:
Array
}
},
order_join_rand
:
{
type
:
String
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -138,12 +139,16 @@ export default {
...
@@ -138,12 +139,16 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
console
.
log
(
this
.
stepList
,
'stepList'
)
console
.
log
(
this
.
data
,
'data'
)
const
orderInfoList
=
this
.
$route
.
query
.
activity_detail_list
// 点击我的订单也去支付,返回来拿到的表单数据
const
orderInfoList
=
this
.
$route
.
query
.
activity_detail_list
// 点击我的订单也去支付,返回来拿到的表单数据
console
.
log
(
orderInfoList
,
'orderInfoList'
)
const
userFields
=
JSON
.
parse
(
this
.
stepList
[
this
.
stepIndex
].
user_fields
)
const
userFields
=
JSON
.
parse
(
this
.
stepList
[
this
.
stepIndex
].
user_fields
)
console
.
log
(
this
.
$route
.
query
.
activity_detail_id
,
'0000'
)
if
(
this
.
$route
.
query
.
activity_detail_id
)
{
if
(
this
.
$route
.
query
.
activity_detail_id
)
{
if
(
!
orderInfoList
.
length
)
{
if
(
orderInfoList
!==
undefined
)
{
this
.
handleAdd
()
this
.
handleAdd
()
return
}
}
// eslint-disable-next-line vue/no-mutating-props
// eslint-disable-next-line vue/no-mutating-props
// 订单拿回的数据回显
// 订单拿回的数据回显
...
@@ -165,6 +170,7 @@ export default {
...
@@ -165,6 +170,7 @@ export default {
return
a
return
a
},
[])
},
[])
}
else
{
}
else
{
console
.
log
(
this
.
myInfoList
,
'this.myInfoList'
)
// 详情拿回的数据回显
// 详情拿回的数据回显
if
(
!
this
.
myInfoList
.
length
)
{
if
(
!
this
.
myInfoList
.
length
)
{
this
.
handleAdd
()
this
.
handleAdd
()
...
@@ -212,15 +218,14 @@ export default {
...
@@ -212,15 +218,14 @@ export default {
})
})
result
.
push
(
resultObj
)
result
.
push
(
resultObj
)
})
})
console
.
log
(
this
.
detailList
.
self_fill_in
.
list
[
0
])
if
(
this
.
d
etailList
.
other_fill_in
?.
list
.
length
)
{
if
(
this
.
d
ata
.
id
===
this
.
detailList
.
other_fill_in
.
list
[
0
]?.
pay_records
.
activity_detail_id
)
{
this
.
join_rand
=
this
.
detailList
.
self_fill_in
.
list
[
0
]?.
pay_records
[
0
]
.
join_rand
this
.
join_rand
=
this
.
detailList
.
other_fill_in
.
list
[
0
]?.
pay_records
.
join_rand
}
else
if
(
this
.
d
etailList
.
self_fill_in
?.
list
.
length
)
{
}
else
if
(
this
.
d
ata
.
id
===
this
.
detailList
.
self_fill_in
.
list
[
0
]?.
pay_records
.
activity_detail_id
)
{
this
.
join_rand
=
this
.
detailList
.
self_fill_in
.
list
[
0
]?.
pay_records
[
0
]
.
join_rand
this
.
join_rand
=
this
.
detailList
.
self_fill_in
.
list
[
0
]?.
pay_records
.
join_rand
}
else
{
}
else
{
this
.
join_rand
=
''
this
.
join_rand
=
this
.
order_join_rand
||
''
}
}
console
.
log
(
this
.
join_rand
)
const
params
=
{
const
params
=
{
activity_id
:
this
.
data
.
activity_id
,
activity_id
:
this
.
data
.
activity_id
,
activity_detail_id
:
this
.
data
.
id
,
activity_detail_id
:
this
.
data
.
id
,
...
@@ -250,7 +255,7 @@ export default {
...
@@ -250,7 +255,7 @@ export default {
// stepOrderInfo: JSON.stringify(this.stepOrderInfo),
// stepOrderInfo: JSON.stringify(this.stepOrderInfo),
detailListName
:
JSON
.
stringify
(
this
.
detailList
.
activity
.
name
),
detailListName
:
JSON
.
stringify
(
this
.
detailList
.
activity
.
name
),
activityId
:
JSON
.
stringify
(
this
.
data
.
activity_id
),
activityId
:
JSON
.
stringify
(
this
.
data
.
activity_id
),
join_rand
:
this
.
join_rand
,
join_rand
:
this
.
stepOrderInfo
.
list
[
0
].
pay_record
.
join_rand
,
stepIndex
:
JSON
.
stringify
(
this
.
stepIndex
),
stepIndex
:
JSON
.
stringify
(
this
.
stepIndex
),
activity_detail_id
:
this
.
data
.
id
,
activity_detail_id
:
this
.
data
.
id
,
pay_price
:
JSON
.
stringify
(
this
.
stepOrderInfo
.
pay_price
)
pay_price
:
JSON
.
stringify
(
this
.
stepOrderInfo
.
pay_price
)
...
@@ -266,6 +271,7 @@ export default {
...
@@ -266,6 +271,7 @@ export default {
},
},
// 表单项增加
// 表单项增加
handleAdd
()
{
handleAdd
()
{
console
.
log
(
'000'
,
'0000'
)
const
userFields
=
JSON
.
parse
(
this
.
data
.
user_fields
).
concat
()
const
userFields
=
JSON
.
parse
(
this
.
data
.
user_fields
).
concat
()
const
allUserFields
=
userFields
.
reduce
((
a
,
b
)
=>
{
const
allUserFields
=
userFields
.
reduce
((
a
,
b
)
=>
{
const
data
=
allFormList
.
find
(
item
=>
item
.
key
===
b
.
key
)
const
data
=
allFormList
.
find
(
item
=>
item
.
key
===
b
.
key
)
...
@@ -327,7 +333,7 @@ export default {
...
@@ -327,7 +333,7 @@ export default {
padding
:
0
.21rem
0
.3rem
4
.13rem
0
.3rem
;
padding
:
0
.21rem
0
.3rem
4
.13rem
0
.3rem
;
.main_content_banner
{
.main_content_banner
{
margin-top
:
0
.84rem
;
margin-top
:
0
.84rem
;
width
:
6
.9rem
;
width
:
100%
;
// height: 2.97rem;
// height: 2.97rem;
// border: 1px solid #707070;
// border: 1px solid #707070;
// border-radius: 0.2rem;
// border-radius: 0.2rem;
...
...
src/modules/home/views/Index.vue
浏览文件 @
455a498e
...
@@ -240,9 +240,16 @@ export default {
...
@@ -240,9 +240,16 @@ export default {
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
.activity_list_top_tit
{
.activity_list_top_tit
{
width
:
3
.2rem
;
font-size
:
0
.28rem
;
font-size
:
0
.28rem
;
font-weight
:
400
;
font-weight
:
400
;
color
:
#333333
;
color
:
#333333
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
-o-text-overflow
:
ellipsis
;
-webkit-text-overflow
:
ellipsis
;
-moz-text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
.activity_list_top_date
{
.activity_list_top_date
{
font-size
:
0
.22rem
;
font-size
:
0
.22rem
;
...
...
src/modules/home/views/MyOrder.vue
浏览文件 @
455a498e
...
@@ -7,10 +7,7 @@
...
@@ -7,10 +7,7 @@
<van-tab
v-for=
"(it, index) in orderTab"
:key=
"index"
:title=
"it.title"
>
<van-tab
v-for=
"(it, index) in orderTab"
:key=
"index"
:title=
"it.title"
>
<div
v-if=
"getDataByType(it.type).length"
class=
"main_content_ticket"
>
<div
v-if=
"getDataByType(it.type).length"
class=
"main_content_ticket"
>
<a
href=
"https://accounts.ezijing.com/h5/payment"
>
<a
href=
"https://accounts.ezijing.com/h5/payment"
>
<van-button
<van-button
round
icon=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/highway/h5/ticket.png"
>
round
icon=
"https://webapp-pub.oss-cn-beijing.aliyuncs.com/highway/h5/ticket.png"
>
开发票
开发票
</van-button>
</van-button>
</a>
</a>
...
@@ -101,7 +98,8 @@ export default {
...
@@ -101,7 +98,8 @@ export default {
query
:
{
query
:
{
activityId
:
item
.
list
[
0
].
activity_id
,
activityId
:
item
.
list
[
0
].
activity_id
,
activity_detail_id
:
item
.
list
[
0
].
pay_record
.
activity_detail_id
,
activity_detail_id
:
item
.
list
[
0
].
pay_record
.
activity_detail_id
,
activity_detail_list
:
item
.
list
activity_detail_list
:
item
.
list
,
join_rand
:
item
.
join_rand
}
}
})
})
}
}
...
...
src/modules/home/views/OrderConfirm.vue
浏览文件 @
455a498e
...
@@ -84,16 +84,13 @@ export default {
...
@@ -84,16 +84,13 @@ export default {
stepIndex
()
{
stepIndex
()
{
return
JSON
.
parse
(
this
.
$route
.
query
.
stepIndex
)
return
JSON
.
parse
(
this
.
$route
.
query
.
stepIndex
)
}
}
// disabledList() {
// return this.stepOrderInfo.map(item => item.pay_record.pay_status === '1')
// }
},
},
mounted
()
{
mounted
()
{
this
.
stepOrderInfo
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'stepOrderInfo'
))
this
.
stepOrderInfo
=
JSON
.
parse
(
window
.
localStorage
.
getItem
(
'stepOrderInfo'
))
},
},
methods
:
{
methods
:
{
checkItem
()
{
checkItem
()
{
if
(
this
.
selctOrderData
.
length
===
this
.
stepOrderInfo
.
length
)
{
if
(
this
.
selctOrderData
.
length
===
this
.
stepOrderInfo
.
filter
(
item
=>
item
.
pay_record
.
pay_status
!==
'1'
).
length
)
{
this
.
isAll
=
true
this
.
isAll
=
true
}
else
{
}
else
{
this
.
isAll
=
false
this
.
isAll
=
false
...
@@ -114,14 +111,13 @@ export default {
...
@@ -114,14 +111,13 @@ export default {
this
.
$refs
.
checkboxGroup
.
toggleAll
(
this
.
isAll
)
this
.
$refs
.
checkboxGroup
.
toggleAll
(
this
.
isAll
)
},
},
onSubmit
()
{
onSubmit
()
{
if
(
this
.
selctOrderData
.
length
&&
this
.
totalPrice
===
0
)
{
//
if (this.selctOrderData.length && this.totalPrice === 0) {
this
.
$router
.
push
(
'/'
)
//
this.$router.push('/')
}
else
{
//
} else {
this
.
getPayDetail
()
this
.
getPayDetail
()
}
//
}
},
},
getPayDetail
()
{
getPayDetail
()
{
console
.
log
(
this
.
stepOrderInfo
.
list
)
if
(
this
.
stepOrderInfo
.
length
)
{
if
(
this
.
stepOrderInfo
.
length
)
{
this
.
stepOrderInfo
.
forEach
((
item
,
index
)
=>
{
this
.
stepOrderInfo
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
pay_record
.
pay_status
===
'1'
)
{
if
(
item
.
pay_record
.
pay_status
===
'1'
)
{
...
@@ -157,7 +153,7 @@ export default {
...
@@ -157,7 +153,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.main
{
.main
{
background-color
:
#f7f7f7
;
background-color
:
#f7f7f7
;
//
height: 100vh;
height
:
100vh
;
.main_content
{
.main_content
{
padding
:
0
.51rem
0
.3rem
0
.3rem
0
.3rem
;
padding
:
0
.51rem
0
.3rem
0
.3rem
0
.3rem
;
margin-top
:
0
.9rem
;
margin-top
:
0
.9rem
;
...
...
src/modules/home/views/PayDetail.vue
浏览文件 @
455a498e
...
@@ -24,13 +24,19 @@
...
@@ -24,13 +24,19 @@
</div>
</div>
<div
class=
"main_btn"
>
<div
class=
"main_btn"
>
<van-button
<van-button
class=
"main_btn_home"
round
round
class=
"main_btn_order"
@
click=
"$router.push('/')"
@
click=
"$router.push('/')"
v-if=
"
parseInt(this.detailList.activity.details.slice(-1).id)
=== parseInt(this.activity_detail_id)"
v-if=
"
lastStepId
=== parseInt(this.activity_detail_id)"
>
首页
</van-button
>
首页
</van-button
>
>
<van-button
round
class=
"main_btn_home"
@
click=
"getActivityDetail"
v-else
>
继续报名
</van-button>
<van-button
round
class=
"main_btn_home"
@
click=
"continueSign"
v-if=
"lastStepId !== parseInt(this.activity_detail_id) && this.status === 1"
>
继续报名
</van-button
>
<van-button
round
class=
"main_btn_order"
@
click=
"$router.push('/MyOrder')"
>
我的订单
</van-button>
<van-button
round
class=
"main_btn_order"
@
click=
"$router.push('/MyOrder')"
>
我的订单
</van-button>
</div>
</div>
...
@@ -59,7 +65,8 @@ export default {
...
@@ -59,7 +65,8 @@ export default {
status
:
''
,
// 支付状态
status
:
''
,
// 支付状态
time
:
null
,
time
:
null
,
detailList
:
{},
detailList
:
{},
activity_detail_id
:
''
activity_detail_id
:
''
,
lastStepId
:
''
}
}
},
},
computed
:
{
computed
:
{
...
@@ -113,17 +120,33 @@ export default {
...
@@ -113,17 +120,33 @@ export default {
const
params
=
{
id
:
this
.
$route
.
query
.
activityId
}
const
params
=
{
id
:
this
.
$route
.
query
.
activityId
}
getActivityDetail
(
params
).
then
(
res
=>
{
getActivityDetail
(
params
).
then
(
res
=>
{
this
.
detailList
=
res
.
data
this
.
detailList
=
res
.
data
if
(
parseInt
(
this
.
detailList
.
activity
.
details
.
slice
(
-
1
).
id
)
===
parseInt
(
this
.
activity_detail_id
))
{
this
.
lastStepId
=
this
.
detailList
.
activity
.
details
.
slice
(
-
1
).
id
console
.
log
(
'1111tohome'
)
const
currentStep
=
this
.
detailList
.
activity
.
details
.
find
(
item
=>
item
.
id
===
this
.
activity_detail_id
)
this
.
$router
.
push
(
'/'
)
console
.
log
(
currentStep
,
'currentStep'
)
}
else
{
if
(
res
.
data
.
status
===
1
&&
currentStep
.
can_jump
===
1
)
{
console
.
log
(
this
.
$route
.
query
.
activityId
,
'this.$route.query.activityId'
,
'来了'
)
window
.
open
(
currentStep
.
jump_url
)
this
.
$router
.
push
({
}
path
:
'SignMainPage'
,
// if (res.data.status === 1 || item) {
query
:
{
// if (parseInt(this.detailList.activity.details.slice(-1).id) === parseInt(this.activity_detail_id)) {
activityId
:
this
.
$route
.
query
.
activityId
// console.log('1111tohome')
}
// this.$router.push('/')
})
// } else {
// console.log(this.$route.query.activityId, 'this.$route.query.activityId', '来了')
// this.$router.push({
// path: 'SignMainPage',
// query: {
// activityId: this.$route.query.activityId
// }
// })
// }
// }
})
},
continueSign
()
{
this
.
$router
.
push
({
path
:
'SignMainPage'
,
query
:
{
activityId
:
this
.
$route
.
query
.
activityId
}
}
})
})
}
}
...
@@ -132,6 +155,7 @@ export default {
...
@@ -132,6 +155,7 @@ export default {
clearInterval
(
this
.
time
)
clearInterval
(
this
.
time
)
},
},
mounted
()
{
mounted
()
{
this
.
getActivityDetail
()
clearInterval
(
this
.
time
)
clearInterval
(
this
.
time
)
this
.
time
=
setInterval
(()
=>
{
this
.
time
=
setInterval
(()
=>
{
this
.
getPayStatus
()
this
.
getPayStatus
()
...
...
src/modules/home/views/SignMainPage copy.vue
0 → 100644
浏览文件 @
455a498e
<
template
>
<div
class=
"main"
>
<commonheader
@
back=
"handlePrev"
:callBack=
"true"
:title=
"title"
/>
<!-- 展示 -->
<template
v-if=
"Object.keys(stepList).length"
>
<img-show
:stepList=
"stepList"
:data=
"setpItem"
@
prev=
"handlePrev"
@
next=
"handleNext"
v-if=
"setpItem.type === 1"
/>
<!-- 表单 -->
<sign-form
:myInfoList=
"myInfoList"
:personalInfo=
"detailList.info"
:data=
"setpItem"
:stepList=
"stepList"
:stepIndex=
"stepIndex"
@
prev=
"handlePrev"
@
next=
"handleNext"
v-if=
"setpItem.type === 2"
:isShowSkip=
"isShowSkip"
:detailList=
"detailList"
:order_join_rand=
"$route.query.join_rand"
/>
</
template
>
</div>
</template>
<
script
>
import
SignForm
from
'../components/SignForm.vue'
import
ImgShow
from
'../components/ImgShow.vue'
import
Commonheader
from
'../components/Commonheader.vue'
import
{
getActivityDetail
}
from
'../api'
export
default
{
components
:
{
SignForm
,
ImgShow
,
Commonheader
},
data
()
{
return
{
title
:
'报名主页面'
,
stepIndex
:
0
,
isShowSkip
:
''
,
stepList
:
[],
detailList
:
{
info
:
{}
}
}
},
computed
:
{
setpItem
()
{
if
(
this
.
$route
.
query
.
stepIndex
)
{
return
this
.
stepList
[
this
.
$route
.
query
.
stepIndex
]
}
else
{
return
this
.
stepList
[
this
.
stepIndex
]
}
}
},
mounted
()
{
this
.
activity_detail_id
=
this
.
$route
.
query
.
activity_detail_id
this
.
getActivityDetail
()
},
methods
:
{
// 获取活动详情
getActivityDetail
()
{
const
params
=
{
id
:
this
.
$route
.
query
.
id
||
this
.
$route
.
query
.
activityId
}
getActivityDetail
(
params
).
then
(
res
=>
{
this
.
detailList
=
res
.
data
this
.
myInfoList
=
res
.
data
.
other_fill_in
.
list
// console.log(this.detailList.activity.details.slice(-1), '0000')
if
(
this
.
detailList
.
other_fill_in
.
need_fill_in_status
)
{
this
.
detailList
.
activity
.
details
.
forEach
(
item
=>
{
if
(
item
.
id
===
this
.
detailList
.
other_fill_in
.
need_fill_in_id
)
{
const
details
=
this
.
detailList
.
activity
.
details
.
indexOf
(
item
)
console
.
log
(
details
,
'111'
)
if
(
details
===
0
)
{
this
.
stepList
=
res
.
data
.
activity
.
details
console
.
log
(
this
.
stepList
,
'1'
)
}
else
if
(
details
>
0
)
{
console
.
log
(
details
,
'details'
)
this
.
stepList
=
this
.
detailList
.
activity
.
details
.
splice
(
details
)
console
.
log
(
this
.
stepList
,
'2'
)
}
}
})
}
else
{
if
(
this
.
detailList
.
self_fill_in
.
need_fill_in_status
)
{
this
.
detailList
.
activity
.
details
.
forEach
(
item
=>
{
if
(
item
.
id
===
this
.
detailList
.
self_fill_in
.
need_fill_in_id
)
{
const
details
=
this
.
detailList
.
activity
.
details
.
indexOf
(
item
)
console
.
log
(
details
,
'222'
)
if
(
details
===
0
)
{
this
.
stepList
=
res
.
data
.
activity
.
details
console
.
log
(
this
.
stepList
,
'3'
)
}
else
if
(
details
>
0
)
{
console
.
log
(
details
,
'details1'
)
this
.
stepList
=
this
.
detailList
.
activity
.
details
.
splice
(
details
)
console
.
log
(
this
.
stepList
,
'4'
)
}
}
})
}
else
{
this
.
stepList
=
res
.
data
.
activity
.
details
console
.
log
(
this
.
stepList
,
'5'
)
}
}
const
newIndex
=
this
.
stepList
.
findIndex
(
item
=>
{
return
item
.
id
===
this
.
$route
.
query
.
activity_detail_id
})
if
(
this
.
$route
.
query
.
stepIndex
)
{
this
.
stepIndex
=
parseInt
(
this
.
$route
.
query
.
stepIndex
)
}
else
{
this
.
stepIndex
=
newIndex
<
0
?
0
:
newIndex
}
})
},
handlePrev
()
{
if
(
this
.
stepIndex
<=
0
)
{
this
.
$router
.
push
(
'/'
)
}
else
{
this
.
stepIndex
--
}
},
handleNext
()
{
this
.
stepIndex
++
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
></
style
>
src/modules/home/views/SignMainPage.vue
浏览文件 @
455a498e
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
v-if=
"setpItem.type === 2"
v-if=
"setpItem.type === 2"
:isShowSkip=
"isShowSkip"
:isShowSkip=
"isShowSkip"
:detailList=
"detailList"
:detailList=
"detailList"
:order_join_rand=
"$route.query.join_rand"
/>
/>
</
template
>
</
template
>
</div>
</div>
...
@@ -57,64 +58,67 @@ export default {
...
@@ -57,64 +58,67 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
activity_detail_id
=
this
.
$route
.
query
.
activity_detail_id
this
.
activity_detail_id
=
this
.
$route
.
query
.
activity_detail_id
if
(
this
.
$route
.
query
.
isShowSkip
)
{
this
.
isShowSkip
=
this
.
$route
.
query
.
isShowSkip
}
else
{
this
.
isShowSkip
=
''
}
this
.
getActivityDetail
()
this
.
getActivityDetail
()
},
},
methods
:
{
methods
:
{
// 获取活动详情
// 获取活动详情
getActivityDetail
()
{
getActivityDetail
()
{
console
.
log
(
this
.
$route
.
query
.
activityId
)
getActivityDetail
({
id
:
this
.
$route
.
query
.
id
}).
then
(
res
=>
{
const
params
=
{
id
:
this
.
$route
.
query
.
id
||
this
.
$route
.
query
.
activityId
}
const
data
=
res
.
data
getActivityDetail
(
params
).
then
(
res
=>
{
if
(
data
.
other_fill_in
.
need_fill_in_status
===
false
&&
data
.
self_fill_in
.
need_fill_in_status
===
false
)
{
this
.
detailList
=
res
.
data
// 重新报名
this
.
myInfoList
=
res
.
data
.
other_fill_in
.
list
console
.
log
(
this
.
detailList
.
activity
.
details
.
slice
(
-
1
),
'0000'
)
if
(
this
.
detailList
.
other_fill_in
.
need_fill_in_status
)
{
this
.
detailList
.
activity
.
details
.
forEach
(
item
=>
{
if
(
item
.
id
===
this
.
detailList
.
other_fill_in
.
need_fill_in_id
)
{
const
details
=
this
.
detailList
.
activity
.
details
.
indexOf
(
item
)
if
(
details
===
0
)
{
this
.
stepList
=
res
.
data
.
activity
.
details
console
.
log
(
this
.
stepList
,
'1'
)
}
else
if
(
details
>
0
)
{
console
.
log
(
details
,
'details'
)
this
.
stepList
=
this
.
detailList
.
activity
.
details
.
splice
(
details
)
console
.
log
(
this
.
stepList
,
'2'
)
}
}
})
}
else
{
if
(
this
.
detailList
.
self_fill_in
.
need_fill_in_status
)
{
this
.
detailList
.
activity
.
details
.
forEach
(
item
=>
{
if
(
item
.
id
===
this
.
detailList
.
self_fill_in
.
need_fill_in_id
)
{
const
details
=
this
.
detailList
.
activity
.
details
.
indexOf
(
item
)
if
(
details
===
0
)
{
this
.
stepList
=
res
.
data
.
activity
.
details
console
.
log
(
this
.
stepList
,
'3'
)
}
else
if
(
details
>
0
)
{
console
.
log
(
details
,
'details1'
)
this
.
stepList
=
this
.
detailList
.
activity
.
details
.
splice
(
details
)
console
.
log
(
this
.
stepList
,
'4'
)
}
}
})
}
else
{
this
.
stepList
=
res
.
data
.
activity
.
details
console
.
log
(
this
.
stepList
,
'5'
)
}
}
const
newIndex
=
this
.
stepList
.
findIndex
(
item
=>
{
return
item
.
id
===
this
.
$route
.
query
.
activity_detail_id
})
if
(
this
.
$route
.
query
.
stepIndex
)
{
this
.
stepIndex
=
parseInt
(
this
.
$route
.
query
.
stepIndex
)
}
else
{
}
else
{
this
.
stepIndex
=
newIndex
<
0
?
0
:
newIndex
// if (data.other_fill_in.need_fill_in_status) {
// }
}
}
// this.detailList = res.data
// this.myInfoList = res.data.other_fill_in.list
// // console.log(this.detailList.activity.details.slice(-1), '0000')
// if (this.detailList.other_fill_in.need_fill_in_status) {
// this.detailList.activity.details.forEach(item => {
// if (item.id === this.detailList.other_fill_in.need_fill_in_id) {
// const details = this.detailList.activity.details.indexOf(item)
// console.log(details, '111')
// if (details === 0) {
// this.stepList = res.data.activity.details
// console.log(this.stepList, '1')
// } else if (details > 0) {
// console.log(details, 'details')
// this.stepList = this.detailList.activity.details.splice(details)
// console.log(this.stepList, '2')
// }
// }
// })
// } else {
// if (this.detailList.self_fill_in.need_fill_in_status) {
// this.detailList.activity.details.forEach(item => {
// if (item.id === this.detailList.self_fill_in.need_fill_in_id) {
// const details = this.detailList.activity.details.indexOf(item)
// console.log(details, '222')
// if (details === 0) {
// this.stepList = res.data.activity.details
// console.log(this.stepList, '3')
// } else if (details > 0) {
// console.log(details, 'details1')
// this.stepList = this.detailList.activity.details.splice(details)
// console.log(this.stepList, '4')
// }
// }
// })
// } else {
// this.stepList = res.data.activity.details
// console.log(this.stepList, '5')
// }
// }
// const newIndex = this.stepList.findIndex(item => {
// return item.id === this.$route.query.activity_detail_id
// })
// if (this.$route.query.stepIndex) {
// this.stepIndex = parseInt(this.$route.query.stepIndex)
// } else {
// this.stepIndex = newIndex
<
0
?
0
:
newIndex
// }
})
})
},
},
handlePrev
()
{
handlePrev
()
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论