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
80329073
Commit
80329073
authored
Sep 25, 2021
by
beisir
Browse files
Options
Browse Files
Download
Plain Diff
feat:update处理冲突
parents
f4028313
a5c99714
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
77 additions
and
23 deletions
+77
-23
sharePic.vue
src/components/sharePic.vue
+42
-17
bottomNav.vue
src/views/goodsDetail/components/bottomNav.vue
+2
-2
index.vue
src/views/goodsDetail/index.vue
+20
-2
smallPic.vue
src/views/goodsDetail/smallPic.vue
+1
-1
index.vue
src/views/goodsList/index.vue
+4
-1
createOrder.vue
src/views/order/createOrder.vue
+4
-0
index.vue
src/views/pay/index.vue
+4
-0
No files found.
src/components/sharePic.vue
View file @
80329073
...
@@ -3,14 +3,35 @@
...
@@ -3,14 +3,35 @@
<div
class=
"groupInfo"
>
<div
class=
"groupInfo"
>
<!-- 组团头像信息 -->
<!-- 组团头像信息 -->
<div
class=
"avatorGroup"
>
<div
class=
"avatorGroup"
>
<div
<template
v-if=
"avatorList.length !== 0"
>
v-for=
"(item, index) in avatorList"
<div
:key=
"index"
v-for=
"(item, index) in avatorList"
class=
"item"
:key=
"index"
:class=
"
{ leader: index == 0, normal: index != 0 }"
class=
"item"
>
:class=
"
{ leader: index == 0, normal: index != 0 }"
<img
class=
"avator"
:src=
"item"
alt=
""
/>
>
<template
v-if=
"index == 0"
>
<img
class=
"avator"
:src=
"item"
alt=
""
/>
<template
v-if=
"index == 0"
>
<div
class=
"leaderName"
>
团长
</div>
<div
class=
"leaderBorder"
>
<img
src=
"https://img.lkbang.net/activity/share/default/leaderBorder.png?i=1"
alt=
""
/>
</div>
<div
class=
"crown"
>
<img
src=
"https://img.lkbang.net/activity/share/default/crown.png?i=1"
alt=
""
/>
</div>
</
template
>
</div>
<div
v-for=
"num in maxCount - avatorList.length"
:key=
"`placeholder${num}`"
class=
"item placeholder"
/>
</template>
<
template
v-else
>
<div
class=
"item leader"
>
<div
class=
"leaderName"
>
团长
</div>
<div
class=
"leaderName"
>
团长
</div>
<div
class=
"leaderBorder"
>
<div
class=
"leaderBorder"
>
<img
<img
...
@@ -21,19 +42,20 @@
...
@@ -21,19 +42,20 @@
<div
class=
"crown"
>
<div
class=
"crown"
>
<img
src=
"https://img.lkbang.net/activity/share/default/crown.png?i=1"
alt=
""
/>
<img
src=
"https://img.lkbang.net/activity/share/default/crown.png?i=1"
alt=
""
/>
</div>
</div>
</
template
>
</
div
>
</div>
<div
<div
v-for=
"num in maxCount - 1 - avatorList.length"
v-for=
"num in maxCount - avatorList.length
"
:key=
"`placeholder$
{num}`
"
:key=
"`placeholder${num}`
"
class="item placeholder
"
class=
"item placeholder"
/>
/
>
</
template
>
<div
v-if=
"openGroupCnt >= 7"
class=
"item more"
/>
<div
v-if=
"openGroupCnt >= 7"
class=
"item more"
/>
</div>
</div>
<div
class=
"groupProcess"
>
<div
class=
"groupProcess"
>
<div
class=
"desc"
>
<div
class=
"desc"
>
还差
<span>
{{ sharePicData.needGuys }}人
</span>
成团,
<
template
v-if=
"endTime != ''"
还差
<span>
{{ sharePicData.needGuys }}人
</span>
成团,
<
template
v-if=
"endTime != ''"
>
参团截止时间
{{
endTime
}}
</
template
><template
v-if=
"avatorList.length == 0"
>
活动
</
template
><
template
v-else
>
参团
</
template
>
截止时间 {{ endTime }}
</template
>
>
</div>
</div>
</div>
</div>
...
@@ -98,7 +120,10 @@ export default {
...
@@ -98,7 +120,10 @@ export default {
},
},
async
createAndUploadPic
(
sharePicData
)
{
async
createAndUploadPic
(
sharePicData
)
{
this
.
sharePicData
=
sharePicData
;
this
.
sharePicData
=
sharePicData
;
this
.
endTime
=
sharePicData
.
endTime
?
sharePicData
.
endTime
.
split
(
'
'
)[
0
]
:
''
;
let
endTime
=
sharePicData
.
endTime
?
sharePicData
.
endTime
.
split
(
'
'
)[
0
]
:
''
;
if
(
endTime
)
{
this
.
endTime
=
`
${
new
Date
(
endTime
).
getMonth
()
+
1
}
月
${
new
Date
(
endTime
).
getDate
()}
日`
;
}
this
.
handleAvator
(
sharePicData
);
this
.
handleAvator
(
sharePicData
);
const
_this
=
this
;
const
_this
=
this
;
const
[
qrcodeUrl
]
=
await
groupBuyApi
.
getQrcodeUrl
(
sharePicData
);
const
[
qrcodeUrl
]
=
await
groupBuyApi
.
getQrcodeUrl
(
sharePicData
);
...
...
src/views/goodsDetail/components/bottomNav.vue
View file @
80329073
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
type=
"primary"
type=
"primary"
shape=
"circle"
shape=
"circle"
:disabled=
"disabled"
:disabled=
"disabled"
@
click=
"createOrJoin(
1
)"
@
click=
"createOrJoin(
2
)"
>
自己做团长
</cr-button
>
自己做团长
</cr-button
>
>
<cr-button
<cr-button
...
@@ -80,7 +80,7 @@ export default {
...
@@ -80,7 +80,7 @@ export default {
},
},
createOrJoin
(
mark
)
{
createOrJoin
(
mark
)
{
// 参团
// 参团
// mark 1-> 开团
2-> 参团
// mark 1-> 开团
0-> 参团 2->自己做团长
this
.
$emit
(
'
buy
'
,
mark
);
this
.
$emit
(
'
buy
'
,
mark
);
}
}
}
}
...
...
src/views/goodsDetail/index.vue
View file @
80329073
...
@@ -207,6 +207,7 @@ import Bridge from '@qg/js-bridge';
...
@@ -207,6 +207,7 @@ import Bridge from '@qg/js-bridge';
import
MpBridge
from
'
@/service/mp
'
;
import
MpBridge
from
'
@/service/mp
'
;
import
{
isWxMp
,
isApp
}
from
'
@/service/validation.service
'
;
import
{
isWxMp
,
isApp
}
from
'
@/service/validation.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
{
EventBus
}
from
'
@/service/utils.service
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.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
'
,
...
@@ -370,13 +371,22 @@ export default {
...
@@ -370,13 +371,22 @@ export default {
},
},
// ka渠道逻辑
// ka渠道逻辑
goVccOrDetail
(
res
)
{
goVccOrDetail
(
res
)
{
const
buttonNameMap
=
{
0
:
'
立即参团
'
,
1
:
'
立即开团
'
,
2
:
'
自己做团长
'
};
if
(
!
this
.
hasLogin
)
{
if
(
!
this
.
hasLogin
)
{
this
.
checkLogin
();
this
.
checkLogin
();
return
;
return
;
}
}
if
(
res
==
1
)
{
if
(
res
==
1
||
res
==
2
)
{
localStorage
.
remove
(
'
groupBuyGroupId
'
);
// 开团或者自己做团长的时候需要移除groupBuyGroupId,再去调下单
localStorage
.
remove
(
'
groupBuyGroupId
'
);
// 开团或者自己做团长的时候需要移除groupBuyGroupId,再去调下单
}
}
saTrackEvent
(
'
H5_GroupZeroYuanPurchaseActivityDetailPageBtnClick
'
,
{
sku_no
:
this
.
detailInfo
.
skuNo
,
buttons_name
:
buttonNameMap
[
res
]
});
this
.
toOrder
();
this
.
toOrder
();
},
},
setStartStatus
(
data
)
{
setStartStatus
(
data
)
{
...
@@ -401,7 +411,7 @@ export default {
...
@@ -401,7 +411,7 @@ export default {
}
}
if
(
currentTime
>
activityStartTime
&&
currentTime
<
activityEndTime
)
{
if
(
currentTime
>
activityStartTime
&&
currentTime
<
activityEndTime
)
{
this
.
timestemp
=
activityEndTime
;
this
.
timestemp
=
activityEndTime
;
this
.
countDownText
=
'
距
成团
结束
'
;
this
.
countDownText
=
'
距
活动
结束
'
;
this
.
inProgress
=
1
;
this
.
inProgress
=
1
;
return
;
return
;
}
}
...
@@ -588,6 +598,14 @@ export default {
...
@@ -588,6 +598,14 @@ export default {
},
},
handleParamsClick
(
eventType
,
name
)
{
handleParamsClick
(
eventType
,
name
)
{
if
(
this
.
isPrimordialBrowser
)
return
;
if
(
this
.
isPrimordialBrowser
)
return
;
if
(
eventType
==
'
sku
'
)
{
saTrackEvent
(
'
H5_GroupZeroYuanPurchaseActivityDetailPageSpecificationSelectionPopupConfirmBtnClick
'
,
{
sku_no
:
this
.
detailInfo
.
skuNo
}
);
}
this
.
currentPopupType
=
eventType
;
this
.
currentPopupType
=
eventType
;
this
.
currentPopupName
=
name
;
this
.
currentPopupName
=
name
;
switch
(
eventType
)
{
switch
(
eventType
)
{
...
...
src/views/goodsDetail/smallPic.vue
View file @
80329073
...
@@ -248,7 +248,7 @@ export default {
...
@@ -248,7 +248,7 @@ export default {
return
;
return
;
}
}
if
(
currentTime
>
activityStartTime
&&
currentTime
<
activityEndTime
)
{
if
(
currentTime
>
activityStartTime
&&
currentTime
<
activityEndTime
)
{
this
.
countDownText
=
'
距
成团
结束
'
;
this
.
countDownText
=
'
距
活动
结束
'
;
return
;
return
;
}
}
}
}
...
...
src/views/goodsList/index.vue
View file @
80329073
...
@@ -83,7 +83,7 @@ import { handleRemainTime, handleDateFormat } from './components/utils';
...
@@ -83,7 +83,7 @@ import { handleRemainTime, handleDateFormat } from './components/utils';
import
localStorage
from
'
@/service/localStorage.service
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
goodsCheckMixin
from
'
@/mixins/goodsCheck.mixin
'
;
import
goodsCheckMixin
from
'
@/mixins/goodsCheck.mixin
'
;
import
{
setAppTitleColor
,
EventBus
}
from
'
@/service/utils.service
'
;
import
{
setAppTitleColor
,
EventBus
}
from
'
@/service/utils.service
'
;
// import { registeredEvents
} from '@/service/sa.service';
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
import
{
isNull
}
from
'
@/service/validation.service
'
;
import
{
isNull
}
from
'
@/service/validation.service
'
;
let
topicIndex
;
let
topicIndex
;
export
default
{
export
default
{
...
@@ -187,6 +187,9 @@ export default {
...
@@ -187,6 +187,9 @@ export default {
shareInfo
,
shareInfo
,
type
:
0
type
:
0
});
});
saTrackEvent
(
'
H5_GroupZeroYuanPurchaseActivityPageSharePopupBtnClick
'
,
{
activity_id
:
this
.
activityId
});
},
},
async
getShareData
()
{
async
getShareData
()
{
const
{
const
{
...
...
src/views/order/createOrder.vue
View file @
80329073
...
@@ -58,6 +58,7 @@ import { HAS_DISCOUNT } from '@/constants/order';
...
@@ -58,6 +58,7 @@ import { HAS_DISCOUNT } from '@/constants/order';
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
cookies
from
'
@/service/cookieStorage.service
'
;
import
{
isApp
,
isWxMp
}
from
'
@/service/validation.service
'
;
import
{
isApp
,
isWxMp
}
from
'
@/service/validation.service
'
;
import
{
mapState
}
from
'
vuex
'
;
import
{
mapState
}
from
'
vuex
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
export
default
{
export
default
{
name
:
'
CreateOrder
'
,
name
:
'
CreateOrder
'
,
components
:
{
components
:
{
...
@@ -178,6 +179,9 @@ export default {
...
@@ -178,6 +179,9 @@ export default {
});
});
return
;
return
;
}
}
saTrackEvent
(
'
H5_UserClickOrderConfirmPageSubmitOrderBtnClick
'
,
{
order_type
:
'
0元购
'
});
const
{
const
{
addrReceiverInfo
:
{
addrReceiverId
:
receiverId
},
addrReceiverInfo
:
{
addrReceiverId
:
receiverId
},
calcFeeInfo
:
{
totalFreightFee
,
totalPayFee
:
totalFee
},
calcFeeInfo
:
{
totalFreightFee
,
totalPayFee
:
totalFee
},
...
...
src/views/pay/index.vue
View file @
80329073
...
@@ -130,6 +130,7 @@ import {
...
@@ -130,6 +130,7 @@ import {
kaGetNextUrl
,
kaGetNextUrl
,
reissueContract
reissueContract
}
from
'
@/api/pay.api.js
'
;
}
from
'
@/api/pay.api.js
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
const
VCC_CHANNEL
=
localStorage
.
get
(
'
vccChannel
'
);
const
VCC_CHANNEL
=
localStorage
.
get
(
'
vccChannel
'
);
let
Current_Url
=
null
;
let
Current_Url
=
null
;
export
default
{
export
default
{
...
@@ -409,6 +410,9 @@ export default {
...
@@ -409,6 +410,9 @@ export default {
}
}
this
.
reissueContract
();
this
.
reissueContract
();
}
}
saTrackEvent
(
'
H5_CheckOutCounterConfirmPayBtnClick
'
,
{
order_type
:
'
0元购
'
});
this
.
accountS
.
fn
();
this
.
accountS
.
fn
();
},
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