add goods parameter sort

master
paulGao 2021-09-02 16:37:46 +08:00
parent a2c6a1d46d
commit c8edf9c1bd
3 changed files with 13 additions and 7 deletions

View File

@ -49,27 +49,27 @@
class="goods-show-info"
v-for="(item, index) in goodsList"
:key="index"
@click="goGoodsDetail(item.id, item.goodsId)"
@click="goGoodsDetail(item.id, item.content.goodsId)"
>
<div class="goods-show-img">
<img width="220" height="220" :src="item.thumbnail" />
<img width="220" height="220" :src="item.content.thumbnail" />
</div>
<div class="goods-show-price">
<span>
<span class="seckill-price text-danger">{{
item.price | unitPrice("¥")
item.content.price | unitPrice("¥")
}}</span>
</span>
</div>
<div class="goods-show-detail">
<span>{{ item.goodsName }}</span>
<span>{{ item.content.goodsName }}</span>
</div>
<div class="goods-show-num">
已有<span>{{ item.commentNum || 0 }}</span
已有<span>{{ item.content.commentNum || 0 }}</span
>人评价
</div>
<div class="goods-show-seller">
<Tag v-if="item.selfOperated" style="padding:0 4px;" size="default" color="error"></Tag><span>{{ item.storeName }}</span>
<Tag v-if="item.content.selfOperated" style="padding:0 4px;" size="default" color="error"></Tag><span>{{ item.content.storeName }}</span>
</div>
</div>
</div>

View File

@ -79,6 +79,9 @@
<Checkbox label=1 v-model="paramForm.required"></Checkbox>
<Checkbox label=1 v-model="paramForm.isIndex"></Checkbox>
</FormItem>
<FormItem label="排序" prop="specName3">
<Input type="number" v-model="paramForm.sort" style="width: 100%" />
</FormItem>
</Form>
<div slot="footer">
@ -170,6 +173,7 @@ export default {
options: "",
required: false,
isIndex: false,
sort: 0,
groupId: group.groupId,
categoryId: this.categoryId,
};
@ -186,9 +190,9 @@ export default {
isIndex: param.isIndex==1?true:false,
groupId: group.groupId,
categoryId: this.categoryId,
sort: param.sort,
id: param.id,
};
console.warn(this.paramForm.options)
this.ops = this.paramForm.options
this.modalType = 1;
this.modalTitle = "修改参数";

View File

@ -509,6 +509,7 @@ export default {
isIndex: "",
required: "",
paramId: "",
sort: ""
};
}
this.baseInfoForm.goodsParamsDTOList[groupIndex].goodsParamsItemDTOList[
@ -519,6 +520,7 @@ export default {
isIndex: params.isIndex,
required: params.required,
paramId: params.id,
sort: params.sort
};
},
// sku