@@ -773,8 +778,8 @@ export default {
popupShow:false,
popup:true,
nationalDayList:[
- {title:'当日营收',unit:'/万元',value:'',bg:'https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/revenueBg.svg'},
- {title:'当日车流',unit:'/辆',value:'',bg:'https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/carIcon.svg'},
+ {title:'营收',unit:'/万元',value:'',bg:'https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/revenueBg.svg'},
+ {title:'车流',unit:'/万辆',value:'',bg:'https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/carIcon.svg'},
{title:'车流增幅Top1',unit:'',value:'',bg:'https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/add.png'},
],
tabTypeList:[
@@ -872,8 +877,11 @@ export default {
user:{
// 新用户刚进来的时候可能onLoad会执行不了 监听他的user变化确保能请求
handler:function (value){
+ console.log('watch',value)
let userInfo = uni.getStorageSync('vuex')
userInfo = JSON.parse(userInfo)
+ console.log('userInfo',userInfo)
+ console.log('this.isReturn',this.isReturn)
if (this.isReturn===true){
// 无权限就会跳转到无数据的页面
if (userInfo.userData.AuthorityInfo['89a1f248-2113-4d57-84b1-c2e6edb9e8ee']===1){
@@ -889,24 +897,45 @@ export default {
}
// 拿到用户当前的经纬度位置
this.seat = uni.getStorageSync('seatInfo')
+ console.log('this.seat',this.seat)
if (!this.seat){
//获取用户的经纬度位置存在stroge里面
- wx.getFuzzyLocation({
- type:'gcj02',
- altitude:true,
- success: (res) =>{
- let seatInfo = {
+ console.log('1111')
+ if (wx.getPrivacySetting){
+ wx.getPrivacySetting({
+ success: res=>{
+ console.log('res123123',res)
+ if (res.needAuthorization){
+ this.$util.toNextRoute('redirectTo', '/pages/register/register')
+ }else{
+ wx.getFuzzyLocation({
+ type:'gcj02',
+ altitude:true,
+ success: (res) =>{
+ console.log('res',res)
+ let seatInfo = {
latitude:res.latitude,
longitude:res.longitude
+ }
+ uni.setStorageSync('seatInfo', seatInfo);
+ this.seat = seatInfo
}
- uni.setStorageSync('seatInfo', seatInfo);
- this.seat = seatInfo
+ })
}
+ }
})
+ }else{
+ uni.showModal({
+ title: '提示',
+ content: '当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。'
+ })
+ return
+ }
}else{
//拿到最近服务区的数据
this.nearestService()
}
+ console.log('this.isReturn',this.isReturn)
if (!this.isReturn){
this.getData(this.option)
this.handleNoticeMonth()
@@ -1059,7 +1088,7 @@ export default {
ShowGrowthRate:true
}
const data = await request.$webGet('CommercialApi/BigData/GetBayonetGrowthAnalysis',req)
- this.nationalDayList[1].value = data.Result_Data.sumEntryCount?this.$util.noDecimal(data.Result_Data.sumEntryCount):''
+ this.nationalDayList[1].value = data.Result_Data.sumEntryCount?this.$util.fmoney(Number((data.Result_Data.sumEntryCount / 10000).toFixed(2))):''
this.nationalDayList[2].value = data.Result_Data.GrowthList[0].Entry_GrowthRate>0?'+' + data.Result_Data.GrowthList[0].Entry_GrowthRate + '%':'-' + data.Result_Data.GrowthList[0].Entry_GrowthRate + '%'
console.log('拿到国庆数据data',data)
},
@@ -1105,6 +1134,7 @@ export default {
ProvinceCode:'340000'
}
const data = await request.$webGet('CommercialApi/Suggestion/GetMemberUnreadData',req)
+ console.log('getSuggestion',data)
if (data.Result_Data.data){
if (data.Result_Data.data !== '0'){
this.isShow = true
@@ -1770,6 +1800,7 @@ export default {
}
time = `${y}${m}`
}
+ console.log('time',time)
const req = {
Province_Code:this.useInfo.userData.ProvinceCode || '340000',
Statistics_Date:time
@@ -3575,39 +3606,53 @@ $iphoneHeight: env(safe-area-inset-bottom);
width: 100%;
display: flex;
align-items: center;
- .lanternImg{
- width: 104rpx;
- height: 126rpx;
- margin-left: 8rpx;
- }
- .titleBox{
- width: 300rpx;
- height: 60rpx;
- background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/titleBox.svg");
- background-repeat: no-repeat;
- background-size: contain;
- padding-left: 36rpx;
- box-sizing: border-box;
+ justify-content: space-between;
+ .nationalTopLeft{
display: flex;
- transform: translateX(-30px);
align-items: center;
- .title{
+ .lanternImg{
+ width: 104rpx;
+ height: 126rpx;
+ margin-left: 8rpx;
+ }
+ .titleBox{
+ width: 300rpx;
+ height: 60rpx;
+ background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/nationalDay/titleBox.svg");
+ background-repeat: no-repeat;
+ background-size: contain;
+ padding-left: 36rpx;
+ box-sizing: border-box;
display: flex;
+ transform: translateX(-30px);
align-items: center;
- .text{
- font-size: 32rpx;
- font-family: PingFangSC-Medium, PingFang SC;
- font-weight: 600;
- color: #E93113;
- line-height: 44rpx;
- }
- .rightIcon{
- width: 32rpx;
- height: 32rpx;
- margin-left: 16rpx;
+ .title{
+ display: flex;
+ align-items: center;
+ .text{
+ font-size: 32rpx;
+ font-family: PingFangSC-Medium, PingFang SC;
+ font-weight: 600;
+ color: #E93113;
+ line-height: 44rpx;
+ }
+ .rightIcon{
+ width: 32rpx;
+ height: 32rpx;
+ margin-left: 16rpx;
+ }
}
}
}
+ .nationalTopRight{
+ .timeText{
+ font-size: 28rpx;
+ font-family: PingFangSC-Regular, PingFang SC;
+ font-weight: 400;
+ color: #E93113;
+ line-height: 34rpx;
+ }
+ }
}
.nationalContent{
width: 100%;
diff --git a/pages/nationalPage/index.vue b/pages/nationalPage/index.vue
index 036ce27..16d9363 100644
--- a/pages/nationalPage/index.vue
+++ b/pages/nationalPage/index.vue
@@ -2,8 +2,8 @@