Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
0089b359
Commit
0089b359
authored
Sep 04, 2020
by
Mac
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huangyuanyuan/electricitysheep
parents
124b894f
84fa1678
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
22 deletions
+34
-22
goodsListEdit.vue
src/components/CommodityMan/goodsListEdit.vue
+29
-17
index.js
src/plug/index.js
+5
-5
No files found.
src/components/CommodityMan/goodsListEdit.vue
View file @
0089b359
...
@@ -113,6 +113,16 @@
...
@@ -113,6 +113,16 @@
<a
v-if=
"addMsg.VideoAddress != ''"
class=
"blue noline"
:href=
"addMsg.VideoAddress"
<a
v-if=
"addMsg.VideoAddress != ''"
class=
"blue noline"
:href=
"addMsg.VideoAddress"
target=
"_blank"
>
视频链接
</a>
target=
"_blank"
>
视频链接
</a>
</el-form-item>
</el-form-item>
<el-form-item
label=
"视频填充方式"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"建议横屏使用默认,竖屏使用填充"
placement=
"top"
style=
"position: absolute;left: -22px;top:12px"
>
<i
class=
"el-tooltip el-icon-info"
></i>
</el-tooltip>
<el-radio-group
v-model=
"addMsg.VideoType"
>
<el-radio
:label=
"1"
>
填充
</el-radio>
<el-radio
:label=
"0"
>
默认
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"自定义分享标题"
>
<el-form-item
label=
"自定义分享标题"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"分享给好友时,作为商品名称"
placement=
"top"
<el-tooltip
class=
"item"
effect=
"dark"
content=
"分享给好友时,作为商品名称"
placement=
"top"
style=
"position: absolute;left: -22px;top:12px"
>
style=
"position: absolute;left: -22px;top:12px"
>
...
@@ -155,14 +165,14 @@
...
@@ -155,14 +165,14 @@
:inactive-value=
"2"
>
:inactive-value=
"2"
>
</el-switch>
</el-switch>
</el-form-item>
</el-form-item>
<el-form-item
label=
"自动上架时间"
>
<el-form-item
label=
"自动上架时间"
>
<el-date-picker
size=
"small"
v-model=
"addMsg.ShelvesDate"
default-time=
"12:00:00"
value-format=
"yyyy-MM-dd HH:mm:ss"
<el-date-picker
size=
"small"
v-model=
"addMsg.ShelvesDate"
default-time=
"12:00:00"
type=
"datetime"
placeholder=
"选择日期时间"
>
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
placeholder=
"选择日期时间"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
<el-form-item
label=
"自动下架时间"
>
<el-form-item
label=
"自动下架时间"
>
<el-date-picker
size=
"small"
v-model=
"addMsg.DownDate"
default-time=
"12:00:00"
value-format=
"yyyy-MM-dd HH:mm:ss"
<el-date-picker
size=
"small"
v-model=
"addMsg.DownDate"
default-time=
"12:00:00"
type=
"datetime"
placeholder=
"选择日期时间"
>
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
placeholder=
"选择日期时间"
>
</el-date-picker>
</el-date-picker>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
...
@@ -404,8 +414,7 @@
...
@@ -404,8 +414,7 @@
<el-row>
<el-row>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"发货仓库"
>
<el-form-item
label=
"发货仓库"
>
<el-input
v-model=
"addMsg.SendArea"
size=
"small"
placeholder=
"请输入内容"
<el-input
v-model=
"addMsg.SendArea"
size=
"small"
placeholder=
"请输入内容"
class=
"input-with-select"
>
class=
"input-with-select"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"商品服务"
>
<el-form-item
label=
"商品服务"
>
...
@@ -1162,7 +1171,8 @@
...
@@ -1162,7 +1171,8 @@
},
},
ShelvesDate
:
''
,
//自动上架时间
ShelvesDate
:
''
,
//自动上架时间
DownDate
:
''
,
//自动下架时间
DownDate
:
''
,
//自动下架时间
SendArea
:
''
,
//发货仓库
SendArea
:
''
,
//发货仓库
VideoType
:
1
//视频填充方式(0默认,1-填充)
},
},
predefineColors
:
[
predefineColors
:
[
'#000000'
,
'#000000'
,
...
@@ -1526,7 +1536,8 @@
...
@@ -1526,7 +1536,8 @@
let
obj
=
{
let
obj
=
{
Name
:
""
,
Name
:
""
,
SpecificationValueList
:
[],
SpecificationValueList
:
[],
Sort
:
that
.
SpecificationList
.
length
>
0
?
that
.
SpecificationList
[
that
.
SpecificationList
.
length
-
1
].
Sort
+
1
:
that
.
SpecificationList
.
length
+
1
,
Sort
:
that
.
SpecificationList
.
length
>
0
?
that
.
SpecificationList
[
that
.
SpecificationList
.
length
-
1
].
Sort
+
1
:
that
.
SpecificationList
.
length
+
1
,
Id
:
0
,
Id
:
0
,
EnabledImage
:
2
EnabledImage
:
2
};
};
...
@@ -1539,7 +1550,8 @@
...
@@ -1539,7 +1550,8 @@
Image
:
""
,
Image
:
""
,
Name
:
""
,
Name
:
""
,
// Sort: item.SpecificationValueList.length + 1
// Sort: item.SpecificationValueList.length + 1
Sort
:
item
.
SpecificationValueList
.
length
>
0
?
item
.
SpecificationValueList
[
item
.
SpecificationValueList
.
length
-
1
].
Sort
+
1
:
item
.
SpecificationValueList
.
length
+
1
Sort
:
item
.
SpecificationValueList
.
length
>
0
?
item
.
SpecificationValueList
[
item
.
SpecificationValueList
.
length
-
1
].
Sort
+
1
:
item
.
SpecificationValueList
.
length
+
1
};
};
this
.
SpecificationList
[
index
].
SpecificationValueList
.
push
(
obj
);
this
.
SpecificationList
[
index
].
SpecificationValueList
.
push
(
obj
);
},
},
...
@@ -1567,12 +1579,12 @@
...
@@ -1567,12 +1579,12 @@
arr
.
push
(
item
);
arr
.
push
(
item
);
}
}
});
});
arr
.
forEach
(
x
=>
{
arr
.
forEach
(
x
=>
{
x
.
Id
=
0
;
x
.
Id
=
0
;
x
.
NewSpecList
.
forEach
(
j
=>
{
x
.
NewSpecList
.
forEach
(
j
=>
{
j
.
Id
=
0
j
.
Id
=
0
});
});
x
.
SpecificationValueList
.
forEach
(
j
=>
{
x
.
SpecificationValueList
.
forEach
(
j
=>
{
j
.
Id
=
0
j
.
Id
=
0
})
})
});
});
...
@@ -2151,8 +2163,8 @@
...
@@ -2151,8 +2163,8 @@
try
{
try
{
let
MarketingLogo
=
JSON
.
parse
(
this
.
addMsg
.
MarketingLogo
)
let
MarketingLogo
=
JSON
.
parse
(
this
.
addMsg
.
MarketingLogo
)
let
obj
=
MarketingLogo
let
obj
=
MarketingLogo
this
.
addMsg
.
MarketingLogo
=
obj
this
.
addMsg
.
MarketingLogo
=
obj
}
catch
(
err
)
{
}
catch
(
err
)
{
this
.
addMsg
.
MarketingLogo
=
{
this
.
addMsg
.
MarketingLogo
=
{
...
...
src/plug/index.js
View file @
0089b359
...
@@ -57,22 +57,22 @@ export default {
...
@@ -57,22 +57,22 @@ export default {
let
domainUrl
=
''
;
let
domainUrl
=
''
;
let
javaUrl
=
'http://192.168.2.65:8018'
;
let
javaUrl
=
'http://192.168.2.65:8018'
;
domainUrl
=
"http://192.168.
0.116
:8200"
;
domainUrl
=
"http://192.168.
1.27
:8200"
;
//domainUrl = "https://localhost:5001";
//domainUrl = "https://localhost:5001";
let
vtUploadUrl
=
"http://192.168.
2
.214:8120"
;
let
vtUploadUrl
=
"http://192.168.
1
.214:8120"
;
let
vtViewUrl
=
"http://192.168.
2
.214:8130"
;
let
vtViewUrl
=
"http://192.168.
1
.214:8130"
;
let
locationName
=
window
.
location
.
hostname
;
let
locationName
=
window
.
location
.
hostname
;
if
(
locationName
.
indexOf
(
'testmall.oytour'
)
!==
-
1
)
{
if
(
locationName
.
indexOf
(
'testmall.oytour'
)
!==
-
1
)
{
domainUrl
=
"https://mallapi.oytour.com"
;
domainUrl
=
"https://mallapi.oytour.com"
;
javaUrl
=
"http://property.oytour.com"
;
javaUrl
=
"http://property.oytour.com"
;
vtUploadUrl
=
"http://upload.oytour.com"
;
vtUploadUrl
=
"http://upload.oytour.com"
;
vtViewUrl
=
"http://imgfile.oytour.com"
;
vtViewUrl
=
"http
s
://imgfile.oytour.com"
;
}
else
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
}
else
if
(
locationName
.
indexOf
(
'oytour'
)
!==
-
1
)
{
domainUrl
=
"https://mallapi.oytour.com"
;
domainUrl
=
"https://mallapi.oytour.com"
;
javaUrl
=
"http://property.oytour.com"
;
javaUrl
=
"http://property.oytour.com"
;
vtUploadUrl
=
"http://upload.oytour.com"
;
vtUploadUrl
=
"http://upload.oytour.com"
;
vtViewUrl
=
"http://imgfile.oytour.com"
;
vtViewUrl
=
"http
s
://imgfile.oytour.com"
;
}
}
var
obj
=
{
var
obj
=
{
//主地址npm
//主地址npm
...
...
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