Commit edf4ae3f authored by pengyunqian's avatar pengyunqian

update:bugfile

parent feb31dee
......@@ -18,5 +18,6 @@ module.exports = {
port: port,
API_INTERNAL_URI: API_INTERNAL_URI[env],
PANDORA_URI: PANDORA_URI[env],
GOODS_URI: API_INTERNAL_URI[env]
GOODS_URI: API_INTERNAL_URI[env],
WITHDRAWAL_URI: API_INTERNAL_URI[env]
};
// const WITHDRAWAL_URI = require("../config.js").WITHDRAWAL_URI;
// const req = require("../utils/request").httpReq;
/**
* 示例
* exports.方法名 = async ctx => {
* const url = `${设置好的域名}/向服务端发送的请求地址`;
* const opts = {
* url,
* method:"发送什么请求",
* qs: ctx.request.query (get请求的参数)
* body:ctx.request.body (post请求的参数)
* json:boolean (是否转换为json)
* };
* ctx.body = await req(ctx,opts); 将发送请求后的数据传递给前端页面
* };
*/
\ No newline at end of file
......@@ -6,6 +6,7 @@ const enterprise = require("./controllers/enterprise");
const role = require('./controllers/role')
const life = require('./controllers/life-no');
const goods = require('./controllers/goods');
const withdrawal = require('./controllers/withdrawal');
const router = Router();
const API_VERSION = "/api/v1";
......
This diff is collapsed.
.tab-show {
width: 100%;
height: 100%;
padding: 0px 55px;
background-color: white;
.el-tabs__nav-wrap::after {
background-color: transparent;
}
.el-tabs__header {
margin: 0;
}
}
.goods {
width: 100%;
height: 100%;
padding: 0px 30px;
.search_condition {
display: flex;
flex-wrap: wrap;
align-items: center;
.search_button {
display: flex;
align-items: center;
justify-self: flex-end;
.el-form-item__content {
display: flex;
justify-content: space-around;
}
}
}
.commodity_list {
margin-top: 30px;
}
.pagination {
margin-top: 30px;
}
}
.listShow {
padding-left: 120px;
}
.text-area {
width: 100%;
padding-left: 120px;
.el-form-item__label {
width: 100%;
text-align: left;
}
}
.dialog-footer {
// display: flex;
// justify-content: center;
// align-items: center;
text-align: center;
}
\ No newline at end of file
<template>
<layout>
<div class="tab-show">
<!-- 审核状态 -->
<el-tabs
class="tab_list"
v-model="activeName"
>
<el-tab-pane label="待审核" name="first"></el-tab-pane>
<el-tab-pane label="审核通过" name="second"></el-tab-pane>
<el-tab-pane label="审核驳回" name="third"></el-tab-pane>
<el-tab-pane label="提现失败" name="fourth">
</el-tab-pane>
</el-tabs>
</div>
<!-- 提现失败页 -->
<auditTab v-if="activeName=='fourth'"></auditTab>
<el-card class="goods" v-else>
<!-- 筛选区 -->
<el-form inline class="search_condition" >
<!-- 用户id -->
<el-form-item label="用户id">
<el-input value="value"></el-input>
</el-form-item>
<el-button type="primary" style="margin-left:30px;margin-bottom:22px">查询</el-button>
<!-- <el-form-item label="审核状态">
<el-select
value="value"
multiple
collapse-tags
@change="handleStatusChange"
>
<el-option
v-for="item in stateOption"
:key="item.value"
:label="item.label"
:value="item.value"
></el-option>
</el-select>
</el-form-item> -->
<!-- 按钮操作 -->
<!-- <el-form-item style="justify-self: flex-end;">
<el-button
@click="searchList"
type="primary"
>搜索</el-button>
<el-button @click="resetList">重置</el-button>
</el-form-item> -->
</el-form>
<!-- 列表区 -->
<el-table class="goods_list" :data="goodsList" border stripe>
<el-table-column
label="提现用户"
prop=""
align="center"
></el-table-column>
<el-table-column
label="所在圈"
prop=""
align="center"
></el-table-column>
<el-table-column
label="提现金额"
prop=""
align="center"
></el-table-column>
<el-table-column
label="最近4小时收入"
prop=""
align="center"
></el-table-column>
<el-table-column
label="近两天分享增长"
prop=""
align="center"
></el-table-column>
<el-table-column
label="历史分享增长"
prop=""
align="center"
></el-table-column>
<el-table-column
label="历史分享留存"
prop=""
align="center"
></el-table-column>
<el-table-column
label="申请时间"
prop=""
align="center"
></el-table-column>
<el-table-column label="状态" align="center">
<template #default="scope">
<span v-if="scope.row.audit_status == 0" style="color: #ff982c"
>待审核</span
>
<span v-if="scope.row.audit_status == 1" style="color: #5cc247"
>审核通过</span
>
<span v-if="scope.row.audit_status == 2" style="color: #fd6b6f"
>审核驳回</span
>
</template>
</el-table-column>
<el-table-column
label="审核时间"
prop=""
align="center"
></el-table-column>
<el-table-column
label="审核人"
prop=""
align="center"
></el-table-column>
<!-- 操作快捷键 -->
<el-table-column label="操作" align="center" fixed="right" width="200">
<template #default="scope">
<el-button
type="text"
>查看</el-button
>
<el-button
v-if="
scope.row.audit_status === 0 && scope.row.audit_status !== 2
"
type="text"
@change="outerVisible = true"
@click="goDetail(`AUDIT`, scope.row.goods_spu_id)"
>审核</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 页码区 -->
<!-- <el-pagination
class="pagination"
@current-change="handleCurrentChange"
v-model:currentPage="searchProps.page"
:page-size="searchProps.page_size"
layout="total,prev, pager, next, jumper"
:total="totalCount"
>
</el-pagination> -->
</el-card>
</layout>
<!-- 提现申请审核 -->
<!-- Form -->
<el-button type="text" @click="outerVisible = true"
>点击打开外层 Dialog</el-button
>
<el-dialog title="提现申请审核" v-model="outerVisible" width="35%">
<el-form inline :model="form">
<el-form-item label="提现用户" label-width="120px">
<el-input autocomplete="off"></el-input>
</el-form-item>
<el-button type="info">黑名单</el-button>
<el-button>白名单</el-button>
<!-- <el-row>
<el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
<el-col :span="8"><div class="grid-content bg-purple-light">提现金额:</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
</el-row>
<el-row>
<el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
<el-col :span="8"><div class="grid-content bg-purple-light">最近24小时收入:</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
</el-row>
<el-row>
<el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
<el-col :span="8"><div class="grid-content bg-purple-light">近两天分享增长:</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
</el-row>
<el-row>
<el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
<el-col :span="8"><div class="grid-content bg-purple-light">历史分享增长:</div></el-col>
<el-col :span="8"><div class="grid-content bg-purple"></div></el-col>
</el-row> -->
<ul class="listShow">
<li>提现金额:</li>
<li>最近24小时收入:</li>
<li>近两天分享增长:</li>
<li>历史分享增长:</li>
</ul>
<el-form-item class="text-area" label="奖励明细:">
<el-table :data="data" border align="center" style="width: 100%" size="small">
<el-table-column align="center" prop="prop" label="流水时间" width="120">
</el-table-column>
<el-table-column align="center" prop="prop" label="分享用户量" width="120">
</el-table-column>
<el-table-column align="center" prop="prop" label="分享额外奖励x.xx元" width="150">
</el-table-column>
</el-table>
</el-form-item>
</el-form>
<el-dialog
width="15%"
title="再次确认"
v-model="innerVisible"
append-to-body
>
<p>确认执行此操作?</p>
<template #footer>
<div class="dialog-footer">
<el-button type="primary" @click="innerVisible = true"
>确认</el-button
>
<el-button @click="outerVisible = false">取 消</el-button>
</div>
</template>
</el-dialog>
<template #footer>
<div class="dialog-footer">
<el-button type="primary" @click="innerVisible = true">通过</el-button>
<el-button type="danger" @click="outerVisible = false">拒绝</el-button>
<el-button @click="outerVisible = false">取 消</el-button>
</div>
</template>
</el-dialog>
</template>
<script>
import auditTab from '../../Withdrawal/auditTab/index.vue';
export default {
name: "Audit",
components:{auditTab},
data() {
return {
activeName: "first", //tab
award: "", //奖励明细
outerVisible: false, //外层弹框
innerVisible: false, //二次确认
};
},
methods: {
}
};
</script>
<style lang="less" src="./index.less" scope></style>
\ No newline at end of file
.goods {
width: 100%;
height: 100%;
padding: 0px 30px;
.search_condition {
display: flex;
flex-wrap: wrap;
align-items: center;
.search_button {
display: flex;
align-items: center;
justify-self: flex-end;
.el-form-item__content {
display: flex;
justify-content: space-around;
}
}
}
.commodity_list {
margin-top: 30px;
}
.pagination {
margin-top: 30px;
}
}
.listShow {
padding-left: 120px;
}
.text-area {
width: 100%;
padding-left: 120px;
.el-form-item__label {
width: 100%;
text-align: left;
}
}
<template>
<layout>
<el-card class="goods">
提现失败页
<!-- 筛选区 -->
<el-form inline class="search_condition">
<!-- 用户id -->
<el-form-item label="用户id">
<el-input value="value">提现失败页</el-input>
</el-form-item>
<el-button type="primary" style="margin-left:30px;margin-bottom:22px">查询</el-button>
</el-form>
<!-- 列表区 -->
<el-table class="goods_list" :data="goodsList" border stripe>
<el-table-column
label="提现用户"
prop=""
align="center"
></el-table-column>
<el-table-column
label="所在圈"
prop=""
align="center"
></el-table-column>
<el-table-column
label="提现金额"
prop=""
align="center"
></el-table-column>
<el-table-column
label="最近4小时收入"
prop=""
align="center"
></el-table-column>
<el-table-column
label="近两天分享增长"
prop=""
align="center"
></el-table-column>
<el-table-column
label="历史分享增长"
prop=""
align="center"
></el-table-column>
<el-table-column
label="历史分享留存"
prop=""
align="center"
></el-table-column>
<el-table-column
label="申请时间"
prop=""
align="center"
></el-table-column>
<el-table-column label="状态" align="center">
<template #default="scope">
<span v-if="scope.row.audit_status == 0" style="color: #ff982c"
>待审核</span
>
<span v-if="scope.row.audit_status == 1" style="color: #5cc247"
>审核通过</span
>
<span v-if="scope.row.audit_status == 2" style="color: #fd6b6f"
>审核驳回</span
>
</template>
</el-table-column>
<el-table-column
label="审核时间"
prop=""
align="center"
></el-table-column>
<el-table-column
label="审核人"
prop=""
align="center"
></el-table-column>
<!-- 操作快捷键 -->
<el-table-column label="操作" align="center" fixed="right" width="200">
<template #default="scope">
<el-button
type="text"
@click="goDetail(`EDIT`, scope.row.goods_spu_id)"
>查看</el-button
>
<el-button
v-if="
scope.row.audit_status === 0 && scope.row.audit_status !== 2
"
type="text"
@change="outerVisible = true"
@click="goDetail(`AUDIT`, scope.row.goods_spu_id)"
>审核</el-button
>
</template>
</el-table-column>
</el-table>
<!-- 页码区 -->
<!-- <el-pagination
class="pagination"
@current-change="handleCurrentChange"
v-model:currentPage="searchProps.page"
:page-size="searchProps.page_size"
layout="total,prev, pager, next, jumper"
:total="totalCount"
>
</el-pagination> -->
</el-card>
</layout>
</template>
<script>
export default {
name: "auditTab",
}
</script>
<style lang="less" src="./index.less" scope></style>
\ No newline at end of file
// 提现审核
const withdrawalRoutes = [
{
path: "/op/withdrawal",
redirect: "/op/withdrawal/audit"
},
{
path: "/op/withdrawal/audit",
name: "Audit",
component: () => import(/* webpackChunkName: "Withdrawal" */ "@/pages/Withdrawal/Audit"),
},
{
path: "/op/withdrawal/audittab",
name: "auditTab",
component: () => import(/* webpackChunkName: "Withdrawal" */ "@/pages/Withdrawal/auditTab"),
}
];
export default withdrawalRoutes;
\ No newline at end of file
......@@ -10,7 +10,7 @@ import AddRole from "../pages/Role/add-role.vue";
import ManageRole from "../pages/Role/manage-role.vue";
import RoleDetail from "../pages/Role/role-detail.vue";
import goodsRouter from "./Goods/index";
import withdrawalRoutes from "./Withdrawal/index";
const routes = [
{
path: "/op/enterprise",
......@@ -113,7 +113,9 @@ const routes = [
}
},
// 商品管理路由
...goodsRouter
...goodsRouter,
// 钱包审核
...withdrawalRoutes
];
console.log(routes);
......
// import axios from "@/utils/request";
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment