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
44a5b3ab
Commit
44a5b3ab
authored
Sep 27, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
928917fa
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
15 additions
and
4 deletions
+15
-4
App.vue
src/App.vue
+2
-0
groupBuy.js
src/api/groupBuy.js
+3
-1
groupShare.vue
src/components/groupShare.vue
+3
-0
sharePic.vue
src/components/sharePic.vue
+1
-0
init.service.js
src/service/init.service.js
+4
-1
index.vue
src/views/goodsDetail/index.vue
+1
-1
smallPic.vue
src/views/goodsDetail/smallPic.vue
+1
-1
No files found.
src/App.vue
View file @
44a5b3ab
...
...
@@ -2,6 +2,7 @@
<div
id=
"app"
>
<cr-nav-bar
v-if=
"header"
:title=
"title"
left-text=
""
@
click-left=
"backFun"
/>
<div
class=
"app"
>
<!--
<Weapp
v-if=
"isWeixinBrowser"
jump-url=
"/pages/user/login"
/>
-->
<keep-alive>
<router-view
v-if=
"$route.meta.keepLive"
/>
</keep-alive>
...
...
@@ -19,6 +20,7 @@ import { mapState } from 'vuex';
import
NetError
from
'
@/components/NetError
'
;
import
{
isApp
,
isWxMp
,
isWechat
}
from
'
@/service/validation.service
'
;
import
store
from
'
@/store
'
;
// import Weapp from '@/components/weapp';
import
goodsShare
from
'
@/components/groupShare
'
;
import
qs
from
'
qs
'
;
export
default
{
...
...
src/api/groupBuy.js
View file @
44a5b3ab
...
...
@@ -59,7 +59,9 @@ export default {
return
http
.
get
(
`
${
talosHost
}
/api/kdsp/playBill/getMakePicData?
${
qsString
}
`
);
},
getGroupShareInfo
(
orderNo
)
{
return
http
.
get
(
`
${
talosHost
}
/api/kdsp/groupShareInfo?orderNo=
${
orderNo
}
`
);
return
http
.
get
(
`
${
talosHost
}
/api/kdsp/groupShareInfo?orderNo=
${
orderNo
}
`
,
{
hideLoading
:
true
});
},
getPlayBillUrl
(
m
)
{
return
http
.
get
(
`http://192.168.25.122/api/kdsp/playBill/getPlayBillUrl?m=
${
m
}
`
);
...
...
src/components/groupShare.vue
View file @
44a5b3ab
...
...
@@ -59,6 +59,7 @@ export default {
},
mounted
()
{
EventBus
.
$on
(
'
goods_share_info
'
,
({
shareInfo
,
type
})
=>
{
this
.
$store
.
dispatch
(
'
change_loading
'
,
true
);
// if (!isApp && !isWxMp) {
// this.tipDialogMessage();
// return;
...
...
@@ -85,6 +86,7 @@ export default {
if
(
isWxMp
)
{
this
.
shareOpenWechat
();
}
this
.
$store
.
dispatch
(
'
change_loading
'
,
false
);
},
handleShareInfo
(
shareInfo
)
{
// 处理是否已经有 海报地址,如果有,小程序弹出地步框,App直接弹出分享
...
...
@@ -98,6 +100,7 @@ export default {
// 直接调用app分享方法
this
.
appShareEventChange
();
}
this
.
$store
.
dispatch
(
'
change_loading
'
,
false
);
return
;
// 如果传递的数据有海报则不处理
}
...
...
src/components/sharePic.vue
View file @
44a5b3ab
...
...
@@ -196,6 +196,7 @@ export default {
const
observer
=
{
error
(
err
)
{
console
.
log
(
err
);
_this
.
$store
.
dispatch
(
'
change_loading
'
,
false
);
},
complete
({
hash
})
{
const
fileLink
=
config
.
qiniuHost
+
hash
;
...
...
src/service/init.service.js
View file @
44a5b3ab
...
...
@@ -10,7 +10,10 @@ export default {
// token校验,整个流程都是登陆后的
init
:
router
=>
{
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
if
(
to
.
name
==
'
groupBuyList
'
&&
from
.
name
==
'
groupBuySkuInfo
'
)
{
if
(
to
.
name
==
'
groupBuyList
'
&&
(
from
.
name
==
'
groupBuySkuInfo
'
||
Object
.
keys
(
from
.
query
).
length
==
0
)
)
{
// 这是为了详情页登录,把登录信息带回列表页所做的处理
to
.
query
.
vccToken
=
'
{token}
'
;
}
...
...
src/views/goodsDetail/index.vue
View file @
44a5b3ab
...
...
@@ -315,7 +315,7 @@ export default {
activityPrice
:
this
.
detailInfo
.
activityPrice
,
// y
skuNo
:
this
.
detailParam
.
skuNo
,
peoplePhotoList
:
avatorList
,
endTime
:
this
.
detailInfo
.
endTime
||
''
endTime
:
this
.
detailInfo
?.
groupBuyInfo
.
currentGroupEndTime
||
this
.
detailInfo
?
.
endTime
||
''
};
EventBus
.
$emit
(
'
goods_share_info
'
,
{
shareInfo
:
sharePicData
,
...
...
src/views/goodsDetail/smallPic.vue
View file @
44a5b3ab
...
...
@@ -190,7 +190,7 @@ export default {
activityPrice
:
this
.
detailInfo
.
activityPrice
,
// y
skuNo
:
this
.
detailParam
.
skuNo
,
peoplePhotoList
:
avatorList
,
endTime
:
this
.
detailInfo
.
endTime
||
''
endTime
:
this
.
detailInfo
?.
groupBuyInfo
.
currentGroupEndTime
||
this
.
detailInfo
?
.
endTime
||
''
};
EventBus
.
$emit
(
'
goods_share_info
'
,
{
shareInfo
:
sharePicData
,
...
...
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