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/index.vue | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/hive-app/pages/member/index.vue b/hive-app/pages/member/index.vue
index c0b5f98..8cfccc8 100644
--- a/hive-app/pages/member/index.vue
+++ b/hive-app/pages/member/index.vue
@@ -19,7 +19,7 @@
<view class="flex-1 mr-10">
<navigator :url="'./detail?id='+item.id" hover-class="none" class="member-list" v-for="(item, index) in list">
<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">
@@ -225,19 +225,25 @@
})
},
loadMemberList(){
+ uni.showLoading({
+ mask: true,
+ title: '加载中'
+ });
let parma = Object.assign({
order: this.order,
queryKey: this.queryKey,
sort: this.sort
}, this.filterKeys)
- this.$httpUtils.request('/api/vip/findVipInfoList', parma, 'POST', {isShowLoad: true}).then((res) => {
+ this.$httpUtils.request('/api/vip/findVipInfoList', parma, 'POST').then((res) => {
if(res.status == 200){
this.list = res.rows;
- } else {
- this.list = [];
}
+ this.$nextTick(() => {
+ uni.hideLoading()
+ })
}).catch((err) => {
this.list = [];
+ uni.hideLoading()
})
}
},
@@ -264,6 +270,7 @@
right: 0;
padding: var(--status-bar-height) 10px 0;
background: #FFFFFF;
+ z-index: 99;
}
.sort-wrap{
display: flex;
--
Gitblit v1.9.1