Skip to content

Commit

Permalink
update the market page
Browse files Browse the repository at this point in the history
add showing steem and sbd price history into the table
  • Loading branch information
Cha0s0000 committed Apr 22, 2018
1 parent cf1d7e8 commit dea1794
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
11 changes: 6 additions & 5 deletions pages/market/market.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@
<button type="primary" bindtap="updateData">更新数据</button>
</view>
<view class="table-container">
<view class="instruction">STEEM SBD 单位为 /USD</view>
<view class="table">
<view class="tr">
<view class="th">Date</view>
<view class="th">Price</view>
<view class="th">STEEM</view>
<view class="th">SBD</view>
</view>
<view class="tr" wx:for="{{listData}}">
<view class='td'> {{item.code}} </view>
<view class="td"> {{item.text}} </view>
<view class="td"> {{item.text}} </view>
<view class="td"> {{item.text}} </view>
<view class="tr" wx:for="{{priceHistory.time}}" wx:for-index="index">
<view class='td'> {{priceHistory.time[priceHistory.time.length-index-1]}} </view>
<view class="td"> {{priceHistory.price[priceHistory.time.length-index-1]}} </view>
<view class="td"> {{steemPrice.price[priceHistory.time.length-index-1]}} </view>
<view class="td"> {{sbdPrice.price[priceHistory.time.length-index-1]}} </view>
</view>
</view>
</view>
4 changes: 3 additions & 1 deletion pages/market/market.wxss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
padding: 50rpx 0;
box-sizing: border-box;
}

.instruction{
font-size:1.2ch;
}
.table {
margin-left:10rpx;
margin-right:10rpx;
Expand Down

0 comments on commit dea1794

Please sign in to comment.