Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
2e7a2bf8
Commit
2e7a2bf8
authored
Dec 20, 2022
by
sunerhu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改H5 提交订单成功以后查看订单详细userId 没值问题
2.修复退课重现问题 3.增加订单详情页面白名单 4.修改申请加盟页面一些问题
parent
bcf7c42d
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
191 additions
and
139 deletions
+191
-139
components/bootpage/bootpage.vue
+13
-2
components/courseItem/courseItem.vue
+3
-3
pages/application-process/basic-info.vue
+15
-11
pages/application-process/education.vue
+5
-1
pages/application-process/id-card.vue
+117
-103
pages/application-process/signature.vue
+3
-0
pages/courseDetail/courseDetail.vue
+1
-0
pages/myPoints/pointsDetail.vue
+11
-2
pages/orderConfirm/orderConfirm.vue
+5
-6
pages/orderDetail/orderDetail.vue
+4
-2
pages/orderStatus/orderStatus.vue
+8
-4
util/request.ts
+4
-4
util/router.js
+2
-1
No files found.
components/bootpage/bootpage.vue
View file @
2e7a2bf8
...
@@ -14,7 +14,10 @@
...
@@ -14,7 +14,10 @@
<label
class=
"radio"
style=
"padding-right: 10rpx;"
>
<label
class=
"radio"
style=
"padding-right: 10rpx;"
>
<radio
:checked=
"agreeFlag"
@
click=
"agreeFlag=!agreeFlag"
/>
<radio
:checked=
"agreeFlag"
@
click=
"agreeFlag=!agreeFlag"
/>
</label>
</label>
<text>
已阅读并同意
</text><a
href=
"#"
>
银盾保险经纪服务协议
</a><text>
和
</text><a
href=
""
>
隐私政策
</a>
<text>
已阅读并同意
</text>
<text
class=
"file"
@
click=
"getFile(1)"
>
服务协议
</text>
<text>
和
</text>
<text
class=
"file"
@
click=
"getFile(2)"
>
隐私政策
</text>
</view>
</view>
<view
class=
"footer"
@
click=
"login()"
>
<view
class=
"footer"
@
click=
"login()"
>
<text
style=
"line-height: 80rpx;"
>
登录
</text>
<text
style=
"line-height: 80rpx;"
>
登录
</text>
...
@@ -47,6 +50,11 @@
...
@@ -47,6 +50,11 @@
console
.
log
(
this
.
orderId
,
222
)
console
.
log
(
this
.
orderId
,
222
)
},
},
methods
:
{
methods
:
{
getFile
(
type
){
uni
.
navigateTo
({
url
:
`/components/clause/clause?type=
${
type
}
`
})
},
sendMessage
(){
sendMessage
(){
const
params
=
{
const
params
=
{
mobileNo
:
this
.
mobile
,
mobileNo
:
this
.
mobile
,
...
@@ -150,7 +158,10 @@
...
@@ -150,7 +158,10 @@
border-bottom
:
2
rpx
solid
#CECECE
;
border-bottom
:
2
rpx
solid
#CECECE
;
padding
:
20
rpx
;
padding
:
20
rpx
;
}
}
.file
{
color
:
#20279B
;
text-decoration
:
none
;
}
.agree
{
.agree
{
font-size
:
28
rpx
;
font-size
:
28
rpx
;
color
:
#666
;
color
:
#666
;
...
...
components/courseItem/courseItem.vue
View file @
2e7a2bf8
...
@@ -103,6 +103,7 @@
...
@@ -103,6 +103,7 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.itemContent
{
.itemContent
{
display
:
flex
;
display
:
flex
;
height
:
auto
;
.thumbnailBox
{
.thumbnailBox
{
width
:
300
rpx
;
width
:
300
rpx
;
margin-right
:
26
rpx
;
margin-right
:
26
rpx
;
...
@@ -119,15 +120,14 @@
...
@@ -119,15 +120,14 @@
.title
{
.title
{
display
:
flex
;
display
:
flex
;
width
:
38
0
rpx
;
max-width
:
26
0
rpx
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
font-size
:
3
6
rpx
;
font-size
:
3
2
rpx
;
.detailBtn
{
.detailBtn
{
font-size
:
24
rpx
;
font-size
:
24
rpx
;
color
:
#4A4A4A
;
color
:
#4A4A4A
;
white-space
:
nowrap
;
}
}
}
}
...
...
pages/application-process/basic-info.vue
View file @
2e7a2bf8
...
@@ -60,8 +60,9 @@
...
@@ -60,8 +60,9 @@
</view>
</view>
<view
class=
"contentItem"
>
<view
class=
"contentItem"
>
<text>
姓名
</text>
<text>
姓名
</text>
<!-- @blur="checkInput(1,applyParam.name)" -->
<input
type=
"text"
class=
"form-control"
v-model=
"applyParam.name"
placeholder=
"请输入姓名"
<input
type=
"text"
class=
"form-control"
v-model=
"applyParam.name"
placeholder=
"请输入姓名"
auto-blur=
true
@
blur=
"checkInput(1,applyParam.name)"
:disabled=
"this.display"
/>
auto-blur=
true
:disabled=
"this.display"
/>
</view>
</view>
<view
class=
"contentItem"
>
<view
class=
"contentItem"
>
<text>
手机号
</text>
<text>
手机号
</text>
...
@@ -252,16 +253,16 @@
...
@@ -252,16 +253,16 @@
console
.
log
(
this
.
applyParam
.
areaId
)
console
.
log
(
this
.
applyParam
.
areaId
)
},
},
checkInput
(
type
,
code
)
{
checkInput
(
type
,
code
)
{
if
(
type
==
1
)
{
//
if (type == 1) {
if
(
code
&&
!
common
.
nameValid
(
code
))
{
//
if (code && !common.nameValid(code)) {
uni
.
showToast
({
//
uni.showToast({
title
:
'请输入真实的姓名!'
,
//
title: '请输入真实的姓名!',
duration
:
2000
,
//
duration: 2000,
icon
:
'none'
//
icon: 'none'
})
//
})
return
;
//
return;
}
//
}
}
//
}
if
(
type
==
2
)
{
if
(
type
==
2
)
{
if
(
code
&&
!
common
.
mobileNoValid
(
code
))
{
if
(
code
&&
!
common
.
mobileNoValid
(
code
))
{
uni
.
showToast
({
uni
.
showToast
({
...
@@ -435,4 +436,7 @@
...
@@ -435,4 +436,7 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
@import
'applyCommon.scss'
;
@import
'applyCommon.scss'
;
.form-control
{
min-width
:
200
rpx
;
}
</
style
>
</
style
>
pages/application-process/education.vue
View file @
2e7a2bf8
...
@@ -110,6 +110,8 @@
...
@@ -110,6 +110,8 @@
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
}
})
})
// 移除监听事件
uni
.
$off
(
'ckqueryById'
);
},
},
methods
:{
methods
:{
educationLevelQuery
(){
educationLevelQuery
(){
...
@@ -122,7 +124,7 @@
...
@@ -122,7 +124,7 @@
},
},
queryById
(
id
,
userId
){
queryById
(
id
,
userId
){
api
.
queryById
({
id
:
id
,
userId
:
userId
}).
then
((
res
)
=>
{
api
.
queryById
({
id
:
id
,
userId
:
userId
}).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
,
111
)
if
(
res
[
'success'
]){
if
(
res
[
'success'
]){
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
for
(
let
i
=
0
;
i
<
this
.
educationLevelList
.
length
;
i
++
){
for
(
let
i
=
0
;
i
<
this
.
educationLevelList
.
length
;
i
++
){
...
@@ -181,6 +183,8 @@
...
@@ -181,6 +183,8 @@
// url:`bank-card?id=${res['data']['id']}`
// url:`bank-card?id=${res['data']['id']}`
url
:
`bank-card`
url
:
`bank-card`
});
});
// 发送广播
uni
.
$emit
(
"ckqueryById"
,
true
);
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
],
title
:
res
[
'message'
],
...
...
pages/application-process/id-card.vue
View file @
2e7a2bf8
...
@@ -19,63 +19,63 @@
...
@@ -19,63 +19,63 @@
</view>
</view>
<view
class=
"wrapper"
>
<view
class=
"wrapper"
>
<view
class=
"title"
>
<view
class=
"title"
>
<view>
<view>
<text
class=
"line"
></text>
个人证件资料
<text
class=
"line"
></text>
个人证件资料
</view>
</view>
<text
class=
"page_mark"
>
3/8
</text>
<text
class=
"page_mark"
>
3/8
</text>
</view>
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<view
class=
"content_wrapper"
>
<view
class=
"content_wrapper"
>
<view
class=
"photo"
v-if=
"!applyParam.idFrontPageOssPath"
@
click=
"upLoadPhoto('front')"
>
<view
class=
"photo"
v-if=
"!applyParam.idFrontPageOssPath"
@
click=
"upLoadPhoto('front')"
>
<image
src=
"../../static/front.png"
alt=
"身份证正面"
mode=
"widthFix"
></image>
<image
src=
"../../static/front.png"
alt=
"身份证正面"
mode=
"widthFix"
></image>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
class=
"choseBtn"
>
点击添加身份证正面
</view>
<view
class=
"choseBtn"
>
点击添加身份证正面
</view>
</view>
</view>
<view
class=
"content_w"
v-if=
"applyParam.idFrontPageOssPath"
>
<view
class=
"content_w"
v-if=
"applyParam.idFrontPageOssPath"
>
<image
:src=
"applyParam.idFrontPageOssPath"
<image
:src=
"applyParam.idFrontPageOssPath"
@
click=
"upLoadPhoto('front')"
></image>
@
click=
"upLoadPhoto('front')"
></image>
</view>
</view>
<view
class=
"tips"
>
<view
class=
"tips"
>
<view>
(正确示例:身份证正面,字体清晰)
</view>
<view>
(正确示例:身份证正面,字体清晰)
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
</view>
</view>
</view>
</view>
<view
class=
"content_wrapper"
style=
"margin-top: 25px;"
>
<view
class=
"content_wrapper"
style=
"margin-top: 25px;"
>
<view
class=
"photo"
v-if=
"!applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('back')"
>
<view
class=
"photo"
v-if=
"!applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('back')"
>
<image
src=
"../../static/back.png"
alt=
"身份证反面"
mode=
"widthFix"
></image>
<image
src=
"../../static/back.png"
alt=
"身份证反面"
mode=
"widthFix"
></image>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<text
class=
"iconfont icon-weibiaoti553"
></text>
<view
class=
"choseBtn"
>
点击添加身份证反面
</view>
<view
class=
"choseBtn"
>
点击添加身份证反面
</view>
</view>
</view>
<view
class=
"content_w"
v-if=
"applyParam.idBackPageOssPath"
>
<view
class=
"content_w"
v-if=
"applyParam.idBackPageOssPath"
>
<image
:src=
"applyParam.idBackPageOssPath"
<image
:src=
"applyParam.idBackPageOssPath"
@
click=
"upLoadPhoto('back')"
></image>
@
click=
"upLoadPhoto('back')"
></image>
</view>
</view>
<view
class=
"tips"
>
<view
class=
"tips"
>
<view>
(正确示例:身份证反面,字体清晰)
</view>
<view>
(正确示例:身份证反面,字体清晰)
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
<view>
(jpg,png 文件大小不大于1mb)
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
<view
class=
"fixed"
@
click=
"saveInfo()"
>
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'保存并下一步'
:
'下一步'
}}
{{
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)?
'保存并下一步'
:
'下一步'
}}
</view>
</view>
</view>
</view>
</
template
>
</
template
>
<
script
>
<
script
>
import
{
CommonUpload
}
from
'@/util/uploaderFile'
;
import
{
CommonUpload
}
from
'@/util/uploaderFile'
;
import
api
from
'../../api/api'
;
import
api
from
'../../api/api'
;
export
default
{
export
default
{
data
(){
data
()
{
return
{
return
{
applyParam
:{
applyParam
:
{
idFrontPageOssPath
:
''
,
idFrontPageOssPath
:
''
,
idBackPageOssPath
:
''
,
idBackPageOssPath
:
''
,
approvalStatus
:
''
approvalStatus
:
''
},
},
shareId
:
null
,
shareId
:
null
,
dataForm
:{
dataForm
:
{
loginId
:
uni
.
getStorageSync
(
'cffp_userId'
),
loginId
:
uni
.
getStorageSync
(
'cffp_userId'
),
targetType
:
"5"
,
targetType
:
"5"
,
targetId
:
''
,
targetId
:
''
,
...
@@ -86,52 +86,62 @@
...
@@ -86,52 +86,62 @@
},
},
}
}
},
},
components
:{},
components
:
{},
onLoad
(
options
){
onLoad
(
options
)
{
console
.
log
(
options
,
111111
)
// this.shareId = options.shareId
// this.shareId = options.shareId
if
(
uni
.
getStorageSync
(
'applyId'
))
{
if
(
uni
.
getStorageSync
(
'applyId'
))
{
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
this
.
queryById
(
uni
.
getStorageSync
(
'applyId'
),
null
)
}
else
if
(
options
.
shareId
)
{
}
else
if
(
options
.
shareId
)
{
this
.
queryById
(
options
.
shareId
,
null
)
this
.
queryById
(
options
.
shareId
,
null
)
}
else
{
}
else
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
}
},
},
onShow
()
{
onShow
()
{
uni
.
$on
(
"ckqueryById"
,
res
=>
{
console
.
log
(
'‘第三步接受广播进行刷新'
)
if
(
res
==
true
)
{
this
.
queryById
(
null
,
uni
.
getStorageSync
(
'cffp_userId'
))
}
})
uni
.
$off
(
'ckqueryById'
);
},
},
methods
:{
methods
:
{
queryById
(
id
,
userId
){
queryById
(
id
,
userId
)
{
api
.
queryById
({
id
:
id
,
userId
:
userId
}).
then
((
res
)
=>
{
api
.
queryById
({
id
:
id
,
userId
:
userId
}).
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
applyParam
=
res
[
'data'
][
'data'
];
this
.
applyParam
=
res
[
'data'
][
'data'
];
}
}
})
})
},
},
upLoadPhoto
(
type
){
upLoadPhoto
(
type
)
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)
{
if
(
type
==
'front'
)
{
if
(
type
==
'front'
)
{
this
.
dataForm
.
targetNo
=
2
;
this
.
dataForm
.
targetNo
=
2
;
}
}
if
(
type
==
'back'
)
{
if
(
type
==
'back'
)
{
this
.
dataForm
.
targetNo
=
3
;
this
.
dataForm
.
targetNo
=
3
;
}
}
this
.
dataForm
.
targetId
=
this
.
applyParam
.
id
this
.
dataForm
.
targetId
=
this
.
applyParam
.
id
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
CommonUpload
(
this
.
dataForm
).
then
(
res
=>
{
if
(
type
==
'front'
)
{
if
(
type
==
'front'
)
{
this
.
applyParam
.
idFrontPageOssPath
=
res
.
data
.
filePath
;
this
.
applyParam
.
idFrontPageOssPath
=
res
.
data
.
filePath
;
}
}
if
(
type
==
'back'
)
{
if
(
type
==
'back'
)
{
this
.
applyParam
.
idBackPageOssPath
=
res
.
data
.
filePath
;
this
.
applyParam
.
idBackPageOssPath
=
res
.
data
.
filePath
;
}
}
console
.
log
(
this
.
applyParam
.
idBackPageOssPath
,
151515
)
console
.
log
(
this
.
applyParam
.
idBackPageOssPath
,
151515
)
})
})
}
}
},
},
saveInfo
(){
saveInfo
()
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)
{
if
(
this
.
applyParam
.
approvalStatus
==
0
||
this
.
applyParam
.
approvalStatus
==
2
)
{
if
(
!
this
.
applyParam
.
idFrontPageOssPath
)
{
if
(
!
this
.
applyParam
.
idFrontPageOssPath
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'请上传身份证正面照片'
,
title
:
'请上传身份证正面照片'
,
duration
:
2000
,
duration
:
2000
,
...
@@ -139,7 +149,7 @@
...
@@ -139,7 +149,7 @@
})
})
return
;
return
;
}
}
if
(
!
this
.
applyParam
.
idBackPageOssPath
)
{
if
(
!
this
.
applyParam
.
idBackPageOssPath
)
{
uni
.
showToast
({
uni
.
showToast
({
title
:
'请上传身份证反面照片'
,
title
:
'请上传身份证反面照片'
,
duration
:
2000
,
duration
:
2000
,
...
@@ -148,17 +158,17 @@
...
@@ -148,17 +158,17 @@
return
;
return
;
}
}
this
.
applyParam
=
{
this
.
applyParam
=
{
...
this
.
applyParam
,
...
this
.
applyParam
,
operatStep
:
3
,
operatStep
:
3
,
}
}
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
api
.
saveApplyInfo
(
this
.
applyParam
).
then
((
res
)
=>
{
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
uni
.
navigateTo
({
uni
.
navigateTo
({
// url:`id-card?id=${res['data']['id']}`
// url:`id-card?id=${res['data']['id']}`
url
:
`education`
url
:
`education`
});
});
uni
.
$emit
(
"ckqueryById"
,
true
);
uni
.
$emit
(
"ckqueryById"
,
true
);
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
],
title
:
res
[
'message'
],
duration
:
2000
,
duration
:
2000
,
...
@@ -167,10 +177,10 @@
...
@@ -167,10 +177,10 @@
return
;
return
;
}
}
})
})
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
// url:`id-card?id=${res['data']['id']}`
// url:`id-card?id=${res['data']['id']}`
url
:
`education`
url
:
`education`
});
});
}
}
}
}
...
@@ -180,45 +190,50 @@
...
@@ -180,45 +190,50 @@
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
@import
'applyCommon.scss'
;
@import
'applyCommon.scss'
;
.content_wrapper
{
display
:
flex
;
.content_wrapper
{
justify-content
:
center
;
display
:
flex
;
flex-wrap
:
wrap
;
justify-content
:
center
;
margin-top
:
10px
;
flex-wrap
:
wrap
;
overflow
:
hidden
;
margin-top
:
10px
;
.photo{
overflow
:
hidden
;
text-align
:
center
;
border
:
1px
#8D8D8D
dashed
;
.photo
{
border-radius
:
4px
;
text-align
:
center
;
display
:
flex
;
border
:
1px
#8D8D8D
dashed
;
justify-content
:
center
;
border-radius
:
4px
;
align-items
:
center
;
display
:
flex
;
flex-direction
:
column
;
justify-content
:
center
;
font-size
:
12px
;
align-items
:
center
;
color
:
#333
;
flex-direction
:
column
;
width
:
75%
;
font-size
:
12px
;
background-size
:
contain
;
color
:
#333
;
background-repeat
:
no-repeat
;
width
:
75%
;
position
:
relative
;
background-size
:
contain
;
.icon-weibiaoti553{
background-repeat
:
no-repeat
;
position
:
absolute
;
position
:
relative
;
}
.choseBtn
{
.icon-weibiaoti553
{
position
:
absolute
;
position
:
absolute
;
font-size
:
13px
;
}
bottom
:
19%
;
}
.choseBtn
{
}
position
:
absolute
;
font-size
:
13px
;
bottom
:
19%
;
}
}
}
}
.content_w
{
.content_w
{
height
:
380
rpx
;
height
:
380
rpx
;
width
:
76%
;
width
:
76%
;
margin
:
auto
;
margin
:
auto
;
padding-bottom
:
20
rpx
;
padding-bottom
:
20
rpx
;
}
}
.content_w
image
{
.content_w
image
{
width
:
100%
;
width
:
100%
;
height
:
100%
;
height
:
100%
;
}
}
</
style
>
</
style
>
\ No newline at end of file
pages/application-process/signature.vue
View file @
2e7a2bf8
...
@@ -57,6 +57,7 @@
...
@@ -57,6 +57,7 @@
},
},
components
:{
eSignature
},
components
:{
eSignature
},
onLoad
(
options
)
{
onLoad
(
options
)
{
console
.
log
(
options
,
151515
)
this
.
shareId
=
options
.
shareId
this
.
shareId
=
options
.
shareId
},
},
onShow
()
{
onShow
()
{
...
@@ -129,6 +130,8 @@
...
@@ -129,6 +130,8 @@
fail
:
()
=>
{},
fail
:
()
=>
{},
complete
:
()
=>
{}
complete
:
()
=>
{}
});
});
// 发送广播
uni
.
$emit
(
"ckqueryById"
,
true
);
}
else
{
}
else
{
uni
.
showToast
({
uni
.
showToast
({
title
:
res
[
'message'
],
title
:
res
[
'message'
],
...
...
pages/courseDetail/courseDetail.vue
View file @
2e7a2bf8
...
@@ -333,6 +333,7 @@
...
@@ -333,6 +333,7 @@
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
userId
:
uni
.
getStorageSync
(
'cffp_userId'
),
packFileId
:
this
.
courseInfo
.
packFileId
packFileId
:
this
.
courseInfo
.
packFileId
}).
then
(
res
=>
{
}).
then
(
res
=>
{
console
.
log
(
res
,
1011111111
)
if
(
res
[
'success'
])
{
if
(
res
[
'success'
])
{
this
.
courseInfo
=
res
[
'data'
][
'data'
];
this
.
courseInfo
=
res
[
'data'
][
'data'
];
this
.
lecturerId
=
res
[
'data'
][
'data'
][
'fileLecturerId'
];
this
.
lecturerId
=
res
[
'data'
][
'data'
][
'fileLecturerId'
];
...
...
pages/myPoints/pointsDetail.vue
View file @
2e7a2bf8
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<text
class=
"iconfont icon-youjiantou"
></text>
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
</view>
</picker>
</picker>
<picker
mode=
"date"
:value=
"fortuneDate"
:end=
"maxDate"
fields=
"month
"
@
change=
"bindDateChange"
>
<picker
mode=
"date"
:value=
"fortuneDate"
:end=
"maxDate"
:fields=
"fields
"
@
change=
"bindDateChange"
>
<view
class=
"uni-input"
>
{{
fortuneDate
}}
<view
class=
"uni-input"
>
{{
fortuneDate
}}
<text
class=
"iconfont icon-youjiantou"
></text>
<text
class=
"iconfont icon-youjiantou"
></text>
</view>
</view>
...
@@ -61,6 +61,7 @@
...
@@ -61,6 +61,7 @@
commissionTypeIdx
:
0
,
commissionTypeIdx
:
0
,
productType
:
null
,
productType
:
null
,
productTypeIdx
:
0
,
productTypeIdx
:
0
,
fields
:
'Day'
,
cffpFortuneDateList
:[],
cffpFortuneDateList
:[],
maxDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
maxDate
:
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
,
commissionTypeList
:[{
dropOptionName
:
null
,
dropOptionCode
:
null
}],
commissionTypeList
:[{
dropOptionName
:
null
,
dropOptionCode
:
null
}],
...
@@ -74,7 +75,15 @@
...
@@ -74,7 +75,15 @@
this
.
productType
=
options
.
productType
;
this
.
productType
=
options
.
productType
;
this
.
timeFlag
=
options
.
timeFlag
;
this
.
timeFlag
=
options
.
timeFlag
;
this
.
commissionType
=
options
.
commissionType
;
this
.
commissionType
=
options
.
commissionType
;
if
(
this
.
timeFlag
==
'D'
||
this
.
timeFlag
==
'Y'
){
if
(
this
.
timeFlag
==
'Y'
){
this
.
fortuneDate
=
`
${
new
Date
().
getFullYear
()}
`
this
.
fields
=
'year'
}
if
(
this
.
timeFlag
==
'M'
){
this
.
fortuneDate
=
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
`
this
.
fields
=
'month'
}
if
(
this
.
timeFlag
==
'D'
){
this
.
fortuneDate
=
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
this
.
fortuneDate
=
`
${
new
Date
().
getFullYear
()}
-
${
new
Date
().
getMonth
()
+
1
}
-
${
new
Date
().
getDate
()}
`
}
}
this
.
getCommissionType
();
this
.
getCommissionType
();
...
...
pages/orderConfirm/orderConfirm.vue
View file @
2e7a2bf8
...
@@ -222,7 +222,6 @@
...
@@ -222,7 +222,6 @@
//deviceType:PC为1,移动端为2,微信为3
//deviceType:PC为1,移动端为2,微信为3
if
(
this
.
deviceType
==
3
){
if
(
this
.
deviceType
==
3
){
//微信h5支付
//微信h5支付
console
.
log
(
this
.
$queue
)
uni
.
login
({
uni
.
login
({
provider
:
'weixin'
,
provider
:
'weixin'
,
success
:
function
(
loginRes
)
{
success
:
function
(
loginRes
)
{
...
@@ -262,21 +261,20 @@
...
@@ -262,21 +261,20 @@
provider
:
'alipay'
,
provider
:
'alipay'
,
orderInfo
:
aliOrderString
,
orderInfo
:
aliOrderString
,
success
:
function
(
resp
)
{
success
:
function
(
resp
)
{
console
.
log
(
'success:'
+
JSON
.
stringify
(
resp
));
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=2`
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=2
&userId=
${
_this
.
userId
}
`
})
})
},
},
fail
:
function
(
err
)
{
fail
:
function
(
err
)
{
console
.
log
(
'fail:'
+
JSON
.
stringify
(
err
));
console
.
log
(
'fail:'
+
JSON
.
stringify
(
err
));
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=1`
url
:
`/pages/orderStatus/orderStatus?orderId=
${
_this
.
orderId
}
&fileId=
${
_this
.
fileId
}
&orderStatus=1
&userId=
${
_this
.
userId
}
`
})
})
}
}
});
});
}
else
{
}
else
{
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/orderStatus/orderStatus?orderId=
${
this
.
orderId
}
&fileId=
${
this
.
fileId
}
&orderStatus=2`
url
:
`/pages/orderStatus/orderStatus?orderId=
${
this
.
orderId
}
&fileId=
${
this
.
fileId
}
&orderStatus=2
&userId=
${
this
.
userId
}
`
})
})
}
}
...
@@ -301,8 +299,9 @@
...
@@ -301,8 +299,9 @@
this
.
amount
=
this
.
totalPrice
;
this
.
amount
=
this
.
totalPrice
;
if
(
this
.
deviceType
==
3
){
if
(
this
.
deviceType
==
3
){
this
.
tipsFlag
=
true
;
this
.
tipsFlag
=
true
;
this
.
amount
=
this
.
totalPrice
;
this
.
paymentBtnDisabled
=
false
;
this
.
paymentBtnDisabled
=
false
;
let
url
=
window
.
location
.
href
+
`&isRedirect=1&amount=
${
this
.
amount
}
&jumptime=
${
new
Date
()}
&isDeduction=
${
this
.
isDeduction
}
&deductionCore=
${
this
.
deductionCore
}
`
;
let
url
=
window
.
location
.
href
+
`&isRedirect=1&amount=
${
this
.
amount
}
&jumptime=
${
new
Date
()}
&isDeduction=
${
this
.
isDeduction
}
&deductionCore=
${
this
.
deductionCore
}
&userId=
${
this
.
userId
}
`
;
window
.
history
.
replaceState
(
null
,
''
,
url
);
window
.
history
.
replaceState
(
null
,
''
,
url
);
return
;
return
;
}
}
...
...
pages/orderDetail/orderDetail.vue
View file @
2e7a2bf8
...
@@ -80,9 +80,10 @@
...
@@ -80,9 +80,10 @@
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
console
.
log
(
option
,
15215
)
if
(
option
.
userId
){
this
.
userId
=
option
.
userId
};
this
.
orderId
=
option
.
id
;
this
.
orderId
=
option
.
id
;
console
.
log
(
this
.
orderId
,
2222
)
this
.
type
=
option
.
type
;
this
.
type
=
option
.
type
;
this
.
Withdrawal
=
option
.
Withdrawal
this
.
Withdrawal
=
option
.
Withdrawal
this
.
commissionType
=
option
.
commissionType
;
this
.
commissionType
=
option
.
commissionType
;
...
@@ -91,6 +92,7 @@
...
@@ -91,6 +92,7 @@
this
.
userCourseInfo
();
this
.
userCourseInfo
();
uni
.
$on
(
"radiobroadcast"
,
res
=>
{
uni
.
$on
(
"radiobroadcast"
,
res
=>
{
this
.
type
=
res
.
type
;
this
.
type
=
res
.
type
;
this
.
Withdrawal
=
null
// 清除监听
// 清除监听
uni
.
$off
(
'radiobroadcast'
);
uni
.
$off
(
'radiobroadcast'
);
})
})
...
...
pages/orderStatus/orderStatus.vue
View file @
2e7a2bf8
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
<view
class=
"course_content"
>
<view
class=
"course_content"
>
<view
class=
"tag"
>
<view
class=
"tag"
>
<h4>
精品课程
</h4>
<h4>
精品课程
</h4>
<view
@
click=
"goToCourselist()"
>
更多
<text
class=
"iconfont icon-youjiantou"
></text></view>
<view
v-if=
"this.userId != ''"
@
click=
"goToCourselist()"
>
更多
<text
class=
"iconfont icon-youjiantou"
></text></view>
</view>
</view>
<courselist
:tagIds=
"[1111]"
:onlyShowList=
"0"
></courselist>
<courselist
:tagIds=
"[1111]"
:onlyShowList=
"0"
></courselist>
</view>
</view>
...
@@ -36,14 +36,15 @@
...
@@ -36,14 +36,15 @@
return
{
return
{
fileId
:
''
,
fileId
:
''
,
orderId
:
''
,
orderId
:
''
,
orderStatus
:
'2'
orderStatus
:
'2'
,
userId
:
''
};
};
},
},
methods
:{
methods
:{
viewDetail
(){
viewDetail
(){
// 查看详情
// 查看详情
uni
.
navigateTo
({
uni
.
navigateTo
({
url
:
`/pages/orderDetail/orderDetail?id=
${
this
.
orderId
}
&type=drop`
url
:
`/pages/orderDetail/orderDetail?id=
${
this
.
orderId
}
&type=drop
&userId=
${
this
.
userId
}
`
})
})
},
},
goToCourselist
(){
goToCourselist
(){
...
@@ -65,10 +66,13 @@
...
@@ -65,10 +66,13 @@
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
userId
!=
"undefined"
){
this
.
userId
=
options
.
userId
;
uni
.
setStorageSync
(
'cffp_userId'
,
this
.
userId
)
};
this
.
orderId
=
options
.
orderId
;
this
.
orderId
=
options
.
orderId
;
this
.
orderStatus
=
options
.
orderStatus
;
this
.
orderStatus
=
options
.
orderStatus
;
this
.
fileId
=
options
.
fileId
;
this
.
fileId
=
options
.
fileId
;
console
.
log
(
options
)
}
}
}
}
</
script
>
</
script
>
...
...
util/request.ts
View file @
2e7a2bf8
...
@@ -4,9 +4,9 @@ import {interceptor} from "./interceptor";
...
@@ -4,9 +4,9 @@ import {interceptor} from "./interceptor";
export
default
(
url
:
string
,
method
:
any
,
params
?:
any
)
=>
{
export
default
(
url
:
string
,
method
:
any
,
params
?:
any
)
=>
{
interceptor
();
interceptor
();
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
//
uni.showLoading({
uni
.
showLoading
({
//
title: '加载中...'
title
:
'加载中...'
//
});
});
uni
.
request
({
uni
.
request
({
url
:
url
,
url
:
url
,
method
:
method
,
method
:
method
,
...
@@ -20,7 +20,7 @@ export default (url:string, method:any, params?:any) => {
...
@@ -20,7 +20,7 @@ export default (url:string, method:any, params?:any) => {
reject
(
err
);
reject
(
err
);
},
},
complete
()
{
complete
()
{
//
uni.hideLoading();
uni
.
hideLoading
();
}
}
});
});
});
});
...
...
util/router.js
View file @
2e7a2bf8
...
@@ -3,7 +3,8 @@
...
@@ -3,7 +3,8 @@
const
whiteList
=
[
const
whiteList
=
[
'/components/login/login'
,
'/components/login/login'
,
'/pages/invitationRegister/invitationlogin'
,
'/pages/invitationRegister/invitationlogin'
,
'/components/clause/clause'
'/components/clause/clause'
,
'/pages/orderDetail/orderDetail'
]
]
export
default
function
initApp
(){
export
default
function
initApp
(){
uni
.
addInterceptor
(
'navigateTo'
,
{
uni
.
addInterceptor
(
'navigateTo'
,
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment