代码更新

This commit is contained in:
GaoHao
2025-03-04 18:30:16 +08:00
parent fd0c452a76
commit 4f65b08c06
32 changed files with 622 additions and 1616 deletions

View File

@@ -1,6 +1,11 @@
<template>
<view class="safe-page" style="padding-bottom: 230rpx!important;">
<view class="bg-fff u-p-l-30 u-p-r-30 ">
<view class="myTabs u-m-t-20">
<my-tabs :list="pageData.tabsList" :textKey="'label'" @change="tabsChange"></my-tabs>
</view>
</view>
<!-- 用户列表 -->
<template>
<view class="input-wrapper u-p-l-30 u-p-r-30 u-p-b-30 bg-fff">
@@ -151,7 +156,9 @@
import { hasPermission } from '@/commons/utils/hasPermission.js';
const moreOperate = ref(null)
const moreOperateList = ['增减余额', '修改信息', ]
let datas = reactive({
show: false,
form: {
type: '1',
@@ -160,7 +167,12 @@
},
activeUser: null
})
const pageData = reactive({
tabsList: [
{label: '会员用户', value: 1},
{label: '普通用户', value: 0},
],
search: {
placeholder: '搜索昵称、手机号码'
},
@@ -168,7 +180,7 @@
page: 1,
size: 10,
key: '',
// isVip: 1
isVip: 1,
},
showGoodsDetail: false,
userList: [],
@@ -193,7 +205,7 @@
* 获取用户数据统计
*/
async function getAllShopInfo() {
const res = await shopUserSummary({isVip: 1})
const res = await shopUserSummary({isVip: pageData.query.isVip})
pageData.allShopInfo = res
}
@@ -214,12 +226,22 @@
}
/**
* tabs切换
* @param {Object} i
*/
function tabsChange(i) {
pageData.query.isVip = pageData.tabsList[i].value
getUser()
getAllShopInfo()
}
/**
* 搜索
*/
function searchFunc() {
pageData.query.page = 1
getUser()
getAllShopInfo()
}
/**