Closed rngadam closed 7 years ago
Here's the mockup:
@Danny002 you deleted the mockup? the image reference is broken. Can you update?
@rngadam The picture has been updated。
@ruoru was having problems testing his local changes for the upload image using the dev API.
This one is mainly a testing problem right now.
When we are testing, we are testing against our dev server API at IP 121.201.69.216 named dev.theweflex.com instead of production server api.getweflex.com (121.201.7.235)
@denglinwei waiting on your test result. What is your test plan?
@ruoru 管理后台的数量最多只能上传5张,但现在没有限制,应该加上 booking的图片显示应该添加上规则,现在后台上传的图片在微信端显示比较模糊。
Problem: @rngadam On the booking web, there is an issue with the html display The product calls for an image to be imported proportionally and cropped
return <div style={{width:'100%', height: '200px',backgroundImage:`${item.uri}`, backgroundPosition:'center', backgroundSize:'100% auto'}}></div>;
![wechatimg5](https://user-images.githubusercontent.com/8423034/28405960-20306632-6d61-11e7-9617-541e94c6eca6.jpeg)
2. This can be run but stretches out the pictures
return < img src={item.uri} />;
This is the UI component address that ruoru is using
https://ant.design/components/carousel-cn/
Problem Solving:
* Should @ruoru use another UI component address (estimated 1 day time)
* Should he write his own UI component (estimated 2 -3 day time)
@ruoru I don't agree that this needs a new component.
I see a lot of tweaking of the div style, but no attempts at changing the img tag style?
@rngadam desired product is to have the pictures moving horizontal https://ant.design/components/carousel-cn/ (first example)
<div>
has the pictures stacked vertical and margin effect<div>
<img>
tag with style set but the picture's format still came out disproportional<Panel>
<Carousel>
{
photos.map(item => {
return <div style={{width:'100%', height: '200px',backgroundImage:`url(${item.uri})`, backgroundPosition:'center', backgroundSize:'100% auto'}}></div>;
})
}
</Carousel>
</Panel>
official example from the carousel webpage:
function onChange(a, b, c) {
console.log(a, b, c);
}
ReactDOM.render(
<Carousel afterChange={onChange}>
<div><h3>1</h3></div>
<div><h3>2</h3></div>
<div><h3>3</h3></div>
<div><h3>4</h3></div>
</Carousel>
, mountNode);
在管理后台的课程模版上传了封面后,在微信端没有显示封面图片。需要更改 @ruoru
测试服务器测试,暂未发现问题,测试通过 @Danny002
@ruoru 将高度调节成300px
@Danny002 @denglinwei it`s changed and push to dev server, i`m connect dev server do a little test and it`s work well
@Danny002 测试服务器下测试,高度已经调节至200px。
测试通过
@denglinwei booking & studio already push to production server.
@denglinwei validate in production? this was assigned to you 4 days ago.
Reproduce:
Setup:
Test:
Result: