优化后台商品列表和详情

This commit is contained in:
pushuo 2022-08-23 15:52:21 +08:00
parent 54345c0b18
commit 367f334c4d
2 changed files with 5 additions and 1 deletions

View File

@ -195,7 +195,9 @@
</td>
<td><input type="text" class="form-control" v-model="sku.model" :name="'skus[' + skuIndex + '][model]'"
placeholder="型号"></td>
<td><input type="text" class="form-control" v-model="sku.sku" :name="'skus[' + skuIndex + '][sku]'" placeholder="sku">
<td>
<input type="text" class="form-control" v-model="sku.sku" :name="'skus[' + skuIndex + '][sku]'" placeholder="sku" :style="sku.is_default ? 'margin-top: 19px;' : ''">
<span v-if="sku.is_default" class="text-success">默认主商品</span>
</td>
<td><input type="text" class="form-control" v-model="sku.price" :name="'skus[' + skuIndex + '][price]'"
placeholder="价格"></td>

View File

@ -211,6 +211,7 @@
type: 'warning'
}).then(() => {
$http.delete('products/delete', {ids: this.selected}).then((res) => {
layer.msg(res.message)
location.reload();
})
});
@ -221,6 +222,7 @@
type: 'warning'
}).then(() => {
$http.post('products/status', {ids: this.selected, status: type}).then((res) => {
layer.msg(res.message)
location.reload();
})
});