Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cauchy-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
cauchy-ui
Commits
8e3b262e
Commit
8e3b262e
authored
Jul 16, 2021
by
郭志伟
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.quantgroup.cn/ui/cauchy-ui
parents
c6674aa3
a2a79f6d
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
22 additions
and
32 deletions
+22
-32
RechargeInput.vue
src/views/home/components/RechargeInput.vue
+2
-4
index.vue
src/views/home/index.vue
+5
-1
PayCard.vue
src/views/pay/components/PayCard.vue
+2
-16
PayCardItem.vue
src/views/pay/components/PayCardItem.vue
+1
-1
PayGroupCard.vue
src/views/pay/components/PayGroupCard.vue
+2
-3
extends.js
src/views/pay/extends.js
+4
-4
payResult.vue
src/views/pay/payResult.vue
+1
-1
index.vue
src/views/vipLife/index.vue
+5
-2
No files found.
src/views/home/components/RechargeInput.vue
View file @
8e3b262e
...
@@ -71,14 +71,12 @@ export default {
...
@@ -71,14 +71,12 @@ export default {
this
.
queryhome
();
this
.
queryhome
();
}
}
}
,
}
,
async
searchPhoneNo
(
e
)
{
async
searchPhoneNo
()
{
console
.
log
(
e
);
setTimeout
(()
=>
{
setTimeout
(()
=>
{
this
.
inputBlur
=
false
;
this
.
inputBlur
=
false
;
}
,
500
);
}
,
500
);
if
(
!
this
.
phoneNo
)
return
;
if
(
this
.
phoneNo
&&
!
checkPhoneFormat
(
this
.
phoneNo
))
{
if
(
!
checkPhoneFormat
(
this
.
phoneNo
))
{
this
.
$toast
.
fail
(
'
请您输入正确的手机号
'
);
this
.
$toast
.
fail
(
'
请您输入正确的手机号
'
);
this
.
input
();
this
.
input
();
return
;
return
;
...
...
src/views/home/index.vue
View file @
8e3b262e
...
@@ -77,7 +77,7 @@ export default {
...
@@ -77,7 +77,7 @@ export default {
}
,
}
,
async
goOrderApi
()
{
async
goOrderApi
()
{
const
{
skuNo
,
salePrice
}
=
this
.
selectedRechargeInfo
;
const
{
skuNo
,
salePrice
}
=
this
.
selectedRechargeInfo
;
const
[
res
]
=
await
orderApi
.
orderCreate
({
const
[
res
,
error
]
=
await
orderApi
.
orderCreate
({
totalFee
:
salePrice
,
totalFee
:
salePrice
,
terminal
:
'
H5
'
,
terminal
:
'
H5
'
,
account
:
this
.
rechargePhoneInfo
?.
phoneNo
,
account
:
this
.
rechargePhoneInfo
?.
phoneNo
,
...
@@ -90,6 +90,10 @@ export default {
...
@@ -90,6 +90,10 @@ export default {
}
}
]
]
}
);
}
);
console
.
log
(
error
,
'
error
'
,
res
);
if
(
error
)
{
return
;
}
res
&&
this
.
$router
.
push
({
path
:
'
/pay
'
,
query
:
{
orderNo
:
res
.
orderNo
}
}
);
res
&&
this
.
$router
.
push
({
path
:
'
/pay
'
,
query
:
{
orderNo
:
res
.
orderNo
}
}
);
}
}
}
}
...
...
src/views/pay/components/PayCard.vue
View file @
8e3b262e
...
@@ -59,22 +59,8 @@ export default {
...
@@ -59,22 +59,8 @@ export default {
payList
:
this
?.
value
?.
payList
||
{}
payList
:
this
?.
value
?.
payList
||
{}
};
};
},
},
mounted
()
{
mounted
()
{},
console
.
log
(
this
.
value
,
'
value
'
);
methods
:
{}
},
methods
:
{
changePayType
(
payType
)
{
// 需要初始化全部的选中状态
for
(
let
item
in
this
.
payList
)
{
if
(
this
.
payList
[
item
].
payType
===
payType
)
{
this
.
payList
[
item
].
isCheck
=
true
;
continue
;
}
this
.
payList
[
item
].
isCheck
=
false
;
}
this
.
$emit
(
'
changePayType
'
,
payType
);
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
...
...
src/views/pay/components/PayCardItem.vue
View file @
8e3b262e
...
@@ -64,7 +64,7 @@ export default {
...
@@ -64,7 +64,7 @@ export default {
},
},
methods
:
{
methods
:
{
changePayType
({
payType
,
mergePayPretreatmentInfo
})
{
changePayType
({
payType
,
mergePayPretreatmentInfo
})
{
if
(
this
.
disabled
||
this
.
value
.
disabled
)
{
if
(
this
.
disabled
||
this
.
value
.
disabled
||
this
.
isGroupPay
)
{
return
;
return
;
}
}
this
.
$emit
(
'
click
'
);
this
.
$emit
(
'
click
'
);
...
...
src/views/pay/components/PayGroupCard.vue
View file @
8e3b262e
<
template
>
<
template
>
<div>
<div
@
click=
"changePayType(thirdPayInfo)"
>
<div
class=
"groupCard"
>
<div
class=
"groupCard"
>
<PayCardItem
<PayCardItem
:is-group-pay=
"true"
:is-group-pay=
"true"
...
@@ -89,11 +89,10 @@ export default {
...
@@ -89,11 +89,10 @@ export default {
},
},
methods
:
{
methods
:
{
changePayType
({
payType
,
mergePayPretreatmentInfo
})
{
changePayType
({
payType
,
mergePayPretreatmentInfo
})
{
console
.
log
(
mergePayPretreatmentInfo
,
'
mergePayPretreatmentInfo
'
);
if
(
this
.
disabled
||
this
.
creditPayInfo
.
disabled
)
{
if
(
this
.
disabled
||
this
.
creditPayInfo
.
disabled
)
{
return
;
return
;
}
}
this
.
pay
Card
.
changePayType
(
payType
,
mergePayPretreatmentInfo
);
this
.
pay
.
changePayType
(
payType
,
mergePayPretreatmentInfo
);
},
},
openCouponModal
()
{
openCouponModal
()
{
if
(
this
.
couponDisabled
)
return
;
if
(
this
.
couponDisabled
)
return
;
...
...
src/views/pay/extends.js
View file @
8e3b262e
...
@@ -5,7 +5,7 @@ export const goUrlExtends = {
...
@@ -5,7 +5,7 @@ export const goUrlExtends = {
// 商城地址
// 商城地址
const
returnUrl
=
this
.
getReturnUrl
();
const
returnUrl
=
this
.
getReturnUrl
();
if
(
returnUrl
)
{
if
(
returnUrl
)
{
window
.
location
.
replace
=
`
${
returnUrl
}
`
;
window
.
location
.
replace
(
`
${
returnUrl
}
`
)
;
return
;
return
;
}
}
this
.
$router
.
replace
({
name
:
'
home
'
});
this
.
$router
.
replace
({
name
:
'
home
'
});
...
@@ -13,16 +13,16 @@ export const goUrlExtends = {
...
@@ -13,16 +13,16 @@ export const goUrlExtends = {
goOrderList
()
{
goOrderList
()
{
const
returnUrl
=
this
.
getReturnUrl
();
const
returnUrl
=
this
.
getReturnUrl
();
if
(
returnUrl
)
{
if
(
returnUrl
)
{
window
.
location
.
replace
=
`
${
returnUrl
}
/orderList`
;
window
.
location
.
replace
(
`
${
returnUrl
}
/orderList`
)
;
return
;
return
;
}
}
this
.
$router
.
replace
({
name
:
'
orderList
'
}
,
'
sessionStorage
'
);
this
.
$router
.
replace
({
name
:
'
orderList
'
});
},
},
goOrderDetail
()
{
goOrderDetail
()
{
const
returnUrl
=
this
.
getReturnUrl
();
const
returnUrl
=
this
.
getReturnUrl
();
const
orderNo
=
localStorage
.
get
(
'
orderNo
'
)?.
orderNo
;
const
orderNo
=
localStorage
.
get
(
'
orderNo
'
)?.
orderNo
;
if
(
returnUrl
)
{
if
(
returnUrl
)
{
window
.
location
.
replace
=
`
${
returnUrl
}
/orderDetail?orderNo=
${
orderNo
}
`
;
window
.
location
.
replace
(
`
${
returnUrl
}
/orderDetail?orderNo=
${
orderNo
}
`
)
;
return
;
return
;
}
}
this
.
$router
.
push
({
this
.
$router
.
push
({
...
...
src/views/pay/payResult.vue
View file @
8e3b262e
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
>
重新支付
</cr-button
>
重新支付
</cr-button
>
>
</div>
</div>
<RecoGoods
/>
<RecoGoods
v-if=
"!getReturnUrl()"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
...
...
src/views/vipLife/index.vue
View file @
8e3b262e
...
@@ -120,7 +120,7 @@ export default {
...
@@ -120,7 +120,7 @@ export default {
async
getList
()
{
async
getList
()
{
const
[
res
]
=
await
rechargeApi
.
getSpuList
();
const
[
res
]
=
await
rechargeApi
.
getSpuList
();
if
(
res
)
{
if
(
res
)
{
this
.
account
=
res
.
userPhoneInfo
.
phoneNo
;
this
.
account
=
res
?.
userPhoneInfo
?
.
phoneNo
;
this
.
spuData
=
res
.
vipLife
;
this
.
spuData
=
res
.
vipLife
;
this
.
updateSpuInfo
(
this
.
spuData
[
this
.
currentTab
-
1
].
itemList
[
0
]);
this
.
updateSpuInfo
(
this
.
spuData
[
this
.
currentTab
-
1
].
itemList
[
0
]);
this
.
getSkuListDebounce
();
this
.
getSkuListDebounce
();
...
@@ -152,7 +152,7 @@ export default {
...
@@ -152,7 +152,7 @@ export default {
return
this
.
$toast
.
fail
(
'
请填写账号!
'
);
return
this
.
$toast
.
fail
(
'
请填写账号!
'
);
if
(
!
this
.
skuInfo
.
skuNo
)
return
this
.
$toast
.
fail
(
'
请选择类型!
'
);
if
(
!
this
.
skuInfo
.
skuNo
)
return
this
.
$toast
.
fail
(
'
请选择类型!
'
);
const
{
skuNo
,
salePrice
}
=
this
.
skuInfo
;
const
{
skuNo
,
salePrice
}
=
this
.
skuInfo
;
const
[
res
]
=
await
orderApi
.
orderCreate
({
const
[
res
,
error
]
=
await
orderApi
.
orderCreate
({
account
:
this
.
account
,
account
:
this
.
account
,
totalFee
:
salePrice
,
totalFee
:
salePrice
,
virtualRechargeType
:
this
.
spuInfo
.
type
,
virtualRechargeType
:
this
.
spuInfo
.
type
,
...
@@ -163,6 +163,9 @@ export default {
...
@@ -163,6 +163,9 @@ export default {
}
}
]
]
});
});
if
(
error
)
{
return
;
}
res
&&
this
.
$router
.
push
({
path
:
'
/pay
'
,
query
:
{
orderNo
:
res
.
orderNo
}
});
res
&&
this
.
$router
.
push
({
path
:
'
/pay
'
,
query
:
{
orderNo
:
res
.
orderNo
}
});
},
1000
)
},
1000
)
}
}
...
...
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