Commit 67c556d6 authored by GuanHua's avatar GuanHua

fix: 创建店铺添加联系电话和详细地址

parent 04c7901a
......@@ -205,8 +205,11 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
logo: value.logo,
memberChannelAreas: value.memberChannelAreas,
workshopPics,
customerUrl: value.customerUrl,
phone: value.phone,
address: value.address,
}
console.log(params)
PublicApi.postTemplateWebMemberChannelWebSaveCurrMemberChannel(params).then(res => {
if (res.code === 1000) {
fetchShopInfo()
......@@ -475,6 +478,13 @@ const ChannelInfo: React.FC<ShopInfoPropsType> = (props) => {
)}
</Form.Item>
<Form.Item
labelAlign="left"
name="address"
label={<RequireItem label="详细地址" />}
>
<Input allowClear autoComplete="off" className={styles.form_item} />
</Form.Item>
<Form.Item
label={<RequireItem label="" />}
>
<Button loading={confirmLoading} type="primary" style={{ marginRight: 16 }} onClick={handleSave}>保存</Button>
......
......@@ -212,6 +212,9 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
logo: value.logo,
memberShopAreas: value.memberShopAreas,
workshopPics,
customerUrl: value.customerUrl,
phone: value.phone,
address: value.address,
}
PublicApi.postTemplateWebMemberShopWebSaveCurrMemberShop(params).then(res => {
if (res.code === 1000) {
......@@ -473,6 +476,28 @@ const ShopInfo: React.FC<ShopInfoPropsType> = (props) => {
)}
</Form.Item>
<Form.Item
labelAlign="left"
name="customerUrl"
label={<RequireItem label="客服链接" />}
rules={[{ pattern: /(http|ftp|https):\/\/[\w\-_]+(\.[\w\-_]+)+([\w\-.,@?^=%&:/~+#]*[\w\-@?^=%&/~+#])?/, message: '请输入正确的客服链接' }]}
>
<Input allowClear autoComplete="off" className={styles.form_item} />
</Form.Item>
<Form.Item
labelAlign="left"
name="phone"
label={<RequireItem label="联系电话" />}
>
<Input allowClear autoComplete="off" className={styles.form_item} />
</Form.Item>
<Form.Item
labelAlign="left"
name="address"
label={<RequireItem label="详细地址" />}
>
<Input allowClear autoComplete="off" className={styles.form_item} />
</Form.Item>
<Form.Item
label={<RequireItem label="" />}
>
<Button loading={confirmLoading} type="primary" style={{ marginRight: 16 }} onClick={handleSave}>保存</Button>
......
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