Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

禁止选择时间真机上不起作用,求解答 #23

Closed
yangkun90 opened this issue May 31, 2018 · 9 comments
Closed

禁止选择时间真机上不起作用,求解答 #23

yangkun90 opened this issue May 31, 2018 · 9 comments
Assignees

Comments

@yangkun90
Copy link

1 禁止选日期时间不起作用,麻烦看看什么原因,本地小程序软件调试可以,真机上没有效果

@treadpit
Copy link
Owner

@yangkun90 是禁止选择已经过去的日期功能么?

@yangkun90
Copy link
Author

@treadpit 是的,这个功能手机上测试不对,但是模拟器是正确的

@treadpit
Copy link
Owner

treadpit commented Jun 1, 2018

@yangkun90 不起作用的具体表现是什么呢,能点击?无样式?方便提供下真机的机型,系统么?

@yangkun90
Copy link
Author

我有个需求就是根据条件排除满足条件的日期,就是这个日期不可选择,默认为灰色,模拟器上是排除成功,但是真机6s 6 7都是没有效果。

@treadpit
Copy link
Owner

treadpit commented Jun 5, 2018

目前这个禁用过去日期选择功能,是没有做条件限制的,该模板打开这个配置会禁用自今天之前的所有日期选择,这个能加入排除条件的功能是你加的么?

@yangkun90
Copy link
Author

对是我根据酒店订房条件判断,比如未来某天这个房子已经别别人预定了,这个时候这个日期不能被选择,所以在过滤的时候我加入的。老大可以试着加入这种过滤机制。

@chbaoxu
Copy link

chbaoxu commented Jun 11, 2018

iOS系统不支持2017-01-01格式的时间,代码里面的timeStamp获取方式修改为:const timestamp = new Date(${curYear}/${curMonth}/${curDate}).getTime();

分隔符从 - 修改为 / 即可,已经在Android和iOS调通了,希望有所帮助

@treadpit
Copy link
Owner

@chbaoxu ok, 感谢反馈

@treadpit
Copy link
Owner

@yangkun90 这个 issue 先关了,如果确实需要禁用的过滤机制,麻烦另开 issue,一个 issue中掺杂其他延伸问题难于管理。

@treadpit treadpit self-assigned this Jul 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants