Initial commit
Made-with: Cursor
This commit is contained in:
14
srde/miniprogram/components/trade-item/trade-item.wxml
Normal file
14
srde/miniprogram/components/trade-item/trade-item.wxml
Normal file
@@ -0,0 +1,14 @@
|
||||
<view class="trade-item card" bindtap="onTap">
|
||||
<view class="row">
|
||||
<text class="symbol">{{symbol}}</text>
|
||||
<text class="dir {{direction}}">{{direction === 'long' ? '多' : '空'}}</text>
|
||||
</view>
|
||||
<view class="row sub">
|
||||
<text>入场 {{entry_price}}</text>
|
||||
<text class="status-{{status}}">{{status === 'open' ? '持仓' : '已平'}}</text>
|
||||
</view>
|
||||
<view class="row sub" wx:if="{{pnl !== undefined}}">
|
||||
<text>盈亏</text>
|
||||
<text class="{{pnl >= 0 ? 'profit' : 'loss'}}">{{pnl >= 0 ? '+' : ''}}{{pnl}}</text>
|
||||
</view>
|
||||
</view>
|
||||
Reference in New Issue
Block a user