Commit f6bc542f by zhouzy
2 parents 5231f5f9 c871cecd
...@@ -11,7 +11,7 @@ const getOrderList = (params = {}) => { ...@@ -11,7 +11,7 @@ const getOrderList = (params = {}) => {
params.method = 'scrm.api.equity.order.list.get' params.method = 'scrm.api.equity.order.list.get'
return http({ return http({
data: params, data: params,
returnAll:true // returnAll:true
}) })
} }
/** 获取海威账户余额*/ /** 获取海威账户余额*/
......
<template> <template>
<div class="container"> <div class="equity-wrap">
<div class="layout"> <div class="equity-wrap contain">
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px" size="medium" :key="resetTime"> <el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-width="150px" size="medium" :key="resetTime">
<div class="box"> <div class="box">
<!-- <back /> --> <!-- <back /> -->
...@@ -106,6 +106,16 @@ ...@@ -106,6 +106,16 @@
</div> </div>
</el-form> </el-form>
</div> </div>
<div
class="footer-panel"
:style="{
left: footerLeft + 'px',
width: footerWidth + 'px'
}"
>
<el-button type="primary" @click="onSubmit('save')" size="small">创建</el-button>
<el-button type="primary" @click="$router.go(-1)" size="small">取消</el-button>
</div>
</div> </div>
</template> </template>
...@@ -213,6 +223,9 @@ export default { ...@@ -213,6 +223,9 @@ export default {
} }
}, },
mounted() { mounted() {
this.footerLeft = document.querySelector('.base-container-right').offsetLeft
this.footerWidth = document.documentElement.clientWidth - this.footerLeft
this.getListWithPageOutGoods() this.getListWithPageOutGoods()
console.log(this.$route) console.log(this.$route)
let id = this.$route.query.id let id = this.$route.query.id
...@@ -411,9 +424,22 @@ export default { ...@@ -411,9 +424,22 @@ export default {
} }
} }
} }
// <style src="@a/css/tao.css"></style>
</script> </script>
<style src="@a/css/tao.css"></style>
<style scoped> <style lang="scss" scoped>
.footer-panel {
display: flex;
align-items: center;
justify-content: center;
position: fixed;
width: 100%;
bottom: 0px;
height: 64px;
background: #ffffff;
z-index: 999;
box-shadow: 0px -1px 1px 0px rgba(88, 80, 255, 0.1);
}
.uploader-del-icon { .uploader-del-icon {
position: absolute; position: absolute;
width: 28px; width: 28px;
...@@ -424,4 +450,69 @@ export default { ...@@ -424,4 +450,69 @@ export default {
top: 0px; top: 0px;
right: -28px; right: -28px;
} }
.box .title {
padding: 20px 0;
font-weight: 700;
}
.box .el-form-item {
width: 500px;
}
.box .el-form-item .el-input-group__prepend,
.box .el-form-item .el-input-group__append {
background-color: transparent;
border: none;
}
.box .el-form-item .el-input--suffix .el-input__inner {
padding-right: 45px;
}
.box .el-form-item .el-input__suffix {
right: 20px;
}
.box .editor {
width: 800px;
}
.box .avatar-uploader {
border: 1px dashed #d9d9d9;
border-radius: 6px;
cursor: pointer;
position: relative;
width: 148px;
height: 148px;
}
.box .avatar-uploader-file {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
}
.box .avatar-uploader:hover {
border-color: #409EFF;
}
.box .avatar-uploader-icon {
font-size: 28px;
color: #8c939d;
width: 148px;
height: 148px;
line-height: 148px;
text-align: center;
}
.box .avatar {
width: 148px;
height: 148px;
display: block;
}
</style> </style>
<template> <template>
<div class="layout"> <div class="layout">
<div class="box"> <div class="box topBox">
<!-- <back /> --> <!-- <back /> -->
<el-button type="primary" class="backBtn" size="small" @click="$router.go(-1)">返回</el-button>
<div class="grid"> <div class="grid">
<div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div> <div class="grid-item">订单编号:{{ detailInfo.orderCode }}</div>
<div class="grid-item">下单时间: {{ detailInfo.time }}</div> <div class="grid-item">下单时间: {{ detailInfo.time }}</div>
</div> </div>
</div> </div>
<div class="box"> <div class="box">
<div class="grayRow"></div>
<div class="grid"> <div class="grid">
<template v-for="(item, index) in detailInfoObj"> <template v-for="(item, index) in detailInfoObj">
<div class="grid-item" :key="index"> <div class="grid-item top-grid-item" :key="index">
<div class="sub-title">{{ item.title }}</div> <div class="sub-title">{{ item.title }}</div>
<template v-for="(i, ind) in item.list"> <template v-for="(i, ind) in item.list">
<div class="item" :key="ind"> <div class="item" :key="ind">
...@@ -29,7 +31,7 @@ ...@@ -29,7 +31,7 @@
<div class="grid-btn"> <div class="grid-btn">
售后: 售后:
<template v-if="detailInfo.openRefund == 0"> <template v-if="detailInfo.openRefund == 0">
<el-button type="primary" @click="openRefund">开启</el-button> <el-button type="primary" @click="openRefund" size="small">开启</el-button>
</template> </template>
<template v-else> <template v-else>
<span>已开启</span> <span>已开启</span>
...@@ -39,20 +41,22 @@ ...@@ -39,20 +41,22 @@
</div> </div>
</template> </template>
</div> </div>
</div> <div class="tableWrap">
<d2-table :tableParams="tableParams" :tableData="tableData" :hasNum="false" :hasPage="false"></d2-table> <d2-table :tableParams="tableParams" :tableData="tableData" :hasNum="false" :hasPage="false"></d2-table>
</div>
<div class="price-box"> <div class="price-box">
<div class="price-item"> <div class="price-item">
<div class="label">商品总价:</div> <div class="label">商品总价:</div>
<div class="value">{{ detailInfo.orderPrices }}元</div> <div class="value">¥{{ detailInfo.orderPrices }}</div>
</div> </div>
<div class="price-item"> <div class="price-item">
<div class="label">优惠:</div> <div class="label">优惠:</div>
<div class="value">0元</div> <div class="value">¥0.00</div>
</div> </div>
<div class="price-item"> <div class="price-item">
<div class="label">实收金额:</div> <div class="label">实收金额:</div>
<div class="value">{{ detailInfo.orderPrices }}元</div> <div class="value money">¥{{ detailInfo.orderPrices }}</div>
</div>
</div> </div>
</div> </div>
</div> </div>
...@@ -66,7 +70,7 @@ export default { ...@@ -66,7 +70,7 @@ export default {
mixins: [orderMixin], mixins: [orderMixin],
data() { data() {
return { return {
params:{}, params: {},
eventBus: new Vue(), eventBus: new Vue(),
detailInfo: {}, detailInfo: {},
detailInfoObj: [ detailInfoObj: [
...@@ -170,7 +174,7 @@ export default { ...@@ -170,7 +174,7 @@ export default {
} }
} }
] ]
}, }
} }
}, },
mounted() { mounted() {
...@@ -212,19 +216,31 @@ export default { ...@@ -212,19 +216,31 @@ export default {
} }
</script> </script>
<style src="@a/css/tao.css"></style> <style src="@a/css/tao.css"></style>
<style > <style lang="scss" scoped>
.price-box { .price-box {
margin-left: 800px; margin-top: 16px;
margin-top: 10px; margin-right: 52px;
float: right;
} }
.price-item { .price-item {
width: 200px;
font-size: 14px;
font-weight: 400;
color: #333333;
display: flex; display: flex;
align-items: center; align-items: center;
margin-bottom: 10px; justify-content: space-between;
} margin-bottom: 14px;
.price-item .label { .label {
width: 100px; width: 80px;
text-align: right;
}
.money {
color: #eb4e4e;
}
} }
.goods { .goods {
display: flex; display: flex;
} }
...@@ -236,4 +252,64 @@ export default { ...@@ -236,4 +252,64 @@ export default {
.goods-info { .goods-info {
width: calc(100% - 110px); width: calc(100% - 110px);
} }
.layout {
background-color: #fff;
margin: 0 20px 0 40px;
width: auto;
.topBox {
padding-top: 32px !important;
}
.box {
position: relative;
padding-top: 20px;
padding-left: 52px;
box-shadow: none;
.top-grid-item {
.item {
font-size: 14px;
font-weight: 400;
color: #333333;
margin-left: -30px;
.label {
// width: 71px;
text-align: right;
}
}
}
.grid-item {
.item,
.grid-btn {
font-size: 14px;
font-weight: 400;
color: #333333;
}
}
.backBtn {
position: absolute;
right: 20px;
top: 20px;
}
.grayRow {
position: absolute;
top: 18px;
left: 0;
width: 100%;
background-color: #f4f6fc;
z-index: 0;
height: 54px;
}
.sub-title {
position: relative;
z-index: 1;
margin-bottom: 40px !important;
font-size: 14px;
font-weight: 500;
color: #333333;
}
.tableWrap{
margin-left: -32px;
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -226,7 +226,7 @@ export default { ...@@ -226,7 +226,7 @@ export default {
} }
.grayRow{ .grayRow{
position: absolute; position: absolute;
top: 0; top: 0px;
left: 0; left: 0;
width: 100%; width: 100%;
background-color: #F4F6FC; background-color: #F4F6FC;
......
...@@ -276,6 +276,7 @@ export default { ...@@ -276,6 +276,7 @@ export default {
font-weight: 400; font-weight: 400;
color: #333333; color: #333333;
cursor: pointer;
} }
.active { .active {
color: #5850ff; color: #5850ff;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!