|
|
@@ -2,70 +2,30 @@
|
|
|
<div class="app-main app-content">
|
|
|
<block v-if="!$util.isEmpty(list.data)">
|
|
|
<block v-for="(item,index) in list.data" :key="index">
|
|
|
- <tui-list-cell
|
|
|
- :arrow="true"
|
|
|
- @click="pageTo({
|
|
|
- url: '/admin/member/detail',
|
|
|
- query: {
|
|
|
- id: item.id
|
|
|
- }
|
|
|
- })"
|
|
|
- >
|
|
|
+ <tui-list-cell :arrow="true" @click="pageTo({ url: '/admin/member/detail', query: { id: item.id } })" >
|
|
|
<div class="tui-msg-box">
|
|
|
<img :src="item.avatar" class="tui-msg-pic" mode="widthFix" />
|
|
|
<div class="tui-msg-item">
|
|
|
-
|
|
|
<div class="tui-msg-name">
|
|
|
<div class="tui-user-name">{{item.name}}</div>
|
|
|
-
|
|
|
<appVipModule class="level-img" :vipImg="`${constant.imgUrl}/retail/member/grade/member.png`" />
|
|
|
-
|
|
|
- <!-- <appVipModule
|
|
|
- v-if="item.member > 0"
|
|
|
- class="level-img"
|
|
|
- :vipImg="`${constant.imgUrl}/retail/member/grade/${item.userAsset.member}.png`"
|
|
|
- />
|
|
|
- <template v-else>
|
|
|
- <appVipModule
|
|
|
- v-if="item.mobile == ''"
|
|
|
- class="level-img"
|
|
|
- :vipImg="`${constant.imgUrl}/retail/member/grade/customer.png`"
|
|
|
- />
|
|
|
-
|
|
|
- <appVipModule
|
|
|
- v-else
|
|
|
- class="level-img"
|
|
|
- :vipImg="`${constant.imgUrl}/retail/member/grade/member.png`"
|
|
|
- />
|
|
|
-
|
|
|
- </template> -->
|
|
|
-
|
|
|
-
|
|
|
</div>
|
|
|
-
|
|
|
<div class="tui-msg-content">
|
|
|
<span>{{item.visitTime}}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
<div class="tui-msg-right">
|
|
|
- <badge-module
|
|
|
- type="danger"
|
|
|
- :dot="item.level==3?true:false"
|
|
|
- v-if="item.messageNum>0"
|
|
|
- >{{item.messageNum}}</badge-module>
|
|
|
+ <badge-module type="danger" :dot="item.level==3?true:false" v-if="item.messageNum>0" >{{item.messageNum}}</badge-module>
|
|
|
</div>
|
|
|
</tui-list-cell>
|
|
|
</block>
|
|
|
</block>
|
|
|
<block v-else>
|
|
|
- <app-wrapper-empty :is-empty="$util.isEmpty(list.data)" />
|
|
|
+ <app-wrapper-empty :is-empty="true" />
|
|
|
</block>
|
|
|
- <!-- <kd-entrance></kd-entrance> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
-
|
|
|
<script>
|
|
|
import AppTabs from "@/components/plugin/tabs";
|
|
|
import TuiListCell from "@/components/plugin/list-cell";
|
|
|
@@ -74,7 +34,7 @@ import AppWrapperEmpty from "@/components/app-wrapper-empty";
|
|
|
import appVipModule from "@/components/module/app-vip";
|
|
|
import AppTag from '@/components/module/app-tag.vue'
|
|
|
import { list } from "@/mixins";
|
|
|
-import { getClass, getList } from "@/api/member";
|
|
|
+import { getList } from "@/api/member";
|
|
|
export default {
|
|
|
name: "admin-memebr",
|
|
|
components: {
|
|
|
@@ -92,44 +52,38 @@ export default {
|
|
|
},
|
|
|
onPullDownRefresh() {
|
|
|
this.resetList();
|
|
|
- this._list().then(res => {
|
|
|
+ this.getOrderList().then(res => {
|
|
|
uni.stopPullDownRefresh();
|
|
|
});
|
|
|
},
|
|
|
onReachBottom() {
|
|
|
if (!this.list.finished) {
|
|
|
- this._list().then(res => {
|
|
|
+ this.getOrderList().then(res => {
|
|
|
uni.stopPullDownRefresh();
|
|
|
});
|
|
|
} else {
|
|
|
uni.stopPullDownRefresh();
|
|
|
}
|
|
|
},
|
|
|
- onLoad(option) {
|
|
|
- // this.init()
|
|
|
+ onLoad() {
|
|
|
},
|
|
|
methods: {
|
|
|
init() {
|
|
|
- this._list();
|
|
|
+ this.getOrderList();
|
|
|
},
|
|
|
- // 列表
|
|
|
- _list() {
|
|
|
- return getList({
|
|
|
- search: "",
|
|
|
- page: this.list.page,
|
|
|
- ...this.form
|
|
|
- }).then(res => {
|
|
|
- this.completes(res)
|
|
|
+ getOrderList() {
|
|
|
+ return getList({ search: "", page: this.list.page, ...this.form }).then(res => {
|
|
|
+ if(res.code == 1){
|
|
|
+ this.completes(res)
|
|
|
+ }
|
|
|
});
|
|
|
},
|
|
|
- // 跳转
|
|
|
detail(item) {
|
|
|
this.$util.pageTo("/admin/member/detail");
|
|
|
}
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
-
|
|
|
<style lang="scss" scoped>
|
|
|
.app-content {
|
|
|
padding-top: 22upx;
|
|
|
@@ -146,7 +100,6 @@ export default {
|
|
|
@include disFlex(center, center);
|
|
|
}
|
|
|
}
|
|
|
-// list
|
|
|
.tui-msg-box {
|
|
|
display: flex;
|
|
|
align-items: center;
|