mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-28 21:40:50 +00:00
fix(网盘商品): 放开自动发货开关不再强制开启
This commit is contained in:
parent
55e4f23738
commit
407128413d
@ -175,9 +175,6 @@ class ProductSaveServices extends BaseService
|
||||
if (empty($data['slider_image']) || count($data['slider_image']) < 1) {
|
||||
throw new \RuntimeException('请选择商品轮播图');
|
||||
}
|
||||
if ((int)($data['is_auto_send'] ?? 1) !== 1) {
|
||||
throw new \RuntimeException('网盘商品必须开启支付后自动发货');
|
||||
}
|
||||
$attrs = $data['attrs'] ?? [];
|
||||
if (!is_array($attrs) || empty($attrs)) {
|
||||
throw new \RuntimeException('请配置网盘商品 SKU');
|
||||
|
||||
@ -19,19 +19,6 @@
|
||||
</el-dropdown>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- 自动发货(网盘商品全局开关,所有 SKU 统一生效) -->
|
||||
<el-col :span="24" v-if="formValidate.virtual_type == 3">
|
||||
<el-form-item label="自动发货:">
|
||||
<el-switch
|
||||
v-model="formValidate.is_auto_send"
|
||||
:active-value="1"
|
||||
:inactive-value="0"
|
||||
active-text="开启"
|
||||
inactive-text="关闭"
|
||||
></el-switch>
|
||||
<span class="ml10 autosend-tips">开启后支付成功自动发放网盘链接与提取码</span>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<!-- 规格设置 -->
|
||||
<el-col :span="24" v-if="formValidate.spec_type === 1" class="noForm">
|
||||
<el-form-item label="商品规格:" prop="">
|
||||
@ -835,8 +822,4 @@ function objectSpanMethod({ row, column, rowIndex, columnIndex }) {
|
||||
flex: none;
|
||||
}
|
||||
}
|
||||
.autosend-tips {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user