mirror of
https://gitee.com/java110/PropertyApp.git
synced 2026-02-23 21:36:39 +08:00
优化 查询
This commit is contained in:
parent
1e498e9249
commit
8c7728d536
@ -16,9 +16,11 @@
|
||||
<view class="cu-item" v-for="(item,sub) in communitys" :key="sub" @tap="_doChangeCommunity(item)">
|
||||
<view class="content padding-tb-sm">
|
||||
<view>
|
||||
<text class="lg cuIcon-homefill text-blue margin-right-xs"></text> {{item.name}}</view>
|
||||
<text class="lg cuIcon-homefill text-blue margin-right-xs"></text> {{item.name}}
|
||||
</view>
|
||||
<view class="text-gray text-sm">
|
||||
<text class="lg text-gray cuIcon-location margin-right-xs"></text> {{item.address}}</view>
|
||||
<text class="lg text-gray cuIcon-location margin-right-xs"></text> {{item.address}}
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -28,7 +30,9 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import {getCommunity} from '../../api/community/community.js'
|
||||
import {
|
||||
getCommunity
|
||||
} from '../../api/community/community.js'
|
||||
import mapping from '../../constant/mapping.js'
|
||||
export default {
|
||||
data() {
|
||||
@ -47,10 +51,12 @@
|
||||
let _condition = {
|
||||
name: this.communityName
|
||||
}
|
||||
getCommunity(function(_communitys){
|
||||
getCommunity(true, _condition)
|
||||
.then(_communitys => {
|
||||
_that.communitys = _communitys;
|
||||
console.log('_communitys', _communitys);
|
||||
},true,_condition);
|
||||
|
||||
});
|
||||
},
|
||||
_searchCommunity: function() {
|
||||
this._loadCommunitys();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user