Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
langzi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
Materials
langzi
Commits
373e831c
Commit
373e831c
authored
Jun 01, 2022
by
huyibo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: domain
parent
09943364
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
3 deletions
+32
-3
constent.js
src/common/constent.js
+32
-3
No files found.
src/common/constent.js
View file @
373e831c
...
...
@@ -12,15 +12,44 @@ const CUSTOM_LINK = "/pages/home/main";
// 活动
const
ACTION_LINK
=
"/pages/activitylist/main"
;
let
domain
=
getQueryVariable
(
'domain'
);
//列表
const
GOODS_TYPE_LINK
=
'https://b2copt-dev2021112700000085.qjclouds.com/paas/cms-manager/index.html#/lowClassifty'
;
const
GOODS_TYPE_LINK
=
`
${
domain
}
/paas/cms-manager/index.html#/lowClassifty`
;
//图片或视频 fileCtype:'video' 视频 fileCtype:'img' 图片
const
GOODS_PIC_LINK
=
'https://b2copt-dev2021112700000085.qjclouds.com/paas/cms-manager/index.html#/lowFileList '
;
const
GOODS_PIC_LINK
=
`
${
domain
}
/paas/cms-manager/index.html#/lowFileList`
;
// 商品详情
const
GOODS_LINK
=
'https://b2copt-dev2021112700000085.qjclouds.com/paas/cms-manager/index.html#/goodsList'
;
const
GOODS_LINK
=
`
${
domain
}
/paas/cms-manager/index.html#/goodsList`
;
// 获取某个参数
function
getQueryVariable
(
variable
){
let
href
=
window
.
location
.
href
;
let
query
=
href
.
substring
(
href
.
indexOf
(
'?'
)
+
1
);
let
vars
=
query
.
split
(
"&"
);
for
(
var
i
=
0
;
i
<
vars
.
length
;
i
++
){
let
pair
=
vars
[
i
].
split
(
"="
);
if
(
pair
[
0
]
==
variable
)
{
return
pair
[
1
];
}
}
return
(
false
)
}
// 获取全部参数
function
getAllQueryVariable
(){
let
href
=
window
.
location
.
href
;
let
query
=
href
.
substring
(
href
.
indexOf
(
'?'
)
+
1
);
let
vars
=
query
.
split
(
"&"
);
let
obj
=
{};
for
(
var
i
=
0
;
i
<
vars
.
length
;
i
++
){
let
pair
=
vars
[
i
].
split
(
"="
);
obj
[
pair
[
0
]]
=
pair
[
1
]
}
return
obj
;
}
export
{
...
...
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