Sfoglia il codice sorgente

feat: Add invite link banner for specific channel type

[email protected] 10 mesi fa
parent
commit
6b923ef728
1 ha cambiato i file con 23 aggiunte e 0 eliminazioni
  1. 23 0
      web/src/pages/Channel/EditChannel.js

+ 23 - 0
web/src/pages/Channel/EditChannel.js

@@ -429,6 +429,7 @@ const EditChannel = (props) => {
       >
         <Spin spinning={loading}>
           <div style={{ marginTop: 10 }}>
+            
             <Typography.Text strong>{t('类型')}:</Typography.Text>
           </div>
           <Select
@@ -442,6 +443,28 @@ const EditChannel = (props) => {
             searchPosition='dropdown'
             placeholder={t('请选择渠道类型')}
           />
+          {inputs.type === 40 && (
+            <div style={{ marginTop: 10 }}>
+              <Banner
+                type="info" 
+                description={
+                  <div>
+                    <Typography.Text strong>
+                      {t('邀请链接')}: 
+                    </Typography.Text>
+                    <Typography.Text 
+                      link
+                      underline 
+                      style={{marginLeft: 8}}
+                      onClick={() => window.open('https://cloud.siliconflow.cn/i/hij0YNTZ')}
+                    >
+                      https://cloud.siliconflow.cn/i/hij0YNTZ
+                    </Typography.Text>
+                  </div>
+                }
+              />
+            </div>
+          )}
           {inputs.type === 3 && (
             <>
               <div style={{ marginTop: 10 }}>