Compare commits

...

5 Commits

  1. 32
      src/api/platform/address.js
  2. 155
      src/api/platform/follower.js
  3. 2
      src/api/platform/user.js
  4. 4
      src/views/components/inventory/components/add_product.vue
  5. 5
      src/views/components/inventory/index.vue
  6. 6
      src/views/platform/config/about_us.vue
  7. 59
      src/views/platform/config/user_agreement.vue
  8. 4
      src/views/platform/marketing_management/rreferral_setting.vue
  9. 2
      src/views/platform/notification_management/index.vue
  10. 272
      src/views/platform/self-operated-mall/components/add_product.vue
  11. 121
      src/views/platform/self-operated-mall/components/form.vue
  12. 95
      src/views/platform/self-operated-mall/components/tag_list.vue
  13. 44
      src/views/platform/self-operated-mall/index.vue
  14. 31
      src/views/platform/user/buyDetail.vue
  15. 31
      src/views/platform/user/cart.vue
  16. 26
      src/views/platform/user/discount.vue
  17. 21
      src/views/platform/user/follower.vue
  18. 30
      src/views/platform/user/walletDetail.vue

@ -1,12 +1,32 @@
import request from "@/utils/request";
import request from '@/utils/request'
// 查询收货地址列表
export function listAddress(query) {
return request({
url: "/platform/address/list",
method: "get",
params: query,
});
return new Promise(resolve => {
resolve({
'total': 1,
'rows': [
{
'createBy': null,
'createTime': '2023-01-13 09:36:21',
'updateBy': null,
'updateTime': null,
'remark': null,
'id': 1,
'consignee': '张三',
'phone': '13250211954',
'province': '广东省',
'city': '佛山市',
'area': '南海区',
'address': '桂城街道',
'isDefault': false,
'userId': 115
}
],
'code': 200,
'msg': '查询成功'
})
})
}
// 查询收货地址详细

@ -1,9 +1,152 @@
import request from "@/utils/request";
// 查询收货地址列表
export function listFollower(user_id) {
return request({
url: `/platform/follower/list/${user_id}`,
method: "get",
});
return new Promise(resolve => {
resolve({
'total': 2,
'rows': [
{
'createBy': null,
'createTime': '2023-01-14 02:17:30',
'updateBy': null,
'updateTime': null,
'remark': null,
'id': 1,
'following': 115,
'follower': 116,
'followingUser': {
'createBy': null,
'createTime': '2023-01-12 09:16:00',
'updateBy': null,
'updateTime': null,
'remark': null,
'userId': 116,
'deptId': null,
'userName': null,
'nickName': 'dsfgfd234234',
'email': null,
'phonenumber': '13250211978',
'sex': '1',
'avatar': '/profile/avatar/2023/01/12/blob_20230112055008A001.png',
'password': null,
'status': '0',
'delFlag': null,
'loginIp': null,
'loginDate': null,
'dept': null,
'roles': null,
'roleIds': null,
'postIds': null,
'roleId': null,
'wechatNickName': 'dfg345',
'balance': null,
'referrerId': null,
'referrerSysUser': {
'createBy': null,
'createTime': null,
'updateBy': null,
'updateTime': null,
'remark': null,
'userId': null,
'deptId': null,
'userName': null,
'nickName': '若依',
'email': null,
'phonenumber': null,
'sex': null,
'avatar': null,
'password': null,
'status': null,
'delFlag': null,
'loginIp': null,
'loginDate': null,
'dept': null,
'roles': null,
'roleIds': null,
'postIds': null,
'roleId': null,
'wechatNickName': null,
'balance': null,
'referrerId': null,
'referrerSysUser': null,
'admin': false
},
'admin': false
},
'followerUser': null
},
{
'createBy': null,
'createTime': '2023-01-14 02:17:30',
'updateBy': null,
'updateTime': null,
'remark': null,
'id': 2,
'following': 115,
'follower': 101,
'followingUser': {
'createBy': null,
'createTime': '2023-01-11 20:26:31',
'updateBy': null,
'updateTime': null,
'remark': null,
'userId': 101,
'deptId': null,
'userName': null,
'nickName': 'adsfsaf',
'email': null,
'phonenumber': '13250211954',
'sex': '1',
'avatar': '',
'password': null,
'status': '0',
'delFlag': null,
'loginIp': null,
'loginDate': null,
'dept': null,
'roles': null,
'roleIds': null,
'postIds': null,
'roleId': null,
'wechatNickName': null,
'balance': null,
'referrerId': null,
'referrerSysUser': {
'createBy': null,
'createTime': null,
'updateBy': null,
'updateTime': null,
'remark': null,
'userId': null,
'deptId': null,
'userName': null,
'nickName': '若依',
'email': null,
'phonenumber': null,
'sex': null,
'avatar': null,
'password': null,
'status': null,
'delFlag': null,
'loginIp': null,
'loginDate': null,
'dept': null,
'roles': null,
'roleIds': null,
'postIds': null,
'roleId': null,
'wechatNickName': null,
'balance': null,
'referrerId': null,
'referrerSysUser': null,
'admin': false
},
'admin': false
},
'followerUser': null
}
],
'code': 200,
'msg': '查询成功'
})
})
}

@ -509,7 +509,7 @@ export function getUser(userId) {
'updateBy': null,
'updateTime': null,
'remark': '测试员',
'userId': 2,
'userId': 115,
'deptId': 105,
'userName': 'ry',
'nickName': '若依',

@ -50,8 +50,8 @@
<span
class="upload-tip">145*145单张图片大小不超过{{ maxFileSizeM }}支持格式jpgpng最多上传8张</span>
</el-upload>
<div class="title">商品详情</div>
<h1>富文本编辑器</h1>
<div class="title mb20">商品详情</div>
<Editor/>
<el-divider/>
<el-button type="primary" @click="save">保存</el-button>
<el-button @click="$emit('close')">关闭</el-button>

@ -1,6 +1,7 @@
<template>
<!--TODO:权限逻辑没做先通过路由参数控制-->
<div v-if="showList">
<el-tabs v-model="activeName" type="card" class="custom-tab">
<el-tabs v-model="activeName" type="card" class="custom-tab" v-if="$route.query.type==='platform'">
<el-tab-pane label="全部商品(120)" name="all">
全部商品
</el-tab-pane>
@ -18,6 +19,8 @@
</div>
<add-product v-else @close="showList = true"/>
</template>
<script>
import BaseForm from './components/form'
import AddProduct from './components/add_product'

@ -1,9 +1,7 @@
<template>
<div class="app-container">
<div>
富文本编辑器
</div>
<div class="text-center">
<Editor/>
<div class="text-center mt20">
<el-button type="primary">保存</el-button>
<el-button>重置</el-button>

@ -2,28 +2,73 @@
<div class="app-container">
<el-row>
<el-col :span="4">
<div v-for="item in menuList" :key="item" @click="currentMenu=item"
:class="{'active':item===currentMenu,'inactive':item!==currentMenu}">{{ item }}
<div v-for="item in menuList" :key="item" @click="changeMenu(item)"
:class="{'active':item===currentMenu.configName,'inactive':item!==currentMenu.configName}">{{ item }}
</div>
</el-col>
<el-col :span="18" :offset="2">
富文本编辑器
<Editor v-model="currentMenu.configValue"/>
</el-col>
</el-row>
<div class="text-center">
<el-button type="primary">保存</el-button>
<div class="text-center mt20">
<el-button type="primary" @click="update">保存</el-button>
<el-button>重置</el-button>
</div>
</div>
</template>
<script>
import { getConfig, updateConfig } from '@/api/system/config'
export default {
name: 'user_agreement',
mounted() {
this.changeMenu()
},
data() {
let form = {
userAgreement: {
'configId': 100,
'configName': '用户协议',
'configKey': 'platform.user.agreement',
'configValue': '',
'active': true
},
privacyPolicy: {
'configId': 101,
'configName': '隐私政策',
'configKey': 'platform.privacy.policy',
'configValue': '',
'active': false
}
}
let menuList = Object.keys(form).map(item => form[item].configName)
return {
currentMenu: '用户协议',
menuList: ['用户协议', '隐私政策']
form,
menuList
}
},
methods: {
update() {
updateConfig(this.currentMenu).then(response => {
this.$modal.msgSuccess(`${this.currentMenu.configName}更新${response.code === 200 ? '成功' : '失败'}`)
})
},
changeMenu(name) {
if (name === undefined) {
name = this.menuList[0]
}
for (let key in this.form) {
this.form[key].active = this.form[key].configName === name
}
getConfig(this.currentMenu.configId).then(response => {
this.currentMenu.configValue = response.data.configValue
})
}
},
computed: {
currentMenu() {
return Object.values(this.form).find(item => item.active)
}
}
}

@ -31,7 +31,7 @@
</el-form-item>
<el-divider />
<div class="title">活动规则</div>
<div>富文本编辑器</div>
<Editor/>
</el-form>
<div class="text-center">
<el-button type="primary">保存</el-button>
@ -56,4 +56,4 @@ export default {
font-size: 14px;
font-family: SourceHanSansSC-regular;
}
</style>
</style>

@ -61,7 +61,7 @@
</el-form-item>
<br/>
<el-form-item label="内容">
富文本编辑器
<Editor/>
</el-form-item>
</el-form>
<div class="text-center">

@ -1,272 +0,0 @@
<template>
<div class="app-container">
<el-tabs v-model="activeName" type="border-card">
<el-tab-pane label="基本信息" name="base">
<div class="title">基本信息</div>
<el-divider />
<el-form :inline="true">
<el-form-item label="商品名称">
<el-input placeholder="请输入商品名称" />
</el-form-item>
<el-form-item label="商品编码">
<el-input placeholder="请输入商品编码" />
</el-form-item>
<el-form-item>
<el-cascader placeholder="请选择商品分类" :options="categoryOptions"></el-cascader>
</el-form-item>
</el-form>
<el-form :inline="true">
<el-form-item label="计量单位">
<el-select placeholder="请选择计量单位" v-model="form.unit" />
</el-form-item>
<el-form-item label="库存预警">
<el-input-number placeholder="请输入最低库存数量" v-model="form.num" controls-position="right"
:step="100" :min="0"></el-input-number>
</el-form-item>
<br />
<el-form-item label="是否上架">
<el-switch v-model="form.isOnShelf" active-color="#adbcf9" inactive-color="#adbc00">
</el-switch>
</el-form-item>
</el-form>
<div class="title">商品主图</div>
<el-divider />
<el-row>
<el-col :span="4" v-for="(item, index) in form.fileList" :key="index">
<div class="img" :style="{
backgroundImage: `url(${item.blobURL})`
}">
<i class="el-icon-check" v-if="item.primary"></i>
</div>
<div style="text-align: center;">
<el-button type="text" @click="setPrimary(index)">设为主图</el-button>
<el-button type="text" @click="handleRemove(index)">删除图片</el-button>
</div>
</el-col>
</el-row>
<el-upload action="#" accept="image/png, image/jpeg" :limit="maxFileCount" :show-file-list="false"
:auto-upload="false" :file-list="form.fileList" :on-change="handleChange">
<el-button type="primary" v-if="form.fileList.length < maxFileCount">上传图片</el-button><span
class="upload-tip">145*145单张图片大小不超过{{ maxFileSizeM }}支持格式jpgpng最多上传8张</span>
</el-upload>
<div class="title">商品详情</div>
<h1>富文本编辑器</h1>
<el-divider />
<el-button type="primary" @click="save">保存</el-button>
<el-button @click="$emit('close')">关闭</el-button>
</el-tab-pane>
<el-tab-pane label="库存规格" name="spec">
<el-row type="flex" justify="center">
<el-col :span="2">
<div class="left-title">库存/规格</div>
</el-col>
<el-col :span="16">
<el-input placeholder="输入规格名称">
<template slot="append">
<el-button>添加规格</el-button>
</template>
</el-input>
<div class="top">
<tag-list label="尺寸" @change-tags="(tags) => { console.info(tags) }" />
<tag-list label="颜色" @change-tags="(tags) => { console.info(tags) }" />
</div>
<el-table class="spec-table" :data="specList" :span-method="arraySpanMethod" border>
<el-table-column label="尺寸" align="center">
<template slot-scope="scope">
<span v-if="scope.row === undefined">批量设置</span>
</template>
</el-table-column>
<el-table-column label="颜色" align="center">
</el-table-column>
<el-table-column label="价格" align="center">
<template slot-scope="scope">
<el-input v-if="scope.row === undefined">
<template slot="append">
<el-button>设置</el-button>
</template>
</el-input>
</template>
</el-table-column>
<el-table-column label="吊牌 价格" align="center">
<template slot-scope="scope">
<el-input v-if="scope.row === undefined">
<template slot="append">
<el-button>设置</el-button>
</template>
</el-input>
</template>
</el-table-column>
<el-table-column label="库存" align="center">
<template slot-scope="scope">
<el-input v-if="scope.row === undefined">
<template slot="append">
<el-button>设置</el-button>
</template>
</el-input>
</template>
</el-table-column>
<el-table-column label="图片" align="center"></el-table-column>
</el-table>
</el-col>
</el-row>
</el-tab-pane>
</el-tabs>
</div>
</template>
<script>
import { mapState } from 'vuex'
import TagList from "./tag_list"
export default {
name: "AddProduct",
components: { TagList },
data() {
return {
//
specList: [undefined],
//
maxFileCount: 2,
//
maxFileSize: 1024 * 1024 * 5,
form: {
//
num: 100,
//
isOnShelf: true,
//
unit: undefined,
fileList: []
},
activeName: "base"
}
},
methods: {
arraySpanMethod({ row, column, rowIndex, columnIndex }) {
if (rowIndex === this.specList.length - 1) {
switch (columnIndex) {
case 0: return [1, 2]
case 1: return [0, 0]
default: return [1, 1]
}
} else {
return [1, 1]
}
},
//
setPrimary(index) {
let _index = this.form.fileList.findIndex(item => item.primary)
let old = this.form.fileList[_index]
old.primary = false
this.form.fileList.splice(_index, 1, old)
let _new = this.form.fileList[index]
_new.primary = true
this.form.fileList.splice(index, 1, _new)
},
handleChange(file, fileList) {
if (file.size > this.maxFileSize) {
this.$modal.msgWarning(`单张图片大小不能超过${this.maxFileSizeM}`)
return
}
file.blobURL = URL.createObjectURL(file.raw)
file.primary = false
if (this.form.fileList.length === 0) {
file.primary = true
}
this.form.fileList.push(file)
},
handleRemove(index) {
let del = this.form.fileList[index]
this.form.fileList.splice(index, 1)
//
if (this.form.fileList.length > 0 && del.primary) {
let defaultPrimary = this.form.fileList[0]
defaultPrimary.primary = true
this.form.fileList.splice(0, 1, defaultPrimary)
}
},
handlePreview(file) {
console.log(file);
},
save() {
this.$modal.msgSuccess("保存成功")
this.$emit('close')
}
},
computed: {
...mapState({
categoryOptions: state => state.platformShop.categoryOptions
}),
maxFileSizeM() {
return `${this.maxFileSize / 1024 / 1024}M`
}
},
}
</script>
<style lang="scss">
.spec-table {
margin-top: 10px;
thead th {
background-color: #fff !important;
}
}
.top {
margin-top: 5px;
background-color: #f5f5f5;
border-radius: 5px;
border: 1px solid rgba(0, 0, 0, 0.2);
}
.img {
width: 145px;
height: 145px;
background-position: center;
background-size: cover;
margin: auto;
display: flex;
align-items: center;
justify-content: center;
font-size: 50px;
}
.left-title {
font-size: 16px;
}
.title {
color: rgba(16, 16, 16, 1);
font-size: 16px;
text-align: left;
font-family: SourceHanSansSC-regular;
margin-top: 20px;
}
.el-switch__core:after {
content: "";
position: absolute;
top: 1px;
left: 1px;
border-radius: 100%;
-webkit-transition: all 0.3s;
transition: all 0.3s;
width: 16px;
height: 16px;
background-color: #5a7bf4 !important;
}
.upload-tip {
font-size: 14px;
text-align: left;
font-family: SourceHanSansSC-regular;
margin-left: 10px;
}
</style>

@ -1,121 +0,0 @@
<template>
<div class="app-container">
<el-row>
<el-form :inline="true">
<el-form-item>
<el-input v-model="queryParams.productName" placeholder="请输入商品名称" />
</el-form-item>
<el-form-item>
<el-input v-model="queryParams.productCode" placeholder="请输入商品编码" />
</el-form-item>
<el-form-item>
<el-cascader placeholder="请选择商品分类" v-model="queryParams.productCategory"
:options="categoryOptions"></el-cascader>
</el-form-item>
<el-form-item>
<el-select v-model="queryParams.productStatus" placeholder="状态" clearable>
<el-option v-for="dict in dict.type.product_status" :key="dict.value" :label="dict.label"
:value="dict.value"></el-option>
</el-select>
</el-form-item>
<el-form-item>
<el-date-picker v-model="queryParams.dateRange" style="width: 240px" value-format="yyyy-MM-dd"
type="daterange" range-separator="-" start-placeholder="开始日期"
end-placeholder="结束日期"></el-date-picker>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini">查询</el-button>
<el-button icon="el-icon-refresh" size="mini">重置</el-button>
</el-form-item>
</el-form>
</el-row>
<el-row type="flex" justify="space-between">
<el-col :span="12">
<el-button type="primary" @click="$emit('show-add')">新增商品</el-button>
<el-button>批量上架</el-button>
<el-button>批量下架</el-button>
<el-button>批量删除</el-button>
</el-col>
<el-col :span="6">
<el-button type="text">下载模板</el-button>
<el-button>导入</el-button>
<el-button>导出</el-button>
</el-col>
</el-row>
<el-row class="table">
<el-table>
<el-table-column type="selection" width="50" align="center" />
<el-table-column label="序号" align="center">
</el-table-column>
<el-table-column label="商品编码" align="center">
</el-table-column>
<el-table-column label="商品名称" align="center">
</el-table-column>
<el-table-column label="商品图片" align="center">
</el-table-column>
<el-table-column label="商品分类" align="center">
</el-table-column>
<el-table-column label="单位" align="center">
</el-table-column>
<el-table-column label="销售价" align="center">
</el-table-column>
<el-table-column label="吊牌价" align="center">
</el-table-column>
<el-table-column label="销量" align="center">
</el-table-column>
<el-table-column label="库存" align="center">
</el-table-column>
<el-table-column label="状态" align="center">
</el-table-column>
<el-table-column label="创建时间" align="center">
</el-table-column>
<el-table-column label="操作" align="center">
</el-table-column>
</el-table>
</el-row>
</div>
</template>
<script>
import { mapState } from 'vuex'
export default {
name: "BaseForm",
dicts: ['product_status'],
data() {
return {
//
queryParams: {
pageNum: 1,
pageSize: 10,
productName: undefined,
productCode: undefined,
productCategory: undefined,
productStatus: undefined,
dateRange: undefined
},
}
},
computed: {
...mapState({
categoryOptions: state => state.platformShop.categoryOptions
})
}
}
</script>
<style scoped lang="scss">
.table {
margin-top: 20px;
}
</style>

@ -1,95 +0,0 @@
<template>
<div>
<div class="size">
<i class="el-icon-delete"></i>
<span>{{ this.label }}</span>
<i class="el-icon-delete" @click="tags = []"></i>
</div>
<el-row class="add" type="flex" justify="space-between">
<el-col :span="11">
<el-input v-model="value">
<template slot="append">
<el-button @click="addTag">添加</el-button>
</template>
</el-input>
</el-col>
<el-col :span="11">
<el-tag v-for="(tag, index) in tags" :key="tag.name" closable :type="tag.type"
@close="tags.splice(index, 1)">
{{ tag.name }}
</el-tag>
</el-col>
</el-row>
</div>
</template>
<script>
export default {
name: "TagList",
props: {
label: String
},
data() {
return {
//
value: '',
tags: [],
}
},
methods: {
addTag() {
let value = this.value
if (value) {
if (this.tags.find(item => item.name === value)) {
this.$modal.msgWarning(`请问重复添加${value}`)
} else {
this.tags.push({ name: value, type: '' })
this.value = ''
}
}
}
},
watch: {
tags(value) {
this.$emit('change-tags', value)
}
}
}
</script>
<style scoped lang="scss">
.add {
background-color: #ffffff;
padding: 5px;
&>div:last-child {
display: flex;
align-items: center;
overflow-x: auto;
&>span {
margin-left: 5px;
}
}
}
.size {
font-size: 16px;
display: flex;
align-items: center;
justify-content: space-between;
padding: 15px 10px;
&>span {
font-weight: bold;
}
&>i:first-child {
visibility: hidden;
}
&>i:last-child {
color: red;
}
}
</style>

@ -1,44 +0,0 @@
<template>
<div v-if="showList">
<el-tabs v-model="activeName" type="card" class="custom-tab">
<el-tab-pane label="全部商品(120)" name="all">
全部商品
</el-tab-pane>
<el-tab-pane label="上架商品(120)" name="on-shelf">
上架商品
</el-tab-pane>
<el-tab-pane label="下架商品(120)" name="off-shelf">
下架商品
</el-tab-pane>
<el-tab-pane label="库存预警(120)" name="warn">
库存预警
</el-tab-pane>
</el-tabs>
<base-form @show-add="showList = false" />
</div>
<add-product v-else @close="showList = true" />
</template>
<script>
import BaseForm from './components/form'
import AddProduct from './components/add_product'
//TODO:/使
export default {
name: "Index",
components: { BaseForm, AddProduct },
data() {
return {
activeName: "all",
showList: true
}
},
methods: {
}
}
</script>
<style scoped lang="scss">
div[role='tablist']>div {
background-color: #1684fc;
}
</style>

@ -24,22 +24,31 @@
<el-table v-loading="loading" :data="buyDetailList">
<el-table-column label="新创建时间" align="center">
2022-12-31 12:31
</el-table-column>
<el-table-column label="订单号" align="center">
13114145464165
</el-table-column>
<el-table-column label="类型" align="center">
自提
</el-table-column>
<el-table-column label="订单金额" align="center">
120000.00
</el-table-column>
<el-table-column label="支付方式" align="center">
支付宝
</el-table-column>
<el-table-column label="订单状态" align="center">
待商家接单
</el-table-column>
<el-table-column label="收货地址" align="center">
河南省郑州市金水区光明路185号
</el-table-column>
<el-table-column label="收货人" align="center">
张三
</el-table-column>
<el-table-column label="手机号" align="center">
18888888888
</el-table-column>
</el-table>
@ -55,17 +64,17 @@ export default {
dicts: ['delivery_method'],
data() {
return {
loading: false,
buyDetailList: [],
total: 0,
loading: false,
buyDetailList: [{}],
total: 0,
//
queryParams: {
pageNum: 1,
pageSize: 10,
delivery_method: undefined,
dateRange: undefined
},
//
queryParams: {
pageNum: 1,
pageSize: 10,
delivery_method: undefined,
dateRange: undefined
}
}
},
mounted() {
@ -90,4 +99,4 @@ export default {
.query-form {
margin-bottom: 20px;
}
</style>
</style>

@ -2,16 +2,22 @@
<div class="app-container">
<el-table v-loading="loading" :data="cartList">
<el-table-column label="添加时间" align="center">
2022-12-31 12:31
</el-table-column>
<el-table-column label="商品名称" align="center">
商品名称
</el-table-column>
<el-table-column label="图片" align="center">
<img src="http://www.dummyimage.com/50x50"/>
</el-table-column>
<el-table-column label="规格" align="center">
黑色.L
</el-table-column>
<el-table-column label="数量" align="center">
10
</el-table-column>
<el-table-column label="店铺" align="center">
店铺名
</el-table-column>
</el-table>
@ -21,7 +27,6 @@
</div>
</template>
<script>
import { listCart } from "@/api/platform/cart";
export default {
name: "Cart",
props: {
@ -29,17 +34,17 @@ export default {
},
data() {
return {
//
loading: false,
//
cartList: [],
//
total: 0,
//
queryParams: {
pageNum: 1,
pageSize: 10,
},
//
loading: false,
//
cartList: [{}],
//
total: 0,
//
queryParams: {
pageNum: 1,
pageSize: 10
}
}
},
methods: {
@ -61,4 +66,4 @@ export default {
}
}
}
</script>
</script>

@ -32,16 +32,22 @@
<el-table v-loading="loading" :data="discountList">
<el-table-column label="领取时间" align="center">
2022-12-31 12:31
</el-table-column>
<el-table-column label="名称" align="center">
6.18大促
</el-table-column>
<el-table-column label="优惠" align="center">
1
</el-table-column>
<el-table-column label="发券人" align="center">
平台
</el-table-column>
<el-table-column label="状态" align="center">
已使用
</el-table-column>
<el-table-column label="使用时间" align="center">
2022-12-31 12:31
</el-table-column>
</el-table>
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum"
@ -55,16 +61,16 @@ export default {
name: "Discount",
data() {
return {
loading: false,
discountList: [],
total: 0,
loading: false,
discountList: [{}],
total: 0,
//
queryParams: {
pageNum: 1,
pageSize: 10,
dateRange: undefined
},
//
queryParams: {
pageNum: 1,
pageSize: 10,
dateRange: undefined
}
}
},
mounted() {
@ -99,4 +105,4 @@ export default {
margin-bottom: 20px;
}
}
</style>
</style>

@ -66,17 +66,18 @@
</template>
<script>
import { listFollower } from "@/api/platform/follower";
import { getAvatar } from "@/utils";
import { listFollower } from '@/api/platform/follower'
import { getAvatar } from '@/utils'
export default {
name: "Follower",
props: {
userId: Number
},
dicts: ['sys_normal_disable', 'sys_user_sex'],
data() {
return {
//
name: 'Follower',
props: {
userId: Number
},
dicts: ['sys_normal_disable', 'sys_user_sex'],
data() {
return {
//
loading: true,
//
ids: [],

@ -46,16 +46,22 @@
<el-table v-loading="loading" :data="walletDetailList">
<el-table-column label="新创建时间" align="center">
2022-12-31 12:31
</el-table-column>
<el-table-column label="订单号" align="center">
13114145464165
</el-table-column>
<el-table-column label="收支类型" align="center">
收入
</el-table-column>
<el-table-column label="金额" align="center">
120000.00
</el-table-column>
<el-table-column label="类型" align="center">
提现
</el-table-column>
<el-table-column label="钱包余额" align="center">
10000.000
</el-table-column>
</el-table>
@ -71,17 +77,17 @@ export default {
dicts: ['wallet_type'],
data() {
return {
loading: false,
walletDetailList: [],
total: 0,
//
queryParams: {
pageNum: 1,
pageSize: 10,
wallet_type: undefined,
dateRange: undefined
},
loading: false,
walletDetailList: [{}],
total: 0,
//
queryParams: {
pageNum: 1,
pageSize: 10,
wallet_type: undefined,
dateRange: undefined
}
}
},
mounted() {
@ -133,4 +139,4 @@ $space: 20px;
margin-left: 20px;
}
}
</style>
</style>

Loading…
Cancel
Save