|
|
@@ -1,18 +1,90 @@
|
|
|
<template>
|
|
|
- <!-- 业绩查询页 -->
|
|
|
+ <!-- 佣金提现查询页 -->
|
|
|
<div class="performance">
|
|
|
+ <!-- 标题 -->
|
|
|
+ <div class="title">
|
|
|
+ <span class="left">联系客服提现</span>
|
|
|
+ <!-- 微信 -->
|
|
|
+ <div class="clear wx">
|
|
|
+ <div class="tip">微信:</div>
|
|
|
+ <div class="promo_code text_overflow">jinghong_kefu</div>
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ content="点击复制"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="copy"
|
|
|
+ data-clipboard-action="copy"
|
|
|
+ data-clipboard-text="jinghong_kefu"
|
|
|
+ id="clipboard_promo_code"
|
|
|
+ >
|
|
|
+ <i class="el-icon-document-copy"></i>
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ <!-- qq -->
|
|
|
+ <div class="clear wx">
|
|
|
+ <div class="tip">QQ:</div>
|
|
|
+ <div class="promo_code text_overflow">3563681140</div>
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ content="点击复制"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <div
|
|
|
+ class="copy"
|
|
|
+ data-clipboard-action="copy"
|
|
|
+ data-clipboard-text="3563681140"
|
|
|
+ id="clipboard_promo_code"
|
|
|
+ >
|
|
|
+ <i class="el-icon-document-copy"></i>
|
|
|
+ </div>
|
|
|
+ </el-tooltip>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<!-- 表格 -->
|
|
|
- <Table v-if="tableData" :tableData="tableData" />
|
|
|
+ <el-table :data="tableData" border style="width: 100%" max-height="672px">
|
|
|
+ <el-table-column prop="start_time" label="周期开始时间">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="end_time" label="周期结束时间"> </el-table-column>
|
|
|
+ <el-table-column prop="game_user_amount" label="玩家流水(元)">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="game_user_profit" label="玩家佣金(元)">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="promoter_amount" label="推广员流水(元)">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="promoter_profit" label="推广员佣金(元)">
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="_profit" label="可提现金额(元)"> </el-table-column>
|
|
|
+ <!-- <el-table-column
|
|
|
+ prop="tag"
|
|
|
+ label="标签"
|
|
|
+ width="100"
|
|
|
+ filter-placement="bottom-end"
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <el-tag
|
|
|
+ :type="scope.row.tag === '未提现' ? 'primary' : 'success'"
|
|
|
+ disable-transitions
|
|
|
+ >
|
|
|
+ {{ scope.row.tag }}
|
|
|
+ </el-tag>
|
|
|
+ </template></el-table-column
|
|
|
+ > -->
|
|
|
+ </el-table>
|
|
|
<!-- 分页 -->
|
|
|
- <el-pagination
|
|
|
- v-if="tableList.length > 1"
|
|
|
+ <!-- <el-pagination
|
|
|
+ v-if="totalPage > 1"
|
|
|
class="performance_page"
|
|
|
layout="prev, pager, next, jumper"
|
|
|
:total="50 * 10"
|
|
|
:current-page="1"
|
|
|
@current-change="pageChange"
|
|
|
>
|
|
|
- </el-pagination>
|
|
|
+ </el-pagination> -->
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
@@ -23,115 +95,86 @@ export default {
|
|
|
components: {
|
|
|
Table,
|
|
|
},
|
|
|
+ inject: ["checkCode"],
|
|
|
data() {
|
|
|
return {
|
|
|
- tableData: null, // 表格需要的内容
|
|
|
- // 网络请求拿到的表格的数据
|
|
|
- tableList: [
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "已发放",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "处理中",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "已发放",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "处理中",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "未成功",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "已发放",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "处理中",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "未成功",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "已发放",
|
|
|
- },
|
|
|
- {
|
|
|
- date: "2021-04-16 16:16:16",
|
|
|
- performance: 1,
|
|
|
- personMoney: "999",
|
|
|
- state: "处理中",
|
|
|
- },
|
|
|
- ],
|
|
|
+ tableData: [], // 提现记录列表
|
|
|
+ pageSize: 10, // 一页大小
|
|
|
+ pageIndex: 1, // 当前页
|
|
|
+ totalPage: 1, // 总页数
|
|
|
+ clipboard: null, // 复制
|
|
|
};
|
|
|
},
|
|
|
computed: {},
|
|
|
watch: {},
|
|
|
created() {},
|
|
|
mounted() {
|
|
|
- // 初始化表格内容
|
|
|
- this.initTable();
|
|
|
+ this.initClipboard();
|
|
|
+ // 提现记录
|
|
|
+ this.withdrawList(this.pageIndex, this.pageSize);
|
|
|
+ },
|
|
|
+ beforeDestroy() {
|
|
|
+ this.clipboard.destroy();
|
|
|
},
|
|
|
methods: {
|
|
|
- // 初始化表格内容
|
|
|
- initTable() {
|
|
|
- const { tableList } = this;
|
|
|
- this.tableData = {
|
|
|
- data: tableList,
|
|
|
- list: [
|
|
|
- {
|
|
|
- title: "日期",
|
|
|
- value: "date",
|
|
|
- width: "25%",
|
|
|
- },
|
|
|
- {
|
|
|
- title: "直营业绩",
|
|
|
- value: "performance",
|
|
|
- width: "25%",
|
|
|
- },
|
|
|
- {
|
|
|
- title: "个人佣金",
|
|
|
- value: "personMoney",
|
|
|
- width: "25%",
|
|
|
- },
|
|
|
- {
|
|
|
- title: "状态",
|
|
|
- value: "state",
|
|
|
- width: "25%",
|
|
|
- },
|
|
|
- ],
|
|
|
- };
|
|
|
+ // 提现记录查询
|
|
|
+ withdrawList(pageIndex, pageSize) {
|
|
|
+ this.pageIndex = pageIndex;
|
|
|
+ this.$api.withdrawList({ pageIndex, pageSize }).then((res) => {
|
|
|
+ this.checkCode(res);
|
|
|
+ const { code, data } = res.data;
|
|
|
+ if (code) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ data.map((ele) => {
|
|
|
+ const {
|
|
|
+ game_user_amount,
|
|
|
+ game_user_profit,
|
|
|
+ promoter_amount,
|
|
|
+ promoter_profit,
|
|
|
+ } = ele;
|
|
|
+
|
|
|
+ ele.game_user_amount = (game_user_amount / 100).toFixed(2);
|
|
|
+ ele.game_user_profit = (game_user_profit / 100).toFixed(2);
|
|
|
+ ele.promoter_amount = (promoter_amount / 100).toFixed(2);
|
|
|
+ ele.promoter_profit = (promoter_profit / 100).toFixed(2);
|
|
|
+ ele._profit = ((game_user_profit + promoter_profit) / 100).toFixed(
|
|
|
+ 2
|
|
|
+ );
|
|
|
+ });
|
|
|
+ // 成功
|
|
|
+ this.tableData = data;
|
|
|
+ // this.totalPage = Math.ceil(data.count / this.pageSize);
|
|
|
+ });
|
|
|
},
|
|
|
+
|
|
|
// 分页页码改变
|
|
|
pageChange(currentPage) {
|
|
|
// console.log("当前页", currentPage);
|
|
|
},
|
|
|
+
|
|
|
+ // 标签筛选
|
|
|
+ filterTag(value, row) {
|
|
|
+ return row.tag === value;
|
|
|
+ },
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 初始化 clipboard插件
|
|
|
+ */
|
|
|
+ initClipboard() {
|
|
|
+ this.clipboard = new this.$clipboard(".copy");
|
|
|
+ this.clipboard.on("success", (e) => {
|
|
|
+ this.$notify({
|
|
|
+ message: "复制成功!",
|
|
|
+ type: "success",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ this.clipboard.on("error", () => {
|
|
|
+ this.$notify.error({
|
|
|
+ message: "复制失败!",
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|
|
|
@@ -139,10 +182,65 @@ export default {
|
|
|
<style lang='less' scoped>
|
|
|
.performance {
|
|
|
width: 98%;
|
|
|
+ min-width: 1100px;
|
|
|
margin: 0 auto;
|
|
|
|
|
|
+ .title {
|
|
|
+ height: 100px;
|
|
|
+ line-height: 100px;
|
|
|
+ text-align: left;
|
|
|
+
|
|
|
+ .left {
|
|
|
+ font-weight: 600;
|
|
|
+ font-size: 20px;
|
|
|
+ }
|
|
|
+ .left,
|
|
|
+ .wx {
|
|
|
+ margin-right: 40px;
|
|
|
+ float: left;
|
|
|
+ }
|
|
|
+
|
|
|
+ .tip {
|
|
|
+ float: left;
|
|
|
+ margin-right: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .wx {
|
|
|
+ height: 40px;
|
|
|
+ line-height: 40px;
|
|
|
+ margin-top: 30px;
|
|
|
+
|
|
|
+ .promo_code {
|
|
|
+ width: 150px;
|
|
|
+ padding-left: 20px;
|
|
|
+ float: left;
|
|
|
+ border: 1px solid #e6e6e6;
|
|
|
+ border-radius: 5px 0 0 5px;
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
+ .copy {
|
|
|
+ width: 40px;
|
|
|
+ float: left;
|
|
|
+ text-align: center;
|
|
|
+ border: 1px solid #e6e6e6;
|
|
|
+ border-left: 0;
|
|
|
+ border-radius: 0 5px 5px 0;
|
|
|
+ background-color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
.performance_page {
|
|
|
margin-top: 20px;
|
|
|
}
|
|
|
+
|
|
|
+ /deep/.el-table td,
|
|
|
+ /deep/.el-table th {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-table__body-wrapper {
|
|
|
+ overflow-y: auto;
|
|
|
+ }
|
|
|
}
|
|
|
</style>
|