main
zouyanyan 5 days ago
parent 134e78061e
commit e84fbebe82

@ -96,8 +96,9 @@ export default {
let windowInfo = uni.getWindowInfo();
console.log(windowInfo);
const width = windowInfo.windowWidth;
const height = windowInfo.windowHeight;
const width = windowInfo.windowWidth?windowInfo.windowWidth:375;
const height = windowInfo.windowHeight?windowInfo.windowHeight:720;
//
const aspectRatio = width / height;
//

@ -32,11 +32,12 @@
<view v-for="(item, index) in myaddresslist" :key="index" class="sitem">
<view class="lcon">
<view class="sname">
<!-- <text>{{item.userName}}({{item.userCode}})</text> -->
<text>{{ item.departCode?retType(item.departCode,1):''}}</text>
<text> {{ item.departCode?retType(item.departCode,1):''}}</text>
<text style="margin-left: 15rpx;"> {{ item.workshop?item.workshop:''}}</text>
<text style="margin-left: 15rpx;"> {{ item.location?item.location:''}}</text>
</view>
<view class="sinfo">
{{item.workshop+item.location+item.address}}
{{ item.address}}
</view>
</view>
<view class="opecon">
@ -49,9 +50,7 @@
</view>
</view>
<u-toast ref="uToast" />
</view>
<!-- 添加 -->
<!-- 弹框 -->
@ -152,11 +151,6 @@
}
},
methods: {
handleImageError(e,index){
console.log(e,index);
this.icon= require("@/static/images/icon.png");
this.$forceUpdate();
},
async delDo(id){
var _this=this;
try{
@ -271,7 +265,6 @@
}
});
}
console.log("address",this.address);
}
}
else{
@ -357,8 +350,8 @@
this.clistall[i].isChecked = false;
});
this.clistnow = this.clistall.filter((p) => {
//filterpersonList
return ( p.address.indexOf(this.searchKey) !== -1 );
//filterList
return ( p.address && p.address.indexOf(this.searchKey) !== -1 );
});
this.$forceUpdate();
}
@ -538,7 +531,6 @@
font-weight: 600;
color: rgb(29, 29, 29);
padding: 24rpx;
justify-content:space-between;
align-items: center;
display: flex;
.tip{

Loading…
Cancel
Save