Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
程默
mayi-mp-shop
Commits
414d762f
Commit
414d762f
authored
Aug 05, 2022
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
支付成功优化
parent
d8a7ae72
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
152 additions
and
19 deletions
+152
-19
src/api/shop.js
+5
-1
src/components/paySuccess/paySuccessInfo.vue
+31
-15
src/pages/paySuccess/index.vue
+116
-3
No files found.
src/api/shop.js
View file @
414d762f
...
@@ -44,5 +44,9 @@ export default {
...
@@ -44,5 +44,9 @@ export default {
return
requestPOST
(
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/shop/get_shop_configuration`
`
${
process
.
env
.
OLSHOP_URL
}
/shop/get_shop_configuration`
);
);
}
},
// 获取系统配置
get_system_config_by_code
(
params
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/common/get_system_config_by_code?code=
${
params
.
code
}
`
)
},
};
};
src/components/paySuccess/paySuccessInfo.vue
View file @
414d762f
...
@@ -124,6 +124,9 @@ export default {
...
@@ -124,6 +124,9 @@ export default {
type
:
Number
,
type
:
Number
,
default
:
0
,
default
:
0
,
},
},
giftsKey
:
{
default
:
0
,
},
},
},
computed
:
{
computed
:
{
icon
()
{
icon
()
{
...
@@ -237,20 +240,7 @@ export default {
...
@@ -237,20 +240,7 @@ export default {
console
.
log
(
"headerImg"
,
headerImg
);
console
.
log
(
"headerImg"
,
headerImg
);
app
.
$themeToLink
({
app
.
$themeToLink
({
type
:
1
,
type
:
1
,
link
:
`/goods/posters
link
:
`/goods/posters?type=cloudGift&href=
${
process
.
env
.
BASE_URL
}
/activty/receivingGift?mixid=
${
this
.
$store
.
state
.
mixid
}
&orderId=
${
this
.
orderDetail
.
orderId
}
&spokesmanGroupId=
${
spokesmanGroupId
}
&hasInvitationStatus=
${
spokemanInfo
.
hasInvitationStatus
}
&spokesmanShopId=
${
spokesmanShopId
}
&spokesmanRelId=
${
spokesmanRelId
}
&nickname=
${
nickname
}
&headerImg=
${
headerImg
}
&ordernumber=
${
this
.
routeQuery
.
orderSn
}
&orgName=
${
this
.
orgName
}
&goodsImg=
${
this
.
orderDetail
.
noShipmentOrderItems
[
0
].
specificationPictureUrl
}
`
,
?type=cloudGift
&href=
${
window
.
location
.
protocol
}
//
${
window
.
location
.
host
}
/activty/receivingGift?mixid=
${
this
.
routeQuery
.
mixid
}
&orderId=
${
this
.
orderId
}
&spokesmanGroupId=
${
spokesmanGroupId
}
&hasInvitationStatus=
${
spokemanInfo
.
hasInvitationStatus
}
&spokesmanShopId=
${
spokesmanShopId
}
&spokesmanRelId=
${
spokesmanRelId
}
&nickname=
${
nickname
}
&headerImg=
${
headerImg
}
&ordernumber=
${
this
.
routeQuery
.
orderSn
}
&orderId=
${
this
.
orderId
}
&orgName=
${
this
.
orgName
}
&goodsImg=
${
this
.
orderDetail
.
noShipmentOrderItems
[
0
].
specificationPictureUrl
}
`
,
})
})
// this.$router.push({
// this.$router.push({
// path: "/goods/posters",
// path: "/goods/posters",
...
@@ -354,7 +344,8 @@ export default {
...
@@ -354,7 +344,8 @@ export default {
}
}
}
}
.steps_wrap
{
}
.steps_wrap
{
display
:
flex
;
display
:
flex
;
background
:
#fff
;
background
:
#fff
;
margin-top
:
10px
;
margin-top
:
10px
;
...
@@ -404,6 +395,30 @@ export default {
...
@@ -404,6 +395,30 @@ export default {
left
:
15px
;
left
:
15px
;
}
}
}
}
}
.line
{
height
:
10px
;
background
:
#ededed
;
}
.bottom_box
{
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
padding-top
:
30px
;
.bottom_item
{
height
:
40px
;
background
:
#e94f4f
;
width
:
70%
;
text-align
:
center
;
line-height
:
40px
;
border-radius
:
20px
;
font-size
:
16px
;
color
:
#fff
;
}
.bottom_last
{
margin-top
:
10px
;
background
:
#e3e3e3
;
color
:
#333333
;
}
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/pages/paySuccess/index.vue
View file @
414d762f
<
template
>
<
template
>
<!-- 支付成功页 -->
<!-- 支付成功页 -->
<div
class=
"paySuccess"
>
<div
class=
"paySuccess"
v-show=
"showPage"
>
<ThemeDataPlant
:pageCode=
"11"
></ThemeDataPlant>
<ThemeDataPlant
:pageCode=
"11"
></ThemeDataPlant>
<div
style=
"margin-top: 60px;"
></div>
<div
style=
"margin-top: 60px;"
></div>
<div
v-for=
"(item, index) in pageData"
:key=
"index"
>
<div
v-for=
"(item, index) in pageData"
:key=
"index"
>
...
@@ -39,11 +39,34 @@
...
@@ -39,11 +39,34 @@
v-if=
"item.componentCode=='pay-success-info' && item.componentInfo.visible==1"
v-if=
"item.componentCode=='pay-success-info' && item.componentInfo.visible==1"
:render=
"true"
:render=
"true"
:datas=
"item"
:datas=
"item"
:giftsKey=
"giftsKey"
:routeQuery=
"routeQuery"
:routeQuery=
"routeQuery"
:orderDetail=
"orderDetail"
:orderDetail=
"orderDetail"
:totalMoney=
"totalMoney"
:totalMoney=
"totalMoney"
/>
/>
</div>
</div>
<!-- 分销员弹框入口 -->
<van-popup
class=
"spokemanEntry"
closeable
:show=
"showspokmanEntry"
position=
"center"
:close-on-click-overlay=
"false"
close-icon=
"close"
@
close=
"closeSpokenman"
>
<!--
<div
class=
"ent_box"
>
-->
<div
class=
"ent-top"
>
<p
style=
"font-size:45px;color:rgba(83,37,26,1);"
>
恭喜
</p>
<p
style=
"font-size:16px;color:rgba(83,37,26,1);"
>
您获得分销员申请指标
</p>
<p
style=
"font-size:11px;color:#53251A;"
>
提示:可以在【我的】-【分销员中心】查看
</p>
</div>
<div
style=
"width:100%;display:flex;justify-content: center;"
>
<p
class=
"reviwBtn"
@
click=
"toSpokesmanCenter"
>
立即查看
</p>
</div>
<p
class=
"ignore"
@
click=
"showspokmanEntry=false"
>
跳过
</p>
<!--
</div>
-->
</van-popup>
</div>
</div>
</
template
>
</
template
>
...
@@ -105,6 +128,7 @@ export default {
...
@@ -105,6 +128,7 @@ export default {
this
.
query
.
orderSn
=
options
.
orderSn
;
this
.
query
.
orderSn
=
options
.
orderSn
;
this
.
routeQuery
=
options
;
this
.
routeQuery
=
options
;
this
.
orderMsg
();
this
.
orderMsg
();
this
.
setGiftsKey
();
//设置码表
// 获取页面数据
// 获取页面数据
if
(
this
.
mpApp
.
globalData
.
pageList
)
{
if
(
this
.
mpApp
.
globalData
.
pageList
)
{
console
.
log
(
console
.
log
(
...
@@ -130,6 +154,10 @@ export default {
...
@@ -130,6 +154,10 @@ export default {
console
.
log
(
"----------------------------------2"
)
console
.
log
(
"----------------------------------2"
)
if
(
res
.
data
.
orderType
==
'14'
)
{
if
(
res
.
data
.
orderType
==
'14'
)
{
this
.
isGroupBuy
=
true
;
this
.
isGroupBuy
=
true
;
let
url
=
`/pages/index/main?from=home&backpath=
${
encodeURIComponent
(
`/groupBuying/invite?orderSn=
${
this
.
query
.
orderSn
}
&isReplace=true`
)}
`
wx
.
redirectTo
({
url
,
});
this
.
title
=
"拼团详情"
this
.
title
=
"拼团详情"
}
else
{
}
else
{
this
.
title
=
"支付成功"
this
.
title
=
"支付成功"
...
@@ -141,6 +169,7 @@ export default {
...
@@ -141,6 +169,7 @@ export default {
this
.
goodsId
=
this
.
goodsId
=
res
.
data
.
noShipmentOrderItems
[
0
].
terminalProductGoodsId
;
res
.
data
.
noShipmentOrderItems
[
0
].
terminalProductGoodsId
;
}
}
this
.
showPage
=
true
;
//查询是否是分销员
//查询是否是分销员
getMiniProgram
().
then
(
res1
=>
{
getMiniProgram
().
then
(
res1
=>
{
...
@@ -191,6 +220,30 @@ export default {
...
@@ -191,6 +220,30 @@ export default {
}
}
});
});
},
},
setGiftsKey
()
{
shop
.
get_system_config_by_code
({
code
:
'GIFTS_KEY'
}).
then
(
res1
=>
{
let
res
=
res1
.
data
;
if
(
res
.
code
==
'200'
){
this
.
giftsKey
=
res
.
data
;
console
.
log
(
this
.
giftsKey
,
'-----giftsKey'
)
}
})
},
closeSpokenman
()
{
this
.
quitWarn
();
},
quitWarn
()
{
apply_for_withdraw
({
type
:
'remindFlag'
}).
then
(
res
=>
{
if
(
res
.
data
.
data
==
"true"
)
{
}
});
},
toSpokesmanCenter
()
{
let
url
=
`/pages/index/main?from=home&backpath=
${
encodeURIComponent
(
`/personalCenter/spokesmanCenter`
)}
`
wx
.
redirectTo
({
url
,
});
},
async
initWxShare
()
{
async
initWxShare
()
{
return
return
let
this_
=
this
;
let
this_
=
this
;
...
@@ -210,9 +263,9 @@ export default {
...
@@ -210,9 +263,9 @@ export default {
console
.
log
(
spokesmanRelId
,
'分销员信息---====='
,
spokesmanGroupId
,
spokesmanShopId
);
console
.
log
(
spokesmanRelId
,
'分销员信息---====='
,
spokesmanGroupId
,
spokesmanShopId
);
let
newWindowHref
=
''
;
let
newWindowHref
=
''
;
if
(
getTokenmu
()
&&
spokesmanRelId
){
if
(
getTokenmu
()
&&
spokesmanRelId
){
newWindowHref
=
`
${
window
.
location
.
protocol
}
//
${
window
.
location
.
host
}
/activty/receivingGift?mixid=
${
this
.
$route
.
query
.
mixid
}
&orderId=
${
this
.
orderDetail
.
orderId
}
&spokesmanGroupId=
${
spokesmanGroupId
}
&spokesmanShopId=
${
spokesmanShopId
}
&spokesmanRelId=
${
spokesmanRelId
}
&userId=
${
getTokenmu
()}
`
;
newWindowHref
=
`
${
process
.
env
.
BASE_URL
}
/activty/receivingGift?mixid=
${
this
.
$route
.
query
.
mixid
}
&orderId=
${
this
.
orderDetail
.
orderId
}
&spokesmanGroupId=
${
spokesmanGroupId
}
&spokesmanShopId=
${
spokesmanShopId
}
&spokesmanRelId=
${
spokesmanRelId
}
&userId=
${
getTokenmu
()}
`
;
}
else
{
}
else
{
newWindowHref
=
`
${
window
.
location
.
protocol
}
//
${
window
.
location
.
host
}
/activty/receivingGift?mixid=
${
this
.
$route
.
query
.
mixid
}
&orderId=
${
this
.
orderDetail
.
orderId
}
&userId=
${
getTokenmu
()}
`
;
newWindowHref
=
`
${
process
.
env
.
BASE_URL
}
/activty/receivingGift?mixid=
${
this
.
$route
.
query
.
mixid
}
&orderId=
${
this
.
orderDetail
.
orderId
}
&userId=
${
getTokenmu
()}
`
;
}
}
let
shareImgUrl
=
DFSImg
(
let
shareImgUrl
=
DFSImg
(
...
@@ -391,4 +444,64 @@ export default {
...
@@ -391,4 +444,64 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.paySuccess
{
.paySuccess
{
}
}
.spokemanEntry
{
/deep/.van-popup{
width
:
85%
!important
;
height
:
50%
!important
;
//
padding
:
12px
;
border-radius
:
3px
;
background
:
url("http://mayi-newshop.oss-cn-shanghai.aliyuncs.com/public/png/d6c8ce5a-574b-4191-81ea-843d15a30b68.png")
no-repeat
!important
;
background-size
:
100%
100%
!important
;
padding-left
:
38px
!important
;
padding-top
:
50px
!important
;
padding-right
:
38px
!important
;
//
height
:
100px
;
.ent-top
{
//
background
:
#DFDFDF
;
//
height
:
150px
;
//
padding
:
45px
0
;
p
{
//
text-align
:
center
;
line-height
:
30px
;
}
p
:nth-child
(
1
)
{
text-align
:
left
;
}
p
:nth-child
(
2
)
{
margin-top
:
17px
;
margin-bottom
:
55px
;
}
}
.reviwBtn
{
width
:
200px
;
height
:
44px
;
//
background
:
var
(
--main-color
);
background
:
linear-gradient
(
-90deg
,
rgba
(
83
,
37
,
26
,
1
)
0%
,
rgba
(
130
,
71
,
56
,
1
)
100%
);
border-radius
:
25px
;
font-size
:
14px
;
//
color
:
#fff
;
color
:
#fff
;
margin-top
:
10px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
//
margin-left
:
45px
;
}
.ignore
{
//
color
:
var
(
--minor-color
);
color
:
#53251a
;
font-size
:
12px
;
text-align
:
center
;
margin-top
:
20px
;
}
p
{
//
text-align
:
center
;
}
}
}
</
style
>
</
style
>
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