Merge remote-tracking branch 'origin/master'

master
Eratosici 5 years ago
commit 763ad274fc

@ -40,11 +40,10 @@ uni-apphttps://gitee.com/gz-yami/mall4uni
后台:<http://mall4j-admin.gz-yami.com> 账号admin/123456
小程序:1. 扫描二维码
小程序:扫描二维码
![小程序](https://gitee.com/gz-yami/mall4j/raw/master/screenshot/miniQrcode.jpg)
2. 搜索小程序 **亚米商城**
## 技术选型
@ -124,8 +123,4 @@ https://gitee.com/gz-yami/mall4j/wikis
## 特别鸣谢
- wxjava:https://github.com/Wechat-Group/WxJava
- mybaitsplus:https://github.com/baomidou/mybatis-plus
- hutool:https://github.com/looly/hutool
- vue:https://github.com/vuejs/vue
- element:https://github.com/ElemeFE/element

@ -52,7 +52,7 @@ export default {
dataList: [{ propId: 0, propName: '', prodPropValues: [{ valueId: 0 }] }],
dataRule: {
propName: [
{ required: true, message: '菜单名称不能为空', trigger: 'blur' }
{ required: true, message: '属性名称不能为空', trigger: 'blur' }
]
},
page: {
@ -87,6 +87,11 @@ export default {
}
this.dataList[0].prodPropValues = temp
}
if (this.dataList[0].prodPropValues.length < 1) {
this.dataList[0].prodPropValues = [{ valueId: 0 }]
this.$message.error('规格项不能为空')
return
}
this.$http({
url: this.$http.adornUrl(`/prod/spec`),
method: this.dataList[0].propId ? 'put' : 'post',
@ -126,4 +131,4 @@ export default {
}
}
}
</script>
</script>

Loading…
Cancel
Save