瀏覽代碼

商品图片

魏超 5 年之前
父節點
當前提交
fce4e55b47
共有 2 個文件被更改,包括 15 次插入7 次删除
  1. 9
    2
      src/pages/integralMall/editGoods.jsx
  2. 6
    5
      src/pages/news/list/editNewsList.jsx

+ 9
- 2
src/pages/integralMall/editGoods.jsx 查看文件

@@ -40,11 +40,18 @@ const header = props => {
40 40
       ]
41 41
     },
42 42
     {
43
-      label: '商品图',
43
+      label: '商品封面图',
44 44
       name: 'imgUrl',
45 45
       type: FieldTypes.ImageUploader,
46 46
       value: goodsData.imgUrl,
47
-      help: '建议图片尺寸:164px*164px',
47
+      help: '建议图片尺寸:320*320px,比例1:1,格式:jpg,用于商品封面图',
48
+    },
49
+    {
50
+      label: '商品主图',
51
+      name: 'detailImgUrl',
52
+      type: FieldTypes.ImageUploader,
53
+      value: goodsData.detailImgUrl,
54
+      help: '建议图片尺寸:750*750px,比例1:1,格式:jpg,用于商品主图',
48 55
     },
49 56
     {
50 57
       label: '商品名称',

+ 6
- 5
src/pages/news/list/editNewsList.jsx 查看文件

@@ -64,11 +64,11 @@ const { TextArea } = Input;
64 64
         ]
65 65
       },
66 66
       {
67
-        label: '资讯列表',
67
+        label: '资讯列表',
68 68
         name: 'newsImg',
69 69
         type: FieldTypes.ImageUploader,
70 70
         value: dynamicData.newsImg,
71
-        help: '建议图片尺寸:660px*416px',
71
+        help: '建议图片尺寸:320*256px,比例5:4,格式:jpg,用于资讯列表',
72 72
       },
73 73
       {
74 74
         label: '资讯标题',
@@ -215,9 +215,10 @@ const { TextArea } = Input;
215 215
 
216 216
         <div >
217 217
           <div style={{ display: 'flex', width: '100%', margin: '60px 0' }}>
218
-            <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报图</p>
218
+            <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>资讯海报图</p>
219 219
             <ImageUploader value={imgValue} onChange={e => changeImg(e)} />
220 220
           </div>
221
+          <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginBottom: '30px'}}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于资讯海报</p>
221 222
           <div style={{ display: 'flex', alignItems: 'center', width: '100%', marginBottom: '60px' }}>
222 223
             <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>海报标题</p>
223 224
             <Input style={{ width: '20vw' }} value={inputValue} placeholder="请输入海报标题" onChange={e => changeInput(e.target.value)} />
@@ -290,10 +291,10 @@ const { TextArea } = Input;
290 291
         <Input placeholder="请输入分享标题" value={inputValue} onChange={e => changeInput(e.target.value)} />
291 292
       </div>
292 293
       <div style={{ display: 'flex', width: '100%', marginTop: '40px' }}>
293
-        <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>分享图</p>
294
+        <p style={{ minWidth: '200px', color: '#222', textAlign: 'right', margin: '0 30px 0 0' }}>资讯分享好友图</p>
294 295
         <ImageUploader value={imgValue} onChange={e => changeImg(e)} />
295 296
       </div>
296
-      <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '250px' }}>图片比例: 5:4</p>
297
+      <p style={{ fontSize: '0.5vw', color: '#A9A9A9', marginLeft: '230px', marginTop: '20px' }}>建议图片尺寸:750*600px,比例5:4,格式:jpg,用于资讯分享好友</p>
297 298
       <Button type="primary" htmlType="submit" onClick={submitShare} style={{ margin: '40px 40px 40px 220px' }}> 确定</Button>
298 299
       <Button onClick={() => router.go(-1)}>取消</Button>
299 300
     </div>