Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 5cea7060
authored
Jun 10, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
商品管理-地址运费展示
1 parent
5f9ce426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
19 deletions
src/views/productGroup/editProduct.vue
src/views/productGroup/editProduct.vue
View file @
5cea706
...
@@ -245,19 +245,19 @@
...
@@ -245,19 +245,19 @@
<span
class=
"txt-tips"
style=
"margin-left: 20px;"
>
销售:0
</span>
<span
class=
"txt-tips"
style=
"margin-left: 20px;"
>
销售:0
</span>
</p>
</p>
</div>
</div>
<div
class=
"inner-block
"
style=
"margin-bottom: 8px;"
>
<div
:class=
"{ 'inner-block': !!nameToValSpecsList.length || editForm.deliveryType == 2 }
"
style=
"margin-bottom: 8px;"
>
<div
class=
"line"
v-if=
"nameToValSpecsList.length"
>
<div
class=
"line"
v-if=
"nameToValSpecsList.length"
>
<span
class=
"line-label"
>
已选
</span>
<span
class=
"line-label"
>
已选
</span>
<span
class=
"line-txt"
>
{{ nameToValSpecsList[0].specificationData }}
</span>
<span
class=
"line-txt"
>
{{ nameToValSpecsList[0].specificationData }}
</span>
</div>
</div>
<div
class=
"line"
style=
"display: flex;"
>
<div
v-show=
"editForm.deliveryType == 2"
class=
"line"
style=
"display: flex;"
>
<span
class=
"line-label"
>
配送
</span>
<span
class=
"line-label"
>
配送
</span>
<div>
<div>
<div
style=
"height: 25px; line-height: 30px;"
class=
"line-txt"
>
填写地址
</div>
<div
style=
"height: 25px; line-height: 30px;"
class=
"line-txt"
>
填写地址
</div>
<div
style=
"height: 25px; line-height: 18px;"
class=
"line-txt"
>
支付后,预计48小时内发货
</div>
<div
style=
"height: 25px; line-height: 18px;"
class=
"line-txt"
>
支付后,预计48小时内发货
</div>
</div>
</div>
</div>
</div>
<div
class=
"line"
>
<div
v-show=
"editForm.deliveryType == 2"
class=
"line"
>
<span
class=
"line-label"
>
运费
</span>
<span
class=
"line-label"
>
运费
</span>
<span
v-show=
"editForm.deliveryType == 1"
class=
"line-txt"
>
免运费
</span>
<span
v-show=
"editForm.deliveryType == 1"
class=
"line-txt"
>
免运费
</span>
<span
v-show=
"editForm.deliveryType == 2"
class=
"line-txt"
>
{{ editForm.expressFee }}元
</span>
<span
v-show=
"editForm.deliveryType == 2"
class=
"line-txt"
>
{{ editForm.expressFee }}元
</span>
...
@@ -1178,23 +1178,23 @@ export default {
...
@@ -1178,23 +1178,23 @@ export default {
}
}
// console.log(this.nameToValSpecsList)
// console.log(this.nameToValSpecsList)
// console.log(this.specificationDetailList)
// console.log(this.specificationDetailList)
if
(
isRecovery
)
{
// if (isRecovery) {
this
.
nameToValSpecsList
.
forEach
((
item
,
index
)
=>
{
this
.
nameToValSpecsList
.
forEach
((
item
,
index
)
=>
{
var
specificationObj
=
{}
var
specificationObj
=
{}
item
.
specsValueList
.
forEach
((
subItem
,
subIndex
)
=>
{
item
.
specsValueList
.
forEach
((
subItem
,
subIndex
)
=>
{
specificationObj
[
this
.
specificationDetailList
[
subIndex
].
specificationName
]
=
subItem
specificationObj
[
this
.
specificationDetailList
[
subIndex
].
specificationName
]
=
subItem
})
item
.
specificationData
=
this
.
setLocaleCompare
(
specificationObj
)
for
(
var
i
=
0
;
i
<
this
.
editForm
.
specificationDetailList
.
length
;
i
++
)
{
var
temp
=
this
.
editForm
.
specificationDetailList
[
i
]
if
(
temp
.
specificationData
==
item
.
specificationData
)
{
item
.
retailPrice
=
(
temp
.
retailPrice
/
100
).
toFixed
(
2
)
item
.
stock
=
temp
.
stock
break
}
}
})
})
}
item
.
specificationData
=
this
.
setLocaleCompare
(
specificationObj
)
for
(
var
i
=
0
;
i
<
this
.
editForm
.
specificationDetailList
.
length
;
i
++
)
{
var
temp
=
this
.
editForm
.
specificationDetailList
[
i
]
if
(
temp
.
specificationData
==
item
.
specificationData
)
{
item
.
retailPrice
=
(
temp
.
retailPrice
/
100
).
toFixed
(
2
)
item
.
stock
=
temp
.
stock
break
}
}
})
// }
// console.log(this.nameToValSpecsList)
// console.log(this.nameToValSpecsList)
},
},
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment