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
7ae21150
Commit
7ae21150
authored
Sep 26, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
dd90fbe0
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
47 additions
and
20 deletions
+47
-20
groupShare.vue
src/components/groupShare.vue
+4
-4
sharePic.vue
src/components/sharePic.vue
+6
-3
init.service.js
src/service/init.service.js
+21
-7
index.vue
src/views/goodsDetail/index.vue
+1
-1
smallPic.vue
src/views/goodsDetail/smallPic.vue
+1
-1
goodsCard.vue
src/views/goodsList/components/goodsCard.vue
+2
-1
index.vue
src/views/goodsList/index.vue
+8
-1
createOrder.vue
src/views/order/createOrder.vue
+1
-1
List.vue
src/views/orderList/components/List.vue
+3
-1
No files found.
src/components/groupShare.vue
View file @
7ae21150
...
@@ -59,10 +59,10 @@ export default {
...
@@ -59,10 +59,10 @@ export default {
},
},
mounted
()
{
mounted
()
{
EventBus
.
$on
(
'
goods_share_info
'
,
({
shareInfo
,
type
})
=>
{
EventBus
.
$on
(
'
goods_share_info
'
,
({
shareInfo
,
type
})
=>
{
if
(
!
isApp
&&
!
isWxMp
)
{
//
if (!isApp && !isWxMp) {
this
.
tipDialogMessage
();
//
this.tipDialogMessage();
return
;
//
return;
}
//
}
this
.
type
=
type
;
this
.
type
=
type
;
if
(
typeof
shareInfo
===
'
object
'
)
{
if
(
typeof
shareInfo
===
'
object
'
)
{
this
.
sharePicData
=
shareInfo
;
this
.
sharePicData
=
shareInfo
;
...
...
src/components/sharePic.vue
View file @
7ae21150
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
/>
/>
</template>
</template>
<
template
v-else
>
<
template
v-else
>
<div
class=
"item leader"
>
<div
class=
"item leader
bg
"
>
<div
class=
"leaderName"
>
团长
</div>
<div
class=
"leaderName"
>
团长
</div>
<div
class=
"leaderBorder"
>
<div
class=
"leaderBorder"
>
<img
<img
...
@@ -187,8 +187,8 @@ body {
...
@@ -187,8 +187,8 @@ body {
}
}
.container {
.container {
position: fixed;
position: fixed;
top: -9999
999
px;
top: -9999px;
left: -9999
999
px;
left: -9999px;
width: 1080px;
width: 1080px;
height: 1920px;
height: 1920px;
padding: 48px;
padding: 48px;
...
@@ -214,6 +214,9 @@ body {
...
@@ -214,6 +214,9 @@ body {
position: relative;
position: relative;
}
}
.groupInfo .avatorGroup .normal,
.groupInfo .avatorGroup .normal,
.groupInfo .avatorGroup .leader.bg {
background-color: #ffe1e1;
}
.groupInfo .avatorGroup .leader {
.groupInfo .avatorGroup .leader {
background: transparent;
background: transparent;
}
}
...
...
src/service/init.service.js
View file @
7ae21150
...
@@ -5,9 +5,6 @@ import store from '../store';
...
@@ -5,9 +5,6 @@ import store from '../store';
import
{
isWechat
,
isApp
}
from
'
./validation.service
'
;
import
{
isWechat
,
isApp
}
from
'
./validation.service
'
;
import
Cookies
from
'
./cookieStorage.service
'
;
import
Cookies
from
'
./cookieStorage.service
'
;
import
localStorage
from
'
./localStorage.service
'
;
import
localStorage
from
'
./localStorage.service
'
;
//formXcxPage:标识是从小程序跳转过来的;
const
localStorageParams
=
[
'
creditToken
'
,
'
vccToken
'
,
'
vccChannel
'
,
'
formXcxPage
'
];
const
cookiesParams
=
[
'
h
'
];
export
default
{
export
default
{
// token校验,整个流程都是登陆后的
// token校验,整个流程都是登陆后的
...
@@ -17,11 +14,28 @@ export default {
...
@@ -17,11 +14,28 @@ export default {
const
{
meta
}
=
to
;
const
{
meta
}
=
to
;
isWechat
&&
localStorage
.
set
(
'
vccChannel
'
,
'
159913
'
);
isWechat
&&
localStorage
.
set
(
'
vccChannel
'
,
'
159913
'
);
meta
?.
has
?.
header
&&
store
.
commit
(
'
CHANGE_HEADER
'
,
meta
.
has
.
header
);
// 改变header
meta
?.
has
?.
header
&&
store
.
commit
(
'
CHANGE_HEADER
'
,
meta
.
has
.
header
);
// 改变header
localStorageParams
.
forEach
(
item
=>
{
const
localParams
=
[
'
token
'
,
'
redirectUrl
'
];
to
.
query
[
item
]
&&
localStorage
.
set
(
item
,
to
.
query
[
item
]);
const
cookieParams
=
[
'
h
'
,
'
vccToken
'
,
'
vccChannel
'
,
'
sonVccChannel
'
];
// TODO: 类似逻辑可以整合
localParams
.
forEach
(
item
=>
{
const
value
=
to
.
query
[
item
];
if
(
item
===
'
token
'
&&
value
===
''
)
{
localStorage
.
remove
(
'
token
'
);
}
if
(
value
&&
value
!==
'
{token}
'
&&
value
!==
'
{vccToken}
'
)
{
localStorage
.
set
(
item
,
value
);
}
});
});
cookiesParams
.
forEach
(
item
=>
{
Cookies
.
remove
(
'
ka
'
);
to
.
query
[
item
]
&&
Cookies
.
set
(
item
,
to
.
query
[
item
]);
Cookies
.
remove
(
'
sonVccChannel
'
);
cookieParams
.
forEach
(
item
=>
{
const
value
=
to
.
query
[
item
];
if
(
item
===
'
vccToken
'
&&
value
===
''
)
{
Cookies
.
remove
(
'
vccToken
'
);
}
if
(
value
&&
value
!==
'
{vccToken}
'
&&
value
!==
'
{token}
'
)
{
Cookies
.
set
(
item
,
value
);
}
});
});
(
isWechat
||
isApp
||
Cookies
.
get
(
'
h
'
)
===
'
0
'
)
&&
store
.
commit
(
'
CHANGE_HEADER
'
,
false
);
// 改变header
(
isWechat
||
isApp
||
Cookies
.
get
(
'
h
'
)
===
'
0
'
)
&&
store
.
commit
(
'
CHANGE_HEADER
'
,
false
);
// 改变header
...
...
src/views/goodsDetail/index.vue
View file @
7ae21150
...
@@ -274,7 +274,7 @@ export default {
...
@@ -274,7 +274,7 @@ export default {
this
.
hasLogin
=
localStorage
.
get
(
'
vccToken
'
)
?
true
:
false
;
this
.
hasLogin
=
localStorage
.
get
(
'
vccToken
'
)
?
true
:
false
;
this
.
detailParam
=
{
...
this
.
$route
.
query
};
this
.
detailParam
=
{
...
this
.
$route
.
query
};
localStorage
.
remove
(
'
orderData
'
);
localStorage
.
remove
(
'
orderData
'
);
localStorage
.
set
(
'
activity
Id
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
localStorage
.
set
(
'
template
Id
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
localStorage
.
set
(
'
groupBuyGroupId
'
,
this
.
detailParam
.
groupBuyGroupId
);
// 设置groupBuyGroupId,用于下单
localStorage
.
set
(
'
groupBuyGroupId
'
,
this
.
detailParam
.
groupBuyGroupId
);
// 设置groupBuyGroupId,用于下单
this
.
groupId
=
+
this
.
detailParam
.
groupBuyGroupId
;
this
.
groupId
=
+
this
.
detailParam
.
groupBuyGroupId
;
...
...
src/views/goodsDetail/smallPic.vue
View file @
7ae21150
...
@@ -141,7 +141,7 @@ export default {
...
@@ -141,7 +141,7 @@ export default {
created
()
{
created
()
{
console
.
log
(
config
.
localHost
);
console
.
log
(
config
.
localHost
);
this
.
detailParam
=
{
...
this
.
$route
.
query
};
this
.
detailParam
=
{
...
this
.
$route
.
query
};
localStorage
.
set
(
'
activity
Id
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
localStorage
.
set
(
'
template
Id
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
localStorage
.
set
(
'
groupBuyGroupId
'
,
this
.
detailParam
.
groupBuyGroupId
);
// 设置groupBuyGroupId,用于下单
localStorage
.
set
(
'
groupBuyGroupId
'
,
this
.
detailParam
.
groupBuyGroupId
);
// 设置groupBuyGroupId,用于下单
this
.
groupId
=
+
this
.
detailParam
.
groupBuyGroupId
;
this
.
groupId
=
+
this
.
detailParam
.
groupBuyGroupId
;
...
...
src/views/goodsList/components/goodsCard.vue
View file @
7ae21150
...
@@ -114,7 +114,8 @@ export default {
...
@@ -114,7 +114,8 @@ export default {
goodsSpecialId
,
goodsSpecialId
,
activityId
:
activityInfoId
,
activityId
:
activityInfoId
,
templateId
:
activityTemplateId
,
templateId
:
activityTemplateId
,
templateDetailId
:
activityTemplateDetailId
templateDetailId
:
activityTemplateDetailId
,
vccToken
:
localStorage
.
get
(
'
vccToken
'
)
||
''
}
}
});
});
// 正常跳转
// 正常跳转
...
...
src/views/goodsList/index.vue
View file @
7ae21150
...
@@ -218,7 +218,14 @@ export default {
...
@@ -218,7 +218,14 @@ export default {
if
(
item
.
goodsCount
!==
0
)
{
if
(
item
.
goodsCount
!==
0
)
{
this
.
$router
.
push
({
this
.
$router
.
push
({
path
:
'
/groupBuy/skuInfo
'
,
path
:
'
/groupBuy/skuInfo
'
,
query
:
{
skuNo
,
goodsSpecialId
,
templateId
,
templateDetailIds
,
activityId
}
query
:
{
skuNo
,
goodsSpecialId
,
templateId
,
templateDetailIds
,
activityId
,
vccToken
:
localStorage
.
get
(
'
vccToken
'
)
||
''
}
});
});
}
else
{
}
else
{
this
.
$notify
({
type
:
'
warning
'
,
message
:
'
该商品已抢完
'
});
this
.
$notify
({
type
:
'
warning
'
,
message
:
'
该商品已抢完
'
});
...
...
src/views/order/createOrder.vue
View file @
7ae21150
...
@@ -191,7 +191,7 @@ export default {
...
@@ -191,7 +191,7 @@ export default {
receiverId
,
receiverId
,
totalFreightFee
,
totalFreightFee
,
totalFee
,
totalFee
,
activityId
:
localStorage
.
get
(
'
activity
Id
'
)
||
''
,
activityId
:
localStorage
.
get
(
'
template
Id
'
)
||
''
,
activityHundredGroupId
:
localStorage
.
get
(
'
groupBuyGroupId
'
)
||
''
,
activityHundredGroupId
:
localStorage
.
get
(
'
groupBuyGroupId
'
)
||
''
,
skuList
:
shopSkuList
.
map
(
item
=>
{
skuList
:
shopSkuList
.
map
(
item
=>
{
const
{
skuId
:
skuNo
,
count
}
=
item
;
const
{
skuId
:
skuNo
,
count
}
=
item
;
...
...
src/views/orderList/components/List.vue
View file @
7ae21150
...
@@ -103,6 +103,7 @@ import Bridge from '@qg/js-bridge';
...
@@ -103,6 +103,7 @@ import Bridge from '@qg/js-bridge';
import
MpBridge
from
'
@/service/mp
'
;
import
MpBridge
from
'
@/service/mp
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
import
{
saTrackEvent
}
from
'
@/service/sa.service
'
;
import
groupBuyApi
from
'
@/api/groupBuy
'
;
import
groupBuyApi
from
'
@/api/groupBuy
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
export
default
{
export
default
{
name
:
'
OrderSkuList
'
,
name
:
'
OrderSkuList
'
,
components
:
{
components
:
{
...
@@ -208,7 +209,8 @@ export default {
...
@@ -208,7 +209,8 @@ export default {
goodsSpecialId
:
skuList
[
0
].
goodsSpecialId
,
goodsSpecialId
:
skuList
[
0
].
goodsSpecialId
,
activityId
:
activityInfoId
,
activityId
:
activityInfoId
,
templateId
:
skuList
[
0
].
activityTemplateInfoId
,
templateId
:
skuList
[
0
].
activityTemplateInfoId
,
templateDetailId
:
skuList
[
0
].
activityTemplateDetailId
templateDetailId
:
skuList
[
0
].
activityTemplateDetailId
,
vccToken
:
localStorage
.
get
(
'
vccToken
'
)
||
''
}
}
});
});
},
},
...
...
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