From a3a48da30bdea132d2bfbb47fa2ccf83f1937c45 Mon Sep 17 00:00:00 2001 From: queenwuli <942534046@qq.com> Date: Tue, 19 Jan 2021 08:29:55 +0800 Subject: [PATCH] 提交 --- hive-app/pages/member/selectCustomer.vue | 15 +++++++++++++-- 1 files changed, 13 insertions(+), 2 deletions(-) diff --git a/hive-app/pages/member/selectCustomer.vue b/hive-app/pages/member/selectCustomer.vue index 74f573f..43462d3 100644 --- a/hive-app/pages/member/selectCustomer.vue +++ b/hive-app/pages/member/selectCustomer.vue @@ -3,7 +3,7 @@ <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"> @@ -50,6 +50,8 @@ if(options.multiSelect){ this.multiSelect = new Boolean(options.multiSelect); } + }, + onShow() { this.loadMemberList() }, methods:{ @@ -61,9 +63,13 @@ 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) => { @@ -78,6 +84,11 @@ return Object.assign(item, {isCheck: false}) }); } + this.$nextTick(function(){ + uni.hideLoading() + }) + }).catch(() => { + uni.hideLoading() }) }, checkOnchange(item){ -- Gitblit v1.9.1