Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
op-web-service
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
bp
op-web-service
Commits
ece97436
Commit
ece97436
authored
Jun 22, 2021
by
mengwenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature:商品管理详情
parent
6a7a6fc4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
config.js
server/config.js
+9
-3
index.vue
src/pages/Goods/List/index.vue
+13
-1
No files found.
server/config.js
View file @
ece97436
const
env
=
process
.
env
.
NODE_ENV
||
"development"
;
const
env
=
process
.
env
.
NODE_ENV
||
"development"
;
const
port
=
process
.
env
.
PORT
||
8055
;
const
port
=
process
.
env
.
PORT
||
8055
;
const
LOGIN_URI
=
{
development
:
"http://bp-test.ini.yidian-inc.com "
,
test
:
"http://web-rest.int.yidian-inc.com"
,
production
:
"http://web-rest.int.yidian-inc.com"
};
const
PANDORA_URI
=
{
const
PANDORA_URI
=
{
development
:
"http://pandora.yidian-inc.com"
,
development
:
"http://pandora.yidian-inc.com"
,
test
:
"http://pandora.yidian-inc.com"
,
test
:
"http://pandora.yidian-inc.com"
,
...
@@ -8,9 +14,9 @@ const PANDORA_URI = {
...
@@ -8,9 +14,9 @@ const PANDORA_URI = {
};
};
const
API_INTERNAL_URI
=
{
const
API_INTERNAL_URI
=
{
'development'
:
"http://bp-test.ini.yidian-inc.com"
,
development
:
"http://bp-test.ini.yidian-inc.com"
,
'test'
:
"http://bp-test.ini.yidian-inc.com"
,
test
:
"http://bp-test.ini.yidian-inc.com"
,
'production'
:
"http://bp-test.ini.yidian-inc.com"
production
:
"http://bp-test.ini.yidian-inc.com"
};
};
const
GOODS_URI
=
{
const
GOODS_URI
=
{
...
...
src/pages/Goods/List/index.vue
View file @
ece97436
...
@@ -200,7 +200,11 @@
...
@@ -200,7 +200,11 @@
<
style
lang=
"less"
src=
"./index.less"
scope
></
style
>
<
style
lang=
"less"
src=
"./index.less"
scope
></
style
>
<
script
>
<
script
>
<<<<<<<
HEAD
:
src
/
pages
/
Goods
/
List
/
index
.
vue
import
{
getGoodsList
,
getList
}
from
"@/service/Goods/goods"
;
import
{
getGoodsList
,
getList
}
from
"@/service/Goods/goods"
;
=======
import
{
getGoodsList
}
from
"@/service/Goods/goods"
;
>>>>>>>
23863
bb
(
feature
:
商品管理详情
):
src
/
pages
/
Commodity
/
List
/
index
.
vue
export
default
{
export
default
{
name
:
"GoodsList"
,
name
:
"GoodsList"
,
...
@@ -285,9 +289,17 @@ export default {
...
@@ -285,9 +289,17 @@ export default {
async
getOptionList
()
{
async
getOptionList
()
{
try
{
try
{
const
res
=
await
getGoodsList
();
const
res
=
await
getGoodsList
();
<<<<<<<
HEAD
:
src
/
pages
/
Goods
/
List
/
index
.
vue
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
if
(
res
.
code
!==
0
)
return
this
.
$message
.
error
(
res
.
reason
);
this
.
labelOptions
=
res
.
result
;
this
.
labelOptions
=
res
.
result
;
=======
if
(
res
.
code
!==
0
)
{
return
this
.
$message
.
error
(
res
.
reason
);
}
else
{
this
.
labelOptions
=
res
.
result
;
}
>>>>>>>
23863
bb
(
feature
:
商品管理详情
):
src
/
pages
/
Commodity
/
List
/
index
.
vue
console
.
log
(
res
);
console
.
log
(
res
);
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
error
);
console
.
error
(
error
);
...
@@ -343,7 +355,7 @@ export default {
...
@@ -343,7 +355,7 @@ export default {
handleCurrentChange
(
e
)
{
handleCurrentChange
(
e
)
{
this
.
currentPage
=
e
;
this
.
currentPage
=
e
;
// 获取信息
// 获取信息
this
.
get
Commodity
List
();
this
.
getList
();
},
},
// 去往详情页
// 去往详情页
...
...
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