Commit 5cea7060 by chenwq

商品管理-地址运费展示

1 parent 5f9ce426
......@@ -245,19 +245,19 @@
<span class="txt-tips" style="margin-left: 20px;">销售:0</span>
</p>
</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">
<span class="line-label">已选</span>
<span class="line-txt">{{ nameToValSpecsList[0].specificationData }}</span>
</div>
<div class="line" style="display: flex;">
<div v-show="editForm.deliveryType == 2" class="line" style="display: flex;">
<span class="line-label">配送</span>
<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>
</div>
<div class="line">
<div v-show="editForm.deliveryType == 2" class="line">
<span class="line-label">运费</span>
<span v-show="editForm.deliveryType == 1" class="line-txt">免运费</span>
<span v-show="editForm.deliveryType == 2" class="line-txt">{{ editForm.expressFee }}元</span>
......@@ -1178,23 +1178,23 @@ export default {
}
// console.log(this.nameToValSpecsList)
// console.log(this.specificationDetailList)
if (isRecovery) {
this.nameToValSpecsList.forEach((item, index) => {
var specificationObj = {}
item.specsValueList.forEach((subItem, subIndex) => {
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
}
}
// if (isRecovery) {
this.nameToValSpecsList.forEach((item, index) => {
var specificationObj = {}
item.specsValueList.forEach((subItem, subIndex) => {
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
}
}
})
// }
// console.log(this.nameToValSpecsList)
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!