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
3ce2f79a
Commit
3ce2f79a
authored
Sep 24, 2021
by
beisir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:分享路径问题
parent
dd8b87f6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
3 deletions
+5
-3
groupBuy.js
src/api/groupBuy.js
+1
-1
prod.config.js
src/config/prod.config.js
+2
-1
module.js
src/store/module.js
+1
-1
index.vue
src/views/goodsList/index.vue
+1
-0
No files found.
src/api/groupBuy.js
View file @
3ce2f79a
...
@@ -42,7 +42,7 @@ export default {
...
@@ -42,7 +42,7 @@ export default {
});
});
},
},
getScheme
(
data
)
{
getScheme
(
data
)
{
return
http
.
ge
t
(
`
${
talosHost
}
/api/kdsp/ka/info/getShareMiniUrl`
,
data
,
{
return
http
.
pos
t
(
`
${
talosHost
}
/api/kdsp/ka/info/getShareMiniUrl`
,
data
,
{
hideLoading
:
true
hideLoading
:
true
});
});
},
},
...
...
src/config/prod.config.js
View file @
3ce2f79a
...
@@ -8,7 +8,8 @@ const TERMINAL = 'H5';
...
@@ -8,7 +8,8 @@ const TERMINAL = 'H5';
const
VERSION
=
'
7.9.00
'
;
const
VERSION
=
'
7.9.00
'
;
const
kdspHost
=
'
https://kdsp-api.q-gp.com
'
;
const
kdspHost
=
'
https://kdsp-api.q-gp.com
'
;
const
opapiHost
=
`
${
protocol
}
//opapi.xyqb.com`
;
const
opapiHost
=
`
${
protocol
}
//opapi.xyqb.com`
;
const
localHost
=
'
https://mall.q-gp.com/group-buying
'
;
// 正式环境页面地址
// const localHost = 'https://mall.q-gp.com/group-buying'; // 正式环境页面地址
const
localHost
=
'
https://group-buy-test1.liangkebang.net
'
;
// 正式环境页面地址
export
default
{
export
default
{
localHost
,
localHost
,
// apiHost,
// apiHost,
...
...
src/store/module.js
View file @
3ce2f79a
...
@@ -103,7 +103,7 @@ const mutations = {
...
@@ -103,7 +103,7 @@ const mutations = {
// todo 跳转到小程序
// todo 跳转到小程序
let
getScheme
=
async
function
()
{
let
getScheme
=
async
function
()
{
const
[
res
]
=
await
groupBuy
.
getScheme
({
const
[
res
]
=
await
groupBuy
.
getScheme
({
miniUrl
:
'
pages/user/login
'
miniUrl
:
`pages/webview/webview?url=
${
encodeURIComponent
(
window
.
location
.
href
)}
`
});
});
const
url
=
res
;
const
url
=
res
;
window
.
location
.
href
=
url
;
// todo 需要验证
window
.
location
.
href
=
url
;
// todo 需要验证
...
...
src/views/goodsList/index.vue
View file @
3ce2f79a
...
@@ -233,6 +233,7 @@ export default {
...
@@ -233,6 +233,7 @@ export default {
if
(
isWxMp
)
{
if
(
isWxMp
)
{
link
=
`/pages/webview/webview?url=
${
encodeURIComponent
(
JSON
.
stringify
(
link
))}
`
;
link
=
`/pages/webview/webview?url=
${
encodeURIComponent
(
JSON
.
stringify
(
link
))}
`
;
}
}
console
.
log
(
link
);
return
Promise
.
resolve
({
return
Promise
.
resolve
({
title
:
shareTitle
,
title
:
shareTitle
,
desc
:
shareSubTitle
,
desc
:
shareSubTitle
,
...
...
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