mirror of
https://gitee.com/gz-yami/mall4j.git
synced 2026-03-22 09:17:16 +08:00
分组标签名校验、首页分组商品显示修改
This commit is contained in:
@@ -58,7 +58,7 @@
|
||||
<view class="updata" v-if="updata">
|
||||
<block v-for="(item, index) in taglist" :key="index">
|
||||
<!-- 每日上新 -->
|
||||
<view class="up-to-date" v-if="item.style==2">
|
||||
<view class="up-to-date" v-if="item.style==2 && item.prods && item.prods.length">
|
||||
<view class="title">
|
||||
<text>{{item.title}}</text>
|
||||
<view class="more-prod-cont" @tap="toClassifyPage" data-sts="0" :data-id="item.id" :data-title="item.title">
|
||||
@@ -87,7 +87,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 商城热卖 -->
|
||||
<view class="hot-sale" v-if="item.style==1">
|
||||
<view class="hot-sale" v-if="item.style==1 && item.prods && item.prods.length">
|
||||
<view class="title">
|
||||
<text>{{item.title}}</text>
|
||||
<view class="more-prod-cont" @tap="toClassifyPage" data-sts="0" :data-id="item.id" :data-title="item.title">
|
||||
@@ -123,7 +123,7 @@
|
||||
</view>
|
||||
|
||||
<!-- 更多宝贝 -->
|
||||
<view class="more-prod" v-if="item.style==0">
|
||||
<view class="more-prod" v-if="item.style==0 && item.prods && item.prods.length">
|
||||
<view class="title">{{item.title}}</view>
|
||||
<view class="prod-show">
|
||||
<block v-for="(prod, index2) in item.prods" :key="index2">
|
||||
@@ -334,7 +334,6 @@ export default {
|
||||
this.setData({
|
||||
taglist: res
|
||||
});
|
||||
|
||||
for (var i = 0; i < res.length; i++) {
|
||||
this.updata = false
|
||||
this.updata = true
|
||||
|
||||
@@ -64,7 +64,7 @@
|
||||
this.$message.error('上传头像图片大小不能超过 2MB!')
|
||||
this.$message.error('上传图片大小不能超过 2MB!')
|
||||
}
|
||||
return isLt2M
|
||||
// return isLt2M
|
||||
return isLt2M && isJPG
|
||||
},
|
||||
handleRemove (file, fileList) {
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
</el-radio-group>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品分类"
|
||||
:rules="[{ required: true, message: '请选择产品分类'}]"
|
||||
prop="categoryId">
|
||||
<el-col :span="8">
|
||||
<el-cascader expand-trigger="hover"
|
||||
@@ -24,7 +25,7 @@
|
||||
</el-cascader>
|
||||
</el-col>
|
||||
</el-form-item>
|
||||
<el-form-item label="产品分组">
|
||||
<el-form-item label="产品分组" :rules="[{ required: true, message: '请选择产品分组'}]">
|
||||
<el-col :span="8">
|
||||
<el-select v-model="dataForm.tagList"
|
||||
multiple
|
||||
|
||||
@@ -8,6 +8,9 @@
|
||||
@keyup.enter.native="dataFormSubmit()"
|
||||
label-width="80px">
|
||||
<el-form-item label="标签名称"
|
||||
:rules="[
|
||||
{ required: true, message: '标签名称不能为空', trigger: 'blur' },
|
||||
]"
|
||||
prop="title">
|
||||
<el-input v-model="dataForm.title"></el-input>
|
||||
</el-form-item>
|
||||
|
||||
Reference in New Issue
Block a user