Commit 0b7bcd97 authored by XieZhiXiong's avatar XieZhiXiong

fix: 重新选择配送方式时置空收件信息

parent c208c6ea
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-11-06 09:54:04 * @Date: 2020-11-06 09:54:04
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-21 14:36:00 * @LastEditTime: 2021-01-29 14:09:18
* @Description: 换货收货地址 * @Description: 换货收货地址
*/ */
import React from 'react'; import React from 'react';
...@@ -173,6 +173,17 @@ const ExchangeAddressInfo: React.FC<ExchangeAddressInfo> = ({ ...@@ -173,6 +173,17 @@ const ExchangeAddressInfo: React.FC<ExchangeAddressInfo> = ({
default: default:
break break
}; };
if (onSubmit) {
onSubmit({
deliveryType: value,
id: undefined,
isDefault: undefined,
sendAddress: undefined,
sendUserName: undefined,
sendUserTel: undefined,
});
}
}); });
onFieldInputChange$('deliveryType').subscribe(fieldState => { onFieldInputChange$('deliveryType').subscribe(fieldState => {
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: XieZhiXiong * @Author: XieZhiXiong
* @Date: 2020-11-04 17:22:07 * @Date: 2020-11-04 17:22:07
* @LastEditors: XieZhiXiong * @LastEditors: XieZhiXiong
* @LastEditTime: 2021-01-21 13:41:41 * @LastEditTime: 2021-01-29 14:11:59
* @Description: * @Description:
*/ */
import React, { useState } from 'react'; import React, { useState } from 'react';
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment