Browse Source

商品图片

魏超 5 years ago
parent
commit
fce4e55b47
2 changed files with 15 additions and 7 deletions
  1. 9
    2
      src/pages/integralMall/editGoods.jsx
  2. 6
    5
      src/pages/news/list/editNewsList.jsx

+ 9
- 2
src/pages/integralMall/editGoods.jsx View File

40
       ]
40
       ]
41
     },
41
     },
42
     {
42
     {
43
-      label: '商品图',
43
+      label: '商品封面图',
44
       name: 'imgUrl',
44
       name: 'imgUrl',
45
       type: FieldTypes.ImageUploader,
45
       type: FieldTypes.ImageUploader,
46
       value: goodsData.imgUrl,
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
       label: '商品名称',
57
       label: '商品名称',

+ 6
- 5
src/pages/news/list/editNewsList.jsx View File

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