Просмотр исходного кода

收支记录-账单详情-处理进度轨迹联调

@dongkboy 1 месяц назад
Родитель
Сommit
294432490e
2 измененных файлов с 12 добавлено и 14 удалено
  1. 10 13
      components/uni-stepBar/uni-stepBar.vue
  2. 2 1
      pages/wallet/billDetails.vue

+ 10 - 13
components/uni-stepBar/uni-stepBar.vue

@@ -9,33 +9,30 @@
 				<view class="dis a-c">
 					<!-- 状态图标 -->
 					<view class="dis a-c j-c mr-2 " :class="[
-              // item.show == null ? 'tag1' : 
-              item.status == '2' ? 'reject' : 'tag'
+              item.show == null ? 'tag1' : 
+              item.show == false ? 'reject' : 'tag'
             ]">
 
 						<!-- 失败状态图标 -->
-						<u-icon v-if="item.status=='2'" name="close" color="#fff" size="11" :bold="true" />
+						<u-icon v-if="item.show==false" name="close" color="#fff" size="11" :bold="true" />
 						<!-- 成功状态图标 -->
-						<u-icon v-else name="checkmark" color="#333" size="11" :bold="true" />
+						<u-icon v-if="item.show" name="checkmark" color="#333" size="11" :bold="true" />
 					</view>
 					<!-- 步骤标题 -->
 					<text class="title active">
-						{{ item.description }}
+						{{ item.title }}
 					</text>
 				</view>
 				<!-- 右侧:时间显示 -->
-				<text class="time" v-if="item.createTime">
-					{{ item.createTime }}
+				<text class="time" v-if="item.time">
+					{{ item.time }}
 				</text>
 			</view>
 			<!-- 步骤连接线(最后一个不显示) -->
-			<view class="line" v-if="index != stepList.length - 1">
-
-
-			</view>
+			<view class="line" v-if="index != stepList.length - 1"></view>
 			<!-- 驳回状态显示原因 -->
-			<view class="rejectionReason " v-if="item.remark && item.status=='2'">
-				{{item.remark}}
+			<view class="rejectionReason " v-if="item.content && item.status==false">
+				{{item.content}}
 			</view>
 
 		</view>

+ 2 - 1
pages/wallet/billDetails.vue

@@ -27,7 +27,7 @@
 				<view class="cell dis j-s">
 					<text class="title">处理进度</text>
 					<view class="data">
-						<uni-stepBar :stepList="stepList"></uni-stepBar>
+						<uni-stepBar :stepList="info.stepList"></uni-stepBar>
 					</view>
 				</view>
 				<view class="cell dis j-s">
@@ -68,6 +68,7 @@
 		onLoad(options) {
 			if (options) {
 				this.info = JSON.parse(options.info);
+				console.log(this.info)
 
 			}
 		},