|
@@ -36,17 +36,17 @@
|
|
|
<view class="list-boxs">
|
|
|
<view class="textBox flex">
|
|
|
<view class="font">交易前:</view>
|
|
|
- <view class="number">{{ before }} USDT</view>
|
|
|
+ <view class="number">{{ before*1 }} {{code}}</view>
|
|
|
</view>
|
|
|
<view class="xian"></view>
|
|
|
<view class="textBox flex">
|
|
|
<view class="font">交易额:</view>
|
|
|
- <view class="number">{{ pm }}{{ number*1 }} USDT</view>
|
|
|
+ <view class="number">{{ pm }}{{ number*1 }} {{code}}</view>
|
|
|
</view>
|
|
|
<view class="xian"></view>
|
|
|
<view class="textBox flex">
|
|
|
<view class="font">交易后:</view>
|
|
|
- <view class="number">{{ balance*1 }} USDT</view>
|
|
|
+ <view class="number">{{ balance*1 }} {{code}}</view>
|
|
|
</view>
|
|
|
<view class="xian"></view>
|
|
|
<scroll-view scroll-y="true" class="textBox">
|
|
@@ -222,10 +222,12 @@
|
|
|
obj.number = obj.list[index].number;
|
|
|
if(obj.list[index].pm == 1) {
|
|
|
obj.pm = '+';
|
|
|
- obj.before = obj.balance - obj.number;
|
|
|
+ obj.before = parseFloat(obj.balance) - parseFloat(obj.number);
|
|
|
+
|
|
|
}else{
|
|
|
obj.pm = '-';
|
|
|
- obj.before = obj.balance*1 + obj.number*1;
|
|
|
+ obj.before = parseFloat(obj.balance) + parseFloat(obj.number);
|
|
|
+
|
|
|
}
|
|
|
this.$refs.mation.open();
|
|
|
}
|