@@ -920,7 +925,11 @@ export default {
trafficCurrentObj:{},// 当前月
showMonthDetail:false,//月度车流的显示框
yesObjCompared:'',//昨日营收的比较值
- moneyRateList:[]
+ moneyRateList:[],
+ currentPeriodData:{},// 本期数据
+ ydModal: false,// 显示驿达百分比的具体值
+ ydRate:'',// 驿达百分比
+ shopRate:'',// 商家百分比
}
},
watch:{
@@ -1015,9 +1024,9 @@ export default {
},
onLoad(option){
const _this = this
- setTimeout(()=>{
- _this.moneyRateList = [0,0]
- },3000)
+ // setTimeout(()=>{
+ // _this.moneyRateList = [0,0]
+ // },3000)
// 顶部显示的时间
this.single = timestampToTimeMonth((new Date(this.lastDay).getTime()))
// 获取手机参数对页面进行适配 主要是用于拿到胶囊的位置
@@ -1129,6 +1138,39 @@ export default {
},
methods:{
...mapActions(['memberLogin','getLoginCode']),
+ // 点击服务区信息跳转
+ handleGoServiceMessage(){
+ this.$util.toNextRoute('navigateTo', `/pages/map/detail?isPicker=${true}&come=index`)
+
+ // let _this = this
+ // let currentService = uni.getStorageSync('currentService')
+ // let nearService = uni.getStorageSync('nearService')
+ // if (currentService){
+ // }else if (nearService){
+ // uni.setStorageSync('currentService',nearService)
+ // }else{
+ // wx.getPrivacySetting({
+ // success: res=>{
+ // if (res.needAuthorization){
+ // this.$util.toNextRoute('redirectTo', '/pages/register/register')
+ // }else{
+ // wx.getFuzzyLocation({
+ // type:'gcj02',
+ // altitude:true,
+ // success: (res) =>{
+ // let seatInfo = {
+ // latitude:res.latitude,
+ // longitude:res.longitude
+ // }
+ // uni.setStorageSync('seatInfo', seatInfo);
+ // this.seat = seatInfo
+ // }
+ // })
+ // }
+ // }
+ // })
+ // }
+ },
// 拿到国庆数据
async handleGetNationalData(){
let req = {
@@ -1245,14 +1287,30 @@ export default {
}
const data = await request.$webGet('CommercialApi/BaseInfo/GetServerpartList',req)
console.log('datanearestService',data)
- // let res = {
- // SERVERPART_NAME:data.Result_Data.List[0].SERVERPART_NAME,//服务区
- // SPREGIONTYPE_NAME:data.Result_Data.List[0].SPREGIONTYPE_NAME,//片区
- // SPRegionType_ID:data.Result_Data.List[0].SPREGIONTYPE_ID,//片区id
- // Serverpart_ID:data.Result_Data.List[0].SERVERPART_ID,//服务区id
- // longitude:data.Result_Data.List[0].SERVERPART_X,
- // latitude:data.Result_Data.List[0].SERVERPART_Y,
- // }
+ let nearService = uni.getStorageSync('nearService')
+ if (!nearService){
+ let res = {
+ SERVERPART_NAME:data.Result_Data.List[0].SERVERPART_NAME,//服务区
+ SPREGIONTYPE_NAME:data.Result_Data.List[0].SPREGIONTYPE_NAME,//片区
+ SPRegionType_ID:data.Result_Data.List[0].SPREGIONTYPE_ID,//片区id
+ Serverpart_ID:data.Result_Data.List[0].SERVERPART_ID,//服务区id
+ longitude:data.Result_Data.List[0].SERVERPART_X,
+ latitude:data.Result_Data.List[0].SERVERPART_Y,
+ }
+ uni.setStorageSync('nearService',res)
+ }
+ let currentService = uni.getStorageSync('currentService')
+ if (!currentService){
+ let res = {
+ SERVERPART_NAME:data.Result_Data.List[0].SERVERPART_NAME,//服务区
+ SPREGIONTYPE_NAME:data.Result_Data.List[0].SPREGIONTYPE_NAME,//片区
+ SPRegionType_ID:data.Result_Data.List[0].SPREGIONTYPE_ID,//片区id
+ Serverpart_ID:data.Result_Data.List[0].SERVERPART_ID,//服务区id
+ longitude:data.Result_Data.List[0].SERVERPART_X,
+ latitude:data.Result_Data.List[0].SERVERPART_Y,
+ }
+ uni.setStorageSync('currentService',res)
+ }
// let res = {
@@ -1595,6 +1653,9 @@ export default {
this.handleGetAllCarTraffic()
}
},
+ handleShowYDModal(){
+ this.ydModal = !this.ydModal
+ },
getCarInfo(date){
const data = {
Statistics_Date:date?date:this.lastDay,
@@ -1714,6 +1775,16 @@ export default {
flag3 = true
let result = lastData.Result_Data
let progressAll = 0
+ this.currentPeriodData = result.MonthRevenueModel.CurAccountRoyalty
+ this.moneyRateList = [this.currentPeriodData.Royalty_Theory,this.currentPeriodData.SubRoyalty_Theory]
+ let sum = this.currentPeriodData.Royalty_Theory+this.currentPeriodData.SubRoyalty_Theory
+ if(sum===0){
+ this.ydRate = '-'
+ this.shopRate = '-'
+ }else{
+ this.ydRate = ((this.currentPeriodData.Royalty_Theory / sum)*100).toFixed(2)
+ this.shopRate = ((this.currentPeriodData.SubRoyalty_Theory / sum)*100).toFixed(2)
+ }
result.BusinessTypeList.forEach(item=>{
progressAll+=Number(item.value)
@@ -2003,7 +2074,6 @@ export default {
}
let index1= (this.showTableData.CashPay / 10000).toString().indexOf('.')
this.showTableData.CashPayChange = (this.showTableData.CashPay / 10000).toString().substring(0,index1+3)
-
// for (let key in this.showTableData){
// if (this.showTableData[key]){
// // 在有值的前提下
@@ -2284,7 +2354,7 @@ $iphoneHeight: env(safe-area-inset-bottom);
width: 100%;
box-sizing: border-box;
padding: 32rpx 16rpx;
- background: linear-gradient(135deg, #FFE3BA 0%, #FFF5E5 40%, #FFF1DB 78%, #FFDABC 100%); border-radius: 16rpx;
+ //background: linear-gradient(135deg, #FFE3BA 0%, #FFF5E5 40%, #FFF1DB 78%, #FFDABC 100%); border-radius: 16rpx;
margin-top: 32rpx;
.progress{
width: 100%;
@@ -2311,6 +2381,7 @@ $iphoneHeight: env(safe-area-inset-bottom);
border-radius: 10rpx;
box-shadow: 0rpx 0rpx 40rpx 0rpx rgba(244, 138, 143, 0.21);
z-index:9;
+
}
}
.message{
@@ -2402,6 +2473,21 @@ $iphoneHeight: env(safe-area-inset-bottom);
width: 144rpx;
height: 144rpx;
margin-right: 16rpx;
+ position: relative;
+ .haveNoticeBox{
+ position: absolute;
+ bottom: 0;left: 0;
+ transform: translateY(80%);
+ display: inline-block;
+ padding: 5px 10px;
+ background: #fff;
+ border-radius: 10rpx;
+ box-shadow: 0rpx 0rpx 40rpx 0rpx rgba(244, 138, 143, 0.21);
+ z-index:9;
+ .label{
+ display: block;
+ }
+ }
}
.rightBox{
flex: 1;
@@ -2434,7 +2520,7 @@ $iphoneHeight: env(safe-area-inset-bottom);
}
.noticeMoney{
font-size: 36rpx;
- font-family: DINAlternate, DINAlternate;
+ font-family: DINAlternate-Bold, DINAlternate;
font-weight: bold;
color: #160002;
line-height: 44rpx;
diff --git a/pages/map/commercialType.vue b/pages/map/commercialType.vue
new file mode 100644
index 0000000..a09b168
--- /dev/null
+++ b/pages/map/commercialType.vue
@@ -0,0 +1,211 @@
+
+
+
+
+
+
+
+
+ 展开
+
+
+
+
+
+
+
+
+ 隐藏
+
+
+
+ {{item.text}}
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/map/detail.vue b/pages/map/detail.vue
index 9b5f1be..34422ab 100644
--- a/pages/map/detail.vue
+++ b/pages/map/detail.vue
@@ -1,5 +1,8 @@