|
|
@@ -11,16 +11,14 @@
|
|
|
|
|
|
<view class="item" v-for="(item,index) in list" :key="index">
|
|
|
<view class="flex-row justify-between" @click="goOrderDetail(item)">
|
|
|
- <view class="leftText" :class="{'backColor1':item.tradeNoType == '1','backColor2':item.tradeNoType == '2','backColor3':item.tradeNoType == '3'}">
|
|
|
- <text v-if="item.tradeNoType == '1'">减少</text>
|
|
|
- <text v-if="item.tradeNoType == '2'">增加</text>
|
|
|
- <text v-if="item.tradeNoType == '3'">减少</text>
|
|
|
- <text v-if="item.tradeNoType == '4'">增加</text>
|
|
|
+ <view class="leftText" :class="{'backColor1':item.tradeNoType == '1','backColor2':item.tradeNoType == '2','backColor3':item.tradeNoType == '3','backColor4':item.tradeNoType == '4' }">
|
|
|
+ <text v-if="item.tradeType == '1'">增加</text>
|
|
|
+ <text v-if="item.tradeType == '2'">减少</text>
|
|
|
</view>
|
|
|
<view class="rightText flex-col">
|
|
|
<view class=" flex-row justify-between">
|
|
|
<text class="text1">{{item.remark}}</text>
|
|
|
- <text class="text2" v-if="item.tradeNoType == '2'">{{item.amount}}</text>
|
|
|
+ <text class="text2" v-if="item.tradeType == '1'">{{item.amount}}</text>
|
|
|
<text class="text2" v-else>-{{item.amount}}</text>
|
|
|
</view>
|
|
|
<view class=" flex-row justify-between">
|