yshop2.0发布

This commit is contained in:
hupeng
2020-03-07 11:29:36 +08:00
parent c493b3fc68
commit 150d7eb84f
41 changed files with 1339 additions and 149 deletions

View File

@ -36,7 +36,7 @@
:span="3"
:name="attr"
>
<el-tag closable @on-close="attrRemove(item,k)">{{ attr }}</el-tag>
<el-tag closable @close="attrRemove(item,k)">{{ attr }}</el-tag>
</el-col>
<el-col :span="5">
<el-input v-model="item.detailValue" style="width: 150px;" placeholder="设置属性" />
@ -330,6 +330,7 @@ export default {
if (this.items.length > 1) { this.items.splice(index, 1) } else { Message({ message: '请设置至少一个规则', type: 'error' }) }
},
attrRemove(item, k) {
console.log('item:')
if (item.detail.length == 1) {
Message({ message: '请设置至少一个属性', type: 'error' })
return false

View File

@ -208,7 +208,7 @@ export default {
this.$refs['form'].resetFields()
this.form = {
id: '',
merId: '',
merId: 0,
image: '',
sliderImage: '',
imageArr: [],
@ -217,34 +217,33 @@ export default {
storeInfo: '',
keyword: '',
barCode: '',
cateId: '',
price: '',
vipPrice: '',
otPrice: '',
postage: '',
cateId: 1,
price: 0,
vipPrice: 0,
otPrice: 0,
postage: 0,
unitName: '',
sort: '',
sort: 0,
sales: 0,
stock: 0,
isShow: 1,
isHot: 1,
isBenefit: 1,
isBest: 1,
isNew: 1,
isHot: 0,
isBenefit: 0,
isBest: 0,
isNew: 0,
description: '',
addTime: '',
isPostage: 1,
isDel: '',
merUse: '',
giveIntegral: '',
cost: '',
isSeckill: '',
isBargain: '',
isGood: '',
ficti: '',
browse: '',
isPostage: 0,
isDel: 0,
merUse: 0,
giveIntegral: 0,
cost: 0,
isSeckill: 0,
isBargain: 0,
isGood: 0,
ficti: 0,
browse: 0,
codePath: '',
soureLink: ''
}
},
getCates() {