Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
group-buy-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
group-buy-ui
Commits
be6e9df0
Commit
be6e9df0
authored
Oct 03, 2021
by
beisir
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feat/group-buy' of git.quantgroup.cn:ui/group-buy-ui into feat/group-buy
parents
cf008450
ee40dfe8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
6 deletions
+15
-6
cookieStorage.service.js
src/service/cookieStorage.service.js
+2
-1
groupDescInfo.vue
src/views/goodsDetail/components/groupDescInfo.vue
+1
-1
index.vue
src/views/pay/index.vue
+1
-1
payResult.vue
src/views/pay/payResult.vue
+11
-3
No files found.
src/service/cookieStorage.service.js
View file @
be6e9df0
import
cookies
from
'
js-cookie
'
;
import
cookies
from
'
js-cookie
'
;
const
option
=
{
const
option
=
{
domain
:
window
.
location
.
host
.
indexOf
(
'
.q-gp.com
'
)
>=
0
?
'
.q-gp.com
'
:
''
domain
:
window
.
location
.
host
.
indexOf
(
'
.q-gp.com
'
)
>=
0
?
'
.q-gp.com
'
:
''
,
expires
:
1
};
};
const
Cookies
=
{
const
Cookies
=
{
get
(
key
)
{
get
(
key
)
{
...
...
src/views/goodsDetail/components/groupDescInfo.vue
View file @
be6e9df0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"desc-item"
>
<div
class=
"desc-item"
>
<template
v-if=
"groupInfo.groupBuyStatus == 1"
>
<template
v-if=
"groupInfo.groupBuyStatus == 1"
>
<template
v-if=
"!groupInfo.joinGroup && !groupInfo.canJoinGroupBuyAgain"
>
<template
v-if=
"!groupInfo.joinGroup && !groupInfo.canJoinGroupBuyAgain"
>
拼团失败!
<!-- 您不符合参与此团的条件 -->
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<p
class=
"desc"
>
<p
class=
"desc"
>
...
...
src/views/pay/index.vue
View file @
be6e9df0
...
@@ -638,7 +638,7 @@ export default {
...
@@ -638,7 +638,7 @@ export default {
const
freeAmount
=
const
freeAmount
=
!
IS_THIRD_PAY
(
this
.
payType
)
&&
this
.
showCoupon
?
faceValue
||
'
0.00
'
:
'
0.00
'
;
!
IS_THIRD_PAY
(
this
.
payType
)
&&
this
.
showCoupon
?
faceValue
||
'
0.00
'
:
'
0.00
'
;
this
.
amountInfo
=
{
finalAmt
,
freeAmount
};
this
.
amountInfo
=
{
finalAmt
,
freeAmount
};
cookies
.
set
(
'
amount
'
,
{
finalAmt
,
freeAmount
}
);
cookies
.
set
(
'
amount
'
,
JSON
.
stringify
({
finalAmt
,
freeAmount
})
);
},
},
async
reissueContract
()
{
async
reissueContract
()
{
await
reissueContract
({
await
reissueContract
({
...
...
src/views/pay/payResult.vue
View file @
be6e9df0
...
@@ -75,6 +75,7 @@ import groupBuyApi from '@/api/groupBuy';
...
@@ -75,6 +75,7 @@ import groupBuyApi from '@/api/groupBuy';
import
{
isApp
,
isWxMp
}
from
'
@/service/validation.service
'
;
import
{
isApp
,
isWxMp
}
from
'
@/service/validation.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
MpBridge
from
'
@/service/mp
'
;
import
MpBridge
from
'
@/service/mp
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
export
default
{
export
default
{
components
:
{
components
:
{
// Goods,
// Goods,
...
@@ -96,14 +97,21 @@ export default {
...
@@ -96,14 +97,21 @@ export default {
};
};
},
},
created
()
{
created
()
{
const
{
orderNo
,
reason
,
amount
,
freeAmount
,
payType
}
=
this
.
$route
.
query
;
const
{
orderNo
,
reason
,
payType
}
=
this
.
$route
.
query
;
const
{
success
}
=
this
.
$route
.
meta
;
const
{
success
}
=
this
.
$route
.
meta
;
// const amount = cookies.get('amount') || {};
try
{
const
amount
=
JSON
.
parse
(
cookies
.
get
(
'
amount
'
));
this
.
money
=
amount
.
finalAmt
||
''
;
this
.
freeAmount
=
amount
.
freeAmount
||
''
;
}
catch
(
e
)
{
this
.
money
=
''
;
this
.
freeAmount
=
''
;
}
this
.
payType
=
payType
||
''
;
this
.
payType
=
payType
||
''
;
this
.
money
=
amount
||
''
;
this
.
orderNo
=
orderNo
;
this
.
orderNo
=
orderNo
;
this
.
reason
=
reason
||
''
;
this
.
reason
=
reason
||
''
;
this
.
isSuccess
=
success
||
false
;
this
.
isSuccess
=
success
||
false
;
this
.
freeAmount
=
freeAmount
||
''
;
this
.
payStatus
=
success
?
'
订单支付成功
'
:
'
订单支付失败
'
;
this
.
payStatus
=
success
?
'
订单支付成功
'
:
'
订单支付失败
'
;
this
.
payStatusName
=
success
?
'
支付成功
'
:
'
支付失败
'
;
this
.
payStatusName
=
success
?
'
支付成功
'
:
'
支付失败
'
;
this
.
getCouponList
();
this
.
getCouponList
();
...
...
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