Skip to content

Commit

Permalink
time count
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Sep 12, 2024
1 parent 7b63e4f commit 270da1e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
GIT
remote: https://github.com/work-design/rails_com.git
revision: d5f7a71027f2dff7038bd4aa6f5e47d5901bbcdc
revision: 9c8f32299668fd5501107ba65d426be432f9e992
specs:
rails_com (1.3.0)
acme-client
Expand All @@ -21,7 +21,7 @@ GIT

GIT
remote: https://github.com/work-design/rails_design.git
revision: d4ea28351196b499f4ac432a16ef70e2ddcd666b
revision: dbc2bf1e5b1a0ea84db5149700802d97f7a390a6
specs:
rails_design (0.0.1)
rails
Expand Down
2 changes: 1 addition & 1 deletion app/views/trade/my/base/_hold.html+phone.erb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<div class="weui-form-preview__item">
<label class="weui-form-preview__label"><%= Trade::Hold.human_attribute_name(:rent_duration) %></label>
<span class="weui-form-preview__value">
<time data-controller="count-up" data-count-up-time-value="<%= model.rent_start_at.to_fs(:iso8601) %>" class="family-monospace text-danger"><%= exact_distance_time(model.rent_start_at, Time.current) %></time>
<time data-controller="time-count" data-time-count-time-value="<%= model.rent_start_at.to_fs(:iso8601) %>" class="family-monospace text-danger"><%= exact_distance_time(model.rent_start_at, Time.current) %></time>
</span>
</div>
<div class="weui-form-preview__item">
Expand Down
2 changes: 1 addition & 1 deletion app/views/trade/my/items/_show/_rent_item.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<div class="weui-form-preview__item">
<label class="weui-form-preview__label">已租</label>
<span class="weui-form-preview__value family-monospace text-danger">
<time data-controller="count-up" data-count-up-time-value="<%= model.rent_start_at.to_fs(:iso8601) %>"><%= exact_distance_time(model.rent_start_at, Time.current) %></time>
<time data-controller="time-count" data-time-count-time-value="<%= model.rent_start_at.to_fs(:iso8601) %>"><%= exact_distance_time(model.rent_start_at, Time.current) %></time>
</span>
</div>
<div class="weui-form-preview__item">
Expand Down
2 changes: 1 addition & 1 deletion app/views/trade/my/orders/_base/_rent_item.html+phone.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<% elsif item.rent_start_at %>
<p>
<span class="text-grey">已租:</span>
<time data-controller="count-up" data-count-up-time-value="<%= item.rent_start_at.to_fs(:iso8601) %>" class="family-monospace text-danger"><%= exact_distance_time(item.rent_start_at, Time.current) %></time>
<time data-controller="time-count" data-time-count-time-value="<%= item.rent_start_at.to_fs(:iso8601) %>" class="family-monospace text-danger"><%= exact_distance_time(item.rent_start_at, Time.current) %></time>
</p>
<% end %>
<p>
Expand Down
2 changes: 1 addition & 1 deletion app/views/trade/my/orders/_show/_rent_item.html+phone.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<% elsif item.rent_start_at %>
<p>
<span class="text-grey">已租:</span>
<time data-controller="count-up" data-count-up-time-value="<%= item.rent_start_at.to_fs(:iso8601) %>" class="family-monospace text-danger"><%= exact_distance_time(item.rent_start_at, Time.current) %></time>
<time data-controller="time-count" data-time-count-time-value="<%= item.rent_start_at.to_fs(:iso8601) %>" class="family-monospace text-danger"><%= exact_distance_time(item.rent_start_at, Time.current) %></time>
</p>
<% end %>
<p>
Expand Down

0 comments on commit 270da1e

Please sign in to comment.