✨ feat: 新增京东E卡
This commit is contained in:
parent
b90454812b
commit
c4d585e765
|
@ -88,7 +88,9 @@ const UseProductPop = forwardRef((props, ref) => {
|
|||
account_type: "",
|
||||
map_product_name: "",
|
||||
end_time: "",
|
||||
card_show: 2
|
||||
card_show: 2,
|
||||
messageVerify: 2,
|
||||
channelVerIfy: undefined
|
||||
})
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -175,6 +177,8 @@ const UseProductPop = forwardRef((props, ref) => {
|
|||
if (productData) {
|
||||
setModel({
|
||||
goods_id: productData.goods_id,
|
||||
messageVerify: productData.messageVerify,
|
||||
channelVerIfy: productData.channelVerIfy,
|
||||
cost_price: productData.cost_price,
|
||||
weight: String(productData.weight),
|
||||
quantity: productData.quantity,
|
||||
|
@ -241,7 +245,9 @@ const UseProductPop = forwardRef((props, ref) => {
|
|||
account_type: "",
|
||||
map_product_name: "",
|
||||
end_time: "",
|
||||
card_show: 2
|
||||
card_show: 2,
|
||||
messageVerify: 2,
|
||||
channelVerIfy: undefined
|
||||
})
|
||||
setTimeout(() => {
|
||||
setState({ isUpdatePic: !state.isUpdatePic })
|
||||
|
@ -265,7 +271,9 @@ const UseProductPop = forwardRef((props, ref) => {
|
|||
map_product_name: model.product_name,
|
||||
goods_id: model.goods_id,
|
||||
end_time: model.end_time,
|
||||
card_show: model.card_show
|
||||
card_show: model.card_show,
|
||||
messageVerify: model.messageVerify,
|
||||
channelVerIfy: model.channelVerIfy
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -506,7 +514,18 @@ const UseProductPop = forwardRef((props, ref) => {
|
|||
>
|
||||
<RadioButton value={1}>直充</RadioButton>
|
||||
<RadioButton value={2}>卡密</RadioButton>
|
||||
<RadioButton value={3}>京东E卡</RadioButton>
|
||||
</RadioGroup>
|
||||
</FormItem>
|
||||
<FormItem labelname="是否短信验证" prop="product_id" id="product">
|
||||
<RadioGroup
|
||||
onChange={(e) => {
|
||||
setModel({ messageVerify: e.target.value })
|
||||
}}
|
||||
value={model.messageVerify}
|
||||
disabled={!!model.code_batch_id}
|
||||
>
|
||||
<RadioButton value={1}>是</RadioButton>
|
||||
<RadioButton value={2}>否</RadioButton>
|
||||
</RadioGroup>
|
||||
</FormItem>
|
||||
{model.product_type === 2 ? (
|
||||
|
@ -537,6 +556,19 @@ const UseProductPop = forwardRef((props, ref) => {
|
|||
}}
|
||||
/>
|
||||
</FormItem>
|
||||
<FormItem labelname="验证渠道" prop="product_id" id="product">
|
||||
<Select
|
||||
clearable
|
||||
width={520}
|
||||
options={state.productOption}
|
||||
placeholder="请选择渠道"
|
||||
value={model.channelVerIfy}
|
||||
disabled={!!model.code_batch_id}
|
||||
onChange={(e) => {
|
||||
setModel({ channelVerIfy: e })
|
||||
}}
|
||||
/>
|
||||
</FormItem>
|
||||
{model.product_type === 2 ? (
|
||||
<FormItem id="end_time" labelname="卡密有效期至" prop="end_time">
|
||||
<DatePicker
|
||||
|
|
Loading…
Reference in New Issue