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
e6c75515
Commit
e6c75515
authored
Sep 30, 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
913d5343
271255cc
Changes
16
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
69 additions
and
32 deletions
+69
-32
bottomNav.vue
src/components/bottomNav.vue
+5
-1
groupShare.vue
src/components/groupShare.vue
+2
-0
rules.vue
src/components/rules.vue
+2
-0
goodsCheck.mixin.js
src/mixins/goodsCheck.mixin.js
+2
-0
module.js
src/store/module.js
+1
-1
addressManage.vue
src/views/address/addressManage.vue
+1
-0
groupDescInfo.vue
src/views/goodsDetail/components/groupDescInfo.vue
+1
-1
index.vue
src/views/goodsDetail/index.vue
+4
-1
smallPic.less
src/views/goodsDetail/smallPic.less
+1
-1
goodsCard.vue
src/views/goodsList/components/goodsCard.vue
+1
-0
createOrder.vue
src/views/order/createOrder.vue
+1
-0
List.vue
src/views/orderList/components/List.vue
+9
-4
STATIC_DATA.js
src/views/pay/STATIC_DATA.js
+1
-0
index.less
src/views/pay/index.less
+5
-2
index.vue
src/views/pay/index.vue
+31
-21
payResult.vue
src/views/pay/payResult.vue
+2
-0
No files found.
src/components/bottomNav.vue
View file @
e6c75515
...
@@ -103,7 +103,11 @@ export default {
...
@@ -103,7 +103,11 @@ export default {
align-items: center;
align-items: center;
width: 100%;
width: 100%;
height: 30px;
height: 30px;
padding: 10px 0;
padding-bottom: calc(10px + constant(safe-area-inset-bottom));
padding-bottom: calc(10px + env(safe-area-inset-bottom));
padding-top: 10px;
padding-left: 0;
padding-right: 0;
background: @white;
background: @white;
border-top: 1px solid #f7f7f7;
border-top: 1px solid #f7f7f7;
&-radio {
&-radio {
...
...
src/components/groupShare.vue
View file @
e6c75515
...
@@ -223,6 +223,7 @@ export default {
...
@@ -223,6 +223,7 @@ export default {
message
:
'
请点击小程序右上角更多进行分享~
'
,
message
:
'
请点击小程序右上角更多进行分享~
'
,
showCancelButton
:
false
,
showCancelButton
:
false
,
confirmButtonText
:
'
我知道了哦~
'
,
confirmButtonText
:
'
我知道了哦~
'
,
closeOnClickOverlay
:
!
isApp
&&
!
isWxMp
?
false
:
true
,
onConfirm
:
()
=>
{}
onConfirm
:
()
=>
{}
});
});
},
},
...
@@ -248,6 +249,7 @@ export default {
...
@@ -248,6 +249,7 @@ export default {
tipDialogMessage
()
{
tipDialogMessage
()
{
this
.
$dialog
({
this
.
$dialog
({
message
:
'
请在App或小程序中进行分享~
'
,
message
:
'
请在App或小程序中进行分享~
'
,
closeOnClickOverlay
:
!
isApp
&&
!
isWxMp
?
false
:
true
,
title
:
''
,
title
:
''
,
showCancelButton
:
false
,
showCancelButton
:
false
,
confirmButtonText
:
'
我知道了
'
confirmButtonText
:
'
我知道了
'
...
...
src/components/rules.vue
View file @
e6c75515
...
@@ -31,6 +31,7 @@
...
@@ -31,6 +31,7 @@
}
}
</
style
>
</
style
>
<
script
>
<
script
>
import
{
isApp
,
isWxMp
}
from
'
@/service/validation.service
'
;
export
default
{
export
default
{
props
:
{
props
:
{
groupInfo
:
{
groupInfo
:
{
...
@@ -44,6 +45,7 @@ export default {
...
@@ -44,6 +45,7 @@ export default {
showRules
()
{
showRules
()
{
this
.
$dialog
({
this
.
$dialog
({
messageAlign
:
'
left
'
,
messageAlign
:
'
left
'
,
closeOnClickOverlay
:
!
isApp
&&
!
isWxMp
?
false
:
true
,
message
:
this
.
groupInfo
.
groupBuyDesc
||
''
,
message
:
this
.
groupInfo
.
groupBuyDesc
||
''
,
title
:
'
拼团须知
'
,
title
:
'
拼团须知
'
,
showCancelButton
:
false
,
showCancelButton
:
false
,
...
...
src/mixins/goodsCheck.mixin.js
View file @
e6c75515
...
@@ -39,6 +39,7 @@ export default {
...
@@ -39,6 +39,7 @@ export default {
this
.
$dialog
({
this
.
$dialog
({
message
:
'
参与拼团活动需要您先进行登录哦~
'
,
message
:
'
参与拼团活动需要您先进行登录哦~
'
,
title
:
''
,
title
:
''
,
closeOnClickOverlay
:
true
,
showCancelButton
:
false
,
showCancelButton
:
false
,
confirmButtonText
:
'
登录
'
,
confirmButtonText
:
'
登录
'
,
onConfirm
:
()
=>
{
onConfirm
:
()
=>
{
...
@@ -51,6 +52,7 @@ export default {
...
@@ -51,6 +52,7 @@ export default {
this
.
$dialog
({
this
.
$dialog
({
message
:
'
请在App或小程序中参与活动~
'
,
message
:
'
请在App或小程序中参与活动~
'
,
title
:
''
,
title
:
''
,
closeOnClickOverlay
:
true
,
showCancelButton
:
false
,
showCancelButton
:
false
,
confirmButtonText
:
'
我知道了
'
confirmButtonText
:
'
我知道了
'
});
});
...
...
src/store/module.js
View file @
e6c75515
...
@@ -110,7 +110,7 @@ const mutations = {
...
@@ -110,7 +110,7 @@ const mutations = {
let
getScheme
=
async
function
()
{
let
getScheme
=
async
function
()
{
const
[
res
]
=
await
groupBuy
.
getScheme
({
const
[
res
]
=
await
groupBuy
.
getScheme
({
miniUrl
:
'
pages/groupbuy/webview
'
,
miniUrl
:
'
pages/groupbuy/webview
'
,
// miniUrl: 'pages/product/goodDetail'
,
// miniUrl: 'pages/product/goodDetail'
params
:
`url=
${
encodeURIComponent
(
params
:
`url=
${
encodeURIComponent
(
JSON
.
stringify
(
paramsParentheses
(
pointer
)
+
'
&vccToken={token}
'
)
JSON
.
stringify
(
paramsParentheses
(
pointer
)
+
'
&vccToken={token}
'
)
)}
`
)}
`
...
...
src/views/address/addressManage.vue
View file @
e6c75515
...
@@ -171,6 +171,7 @@ export default {
...
@@ -171,6 +171,7 @@ export default {
const
_this
=
this
;
const
_this
=
this
;
this
.
$dialog
({
this
.
$dialog
({
title
:
''
,
title
:
''
,
closeOnClickOverlay
:
true
,
message
:
'
确认删除该地址?
'
,
message
:
'
确认删除该地址?
'
,
onConfirm
:
function
()
{
onConfirm
:
function
()
{
_this
.
deleteAddr
();
_this
.
deleteAddr
();
...
...
src/views/goodsDetail/components/groupDescInfo.vue
View file @
e6c75515
...
@@ -70,7 +70,7 @@ export default {
...
@@ -70,7 +70,7 @@ export default {
observer
:
null
,
observer
:
null
,
statusTextMap
:
{
statusTextMap
:
{
0
:
'
发起拼团,邀请好友一起拼团吧!
'
,
0
:
'
发起拼团,邀请好友一起拼团吧!
'
,
2
:
'
恭喜成团
!
'
,
2
:
'
恭喜成团
!
'
,
3
:
'
哎呀,拼团时间已过,尚未成团!
'
,
3
:
'
哎呀,拼团时间已过,尚未成团!
'
,
4
:
'
已发货
'
4
:
'
已发货
'
}
}
...
...
src/views/goodsDetail/index.vue
View file @
e6c75515
...
@@ -206,6 +206,7 @@ import localStorage from '@/service/localStorage.service';
...
@@ -206,6 +206,7 @@ import localStorage from '@/service/localStorage.service';
import
goodsCheckMixin
from
'
@/mixins/goodsCheck.mixin
'
;
import
goodsCheckMixin
from
'
@/mixins/goodsCheck.mixin
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
import
{
isApp
,
isWxMp
}
from
'
@/service/validation.service
'
;
export
default
{
export
default
{
// eslint-disable-next-line vue/name-property-casing
// eslint-disable-next-line vue/name-property-casing
name
:
'
goodDetail
'
,
name
:
'
goodDetail
'
,
...
@@ -346,7 +347,8 @@ export default {
...
@@ -346,7 +347,8 @@ export default {
message
:
checkStatus
.
failedReason
||
''
,
message
:
checkStatus
.
failedReason
||
''
,
cancelButtonText
:
'
知道了
'
,
cancelButtonText
:
'
知道了
'
,
showConfirmButton
:
false
,
showConfirmButton
:
false
,
cancelButtonColor
:
'
#ec1500
'
cancelButtonColor
:
'
#ec1500
'
,
closeOnClickOverlay
:
!
isApp
&&
!
isWxMp
?
false
:
true
// confirmButtonText: '返回活动',
// confirmButtonText: '返回活动',
// onConfirm: () => {
// onConfirm: () => {
// this.$router.replace({
// this.$router.replace({
...
@@ -438,6 +440,7 @@ export default {
...
@@ -438,6 +440,7 @@ export default {
this
.
$dialog
({
this
.
$dialog
({
message
:
'
哎呀,活动太火爆,该商品已经卖光,换一个商品试试吧!
'
,
message
:
'
哎呀,活动太火爆,该商品已经卖光,换一个商品试试吧!
'
,
title
:
''
,
title
:
''
,
closeOnClickOverlay
:
!
isApp
&&
!
isWxMp
?
false
:
true
,
showCancelButton
:
false
,
showCancelButton
:
false
,
confirmButtonText
:
'
查看其他商品
'
,
confirmButtonText
:
'
查看其他商品
'
,
onConfirm
:
()
=>
{
onConfirm
:
()
=>
{
...
...
src/views/goodsDetail/smallPic.less
View file @
e6c75515
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
&-group-buy-head-content{
&-group-buy-head-content{
height: 64px;
height: 64px;
width: 100%;
width: 100%;
padding: 0 @padding-sm;
//
padding: 0 @padding-sm;
display: flex;
display: flex;
align-items: center;
align-items: center;
justify-content: space-between;
justify-content: space-between;
...
...
src/views/goodsList/components/goodsCard.vue
View file @
e6c75515
...
@@ -122,6 +122,7 @@ export default {
...
@@ -122,6 +122,7 @@ export default {
this
.
$dialog
({
this
.
$dialog
({
message
,
message
,
closeOnClickOverlay
:
true
,
showCancelButton
:
true
,
showCancelButton
:
true
,
confirmButtonText
,
confirmButtonText
,
onConfirm
:
()
=>
{
onConfirm
:
()
=>
{
...
...
src/views/order/createOrder.vue
View file @
e6c75515
...
@@ -170,6 +170,7 @@ export default {
...
@@ -170,6 +170,7 @@ export default {
async
handleBuy
()
{
async
handleBuy
()
{
if
(
!
this
.
orderInfo
.
addrReceiverInfo
?.
addrReceiverId
)
{
if
(
!
this
.
orderInfo
.
addrReceiverInfo
?.
addrReceiverId
)
{
this
.
$dialog
({
this
.
$dialog
({
closeOnClickOverlay
:
true
,
message
:
'
你还没有选择收货地址哦!
'
,
message
:
'
你还没有选择收货地址哦!
'
,
showCancelButton
:
false
,
showCancelButton
:
false
,
confirmButtonText
:
'
去添加
'
,
confirmButtonText
:
'
去添加
'
,
...
...
src/views/orderList/components/List.vue
View file @
e6c75515
...
@@ -167,10 +167,6 @@ export default {
...
@@ -167,10 +167,6 @@ export default {
});
});
},
},
goGroupDetails
(
skuInfo
)
{
goGroupDetails
(
skuInfo
)
{
saTrackEvent
(
'
H5_MyPuzzlePageGroupOrderBtnClick
'
,
{
sku_no
:
skuInfo
.
skuList
[
0
].
skuNo
,
group_id
:
skuInfo
.
activityHundredGroupId
});
if
(
isWxMp
)
{
if
(
isWxMp
)
{
this
.
nativeBridge
.
openNewUrl
({
this
.
nativeBridge
.
openNewUrl
({
newUrl
:
`/pages/order/orderDetail?orderNo=
${
skuInfo
.
orderNo
}
`
newUrl
:
`/pages/order/orderDetail?orderNo=
${
skuInfo
.
orderNo
}
`
...
@@ -195,6 +191,7 @@ export default {
...
@@ -195,6 +191,7 @@ export default {
}
else
{
}
else
{
// todo 处理纯h5情况
// todo 处理纯h5情况
this
.
$dialog
({
this
.
$dialog
({
closeOnClickOverlay
:
!
isApp
&&
!
isWxMp
?
false
:
true
,
message
:
'
请在App或小程序中参与活动~
'
,
message
:
'
请在App或小程序中参与活动~
'
,
title
:
''
,
title
:
''
,
showCancelButton
:
false
,
showCancelButton
:
false
,
...
@@ -213,6 +210,14 @@ export default {
...
@@ -213,6 +210,14 @@ export default {
toDetail
(
goodsItem
)
{
toDetail
(
goodsItem
)
{
const
{
skuList
,
activityInfoId
,
activityHundredGroupId
}
=
goodsItem
;
const
{
skuList
,
activityInfoId
,
activityHundredGroupId
}
=
goodsItem
;
try
{
saTrackEvent
(
'
H5_MyPuzzlePageGroupOrderBtnClick
'
,
{
sku_no
:
skuList
[
0
].
skuNo
,
group_id
:
activityHundredGroupId
});
}
catch
(
e
)
{
console
.
log
(
e
);
}
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'
/groupBuy/skuInfoSmallPic
'
,
path
:
'
/groupBuy/skuInfoSmallPic
'
,
query
:
{
query
:
{
...
...
src/views/pay/STATIC_DATA.js
View file @
e6c75515
...
@@ -119,6 +119,7 @@ function havePayingOrder() {
...
@@ -119,6 +119,7 @@ function havePayingOrder() {
this
.
$dialog
({
this
.
$dialog
({
message
:
'
您的享花卡额度被其他订单占用,暂时不可使用享花卡支付哦!
'
,
message
:
'
您的享花卡额度被其他订单占用,暂时不可使用享花卡支付哦!
'
,
confirmButtonText
:
'
重新选择
'
,
confirmButtonText
:
'
重新选择
'
,
closeOnClickOverlay
:
true
,
showCancelButton
:
false
,
showCancelButton
:
false
,
confirmButtonColor
:
'
#EC1500
'
confirmButtonColor
:
'
#EC1500
'
});
});
...
...
src/views/pay/index.less
View file @
e6c75515
...
@@ -61,10 +61,13 @@
...
@@ -61,10 +61,13 @@
}
}
}
}
.btn{
.btn{
height:50px;
width: 100%;
width: 100%;
position: fixed;
position: fixed;
padding: 0 @padding-lg;
padding-left: @padding-lg;
padding-right: @padding-lg;
padding-top: 10px;
padding-bottom: calc(10px + constant(safe-area-inset-bottom));
padding-bottom: calc(10px + env(safe-area-inset-bottom));
box-sizing: border-box;
box-sizing: border-box;
bottom: 0;
bottom: 0;
left:0;
left:0;
...
...
src/views/pay/index.vue
View file @
e6c75515
...
@@ -54,30 +54,34 @@
...
@@ -54,30 +54,34 @@
</cr-button>
</cr-button>
</p>
</p>
<p
v-if=
"overtime"
class=
"btn"
>
<p
v-if=
"overtime"
class=
"btn"
>
<cr-button
v-if=
"isOrder"
type=
"default"
class=
"btn-default"
@
click=
"goOrderList"
<
!--
<
cr-button
v-if=
"isOrder"
type=
"default"
class=
"btn-default"
@
click=
"goOrderList"
>
我的订单
</cr-button
>
我的订单
</cr-button
>
>
-->
<cr-button
type=
"primary"
class=
"btn-primary"
@
click=
"
goHome"
>
返回商城
</cr-button>
<cr-button
type=
"primary"
class=
"btn-primary"
@
click=
"
navigateBack"
>
返回
</cr-button>
</p>
</p>
<p
class=
"placeholder"
/>
<p
class=
"placeholder"
/>
<!-- 支付密码弹窗 -->
<!-- 支付密码弹窗 -->
<cr-pwd-field
<template
v-if=
"pwdModal"
>
ref=
"pwd"
<cr-pwd-field
v-model=
"pwdModal"
ref=
"pwd"
:amount=
"amount"
v-model=
"pwdModal"
@
getData=
"getPwd"
:amount=
"amount"
@
retrieveLink=
"retrieveLink"
@
getData=
"getPwd"
/>
@
retrieveLink=
"retrieveLink"
/>
</
template
>
<!-- 短信验证弹窗 -->
<!-- 短信验证弹窗 -->
<cr-sms-code-modal
<
template
v-if=
"smsModal"
>
v-model=
"smsModal"
<cr-sms-code-modal
:error-info=
"error"
v-model=
"smsModal"
:order-no=
"orderNo"
:error-info=
"error"
:flow-order-no=
"flowOrderNo"
:order-no=
"orderNo"
@
close=
"smsModal = false"
:flow-order-no=
"flowOrderNo"
@
submit=
"getSms"
@
close=
"smsModal = false"
/>
@
submit=
"getSms"
/>
</
template
>
<!-- 享花券弹窗 -->
<!-- 享花券弹窗 -->
<cr-popup
v-model=
"couponPopup"
closeable
round
position=
"bottom"
>
<cr-popup
v-model=
"couponPopup"
closeable
round
position=
"bottom"
>
...
@@ -101,7 +105,7 @@ import { isWechat } from '@/service/validation.service';
...
@@ -101,7 +105,7 @@ import { isWechat } from '@/service/validation.service';
import
{
encryptByDESModeEBC
}
from
'
@/service/encrypt
'
;
import
{
encryptByDESModeEBC
}
from
'
@/service/encrypt
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
{
throttle
}
from
'
@/service/utils.service
'
;
import
{
throttle
}
from
'
@/service/utils.service
'
;
import
{
goUrlExtends
}
from
'
./extends
'
;
//
import { goUrlExtends } from './extends';
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
import
{
import
{
...
@@ -145,7 +149,7 @@ export default {
...
@@ -145,7 +149,7 @@ export default {
pay
:
this
pay
:
this
};
};
},
},
extends
:
goUrlExtends
,
//
extends: goUrlExtends,
data
()
{
data
()
{
return
{
return
{
isOrder
:
true
,
isOrder
:
true
,
...
@@ -238,6 +242,9 @@ export default {
...
@@ -238,6 +242,9 @@ export default {
this
.
getCouponList
(
this
.
orderNo
);
this
.
getCouponList
(
this
.
orderNo
);
},
},
methods
:
{
methods
:
{
navigateBack
()
{
this
.
$router
.
go
(
-
1
);
},
getQuery
()
{
getQuery
()
{
this
.
returnUrl
=
cookies
.
get
(
'
returnUrl
'
)
||
''
;
this
.
returnUrl
=
cookies
.
get
(
'
returnUrl
'
)
||
''
;
if
(
localStorage
.
get
(
'
hideOrder
'
))
{
if
(
localStorage
.
get
(
'
hideOrder
'
))
{
...
@@ -441,6 +448,7 @@ export default {
...
@@ -441,6 +448,7 @@ export default {
}
}
if
(
this
.
payType
===
CREDIT_PAY
&&
this
.
canUseAmount
<
0
)
{
if
(
this
.
payType
===
CREDIT_PAY
&&
this
.
canUseAmount
<
0
)
{
this
.
$dialog
({
this
.
$dialog
({
closeOnClickOverlay
:
true
,
message
:
'
您的消费额度不足,请更换支付方式!
'
,
message
:
'
您的消费额度不足,请更换支付方式!
'
,
confirmButtonText
:
'
知道了
'
,
confirmButtonText
:
'
知道了
'
,
showCancelButton
:
false
,
showCancelButton
:
false
,
...
@@ -503,7 +511,9 @@ export default {
...
@@ -503,7 +511,9 @@ export default {
)
{
)
{
/* 密码或者短信鉴权 */
/* 密码或者短信鉴权 */
this
.
close
();
this
.
close
();
this
[
`
${
creditPayStatusType
[
creditPayStatus
]}
Modal`
]
=
true
;
this
.
$nextTick
(()
=>
{
this
[
`
${
creditPayStatusType
[
creditPayStatus
]}
Modal`
]
=
true
;
});
return
;
return
;
}
else
if
(
creditPayStatus
===
FACE_VERIFICATION_CODE_PAY
)
{
}
else
if
(
creditPayStatus
===
FACE_VERIFICATION_CODE_PAY
)
{
/* 人脸鉴权 */
/* 人脸鉴权 */
...
...
src/views/pay/payResult.vue
View file @
e6c75515
...
@@ -74,6 +74,7 @@ import groupBuyApi from '@/api/groupBuy';
...
@@ -74,6 +74,7 @@ import groupBuyApi from '@/api/groupBuy';
// import Goods from '@/components/RecoGoods/RecoGoods.vue';
// import Goods from '@/components/RecoGoods/RecoGoods.vue';
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
'
;
export
default
{
export
default
{
components
:
{
components
:
{
// Goods,
// Goods,
...
@@ -123,6 +124,7 @@ export default {
...
@@ -123,6 +124,7 @@ export default {
this
.
$router
.
replace
({
path
:
'
/orderList/0
'
});
this
.
$router
.
replace
({
path
:
'
/orderList/0
'
});
}
else
{
}
else
{
if
(
isWxMp
)
{
if
(
isWxMp
)
{
this
.
nativeBridge
=
new
MpBridge
();
this
.
nativeBridge
.
openNewUrl
({
this
.
nativeBridge
.
openNewUrl
({
newUrl
:
`/pages/pay/index?orderNo=
${
this
.
orderNo
}
`
newUrl
:
`/pages/pay/index?orderNo=
${
this
.
orderNo
}
`
});
});
...
...
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