Răsfoiți Sursa

style:交易记录样式优化

zhanghui 2 ani în urmă
părinte
comite
9e9a79bde6

+ 3 - 0
myPages/transactionRecord/module/index.rpx.css

@@ -52,3 +52,6 @@
 .backColor3{
     background: #FFAF36;
 }
+.backColor4{
+    background: #36f262;
+}

+ 4 - 6
myPages/transactionRecord/module/mescrollUni-item.vue

@@ -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">

+ 1 - 0
pages/order/index.rpx.scss

@@ -185,6 +185,7 @@
 
         .content {
           width: 100%;
+          height: 100vh;
           padding-left: 16rpx;
           padding-top: 4rpx;
           padding-right: 24rpx;