lilei 2 سال پیش
والد
کامیت
73b02f530c
4فایلهای تغییر یافته به همراه7 افزوده شده و 17 حذف شده
  1. 7 17
      pages/report/report.vue
  2. BIN
      static/def_boy@2x.png
  3. BIN
      static/def_gri@2x.png
  4. BIN
      static/def_img@2x.png

+ 7 - 17
pages/report/report.vue

@@ -9,7 +9,7 @@
 						 <view class="flex align_center justify_between item-box" v-if="hasLogin" v-for="item in list" :key="item.id" @click="toDetail(item)">
 						 	<view class="l_box flex align_center">
 								<view class="l_imgs">
-									<u-image :src="item.checkResult?(item.checkResult.imgPath+'mid/img_sun.jpg'):'/static/def_img@2x.png'" height="7em" border-radius="0.4em"></u-image>
+									<u-image :src="getImg(item)" height="7em" border-radius="0.4em"></u-image>
 								</view>
 								<view class="flex_1" style="padding: 0 0.6em;">
 									<view style="line-height: 1.5em;">
@@ -109,22 +109,12 @@
 					this.getbundle(1)
 				}
 			},
-			//  获取数据字典
-			getListLookUp() {
-				const _this = this;
-				listLookUp({ pageNo: 1, pageSize: 1000 }).then(res => {
-					if (res.status == 200) {
-						_this.$store.state.vuex_allLookUp = res.data;
-					}
-				});
-			},
-			// 或某一项字典列表,参数code
-			getLookUpList(code, vuexKey) {
-				getLookUpDatas({ type: code }).then(res => {
-					if (res.status == 200) {
-						this.$store.state[vuexKey] = res.data || [];
-					}
-				});
+			getImg(item){
+				let url =item.customer.sex==1?'/static/def_boy@2x.png':'/static/def_gri@2x.png'
+				if(item.checkResult){
+					url = item.checkResult.imgPath+'mid/img_sun.jpg'
+				}
+				return url
 			},
 			// scroll-view到底部加载更多
 			onreachBottom() {

BIN
static/def_boy@2x.png


BIN
static/def_gri@2x.png


BIN
static/def_img@2x.png