|
|
@@ -1,26 +1,26 @@ |
|
|
|
<template>
|
|
|
|
<view class="selectBuilding">
|
|
|
|
<view class="searchStyle">
|
|
|
|
<u-search placeholder="输入项目名称" v-model="search" @search="s" @custom="s"></u-search>
|
|
|
|
</view>
|
|
|
|
<template> |
|
|
|
<view class="selectBuilding"> |
|
|
|
<view class="searchStyle"> |
|
|
|
<u-search placeholder="输入项目名称" v-model="search" @search="s" @custom="s"></u-search> |
|
|
|
</view> |
|
|
|
<view class="searchResultStyle"> |
|
|
|
<view class="searchList" v-for="(item,index) in list" :key="index" @click="okSelect(item.id,item.propertyName)"> |
|
|
|
{{item.propertyName}} |
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
<script> |
|
|
|
var config = require("@/config");
|
|
|
|
export default {
|
|
|
|
name: "selectBuilding",
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
search: "",
|
|
|
|
list: [],
|
|
|
|
};
|
|
|
|
var config = require("@/config"); |
|
|
|
export default { |
|
|
|
name: "selectBuilding", |
|
|
|
data() { |
|
|
|
return { |
|
|
|
search: "", |
|
|
|
list: [], |
|
|
|
}; |
|
|
|
}, |
|
|
|
methods:{ |
|
|
|
s(e){ |
|
|
@@ -32,6 +32,7 @@ |
|
|
|
name |
|
|
|
} |
|
|
|
uni.setStorageSync("buildingID", lopan); |
|
|
|
uni.setStorageSync("updatebuildingID", 'updatebuildingID'); |
|
|
|
uni.navigateBack({ |
|
|
|
delta:-1 |
|
|
|
}) |
|
|
@@ -54,23 +55,23 @@ |
|
|
|
}, |
|
|
|
onLoad() { |
|
|
|
this.init("") |
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
.selectBuilding {
|
|
|
|
.searchStyle {
|
|
|
|
padding: 20rpx;
|
|
|
|
}
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|
.selectBuilding { |
|
|
|
.searchStyle { |
|
|
|
padding: 20rpx; |
|
|
|
} |
|
|
|
|
|
|
|
.searchResultStyle { |
|
|
|
padding: 0 30rpx;
|
|
|
|
padding: 0 30rpx; |
|
|
|
.searchList{ |
|
|
|
border-bottom: 1rpx solid #E0E0E0; |
|
|
|
padding: 30rpx 0; |
|
|
|
font-size: 30rpx; |
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |