| | |
| | | <search-bar @confirm="search"></search-bar> |
| | | <view class="member-list flex align-center" v-for="(item, index) in list" @click="checkOnchange(item)"> |
| | | <template> |
| | | <image v-if="item.photo" src="item.photo" class="avatar"></image> |
| | | <image v-if="item.photo" :src="item.photo" class="avatar"></image> |
| | | <text v-else class="first-name" :style="{background: caculateBgcolor(index)}">{{item.vipName | formatName}}</text> |
| | | </template> |
| | | <view class="flex-1 flex align-center justify-between member-list-con"> |
| | |
| | | if(options.multiSelect){ |
| | | this.multiSelect = new Boolean(options.multiSelect); |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.loadMemberList() |
| | | }, |
| | | methods:{ |
| | |
| | | this.loadMemberList(); |
| | | }, |
| | | loadMemberList(){ |
| | | uni.showLoading({ |
| | | mask: true, |
| | | title: '加载中' |
| | | }); |
| | | this.$httpUtils.request('/api/vip/findVipInfoList', { |
| | | queryKey: this.queryKey |
| | | }, 'POST', {isShowLoad: true}).then((res) => { |
| | | }, 'POST').then((res) => { |
| | | if(res.status == 200){ |
| | | this.list = res.rows.map((item) => { |
| | | let index = this.selectItems.findIndex((op) => { |
| | |
| | | return Object.assign(item, {isCheck: false}) |
| | | }); |
| | | } |
| | | this.$nextTick(function(){ |
| | | uni.hideLoading() |
| | | }) |
| | | }).catch(() => { |
| | | uni.hideLoading() |
| | | }) |
| | | }, |
| | | checkOnchange(item){ |