Commit e6875468 authored by 沈良进's avatar 沈良进

页面修改

parent 1808caf4
...@@ -268,6 +268,13 @@ ...@@ -268,6 +268,13 @@
components: { components: {
'my-carousel': Carousel 'my-carousel': Carousel
}, },
watch:{
'$route':function(old,newval)
{
console.log("old",old);
console.log("newval",newval);
}
},
methods: { methods: {
//初始化数据 //初始化数据
initData() { initData() {
...@@ -488,6 +495,7 @@ ...@@ -488,6 +495,7 @@
this.getGroup() this.getGroup()
}, },
created() { created() {
let autoLogin = localStorage.autoLogin ? JSON.parse(localStorage.autoLogin) : null let autoLogin = localStorage.autoLogin ? JSON.parse(localStorage.autoLogin) : null
this.userInfo.name = autoLogin ? autoLogin.acc : '' this.userInfo.name = autoLogin ? autoLogin.acc : ''
this.userInfo.password = autoLogin ? autoLogin.pwd : '' this.userInfo.password = autoLogin ? autoLogin.pwd : ''
......
<style> <style>
.saleRankDialog{} .saleRankDialog {}
.saleRankDialog .top{
height: 340px; .saleRankDialog .top {
background: url(../../assets/img/saleRank/bg.png) height: 340px;
} background: url(../../assets/img/saleRank/bg.png)
.saleRankDialog .top .top_info{ }
display: flex;
justify-content: center; .saleRankDialog .top .top_info {
padding-top: 40px; display: flex;
} justify-content: center;
.saleRankDialog .top .top_info .head,.saleRankDialog .bottom ._item .head{ padding-top: 40px;
width: 80px; }
height: 80px;
border: 2px solid #F9DA49; .saleRankDialog .top .top_info .head,
border-radius: 50%; .saleRankDialog .bottom ._item .head {
position: relative; width: 80px;
} height: 80px;
.saleRankDialog .top .top_info .head >.head_img,.saleRankDialog .bottom ._item .head>.head_img{ border: 2px solid #F9DA49;
width: 76px; border-radius: 50%;
height: 76px; position: relative;
border-radius: 50%; }
}
.saleRankDialog .top .top_info .head >.head_guan,.saleRankDialog .bottom ._item .head>.head_guan{ .saleRankDialog .top .top_info .head>.head_img,
position: absolute; .saleRankDialog .bottom ._item .head>.head_img {
left: -15px; width: 76px;
top: -24px; height: 76px;
} border-radius: 50%;
.saleRankDialog .bottom ._item .head{ }
width: 40px;
height: 40px; .saleRankDialog .top .top_info .head>.head_guan,
} .saleRankDialog .bottom ._item .head>.head_guan {
.saleRankDialog .bottom ._item .head>.head_img{ position: absolute;
width: 36px; left: -15px;
height: 36px; top: -24px;
} }
.saleRankDialog .bottom ._item .head>.head_guan{
left: -8px; .saleRankDialog .bottom ._item .head {
top: -12px; width: 40px;
} height: 40px;
.saleRankDialog .bottom ._item .head.num_two{ }
border-color: #BDC8DB;
} .saleRankDialog .bottom ._item .head>.head_img {
.saleRankDialog .bottom ._item .head.num_tree{ width: 36px;
border-color: #BAA3A3; height: 36px;
} }
.saleRankDialog .top{
color: #FFFFFF; .saleRankDialog .bottom ._item .head>.head_guan {
font-size: 14px; left: -8px;
text-align: center; top: -12px;
} }
.saleRankDialog .top ._name{
margin-top: 13px .saleRankDialog .bottom ._item .head.num_two {
} border-color: #BDC8DB;
.saleRankDialog .top ._rank{ }
color: #FFFFFF;
font-size: 30px; .saleRankDialog .bottom ._item .head.num_tree {
margin-top: 20px border-color: #BAA3A3;
} }
.saleRankDialog .top .top_money{
padding: 25px 0 ; .saleRankDialog .top {
} color: #FFFFFF;
.saleRankDialog .top .top_money ._num{ font-size: 14px;
color: #F1A131; text-align: center;
font-size: 24px; }
margin-top: 5px;
} .saleRankDialog .top ._name {
.saleRankDialog .top .top_money .left{ margin-top: 13px
border-right: 2px solid rgba(233,233,233,.5); }
}
.saleRankDialog .top .top_money .right{ .saleRankDialog .top ._rank {
border-left: 2px solid rgba(233,233,233,.5); color: #FFFFFF;
} font-size: 30px;
.saleRankDialog .bottom{ margin-top: 20px
padding: 0 30px; }
background-color: white;
} .saleRankDialog .top .top_money {
.saleRankDialog .bottom ._time { padding: 25px 0;
text-align: center; }
padding: 20px 0;
} .saleRankDialog .top .top_money ._num {
.saleRankDialog .bottom ._item ._item_left{ color: #F1A131;
display: flex; font-size: 24px;
align-items: center; margin-top: 5px;
} }
.saleRankDialog .bottom ._time ._time_num{
display: inline-block; .saleRankDialog .top .top_money .left {
text-align: center; border-right: 2px solid rgba(233, 233, 233, .5);
line-height: 24px; }
width: 30px;
height: 24px; .saleRankDialog .top .top_money .right {
background: linear-gradient(-30deg,rgba(79,169,255,1),rgba(71,121,255,1)); border-left: 2px solid rgba(233, 233, 233, .5);
color: white; }
}
.saleRankDialog .bottom ._item{ .saleRankDialog .bottom {
padding: 15px 0; padding: 0 30px;
border-top: 1px solid #F0F0F0; background-color: white;
display: flex; }
align-items: center;
} .saleRankDialog .bottom ._time {
.saleRankDialog .bottom ._item ._jiangpai{ text-align: center;
height: 26px; padding: 20px 0;
display: inline-block; }
margin-right: 18px;
} .saleRankDialog .bottom ._item ._item_left {
.saleRankDialog .bottom ._item ._name{ display: flex;
color: #666666; align-items: center;
padding-left: 20px; }
}
.saleRankDialog .bottom ._item ._money{ .saleRankDialog .bottom ._time ._time_num {
float: right; display: inline-block;
color: #F1A131; text-align: center;
font-size: 16px; line-height: 24px;
flex: 2; width: 30px;
text-align: right; height: 24px;
} background: linear-gradient(-30deg, rgba(79, 169, 255, 1), rgba(71, 121, 255, 1));
.saleRankDialog .bottom ._company{ color: white;
font-size: 12px; }
color: #888888;
padding: 15px; .saleRankDialog .bottom ._item {
border-top: 1px solid #F0F0F0; padding: 15px 0;
} border-top: 1px solid #F0F0F0;
.saleRankDialog .bottom ._company span{ display: flex;
color: #333333; align-items: center;
display: inline-block; }
margin-left: 20px;
} .saleRankDialog .bottom ._item ._jiangpai {
.saleRankDialog .history>div{ height: 26px;
background-color: #D0D0D0; display: inline-block;
color: #E95252; margin-right: 18px;
text-align: center; }
height: 60px;
line-height: 60px; .saleRankDialog .bottom ._item ._name {
} color: #666666;
.saleRankDialog .history>div span{ padding-left: 20px;
cursor: pointer; }
}
.saleRankDialog .bottom ._item ._money {
float: right;
color: #F1A131;
font-size: 16px;
flex: 2;
text-align: right;
}
.saleRankDialog .bottom ._company {
font-size: 12px;
color: #888888;
padding: 15px;
border-top: 1px solid #F0F0F0;
}
.saleRankDialog .bottom ._company span {
color: #333333;
display: inline-block;
margin-left: 20px;
}
.saleRankDialog .history>div {
background-color: #D0D0D0;
color: #E95252;
text-align: center;
height: 60px;
line-height: 60px;
}
.saleRankDialog .history>div span {
cursor: pointer;
}
</style> </style>
<template> <template>
<el-row class="saleRankDialog"> <el-row class="saleRankDialog">
<el-row class="top"> <el-row class="top">
<div class="top_info"> <div class="top_info">
<div class="head"> <div class="head">
<img class="head_img" :src="detail.List[0].EmployeeImg" alt=""> <template v-if="detail.List&&detail.List.length>0&&detail.List[0].EmployeeImg">
<img class="head_guan" src="../../assets/img/saleRank/diyitou.png" alt=""> <img class="head_img" :src="detail.List[0].EmployeeImg" alt="">
</div> </template>
<img class="head_guan" src="../../assets/img/saleRank/diyitou.png" alt="">
</div>
</div> </div>
<p class="_name">{{detail.List[0].EmployeeName}}{{detail.List[0].BranchName}}</p> <p class="_name">
<template v-if="detail.List&&detail.List.length>0">
{{detail.List[0].EmployeeName}}{{detail.List[0].BranchName}}
</template>
</p>
<p class="_rank">小组赛第1名</p> <p class="_rank">小组赛第1名</p>
<el-row class="top_money"> <el-row class="top_money">
<el-col :span="12" class="left"> <el-col :span="12" class="left">
<div> <div>
<p>本期数据值</p> <p>本期数据值</p>
<p class="_num">¥{{moneyFormat(detail.List[0].WeekTotalPrice)}}</p> <p class="_num">
<template v-if="detail.List&&detail.List.length>0">
¥{{moneyFormat(detail.List[0].WeekTotalPrice)}}
</template>
</p>
</div> </div>
</el-col> </el-col>
<el-col :span="12" class="right"> <el-col :span="12" class="right">
<div> <div>
<p>累计数据值</p> <p>累计数据值</p>
<p class="_num">¥{{moneyFormat(detail.List[0].TotalPrice)}}</p> <p class="_num">
<template v-if="detail.List&&detail.List.length>0">
¥{{moneyFormat(detail.List[0].TotalPrice)}}
</template></p>
</div> </div>
</el-col> </el-col>
</el-row> </el-row>
</el-row> </el-row>
<el-row class="bottom"> <el-row class="bottom">
<el-row class="_time"> <el-row class="_time">
<p>销售排名时间: <span class="_time_num">{{detail.StartDateMonth}}</span><span class="_time_num">{{detail.StartDateDay}}</span> 日 - <span class="_time_num">{{detail.EndDateMonth}}</span><span class="_time_num">{{detail.EndDateDay}}</span></p> <p>销售排名时间: <span class="_time_num">{{detail.StartDateMonth}}</span><span
class="_time_num">{{detail.StartDateDay}}</span> 日 - <span class="_time_num">{{detail.EndDateMonth}}</span>
<span class="_time_num">{{detail.EndDateDay}}</span></p>
</el-row> </el-row>
<template v-for="(item, index) in detail.List" v-if="index !== 0"> <template v-for="(item, index) in detail.List" v-if="index !== 0">
<el-row class="_item"> <el-row class="_item">
<div class="_item_left"> <div class="_item_left">
<img class="_jiangpai" :src="jiangpai[index-1].p" alt=""> <img class="_jiangpai" :src="jiangpai[index-1].p" alt="">
<div class="head" :class="{'num_two': index === 1, 'num_tree': index === 2}"> <div class="head" :class="{'num_two': index === 1, 'num_tree': index === 2}">
<img class="head_img" :src="item.EmployeeImg" alt=""> <img class="head_img" :src="item.EmployeeImg" alt="">
<img v-if="index < 3" class="head_guan" :src="jiangpai[index-1].g" alt=""> <img v-if="index < 3" class="head_guan" :src="jiangpai[index-1].g" alt="">
</div> </div>
<p class="_name">{{item.EmployeeName}}{{item.BranchName}}</p> <p class="_name">{{item.EmployeeName}}{{item.BranchName}}</p>
</div> </div>
<p class="_money">¥{{moneyFormat(item.WeekTotalPrice)}}</p> <p class="_money">¥{{moneyFormat(item.WeekTotalPrice)}}</p>
...@@ -197,37 +245,42 @@ ...@@ -197,37 +245,42 @@
</el-row> </el-row>
</template> </template>
<script> <script>
export default { export default {
props:['detail'], props: ['detail'],
data(){ data() {
return { return {
list: [1,2,3,4], list: [1, 2, 3, 4],
jiangpai: [ jiangpai: [{
{ p: require('../../assets/img/saleRank/jiangpai2.png'),
p: require('../../assets/img/saleRank/jiangpai2.png'), g: require('../../assets/img/saleRank/diertou.png')
g: require('../../assets/img/saleRank/diertou.png') },
}, {
{ p: require('../../assets/img/saleRank/jiangpai3.png'),
p: require('../../assets/img/saleRank/jiangpai3.png'), g: require('../../assets/img/saleRank/disantou.png')
g: require('../../assets/img/saleRank/disantou.png') },
}, {
{ p: require('../../assets/img/saleRank/jiangpai4.png'),
p: require('../../assets/img/saleRank/jiangpai4.png'), },
}, {
{ p: require('../../assets/img/saleRank/jiangpai5.png'),
p: require('../../assets/img/saleRank/jiangpai5.png'), },
}, ]
] }
} },
}, mounted() {
mounted(){
},
}, methods: {
methods:{ goUrl: function (path) {
goUrl: function (path) { this.$router.push({
this.$router.push({ name: path, query:{ tab: '往期排行'}}) name: path,
this.$emit('closeChangeMachie') query: {
tab: '往期排行'
}
})
this.$emit('closeChangeMachie')
}
} }
} }
}
</script> </script>
<style> <style>
@import "../assets/css/login2019.css"; @import "../assets/css/login2019.css";
.Autologin{ .Autologin {
position: fixed; position: fixed;
left: 0; left: 0;
top: 0; top: 0;
right: 0; right: 0;
bottom: 0; bottom: 0;
/* transform: translate(-50%,-50%); */
background: url('../assets/img/login/load.gif')no-repeat center; background: url('../assets/img/login/load.gif')no-repeat center;
background-size: 350px auto; background-size: 350px auto;
} }
...@@ -15,7 +14,6 @@ ...@@ -15,7 +14,6 @@
<div> <div>
<div class="Autologin"> <div class="Autologin">
<div class="gifContent"> <div class="gifContent">
</div> </div>
</div> </div>
</div> </div>
...@@ -25,38 +23,38 @@ ...@@ -25,38 +23,38 @@
data() { data() {
return { return {
loading: false, loading: false,
msg:{}, msg: {},
userInfo: { userInfo: {
name: "", name: "",
password: "", password: "",
Domain: "" Domain: ""
}, },
crmOrderObj:{}, crmOrderObj: {},
obj:{} obj: {}
} }
}, },
components: { components: {
}, },
mounted() { mounted() {
}, },
created() { created() {
if(this.$route.query){ if (this.$route.query) {
let param = JSON.parse(this.$route.query.data) ; let param = JSON.parse(this.$route.query.data);
this.obj.token=this.$route.query.token; this.obj.token = this.$route.query.token;
if(param){ if (param) {
this.obj.parameter=param[0] this.obj.parameter = param[0]
localStorage.crmuserInfo = JSON.stringify(this.obj); localStorage.crmuserInfo = JSON.stringify(this.obj);
} }
} }
if(!this.getLocalStorage()){ if (!this.getLocalStorage()) {
this.autoLogin() this.autoLogin()
}else{ } else {
var data = JSON.parse(localStorage.crmuserInfo) var data = JSON.parse(localStorage.crmuserInfo)
this.$router.push({ this.$router.push({
path: data.parameter.path, path: data.parameter.path,
query:{ query: {
crmOrderObj: JSON.stringify(data.parameter), crmOrderObj: JSON.stringify(data.parameter),
Type: data.parameter.type Type: data.parameter.type
} }
...@@ -64,7 +62,7 @@ ...@@ -64,7 +62,7 @@
} }
}, },
methods: { methods: {
autoLogin(){ autoLogin() {
this.apipostLogin( this.apipostLogin(
"admin_get_GetErpAutoLoginInfo", "admin_get_GetErpAutoLoginInfo",
this.msg, this.msg,
...@@ -78,30 +76,26 @@ ...@@ -78,30 +76,26 @@
localStorage.userInfo = userJson; localStorage.userInfo = userJson;
let firstTire = [] let firstTire = []
userData.UserMenu.forEach(x => { userData.UserMenu.forEach(x => {
if (x.MenuUrl != '/' && x.MenuUrl!='') { if (x.MenuUrl != '/' && x.MenuUrl != '') {
firstTire.push(x.MenuName) firstTire.push(x.MenuName)
} else { } else {
x.MenuUrl=''; x.MenuUrl = '';
firstTire.push(x.MenuName); firstTire.push(x.MenuName);
} }
}) })
//UserMenu
// this.$cookie.set("account", this.userInfo.name);
this.$cookie.set("EmployeeId", userData.EmployeeId); this.$cookie.set("EmployeeId", userData.EmployeeId);
this.$cookie.set("RB_Branch_id", userData.RB_Branch_id); this.$cookie.set("RB_Branch_id", userData.RB_Branch_id);
this.$cookie.set("RB_Group_id", userData.RB_Group_id); this.$cookie.set("RB_Group_id", userData.RB_Group_id);
localStorage.menu = JSON.stringify(firstTire) localStorage.menu = JSON.stringify(firstTire)
this.loginState = 0; this.loginState = 0;
var data = JSON.parse(localStorage.crmuserInfo) var data = JSON.parse(localStorage.crmuserInfo)
this.$router.push({ this.$router.push({
path: data.parameter.path, path: data.parameter.path,
query:{ query: {
crmOrderObj: JSON.stringify(data.parameter), crmOrderObj: JSON.stringify(data.parameter),
Type: data.parameter.type Type: data.parameter.type
} }
}); });
} else { } else {
this.$notify.error({ this.$notify.error({
title: "提示", title: "提示",
...@@ -116,7 +110,5 @@ ...@@ -116,7 +110,5 @@
); );
} }
}, },
} }
</script>
</script> \ No newline at end of file
...@@ -247,19 +247,6 @@ ...@@ -247,19 +247,6 @@
font-weight: bold; font-weight: bold;
} }
.CliSignDiv {
position: fixed;
border: 1px solid #d1d1d1;
width: 100%;
background-color: #fff;
z-index: 999;
margin: auto;
display: block;
z-index: -999;
}
.TopFixed { .TopFixed {
z-index: 100; z-index: 100;
} }
...@@ -715,10 +702,6 @@ ...@@ -715,10 +702,6 @@
this.msg.OrderId = this.$route.query.OrderId; this.msg.OrderId = this.$route.query.OrderId;
this.msg.GuestId = this.$route.query.GuestId; this.msg.GuestId = this.$route.query.GuestId;
this.msg.ProtocolId = this.$route.query.ProtocolId; this.msg.ProtocolId = this.$route.query.ProtocolId;
try {
var cHeight = document.getElementsByClassName("CliSignDiv")[0];
cHeight.style.height = 900 + 'px';
} catch (error) {}
this.getList(); this.getList();
} }
}; };
......
// import login from '../components/Login'
import login from '../components/Login2019' import login from '../components/Login2019'
import index from '../components/index' import index from '../components/index'
import clientConfirm from '../components/clientConfirm' import clientConfirm from '../components/clientConfirm'
import clientConfirmRB from '../components/clientConfirmRB' import clientConfirmRB from '../components/clientConfirmRB'
import clientProtocol from '../components/clientProtocol'
import SignName from '../components/SignName' import SignName from '../components/SignName'
import supplierLogin from '../components/SupplierLogin' import supplierLogin from '../components/SupplierLogin'
import supplierIndex from '../components/SupplierIndex' import supplierIndex from '../components/SupplierIndex'
...@@ -5865,6 +5865,22 @@ export default { ...@@ -5865,6 +5865,22 @@ export default {
name: 'clientConfirmRB', name: 'clientConfirmRB',
component: clientConfirmRB component: clientConfirmRB
}, },
{
path: '/discountProtocol', //价格保密协议
name: 'discountProtocol',
component: resolve => require(['@/components/discountProtocol'], resolve),
meta: {
title: '价格保密协议'
}
},
{
path: '/clientProtocol', //价格保密协议签订
name: 'clientProtocol',
component: clientProtocol,
meta: {
title: '价格保密协议签订'
}
},
{ {
path: '/SignName', path: '/SignName',
name: 'SignName', name: 'SignName',
...@@ -5894,22 +5910,7 @@ export default { ...@@ -5894,22 +5910,7 @@ export default {
title: '日本线电子合同' title: '日本线电子合同'
} }
}, },
{
path: '/discountProtocol', //价格保密协议
name: 'discountProtocol',
component: resolve => require(['@/components/discountProtocol'], resolve),
meta: {
title: '价格保密协议'
}
},
{
path: '/clientProtocol', //价格保密协议签订
name: 'clientProtocol',
component: resolve => require(['@/components/clientProtocol'], resolve),
meta: {
title: '价格保密协议签订'
}
},
{ {
path: '/SingleContract', //单项合同 path: '/SingleContract', //单项合同
name: 'SingleContract', name: 'SingleContract',
......
...@@ -93,7 +93,6 @@ export default { ...@@ -93,7 +93,6 @@ export default {
if (state.nim) { if (state.nim) {
state.nim.disconnect() state.nim.disconnect()
} }
//pageUtil.turnPage('', 'login')
}, },
// 初始化 重新连接SDK // 初始化 重新连接SDK
......
...@@ -41,8 +41,7 @@ export function initNimSDK ({ state, commit, dispatch }, loginInfo) { ...@@ -41,8 +41,7 @@ export function initNimSDK ({ state, commit, dispatch }, loginInfo) {
} }
}, },
onerror: function onError (event) { onerror: function onError (event) {
// alert(JSON.stringify(event))
//location.href = config.loginUrl
}, },
onwillreconnect: function onWillReconnect () { onwillreconnect: function onWillReconnect () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment