|
@@ -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() {
|