Browse Source

增加信誉度

tanxue 1 day ago
parent
commit
ccd95d6eca
2 changed files with 21 additions and 1 deletions
  1. 8 1
      common/styles/global/pages.scss
  2. 13 0
      pages/admin/Jiazheng/index.vue

+ 8 - 1
common/styles/global/pages.scss

@@ -681,7 +681,7 @@
 			.fx-btn-box{margin-left: 24rpx;}
 		}
 		.card-body-row{
-			display: flex;box-sizing: border-box;padding:16rpx 24rpx;background-color:#fff;border-radius: 0 0 10rpx 10rpx;
+			display: flex;box-sizing: border-box;padding:16rpx 24rpx;background-color:#fff;
 			.body-content-row{width: 100%;display: flex;flex-direction: column;justify-content: space-evenly;}
 			.card-img-box{width: 180rpx;height: 240rpx;display: flex;align-items: center;margin-right: 24rpx;flex-shrink: 0;overflow: hidden;border-radius: 8rpx;}
 			img{width: 180rpx;height: 240rpx;}
@@ -690,6 +690,13 @@
 				.text-status{font-size: 26rpx;color: #3fd2a1;border: 1rpx solid #3fd2a1;padding: 0 12rpx;border-radius: 8rpx;flex-shrink: 0;}
 			}
 		}
+		.xinyu-row{
+			 border-top: 1rpx solid #f4f6fa;background: #fff;padding:16rpx 24rpx;
+			 font-size: 28rpx;color: #666;border-radius: 0 0 10rpx 10rpx;
+		}
+		.xinyong-weica{color: #999;}
+		.xinyong-zhengchang{color: #3fd2a1;}
+		.xinyong-yichang{color: red;}
 	}
 	
 	.content-lx-box{

+ 13 - 0
pages/admin/Jiazheng/index.vue

@@ -75,6 +75,12 @@
 									<!-- <view class="content-text-row">{{item.jiguan}}</view> -->
 								</view>
 							</view>
+							<view class="xinyu-row"  v-if="item.xinyong || item.xinyong===0"
+							:class="{
+							      'xinyong-weica': item.xinyong === 0,
+							      'xinyong-zhengchang': item.xinyong === 1,
+							      'xinyong-yichang': item.xinyong === 2
+							    }">{{ getXinyongText(item.xinyong) }}</view>
 						</template>
 					</uni-list-item>
 					<uni-load-more :status="data.state" @click="getMore(0)"
@@ -165,6 +171,13 @@
 	let shareDesc = ref('请点击查看简历详情')
 	let shareImage = ref('')
 
+	function getXinyongText(value) {
+	  if (value == 0) return '信誉未查';
+	  if (value == 1) return '信誉正常';
+	  if (value == 2) return '信誉异常';
+	  return '';
+	}
+	
 	function updateTimeClick() {
 		data.sortType = 1
 		const isFirst = isFirstClickUpdate.value == 'true';