Commit ef2e8efd by 杨北旺

添加未开通样式

1 parent 89aa6ff2
<template> <template>
<div v-if="accountLevel==4" class="rule-container"> <div v-if="accountLevel == 4" class="rule-container">
<div v-if="!nodata" class="top_wrapper"> <div v-if="!nodata" class="top_wrapper">
<div v-if="updateTime" class="tip_line"> <div v-if="updateTime" class="tip_line">
<img class="icon" src="../../assets/notice.png" /> <img class="icon" src="../../assets/notice.png" />
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<rule-table :division="divisionRule1" :settle="settleRule1" :bankData="bankInfo"></rule-table> <rule-table :division="divisionRule1" :settle="settleRule1" :bankData="bankInfo"></rule-table>
</div> </div>
</div> </div>
<div class="list_wrapper"> <div v-if="!noList" class="list_wrapper">
<div class="find_wrap"> <div class="find_wrap">
<div class="date_wrap"> <div class="date_wrap">
<el-date-picker style="width: 160px" size="mini" v-model="startDate" type="date" placeholder="选择日期"></el-date-picker> <el-date-picker style="width: 160px" size="mini" v-model="startDate" type="date" placeholder="选择日期"></el-date-picker>
...@@ -50,6 +50,28 @@ ...@@ -50,6 +50,28 @@
</div> </div>
<div v-if="noList" class="no_data h19_title">暂无数据</div> <div v-if="noList" class="no_data h19_title">暂无数据</div>
</div> </div>
<div v-if="nodata && noList" class="nodata_widget">
<div :style="[{ height: nodataHeight + 'px' }]" class="wrapper">
<img src="../../assets/nodata_icon.png" />
<span class="nodata_tip_1">您暂未开通精品升级服务</span>
<span class="nodata_tip_2">合作开通后,您方可在此页查看精品升级业务合作模式的分账规则,保障合作透明。</span>
</div>
<div :style="[{ height: stepHeight + 'px' }]" class="step_wrap">
<span class="nodata_tip_3">精品合作升级流程</span>
<div class="step flex_scb">
<div class="stepIcon flex_cc">1</div>
<div class="stepLine"></div>
<div class="stepIcon flex_cc">2</div>
<div class="stepLine"></div>
<div class="stepIcon flex_cc">3</div>
</div>
<div class="step_content flex_scb">
<span class="h13_title">联系嘀加精品业务经理,开通此业务</span>
<span class="h13_title">确定合作细则,销售专员转发精品礼券</span>
<span class="h13_title">车主完成精品升级,您获得分账收益</span>
</div>
</div>
</div>
<el-dialog :visible.sync="computeShow" width="50%" :before-close="handleClose"> <el-dialog :visible.sync="computeShow" width="50%" :before-close="handleClose">
<div slot="title" class="dialogTitle">分润计算说明</div> <div slot="title" class="dialogTitle">分润计算说明</div>
<div class="dialogContent"> <div class="dialogContent">
...@@ -130,9 +152,11 @@ export default { ...@@ -130,9 +152,11 @@ export default {
pageSize: 10, pageSize: 10,
currentPage: 1, currentPage: 1,
computeShow: false, computeShow: false,
accountLevel:1, accountLevel: 1,
nodata:false, nodata: true,
noList:false noList: true,
nodataHeight: 460,
stepHeight: 288
} }
}, },
mounted() { mounted() {
...@@ -144,12 +168,16 @@ export default { ...@@ -144,12 +168,16 @@ export default {
this.getRulesDataList(merchantId) this.getRulesDataList(merchantId)
this.getRuleNote(merchantId) this.getRuleNote(merchantId)
} }
let clientHeight = document.documentElement.clientHeight
this.nodataHeight = clientHeight * 0.5
this.stepHeight = clientHeight - clientHeight * 0.5 - 133
}, },
methods: { methods: {
// 获取分账规则 // 获取分账规则
getRulesDataList(merchantId) { getRulesDataList(merchantId) {
let method = getRulesData() let method = getRulesData()
let para = {//44209532 let para = {
//44209532
routerMethod: method, routerMethod: method,
merchantId merchantId
} }
...@@ -159,7 +187,7 @@ export default { ...@@ -159,7 +187,7 @@ export default {
this.divisionRule2 = res.divisionRule2 this.divisionRule2 = res.divisionRule2
this.settleRule1 = res.settleRule1 this.settleRule1 = res.settleRule1
this.settleRule2 = res.settleRule2 this.settleRule2 = res.settleRule2
if(!res.bankInfo&&!res.divisionRule1&&!res.divisionRule2&&!res.settleRule1&&!res.settleRule2){ if (!res.bankInfo && !res.divisionRule1 && !res.divisionRule2 && !res.settleRule1 && !res.settleRule2) {
this.nodata = true this.nodata = true
return return
} }
...@@ -432,8 +460,75 @@ export default { ...@@ -432,8 +460,75 @@ export default {
} }
} }
} }
.no_data{ .no_data {
text-align: center; text-align: center;
padding: 20px 0; padding: 20px 0;
} }
.nodata_widget {
margin-top: 17px;
.wrapper {
width: 100%;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
// padding: 150px 0 145px 0;
overflow: hidden;
.nodata_tip_1 {
font-size: 18px;
font-weight: 500;
color: #3a3a3a;
margin-top: 48px;
}
.nodata_tip_2 {
font-size: 14px;
font-weight: 400;
color: #3a3a3a;
margin-top: 9px;
}
}
.step_wrap {
width: 100%;
background: #ffffff;
box-shadow: 0px 10px 20px 0px rgba(88, 80, 255, 0.1);
margin-top: 10px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
.nodata_tip_3 {
font-size: 16px;
font-weight: 500;
color: #000000;
margin-bottom: 40px;
}
.step,.step_content {
width: 100%;
box-sizing: border-box;
padding: 0 50px;
}
.step{
padding: 0 146px;
}
.step_content{
margin-top: 22px;
}
.stepLine {
width: 42%;
height: 1px;
background: #1890ff;
}
.stepIcon {
width: 32px;
height: 32px;
background: #5850ff;
font-size: 14px;
font-weight: 400;
color: #ffffff;
border-radius: 50%;
}
}
}
</style> </style>
\ No newline at end of file \ No newline at end of file
...@@ -6,7 +6,13 @@ ...@@ -6,7 +6,13 @@
<div class="title_wrap"> <div class="title_wrap">
<img class="icon1" src="../../assets/money_icon.png" /> <img class="icon1" src="../../assets/money_icon.png" />
<span class="h3_title">累计产值</span> <span class="h3_title">累计产值</span>
<img class="icon cur" src="../../assets/intro.png" /> <img class="icon cur" @mouseenter="showTip = true" @mouseleave="showTip = false" src="../../assets/intro.png" />
<div v-if="showTip" class="tipContentClass">
<div class="title">说明</div>
<p class="h20_title">总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。</p>
<div class="single"></div>
<div class="single1"></div>
</div>
</div> </div>
<div class="price_max"> <div class="price_max">
<span class="h8_title">¥{{ productValueInfo.divisionMoney || '--.--' }}</span> <span class="h8_title">¥{{ productValueInfo.divisionMoney || '--.--' }}</span>
...@@ -117,6 +123,7 @@ export default { ...@@ -117,6 +123,7 @@ export default {
}, },
data() { data() {
return { return {
tipContent: '总产值为门店的精品升级业务该获得的 分账金额总和,包括线上分账和线下对 账,但分账金额不明确订单不算入统计。',
accountLevel: 4, accountLevel: 4,
startDate: '', // 券开始时间 startDate: '', // 券开始时间
endDate: '', //券结束时间 endDate: '', //券结束时间
...@@ -134,7 +141,8 @@ export default { ...@@ -134,7 +141,8 @@ export default {
//图表时间 //图表时间
chartStartDate: '', chartStartDate: '',
chartEndDate: '', chartEndDate: '',
openRankFlag: false openRankFlag: false,
showTip: false
} }
}, },
created() { created() {
...@@ -161,9 +169,8 @@ export default { ...@@ -161,9 +169,8 @@ export default {
// 漏斗图 // 漏斗图
this.$refs.myFunnel.couponsChartData(this.chartStartDate, this.chartEndDate) this.$refs.myFunnel.couponsChartData(this.chartStartDate, this.chartEndDate)
// 集团折线图+列表 // 集团折线图+列表
this.$refs.mybloc.changeTimeForLine(this.chartStartDate,this.chartEndDate) this.$refs.mybloc.changeTimeForLine(this.chartStartDate, this.chartEndDate)
this.$refs.mybloc.orderDataInfoOfJT(this.chartStartDate,this.chartEndDate) this.$refs.mybloc.orderDataInfoOfJT(this.chartStartDate, this.chartEndDate)
} else { } else {
//按月 //按月
let start = this.chartStartDate let start = this.chartStartDate
...@@ -171,8 +178,8 @@ export default { ...@@ -171,8 +178,8 @@ export default {
// 漏斗图 // 漏斗图
this.$refs.myFunnel.couponsChartData(start, end) this.$refs.myFunnel.couponsChartData(start, end)
// 集团折线图+列表 // 集团折线图+列表
this.$refs.mybloc.changeTimeForLine(start,end) this.$refs.mybloc.changeTimeForLine(start, end)
this.$refs.mybloc.orderDataInfoOfJT(start,end) this.$refs.mybloc.orderDataInfoOfJT(start, end)
} }
}, },
getChartStartTime(e) { getChartStartTime(e) {
...@@ -254,6 +261,55 @@ export default { ...@@ -254,6 +261,55 @@ export default {
} }
.cur { .cur {
cursor: pointer; cursor: pointer;
position: relative;
}
.tipContentClass {
position: absolute;
left: 130px;
top: -15px;
width: 236px;
// height: 94px;
background: #ffffff;
box-shadow: 0px 6px 16px 0px rgba(0, 0, 0, 0.08), 0px 3px 6px -4px rgba(0, 0, 0, 0.12);
border: 1px solid #e4e7ed;
z-index: 999;
box-sizing: border-box;
padding: 10px 9px;
.title {
font-size: 12px;
font-weight: bold;
color: #333333;
z-index: 999;
position: relative;
}
> p {
z-index: 999;
position: relative;
margin-top: 10px;
line-height: 18px;
}
.single {
position: absolute;
left: -5px;
top: 15px;
// transform: translate(0, -50%);
width: 10px;
height: 10px;
background: #ffffff;
transform: rotate(-60deg);
border: 1px solid #e4e7ed;
z-index: -1;
}
.single1 {
position: absolute;
left: 0px;
top: 50%;
transform: translate(0, -50%);
width: 20px;
height: 100%;
background: #ffffff;
z-index: 22;
}
} }
.icon1 { .icon1 {
width: 16.22px; width: 16.22px;
......
<template> <template>
<div class="store-container"> <div class="store-container">
<not-open-con v-if="!openType"></not-open-con> <not-open-con v-if="openType == 0"></not-open-con>
<open-con v-else></open-con> <open-con v-if="openType == 1"></open-con>
</div> </div>
</template> </template>
<script> <script>
import notOpenCon from './notOpenCon.vue' import notOpenCon from './notOpenCon.vue'
import openCon from './open.vue' import openCon from './open.vue'
import {isOpenUpgrade} from '../../api/modules/rules' import { isOpenUpgrade } from '../../api/modules/rules'
import { converterApi } from '../../api/modules/converter' import { converterApi } from '../../api/modules/converter'
export default { export default {
name: 'index', name: 'index',
...@@ -18,31 +18,30 @@ export default { ...@@ -18,31 +18,30 @@ export default {
}, },
data() { data() {
return { return {
openType: false, // 0未开通 1已开通 openType: 2 // 0未开通 1已开通
} }
}, },
created(){ created() {
if(localStorage.getItem('openInfo')){ this.judgeOpen()
let info = JSON.parse(localStorage.getItem('openInfo')) // if(localStorage.getItem('openInfo')){
this.openType = info.open // let info = JSON.parse(localStorage.getItem('openInfo'))
}else{ // this.openType = info.open
this.judgeOpen() // }else{
} // this.judgeOpen()
}, // }
mounted() {
}, },
mounted() {},
methods: { methods: {
// 避免未配置权限菜单 // 避免未配置权限菜单
judgeOpen(){ judgeOpen() {
localStorage.removeItem('openInfo') localStorage.removeItem('openInfo')
let method = isOpenUpgrade() let method = isOpenUpgrade()
let para = { let para = {
routerMethod:method routerMethod: method
} }
converterApi(para).then(res=>{ converterApi(para).then(res => {
localStorage.setItem('openInfo',JSON.stringify(res)) localStorage.setItem('openInfo', JSON.stringify(res))
this.openType = res.open this.openType = res.open?1:0
}) })
} }
} }
......
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
<span>共</span> <span>共</span>
<sapn style="color: #5850ff">{{openCount}}</sapn> <sapn style="color: #5850ff">{{openCount}}</sapn>
<span>笔主订单</span> <span>笔主订单</span>
<span style="color: #5850ff">{{tableCountInfo.nums}}</span> <span style="color: #5850ff">{{tableCountInfo.nums || 0}}</span>
<span>笔子订单</span> <span>笔子订单</span>
<span>,累计订单支付金额:</span> <span>,累计订单支付金额:</span>
<span style="color: #5850ff">¥{{tableCountInfo.totalPrice}}</span> <span style="color: #5850ff">¥{{tableCountInfo.totalPrice || 0}}</span>
<span>元,累计导流方利润:</span> <span>元,累计导流方利润:</span>
<span style="color: #5850ff">{{tableCountInfo.totalShopGrossProfit}}</span> <span style="color: #5850ff">{{tableCountInfo.totalShopGrossProfit || 0}}</span>
<span>元</span> <span>元</span>
</div> </div>
<!-- <div class="right_select"> <!-- <div class="right_select">
...@@ -445,7 +445,11 @@ export default { ...@@ -445,7 +445,11 @@ export default {
], ],
fieldListData:[], fieldListData:[],
openCount:0, openCount:0,
tableCountInfo:null tableCountInfo:{
nums:0,
totalPrice:0,
totalShopGrossProfit:0
}
} }
}, },
mounted() { mounted() {
...@@ -544,7 +548,9 @@ export default { ...@@ -544,7 +548,9 @@ export default {
...params ...params
} }
converterApi(para).then(res=>{ converterApi(para).then(res=>{
this.tableCountInfo = res if(res){
this.tableCountInfo = res
}
}) })
}, },
// 每页条数 // 每页条数
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!