会员列表页联调

This commit is contained in:
cuiyouliang 2025-06-06 17:39:55 +08:00
parent 686c9fd284
commit 66af30d79e
2 changed files with 38 additions and 24 deletions

View File

@ -46,7 +46,7 @@
<el-table v-loading="loading" :data="umsMemberList" border> <el-table v-loading="loading" :data="umsMemberList" border>
<el-table-column label="昵称" prop="nickname" width="150" /> <el-table-column label="昵称" prop="nickname" width="150" />
<el-table-column label="手机号码" prop="phoneHidden" width="150" /> <el-table-column label="手机号码" prop="phoneHidden" width="150" />
<el-table-column label="佣金" width="120"> <!-- <el-table-column label="佣金" width="120">
<template v-slot="scope"> <template v-slot="scope">
<div>0.00</div> <div>0.00</div>
</template> </template>
@ -60,7 +60,7 @@
<template v-slot="scope"> <template v-slot="scope">
<div>0.00</div> <div>0.00</div>
</template> </template>
</el-table-column> </el-table-column>-->
<el-table-column label="注册时间" prop="createTime" width="180"> <el-table-column label="注册时间" prop="createTime" width="180">
<template v-slot="scope"> <template v-slot="scope">
<div>{{ parseTime(scope.row.createTime) }}</div> <div>{{ parseTime(scope.row.createTime) }}</div>
@ -85,7 +85,7 @@
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
<pagination :total="total" v-model:page="queryParams.pageNum" v-model:limit="queryParams.pageSize" @pagination="getList" /> <pagination :total="total" v-model:page="queryParams.current" v-model:limit="queryParams.size" @pagination="getList" />
</div> </div>
<!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk" />--> <!-- <SeeAdsComponent ref="seeAdsComponentRef" v-if="!show" @confirmOk="confirmOk" />-->
<!-- 统计 --> <!-- 统计 -->
@ -163,8 +163,8 @@ export default {
open: false, open: false,
// //
queryParams: { queryParams: {
pageNum: 1, current: 1,
pageSize: 10, size: 10,
nickname: null, nickname: null,
phone: null, phone: null,
status: undefined, status: undefined,
@ -244,16 +244,16 @@ export default {
/** 查询会员信息列表 */ /** 查询会员信息列表 */
getList() { getList() {
this.loading = true; this.loading = true;
const { pageNum, pageSize } = this.queryParams; const { current: pageNum, size: pageSize } = this.queryParams;
let query = { ...this.queryParams, pageNum: undefined, pageSize: undefined }; let query = { ...this.queryParams, pageNum: undefined, pageSize: undefined };
const pageReq = { page: pageNum - 1, size: pageSize }; const pageReq = { current: pageNum - 1, size: pageSize };
if (!this.dateRange || this.dateRange.length > 0) { if (!this.dateRange || this.dateRange.length > 0) {
query = { ...this.addDateRange2(query, this.dateRange) }; query = { ...this.addDateRange2(query, this.dateRange) };
} }
listUmsMember(query, pageReq).then((response) => { listUmsMember(query, pageReq).then((response) => {
const { content, totalElements } = response; const { records = [], total = 0 } = response.data || {};
this.umsMemberList = content; this.umsMemberList = records;
this.total = totalElements; this.total = total;
this.loading = false; this.loading = false;
}); });
}, },
@ -384,24 +384,38 @@ export default {
}); });
}, },
goOrder(phone) { goOrder(phone) {
decryptedPhone(phone).then((res) => { if (phone) {
this.$router.push({ decryptedPhone(phone).then((res) => {
path: '/order/order', this.$router.push({
query: { path: '/order/list',
phone: res query: {
} phone: res
}
});
}); });
}); } else {
this.$router.push({
path: '/order/list',
query: {}
});
}
}, },
goCart(phone) { goCart(phone) {
decryptedPhone(phone).then((res) => { if (phone) {
decryptedPhone(phone).then((res) => {
this.$router.push({
path: '/member/shoppingCart',
query: {
phone: res
}
});
});
} else {
this.$router.push({ this.$router.push({
path: '/member/shoppingCart', path: '/member/shoppingCart',
query: { query: {}
phone: res
}
}); });
}); }
}, },
showStatistics(memberId) { showStatistics(memberId) {
viewStatistics(memberId).then((response) => { viewStatistics(memberId).then((response) => {

View File

@ -24,8 +24,8 @@ export default defineConfig(({ mode, command }) => {
open: true, open: true,
proxy: { proxy: {
[env.VITE_APP_BASE_API]: { [env.VITE_APP_BASE_API]: {
// target: 'http://192.168.224.1:8080', target: 'http://192.168.1.13:8080',
target: 'http://192.168.1.250:8080', // target: 'http://192.168.1.250:8080',
changeOrigin: true, changeOrigin: true,
ws: true, ws: true,
rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), ''), rewrite: (path) => path.replace(new RegExp('^' + env.VITE_APP_BASE_API), ''),