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
07ce1379
Commit
07ce1379
authored
Sep 24, 2021
by
Xuguangxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 增加详情页分享
parent
23904f66
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
7 deletions
+14
-7
env.config.js
src/config/env.config.js
+2
-2
smallPic.vue
src/views/goodsDetail/smallPic.vue
+11
-4
index.vue
src/views/orderList/index.vue
+1
-1
No files found.
src/config/env.config.js
View file @
07ce1379
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
const
protocol
=
window
.
location
.
protocol
;
const
protocol
=
window
.
location
.
protocol
;
const
qiniuHost
=
protocol
+
'
//kdspstatic.q-gp.com/
'
;
const
qiniuHost
=
protocol
+
'
//kdspstatic.q-gp.com/
'
;
const
shenceHost
=
'
https://bn.xyqb.com/sa?project=default
'
;
// 测试地址
const
shenceHost
=
'
https://bn.xyqb.com/sa?project=default
'
;
// 测试地址
//
const talosHost = 'https://talos-test1.liangkebang.net';
const
talosHost
=
'
https://talos-test1.liangkebang.net
'
;
const
faceHost
=
'
https://auth-test1.liangkebang.net
'
;
const
faceHost
=
'
https://auth-test1.liangkebang.net
'
;
const
kdspHost
=
'
https://kdsp-api-test1.liangkebang.net
'
;
const
kdspHost
=
'
https://kdsp-api-test1.liangkebang.net
'
;
const
localHost
=
'
https://group-buy-test1.liangkebang.net
'
;
// 测试环境页面地址
const
localHost
=
'
https://group-buy-test1.liangkebang.net
'
;
// 测试环境页面地址
...
@@ -15,7 +15,7 @@ const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页
...
@@ -15,7 +15,7 @@ const localHost = 'https://group-buy-test1.liangkebang.net'; // 测试环境页
// const talosHost = 'http://192.168.25.210:8080'; // 张超
// const talosHost = 'http://192.168.25.210:8080'; // 张超
// const talosHost = 'http://192.168.28.83:80'; // 董彪
// const talosHost = 'http://192.168.28.83:80'; // 董彪
// const talosHost = 'http://192.168.25.122:8098'; // 王永杰
// const talosHost = 'http://192.168.25.122:8098'; // 王永杰
const
talosHost
=
protocol
+
'
//192.168.28.41
'
;
// 超人
//
const talosHost = protocol + '//192.168.28.41'; // 超人
const
opapiHost
=
'
https://opapi-test1.liangkebang.net
'
;
const
opapiHost
=
'
https://opapi-test1.liangkebang.net
'
;
const
VCC_CHANNEL
=
''
;
const
VCC_CHANNEL
=
''
;
const
TERMINAL
=
'
H5
'
;
const
TERMINAL
=
'
H5
'
;
...
...
src/views/goodsDetail/smallPic.vue
View file @
07ce1379
...
@@ -104,6 +104,7 @@ import rules from '@/components/rules';
...
@@ -104,6 +104,7 @@ import rules from '@/components/rules';
import
groupDescInfo
from
'
./components/groupDescInfo
'
;
import
groupDescInfo
from
'
./components/groupDescInfo
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
localStorage
from
'
@/service/localStorage.service
'
;
import
sharePic
from
'
@/components/sharePic
'
;
import
sharePic
from
'
@/components/sharePic
'
;
import
config
from
'
@/config
'
;
export
default
{
export
default
{
// eslint-disable-next-line vue/name-property-casing
// eslint-disable-next-line vue/name-property-casing
name
:
'
goodDetail
'
,
name
:
'
goodDetail
'
,
...
@@ -154,6 +155,7 @@ export default {
...
@@ -154,6 +155,7 @@ export default {
}
}
},
},
created
()
{
created
()
{
console
.
log
(
config
.
localHost
);
this
.
detailParam
=
{
...
this
.
$route
.
query
};
this
.
detailParam
=
{
...
this
.
$route
.
query
};
localStorage
.
set
(
'
activityId
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
localStorage
.
set
(
'
activityId
'
,
this
.
detailParam
.
templateId
);
// 设置活动模板id,用于下单
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
if
(
this
.
detailParam
.
groupBuyGroupId
)
{
...
@@ -193,11 +195,16 @@ export default {
...
@@ -193,11 +195,16 @@ export default {
}
}
},
},
outputPicUrl
(
res
)
{
outputPicUrl
(
res
)
{
const
fullPath
=
this
.
$route
.
fullPath
.
replace
(
'
skuInfoSmallPic?
'
,
'
skuInfo?
'
);
const
link
=
fullPath
.
indexOf
(
'
groupBuyGroupId=
'
)
>
-
1
?
fullPath
:
fullPath
+
`&groupBuyGroupId=
${
this
.
groupId
}
`
;
this
.
picUrl
=
res
||
''
;
this
.
picUrl
=
res
||
''
;
this
.
shareInfo
=
{
this
.
shareInfo
=
{
title
:
this
.
detailInfo
.
goodsName
,
title
:
this
.
detailInfo
.
goodsName
,
desc
:
''
,
desc
:
''
,
link
:
`
${
window
.
location
.
href
}
&groupBuyGroupId=
${
this
.
groupId
}
`
||
''
,
// 页面地址
link
:
link
||
''
,
// 页面地址
imgUrl
:
this
.
detailInfo
.
thumbImageUrl
,
// 图片地
imgUrl
:
this
.
detailInfo
.
thumbImageUrl
,
// 图片地
posterUrl
:
res
||
''
posterUrl
:
res
||
''
};
};
...
@@ -266,9 +273,9 @@ export default {
...
@@ -266,9 +273,9 @@ export default {
}
}
},
},
setStartStatus
(
data
)
{
setStartStatus
(
data
)
{
const
currentTime
=
new
Date
(
data
.
currentTime
).
getTime
();
const
currentTime
=
new
Date
(
data
.
currentTime
.
replace
(
/
\-
/g
,
'
/
'
)
).
getTime
();
const
activityStartTime
=
new
Date
(
data
.
startTime
).
getTime
();
const
activityStartTime
=
new
Date
(
data
.
startTime
.
replace
(
/
\-
/g
,
'
/
'
)
).
getTime
();
const
activityEndTime
=
new
Date
(
data
.
endTime
).
getTime
();
const
activityEndTime
=
new
Date
(
data
.
endTime
.
replace
(
/
\-
/g
,
'
/
'
)
).
getTime
();
this
.
groupTimestemp
=
data
.
groupBuyInfo
.
currentGroupEndTime
this
.
groupTimestemp
=
data
.
groupBuyInfo
.
currentGroupEndTime
?
new
Date
(
data
.
groupBuyInfo
.
currentGroupEndTime
).
getTime
()
?
new
Date
(
data
.
groupBuyInfo
.
currentGroupEndTime
).
getTime
()
:
-
1
;
:
-
1
;
...
...
src/views/orderList/index.vue
View file @
07ce1379
...
@@ -117,7 +117,7 @@ export default {
...
@@ -117,7 +117,7 @@ export default {
templateId
:
shareInfo
.
templateId
,
templateId
:
shareInfo
.
templateId
,
templateDetailId
:
shareInfo
.
templateDetailId
templateDetailId
:
shareInfo
.
templateDetailId
});
});
let
detailUrl
=
`
${
config
.
localHost
}
/groupBuy/skuInfo
SmallPic
?h=0&
${
linkPath
}
`
;
let
detailUrl
=
`
${
config
.
localHost
}
/groupBuy/skuInfo?h=0&
${
linkPath
}
`
;
if
(
isWxMp
)
{
if
(
isWxMp
)
{
detailUrl
=
`/pages/webview/webview?url=
${
encodeURIComponent
(
JSON
.
stringify
(
detailUrl
))}
`
;
detailUrl
=
`/pages/webview/webview?url=
${
encodeURIComponent
(
JSON
.
stringify
(
detailUrl
))}
`
;
}
}
...
...
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