提交 707b64d8 authored 作者: 郑伟娜's avatar 郑伟娜

Merge branch 'securityFund' into test

import request from '@/utils/request'
// 获取店铺信息
export const shopInfo = () => {
return request({
url: '/local/getShopInfo',
method: 'get'
})
}
// 获取交易流水
export const bondDetail = (params) => {
return request({
url: '/local/shop/bond/detail',
method: 'get',
params
})
}
// 充值保证金
export const addBond = (data) => {
return request({
url: '/system/addBond',
method: 'post',
data
})
}
// 保证金额度说明
export const bondByCate = (params) => {
return request({
url: '/local/getBondByCate',
method: 'get',
params
})
}
// 账户/列表
export const accountList = (data) => {
return request({
url: '/system/bank/account/list',
method: 'post',
data
})
}
// 申请退保
export const bondApply = (data) => {
return request({
url: '/local/bondApply',
method: 'post',
data
})
}
// 获取支付账户
export const payDetails = (params) => {
return request({
url: '/system/payDetails',
method: 'get',
params
})
}
// 保证金申请详情
export const applyDetail = (params) => {
return request({
url: '/local/bond/apply/detail',
method: 'get',
params
})
}
......@@ -77,6 +77,11 @@ export const constantRoutes = [
component: (resolve) => require(['@/views/error/401'], resolve),
hidden: true
},
{
path: '/returnurl',
component: () => import('@/views/returnurl'),
hidden: true
},
{
path: '/',
component: (resolve) => require(['@/views/entry/newyuncang'], resolve),
......
<template>
<div>
<el-row :gutter="40" class="panel-group">
<el-col :xs="12" :sm="12" :lg="6" class="card-panel-col">
<div class="card-panel" @click="handleSetLineChartData('newVisitis')">
......@@ -54,14 +55,38 @@
</div>
</el-col>
</el-row>
<!-- 保证金充值提醒 -->
<el-dialog
style="margin-top: 200px;"
title="保证金充值提醒"
:visible.sync="dialogVisible"
:destroy-on-close="true"
width="35%"
center
:close-on-click-modal="false"
append-to-body
>
<div>
<div style="background: rgba(58, 160, 255, .05); padding: 20px; line-height: 24px; text-align: center;">
<div>当前保证金余额不足,部分功能受限,请您及时充值保证金</div>
</div>
</div>
<span slot="footer" class="dialog-footer">
<el-button type="danger" @click="goPay">去充值</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import CountTo from 'vue-count-to'
import { shopInfo } from '@/api/securityFund';
export default {
data() {
return {}
return {
dialogVisible: false
}
},
props: {
panelData: {
......@@ -73,10 +98,30 @@ export default {
},
mounted() {
// console.log(75,this.panelData);
this.getShopInfo()
},
methods: {
// 获取店铺信息
getShopInfo() {
shopInfo().then(res => {
if (res.code == 1) {
// 是否需要缴纳保证金 0否 1是
if (res.data.is_take_bond == 1 || res.data.bond < res.data.cate_bond / 2) {
this.dialogVisible = true
} else {
this.dialogVisible = false
}
}
})
},
handleSetLineChartData(type) {
this.$emit('handleSetLineChartData', type)
},
goPay() {
this.dialogVisible = false
this.$router.push({
path: '/system/asset/securityFund'
})
}
}
}
......
<template>
</template>
<script>
export default {
name:'returnurl',
created(){
},
mounted() {
window.opener = null
window.open('', self)
window.close()
},
}
</script>
差异被折叠。
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论