Commit f38a5ecc by 李长胜

权益管理页面样式修改

1 parent a7eaa765
.equity-wrap .contain {
background: #FFFFFF;
margin: 20px 20px 20px 40px;
margin: 0px 20px 20px 40px;
padding: 20px;
box-shadow: 0 1px 5px 0 rgba(38, 38, 38, 0.10);
}
......
......@@ -8,15 +8,18 @@
<div class="balanceWrap">
<span>账户余额</span>
<div>
<span>{{price}}</span>
<span>{{ price }}</span>
<span class="yuan">元</span>
</div>
</div>
<el-button class="special-btn">刷新余额</el-button>
<div class="statusBtnWrap">
<el-button class="refreshBtn" v-if="loading" :loading="loading"></el-button>
<el-button class="special-btn" @click="getHwAccount(1)" v-else>刷新余额</el-button>
<!-- <div class="statusBtnWrap">
<div>刷新状态</div>
<el-button icon="el-icon-refresh" class="refreshBtn"></el-button>
</div>
</div> -->
</div>
<el-form :inline="true" style="width: 100%" :model="searchForm" label-width="70px" label-position="right">
<el-row style="display: flex; align-items: center">
......@@ -70,6 +73,7 @@ export default {
mixins: [orderMixin, searchMixin],
data() {
return {
loading: false,
size: 'small',
pickerOptions: {
disabledDate(time) {
......@@ -163,7 +167,7 @@ export default {
{
label: '下单时间',
prop: 'orderDate',
width:95,
width: 95,
formatter(cell) {
return cell.orderDate ? new Date(cell.orderDate).format('yyyy-MM-dd hh:mm:ss') : '- -'
}
......@@ -189,10 +193,21 @@ export default {
resolve()
})
},
getHwAccount() {
this.$apis.orderApi.getHwAccount().then(res => {
this.price = res
})
getHwAccount(type) {
if (type) {
// this.price=0
this.loading = true
}
this.$apis.orderApi
.getHwAccount()
.then(res => {
this.loading = false
this.price = res
})
.catch(err => {
this.loading = false
console.log(err)
})
},
exportExcel() {
this.$apis.orderApi.exportBalanceList(this.searchObj).then(({ code, data, message }) => {
......@@ -262,16 +277,13 @@ export default {
width: 100%;
align-items: center;
margin-bottom: 10px;
.imgWrap{
.imgWrap {
width: 52px;
height: 52px;
}
.special-btn{
padding: 8px 15px;
}
.balanceWrap {
margin-left: 10px;
margin-left: 10px;
> span {
height: 20px;
font-size: 14px;
......@@ -280,43 +292,48 @@ export default {
line-height: 20px;
}
> div {
height: 30px;
font-size: 22px;
font-weight: 500;
color: #333333;
line-height: 30px;
.yuan{
height: 20px;
font-size: 14px;
.yuan {
height: 20px;
font-size: 14px;
font-weight: 500;
color: #333333;
line-height: 20px;
font-weight: 500;
color: #333333;
line-height: 20px;
}
}
}
.special-btn{
margin-left: 32px;
.special-btn {
margin-left: 32px;
padding: 8px 20px;
}
.statusBtnWrap{
text-align: center;
margin-left: 30px;
padding-bottom: 20px;
.refreshBtn{
width: 88px;
padding: 8px 20px;
}
>div{
height: 20px;
font-size: 14px;
font-weight: 400;
color: #000000;
line-height: 20px;
}
.refreshBtn {
margin-left: 32px;
width: 88px;
padding: 8px 20px;
}
// .statusBtnWrap {
// text-align: center;
// margin-left: 30px;
// padding-bottom: 20px;
// .refreshBtn {
// width: 88px;
// padding: 8px 20px;
// }
// > div {
// height: 20px;
// font-size: 14px;
// font-weight: 400;
// color: #000000;
// line-height: 20px;
// }
// }
}
}
</style>
......@@ -352,6 +352,7 @@ export default {
.addGood{
margin-left: 40px;
padding: 8px 16px;
margin-bottom: 20px;
}
/deep/ .contain .el-input--small .el-input__inner {
width: 215px;
......
<template>
<div class="layout">
<div class="box">
<div class="box topBox" >
<!-- <back /> -->
<el-button type="primary" class="backBtn" size="small" @click="$router.go(-1)">返回</el-button>
<div class="grid">
<template v-for="(item,index) in detailInfoObj">
<div
class="grid-item"
class="grid-item top-grid-item"
:key="index"
>
<template v-for="(i,ind) in item.list">
......@@ -13,8 +14,8 @@
class="item"
:key="ind"
>
<div class="label">{{i.label}}:</div>
<div class="value">
<div class="label" :class="{firstRow:i.class}">{{i.label}}:</div>
<div class="value" :class="{firstRow:i.class}">
<template v-if="i.format">
{{i.format(detailInfo)}}
</template>
......@@ -28,7 +29,8 @@
</template>
</div>
</div>
<div class="box">
<div class="box" id="bottomBox">
<div class="grayRow"></div>
<div class="grid">
<div class="grid-item">
<div class="sub-title">售后描述</div>
......@@ -53,7 +55,7 @@
</el-image>
<div class="info">
<div class="item">
<div class="label">品牌:</div>
<div class="label">商品品牌:</div>
<div class="value">{{detailInfo.brandName}}</div>
</div>
<div class="item">
......@@ -69,21 +71,21 @@
</div>
<div class="grid-item">
<div class="sub-title">购买信息</div>
<div class="item">
<div class="label">商品销售价:</div>
<div class="value">{{detailInfo.orderPrices}}</div>
<div class="item">
<div class="label">订单编号:</div>
<div class="value">{{detailInfo.orderCode}}</div>
</div>
<div class="item">
<div class="label">实付金额:</div>
<div class="value">{{detailInfo.orderPrices}}</div>
<div class="item">
<div class="label">购买数量:</div>
<div class="value">1张</div>
</div>
<div class="item">
<div class="label">购买数量:</div>
<div class="value">1</div>
<div class="label">商品销售价:</div>
<div class="value money">{{detailInfo.orderPrices}}元</div>
</div>
<div class="item">
<div class="label">订单编号:</div>
<div class="value">{{detailInfo.orderCode}}</div>
<div class="label">实付金额:</div>
<div class="value money">{{detailInfo.orderPrices}}元</div>
</div>
</div>
</div>
......@@ -102,7 +104,8 @@ export default {
list: [
{
label: '售后编号',
key: 'refundCode'
key: 'refundCode',
class:1
},
{
label: '申请人',
......@@ -114,7 +117,8 @@ export default {
list: [
{
label: '订单渠道',
key: 'channelName'
key: 'channelName',
class:1
},
{
label: '申请时间',
......@@ -128,6 +132,7 @@ export default {
list: [
{
label: '售后状态',
class:1,
format (cell) {
const refundStatusList = {
1: '售后中',
......@@ -145,6 +150,11 @@ export default {
mounted () {
let params = { orderCode: this.$route.query.orderCode }
this.getDetail(params)
this.$nextTick(() => {
let clientHeight = document.documentElement.clientHeight
let offsettop = document.getElementById('bottomBox').offsetTop
document.getElementById('bottomBox').style.minHeight = clientHeight - offsettop - 120 + 'px'
})
},
methods: {
// jump(){
......@@ -162,7 +172,7 @@ export default {
}
</script>
<style src="@a/css/tao.css"></style>
<style scoped>
<style lang="scss" scoped>
.flex .info {
margin-left: 10px;
width: calc(100% - 110px);
......@@ -175,4 +185,66 @@ export default {
.layout .box .grid .grid-item .item {
align-items: center;
}
.layout{
margin:0 20px 0 40px;
width: auto;
.topBox{
padding-top: 32px!important;
}
.box{
position: relative;
padding-top: 20px;
padding-left: 52px;
.top-grid-item{
.item{
font-size: 14px;
font-weight: 400;
color: #333333;
.label{
width: 71px;
text-align: right;
}
.firstRow{
margin-bottom: 14px;
}
}
}
.grid-item{
.item{
font-size: 14px;
font-weight: 400;
color: #333333;
.money{
color: #EB4E4E;
}
}
}
.backBtn{
position: absolute;
right: 20px;
top: 20px;
}
.grayRow{
position: absolute;
top: 0;
left: 0;
width: 100%;
background-color: #F4F6FC;
z-index: 0;
height: 54px;
}
.sub-title{
position: relative;
z-index: 1;
margin-bottom: 35px!important;
font-size: 14px;
font-weight: 500;
color: #333333;
}
.grid{
padding: 0;
}
}
}
</style>
\ No newline at end of file
......@@ -298,7 +298,7 @@ export default {
{
label: '售后时间',
minWidth: '100',
sortable: true,
// sortable: true,
formatter: cell => {
return cell.createDate ? new Date(cell.createDate).format('yyyy-MM-dd hh:mm:ss') : '- -'
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!