diff --git a/bitcopay后台-开发环境.zip b/bitcopay后台-开发环境.zip index 50553e2..e3496c7 100644 Binary files a/bitcopay后台-开发环境.zip and b/bitcopay后台-开发环境.zip differ diff --git a/src/App.vue b/src/App.vue index 528ffa9..e22b8dd 100644 --- a/src/App.vue +++ b/src/App.vue @@ -61,6 +61,24 @@ export default { /* .el-menu-item .svg-icon{ display: none; } */ +.circle { + width: 8px; + height: 8px; + background: rgba(9, 186, 122, 1); + margin-right: 10px; +} +.detailTit{ +font-size: 16px; +font-weight: 500; +color: rgba(51, 51, 51, 1); +} +.text-green{ + color: rgba(9, 186, 122, 1); +} +.text-red{ + color: rgba(231, 53, 53, 1); +; +} .flex{ display: flex; align-items: center; @@ -76,12 +94,21 @@ export default { .m-b-16{ margin-bottom: 16px; } +.m-r-32{ + margin-right: 32px; +} .m-r-16{ margin-right: 16px; } +.m-r-10{ + margin-right: 10px; +} .m-b-28{ margin-bottom: 28px; } +.m-b-20{ + margin-bottom: 20px; +} .center{ display: table; margin: 0 auto; diff --git a/src/api/system/user.js b/src/api/system/user.js index 2bfa18e..95e01f5 100644 --- a/src/api/system/user.js +++ b/src/api/system/user.js @@ -1,5 +1,6 @@ import request from '@/utils/request' import { parseStrEmpty } from "@/utils/ruoyi"; +import qs from 'qs' // 查询用户列表 export function listUser(query) { @@ -100,6 +101,16 @@ export function updateUserPwd(oldPassword, newPassword) { }) } +// 头像保存 +export function uploadAvatarFile(data) { + return request({ + url: '/system/user/profile/setAvatar?' + qs.stringify(data), + method: 'post', + data: data + }) +} + + // 用户头像上传 export function uploadAvatar(data) { return request({ diff --git a/src/components/HeaderSearch/index.vue b/src/components/HeaderSearch/index.vue index 0aad677..88f2cb9 100644 --- a/src/components/HeaderSearch/index.vue +++ b/src/components/HeaderSearch/index.vue @@ -176,6 +176,8 @@ export default { box-shadow: none !important; border-bottom: 1px solid #d9d9d9; vertical-align: middle; + background: transparent; + color: #fff; } } diff --git a/src/layout/components/Navbar.vue b/src/layout/components/Navbar.vue index c9ebac2..3381d22 100644 --- a/src/layout/components/Navbar.vue +++ b/src/layout/components/Navbar.vue @@ -13,7 +13,7 @@
- + {{ user.nickName }}
@@ -85,6 +85,7 @@ export default { }; }, created() { + // this.avatar=localStorage.getItem('adImgAbs') this.getUser(); }, methods: { diff --git a/src/router/index.js b/src/router/index.js index 6211120..c80987d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -97,7 +97,37 @@ export const constantRoutes = [ component: (resolve) => require(['@/views/user/UserCertification/userDetail'], resolve), name: 'userDetail', meta: { - title: '详情' + title: '审核' + }, + hidden: true + + }] + }, + { + path: '', + component: Layout, + redirect: 'userCusDetail', + children: [{ + path: '/userCusDetail', + component: (resolve) => require(['@/views/user/userCustomer/userCusDetail'], resolve), + name: 'userCusDetail', + meta: { + title: '用户详情' + }, + hidden: true + + }] + }, + { + path: '', + component: Layout, + redirect: 'walletList', + children: [{ + path: '/walletList', + component: (resolve) => require(['@/views/user/userCustomer/walletList'], resolve), + name: 'walletList', + meta: { + title: '用户资产' }, hidden: true @@ -118,6 +148,21 @@ export const constantRoutes = [ }] }, + { + path: '', + component: Layout, + redirect: 'sonOrder', + children: [{ + path: '/sonOrder', + component: (resolve) => require(['@/views/otc/otcStoreOrder/sonOrder'], resolve), + name: 'sonOrder', + meta: { + title: '子单' + }, + hidden: true + + }] + }, ] diff --git a/src/views/dashboard/PanelGroup.vue b/src/views/dashboard/PanelGroup.vue index 7297c2d..8bcc52a 100644 --- a/src/views/dashboard/PanelGroup.vue +++ b/src/views/dashboard/PanelGroup.vue @@ -20,8 +20,12 @@
{{chartData.beginTime}}~{{chartData.endTime}}
- - 万元 + + + + 万元 + +
@@ -34,8 +38,12 @@
{{chartData.beginTime}}~{{chartData.endTime}}
- - 万元 + + + + + 万元 +
diff --git a/src/views/dashboard/PieChartCreate.vue b/src/views/dashboard/PieChartCreate.vue index f538f09..c7348d2 100644 --- a/src/views/dashboard/PieChartCreate.vue +++ b/src/views/dashboard/PieChartCreate.vue @@ -13,18 +13,12 @@ + - - - -
@@ -43,14 +37,33 @@ 代收成功金额 - 总金额:{{ NumberDiv(chartData.collectionAllPrice, 10000) }}万元 + 总金额: + + {{ NumberDiv(chartData.collectionAllPrice,10000) }} + {{ chartData.collectionAllPrice }} + + 万元 +
+ + + +
- - 万元 + + + + 万元 + +
@@ -81,14 +94,25 @@ 代付成功金额 - 总金额:{{ NumberDiv(chartData.paymentAllPrice, 10000) }}万元 + 总金额: + {{ NumberDiv(chartData.paymentAllPrice,10000) }} + {{ chartData.paymentAllPrice }} + + 万元 +
- - 万元 + + + + + 万元 + +
@@ -101,8 +125,7 @@ + \ No newline at end of file diff --git a/src/views/dashboard/radialindicator.vue b/src/views/dashboard/radialindicator.vue deleted file mode 100644 index a9bbf82..0000000 --- a/src/views/dashboard/radialindicator.vue +++ /dev/null @@ -1,218 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/views/index_v1.vue b/src/views/index_v1.vue index 4b4b05e..2b9d8d7 100644 --- a/src/views/index_v1.vue +++ b/src/views/index_v1.vue @@ -20,6 +20,12 @@ + + + + + + @@ -59,10 +65,16 @@ export default { RaddarChart, PieChart, BarChart, - PieChartCreate + PieChartCreate, + }, data() { return { + + percent: 30, + canvasId: 'canvasId', + canvasContent: null, + startAngle: -Math.PI / 2, //canvas画圆的起始角度,默认为3点钟方向即90度 方向,定位位到12位置 0度 lineChartData: lineChartData.newVisitis, dateRange: [], queryParams: {}, @@ -74,7 +86,69 @@ export default { this.addDate() this.getData() }, + computed: { + box0Style() { + if (this.percent >= 50) { + return `transform: rotate(${180 + this.percent*3.6}deg)` + } else { + return `` + } + }, + box1Style() { + if (this.percent <= 50) { + return `transform: rotate(${this.percent*3.6}deg)` + } else { + return `display: none;` + } + } + }, + onShow() { + this.canvasContent = uni.createCanvasContext(this.canvasId, this) + this.drawCircleByProgress() + }, + methods: { + onChange(value) { + // console.log(value.detail.value) + this.percent = value.detail.value + this.drawCircleByProgress() + }, + drawCircleByProgress() { + // 表示进度的两端为圆形 目前没有找到只设置一段的方式 + this.canvasContent.setLineCap('round'); //圆形 + this.canvasContent.setLineCap('square'); //方形 + + let width = uni.upx2px(30) + + // 设置线条的宽度和颜色 + this.canvasContent.setLineWidth(width); + this.canvasContent.setStrokeStyle('#ff0000'); + + let endAngle = ((2 * Math.PI) / 100) * this.percent + this.startAngle; + + this.canvasContent.beginPath(); + // 半径为整个canvas宽度的一半 + let radius = uni.upx2px(284) / 2; + this.canvasContent.arc(radius, radius, radius - width, this.startAngle, endAngle, false); + this.canvasContent.stroke(); + + //原点要在 圆弧前面一点点的位置 所有这个加了 0.1; + let p0x = radius + Math.cos(endAngle + .1) * (radius - width) + let p0y = radius + Math.sin(endAngle + .1) * (radius - width) + + + this.canvasContent.beginPath() + this.canvasContent.arc(p0x, p0y, width / 2, 0, 2 * Math.PI) + this.canvasContent.setFillStyle('#F0AD4E'); + this.canvasContent.fill() + this.canvasContent.beginPath() + this.canvasContent.arc(p0x, p0y, width * 0.4, 0, 2 * Math.PI) + this.canvasContent.setFillStyle('#FFFFFF'); + this.canvasContent.fill() + this.canvasContent.draw(); + }, + + addDate() { let nowDate = new Date(); let date = { @@ -113,6 +187,46 @@ export default { diff --git a/src/views/otc/otcAppealOrder/index.vue b/src/views/otc/otcAppealOrder/index.vue index e6db0c4..9ed5e38 100644 --- a/src/views/otc/otcAppealOrder/index.vue +++ b/src/views/otc/otcAppealOrder/index.vue @@ -4,24 +4,40 @@ - - + - - + + + + + + + + + + + + + + + - - - - 搜索 重置 @@ -59,28 +75,56 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -94,7 +138,7 @@ - 审核处理 详情 @@ -226,8 +270,22 @@ export default { name: "OtcAppealOrder", components: { }, + computed:{ + classObje(status){ + return(status)=>{ + if(status=='in_appeal'){ + return {'color':'rgba(231, 53, 53, 1)'} + } + if(status=='success_appeal'){ + return {'color':'rgba(9, 186, 122, 1)'} + } + } + } + }, data() { return { + tradeTypeStatusOptions: [], + dateRange: [], // 遮罩层 loading: true, // 选中数组 @@ -257,6 +315,7 @@ export default { pageNum: 1, pageSize: 10, otcOrderId: null, + tradeType:null, otcOrderNo: null, otcAppealNo: null, appealRemark: null, @@ -265,7 +324,9 @@ export default { terminalSource: null, appealUserId: null, beAppealUserId: null, - appealDesc: null + appealDesc: null, + payee:null, + appealUserName:null, }, // 表单参数 form: {}, @@ -290,14 +351,34 @@ export default { }, created() { this.getList(); + this.getDicts("trade_type").then(response => { + this.tradeTypeStatusOptions = response.data; + this.tradeTypeStatusOptions.unshift({ + dictLabel:'全部', + dictValue:null, + }); + }); this.getDicts("appeal_status").then(response => { this.appealStatusOptions = response.data; + this.appealStatusOptions.unshift({ + dictLabel:'全部', + dictValue:null, + }); + }); this.getDicts("terminal_source").then(response => { this.terminalSourceOptions = response.data; + this.terminalSourceOptions.unshift({ + dictLabel:'全部', + dictValue:null, + }); }); this.getDicts("appeal_trade_type").then(response => { this.appealTradeTypeOptions = response.data; + this.appealTradeTypeOptions.unshift({ + dictLabel:'全部', + dictValue:null, + }); }); }, methods: { @@ -314,7 +395,7 @@ export default { /** 查询OTC申诉订单列表 */ getList() { this.loading = true; - listOtcAppealOrder(this.queryParams).then(response => { + listOtcAppealOrder(this.addSESDateRange(this.queryParams, this.dateRange)).then(response => { this.otcAppealOrderList = response.rows; this.total = Number(response.total); this.loading = false; @@ -340,44 +421,16 @@ export default { // 表单重置 reset() { this.form = { - id: null, - otcOrderId: null, - otcOrderNo: null, - otcAppealNo: null, - appealRemark: null, - appealImgUrl: null, - appealStatus: "0", - createTime: null, - updateTime: null, - terminalSource: null, - appealUserId: null, - beAppealUserId: null, - appealDesc: null, - listUrl: [] }; + this.dateRange = []; this.resetForm("form"); }, // 表单重置 resetApple() { this.formApple = { - id: null, - otcOrderId: null, - otcOrderNo: null, - otcAppealNo: null, - appealRemark: null, - appealImgUrl: null, - appealStatus: "0", - createTime: null, - updateTime: null, - terminalSource: null, - appealUserId: null, - beAppealUserId: null, - appealDesc: null, - appealUserName: null, - beAppealUserName: null, - tradeType: null, }; + this.dateRange = []; this.resetForm("formApple"); }, /** 搜索按钮操作 */ @@ -387,6 +440,7 @@ export default { }, /** 重置按钮操作 */ resetQuery() { + this.dateRange = []; this.resetForm("queryForm"); this.handleQuery(); }, diff --git a/src/views/otc/otcCoin/index.vue b/src/views/otc/otcCoin/index.vue index 23e746e..19af3fa 100644 --- a/src/views/otc/otcCoin/index.vue +++ b/src/views/otc/otcCoin/index.vue @@ -2,14 +2,14 @@
- + - @@ -57,22 +57,30 @@ - - - - - - - - - + + + + + + + + - + + + + + +