This commit is contained in:
ylj20011123 2026-01-13 13:48:40 +08:00
parent 2b45e72eb1
commit a4dbc6781c
7 changed files with 368 additions and 295 deletions

View File

@ -24,7 +24,6 @@
...data.data, ...data.data,
ip: data.ip ip: data.ip
} }
console.log('obj',obj)
uni.setStorageSync('userInfo', obj) uni.setStorageSync('userInfo', obj)
}, },
fail(error) { fail(error) {
@ -59,7 +58,6 @@
}) })
let _this = this let _this = this
console.log('app',this.user.WeChat_MiniProToken)
if (this.user.WeChat_MiniProToken) { if (this.user.WeChat_MiniProToken) {
await this.memberLogin() // await this.memberLogin() //
} else { } else {
@ -82,7 +80,7 @@
}); });
this.handleGetUserInfo() // this.handleGetUserInfo()
this.$util.addUserBehaviorNew({ intoRoute: '/' + options.path, outtoRoute: '' }) // this.$util.addUserBehaviorNew({ intoRoute: '/' + options.path, outtoRoute: '' }) //
@ -96,7 +94,6 @@
// var nowRoute = '/' + currentPage.route // url // var nowRoute = '/' + currentPage.route // url
// this.$util.addUserBehavior({intoRoute: nowRoute, outtoRoute: ''}) // // this.$util.addUserBehavior({intoRoute: nowRoute, outtoRoute: ''}) //
// } // }
console.log('App Show')
}, },
onHide: function (options) { onHide: function (options) {
let pages = getCurrentPages() // let pages = getCurrentPages() //
@ -107,7 +104,6 @@
let nowRoute = '/' + currentPage.route // url let nowRoute = '/' + currentPage.route // url
this.$util.addUserBehaviorNew({ intoRoute: '', outtoRoute: nowRoute }) // this.$util.addUserBehaviorNew({ intoRoute: '', outtoRoute: nowRoute }) //
} }
console.log('App Hide')
} }
} }
</script> </script>
@ -138,10 +134,12 @@
.process-box.uni-active { .process-box.uni-active {
padding-bottom: 30rpx; padding-bottom: 30rpx;
} }
.process-box process-unit:nth-last-child(1) .prosess-unit::before { .process-box process-unit:nth-last-child(1) .prosess-unit::before {
content: ''; content: '';
width: 0rpx; width: 0rpx;
} }
.ico, .ico,
.ico-s { .ico-s {
display: block; display: block;
@ -214,6 +212,7 @@
checkbox .wx-checkbox-input.wx-checkbox-input-checked::before { checkbox .wx-checkbox-input.wx-checkbox-input-checked::before {
font-size: 30rpx; font-size: 30rpx;
} }
/* #endif */ /* #endif */
button::after { button::after {
border: none; border: none;

View File

@ -42,7 +42,8 @@
<view class="tab-label">经营业态</view> <view class="tab-label">经营业态</view>
</view> </view>
<view class="tab-item" @click="selectTab('nowTab', 3)" <view class="tab-item" @click="selectTab('nowTab', 3)"
v-if="areaProgress.length && areaProgress.length > 1" :class="{ 'active': nowTab == 3 }"> v-if="areaProgress && areaProgress.length && areaProgress.length > 1"
:class="{ 'active': nowTab == 3 }">
<view class="tab-icon">🗺</view> <view class="tab-icon">🗺</view>
<view class="tab-label">区域营收</view> <view class="tab-label">区域营收</view>
</view> </view>
@ -55,7 +56,7 @@
</view> </view>
<view class="content-wrapper"> <view class="content-wrapper">
<view class="chart-section" v-show="nowTab == 1" <view class="chart-section" v-show="nowTab == 1"
v-if="modelProgress.length > 0 && theRequest.ProvinceCode == 340000"> v-if="modelProgress && modelProgress.length > 0 && theRequest.ProvinceCode == 340000">
<view class="chart-container chart-optimized"> <view class="chart-container chart-optimized">
<canvas canvas-id="modelCont" id="modelCont" class="modern-chart performance-chart" <canvas canvas-id="modelCont" id="modelCont" class="modern-chart performance-chart"
@touchstart="touchPie($event, 'modelCont')"></canvas> @touchstart="touchPie($event, 'modelCont')"></canvas>
@ -74,7 +75,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="chart-section" v-show="nowTab == 2" v-if="regionProgress.length > 0"> <view class="chart-section" v-show="nowTab == 2" v-if="regionProgress && regionProgress.length > 0">
<view class="chart-container chart-optimized"> <view class="chart-container chart-optimized">
<canvas canvas-id="businessCont" id="businessCont" class="modern-chart performance-chart" <canvas canvas-id="businessCont" id="businessCont" class="modern-chart performance-chart"
@touchstart="touchPie($event, 'businessCont')"></canvas> @touchstart="touchPie($event, 'businessCont')"></canvas>
@ -93,7 +94,7 @@
</view> </view>
</view> </view>
</view> </view>
<view class="chart-section" v-show="nowTab == 3" v-if="areaProgress.length > 0"> <view class="chart-section" v-show="nowTab == 3" v-if="areaProgress && areaProgress.length > 0">
<view class="chart-container chart-optimized"> <view class="chart-container chart-optimized">
<canvas canvas-id="areaCont" id="areaCont" class="modern-chart performance-chart" <canvas canvas-id="areaCont" id="areaCont" class="modern-chart performance-chart"
@touchstart="touchPie($event, 'areaCont')"></canvas> @touchstart="touchPie($event, 'areaCont')"></canvas>
@ -121,7 +122,7 @@
<text>车流分析概览</text> <text>车流分析概览</text>
</view> </view>
<view class="traffic-summary"> <view class="traffic-summary">
{{ bayonetProgress.length }}个区域 {{ bayonetProgress && bayonetProgress.length > 0 ? bayonetProgress.length : 0 }}个区域
</view> </view>
</view> </view>
@ -134,7 +135,8 @@
<view class="region-title">{{ item.name }}</view> <view class="region-title">{{ item.name }}</view>
</view> </view>
<view class="region-actions"> <view class="region-actions">
<view class="region-count">{{ item.list.length }}个服务区</view> <view class="region-count">{{ item.list && item.list.length > 0 ? item.list.length : 0
}}个服务区</view>
<view class="region-arrow" :class="{ 'collapsed': item.collapsed }"></view> <view class="region-arrow" :class="{ 'collapsed': item.collapsed }"></view>
</view> </view>
</view> </view>
@ -232,7 +234,7 @@
</view> </view>
</view> </view>
</view> </view>
<template v-if="theRequest && theRequest.GroupType == 1020 && regionList.length"> <template v-if="theRequest && theRequest.GroupType == 1020 && regionList && regionList.length">
<view class="service-list"> <view class="service-list">
<view v-for="(item, i) in regionList[0].child" :key="i" class="service-card" @click="toDetail(item)"> <view v-for="(item, i) in regionList[0].child" :key="i" class="service-card" @click="toDetail(item)">
<view class="service-header"> <view class="service-header">
@ -456,7 +458,7 @@ export default {
// //
var urlParts = decodedUrl.split('?') var urlParts = decodedUrl.split('?')
if (urlParts.length < 2) { if (urlParts && urlParts.length < 2) {
console.log('二维码URL没有参数使用默认值') console.log('二维码URL没有参数使用默认值')
return this.getDefaultParams() return this.getDefaultParams()
} }
@ -1168,6 +1170,9 @@ export default {
if (option.time.indexOf(' ') > -1) { if (option.time.indexOf(' ') > -1) {
dateForApi = option.time.split(' ')[0] dateForApi = option.time.split(' ')[0]
} }
console.log('dateForApi', dateForApi)
console.log('option.time', option.time)
// API YYYY-MM-DD // API YYYY-MM-DD
option.time = this.$util.cutDate(dateForApi, 'YYYY-MM-DD') option.time = this.$util.cutDate(dateForApi, 'YYYY-MM-DD')
option.month = this.$util.cutDate(option.time, 'YYYYMM') option.month = this.$util.cutDate(option.time, 'YYYYMM')

View File

@ -25,7 +25,7 @@
</div> </div>
<div class="uni-flex ai-base jc-between"> <div class="uni-flex ai-base jc-between">
<span class="center-num">{{ sMsg.totalMoneyShow }}</span> <span class="center-num">{{ sMsg.totalMoneyShow }}</span>
<span class="budgetamount"> <span class="budgetamount" v-if="currentProvinceCode !== '530000'">
<text class="budget-title">计划营收():</text> <text class="budget-title">计划营收():</text>
<text :class="sMsg.budgetAmount < sMsg.cashPay ? 'up-text-title' : 'down-text-title'"> <text :class="sMsg.budgetAmount < sMsg.cashPay ? 'up-text-title' : 'down-text-title'">
{{ sMsg.budgetamoutShow }} {{ sMsg.budgetamoutShow }}
@ -104,7 +104,7 @@
<div class="pie-content"> <div class="pie-content">
<div class="model-busniess">经营业态占比</div> <div class="model-busniess">经营业态占比</div>
<ServiceRevenuePie ref="serviceRevenuePie" v-show="ServiceRevenueData && ServiceRevenueData.length >= 2" <ServiceRevenuePie ref="serviceRevenuePie" v-show="ServiceRevenueData && ServiceRevenueData.length >= 2"
:data="ServiceRevenueData" @selectCate="selectCate" /> :data="ServiceRevenueData" @selectCate="selectCate" :currentProvinceCode="currentProvinceCode" />
<!-- 其余省份 --> <!-- 其余省份 -->
<!-- <canvas v-else-if="sellData.length>0" canvas-id="sellCate" id="sellCate" class="operation-cate-content" @click="touchPie($event,'sellCate')"></canvas> --> <!-- <canvas v-else-if="sellData.length>0" canvas-id="sellCate" id="sellCate" class="operation-cate-content" @click="touchPie($event,'sellCate')"></canvas> -->
<div class="model-busniess progress-section-enter"> <div class="model-busniess progress-section-enter">
@ -1059,7 +1059,8 @@ cover-view.page-title {
/* 门店卡片 */ /* 门店卡片 */
.shop-card { .shop-card {
width: 192rpx; // width: 192rpx;
width: calc((100% - 40rpx) / 3);
height: 240rpx; height: 240rpx;
border-radius: 16rpx; border-radius: 16rpx;
color: #fff; color: #fff;

View File

@ -1,18 +1,12 @@
<template> <template>
<uni-ec-canvas <uni-ec-canvas class="uni-ec-canvas" id="revenuecharts" ref="revenuecharts" canvas-id="revenuecharts" :ec="ec"
class="uni-ec-canvas" @inited="inited"></uni-ec-canvas>
id="revenuecharts"
ref="revenuecharts"
canvas-id="revenuecharts"
:ec="ec"
@inited="inited"
></uni-ec-canvas>
</template> </template>
<script> <script>
import uniEcCanvas from './uni-ec-canvas/uni-ec-canvas.vue'; import uniEcCanvas from './uni-ec-canvas/uni-ec-canvas.vue';
export default { export default {
props:['data'], props: ['data', 'currentProvinceCode'],
components: { components: {
uniEcCanvas uniEcCanvas
}, },
@ -31,14 +25,14 @@
type: 'pie', type: 'pie',
selectedMode: 'single', selectedMode: 'single',
radius: [0, '32%'], radius: [0, '32%'],
center: ['50%','50%'], center: ['40%', '50%'],
startAngle: 40, startAngle: 40,
label: { label: {
// position: 'inner', // position: 'inner',
formatter: '{b} \n {d}% ', // formatter: '{b} \n {d}% ',
fontSize: 13, // fontSize: 13,
color: '#D1D1D1', // color: '#D1D1D1',
// show: false, show: false,
}, },
startAngle: 115, startAngle: 115,
labelLine: { labelLine: {
@ -60,7 +54,7 @@
name: '业态', name: '业态',
type: 'pie', type: 'pie',
radius: ['48%', '72%'], radius: ['48%', '72%'],
center: ['50%','50%'], center: ['40%', '50%'],
labelLine: { labelLine: {
length: 30, length: 30,
}, },
@ -76,7 +70,39 @@
...this.data[1] ...this.data[1]
] ]
} }
] ],
grid: {
left: '5%',
right: '25%', //
top: '10%',
bottom: '10%',
containLabel: false
},
legend: this.currentProvinceCode === '530000' ? {
show: true,
orient: 'vertical',
top: 'center',
right: 10,
} : {
show: true,
orient: 'vertical',
top: 20,
right: 10,
width: 100, //
height: 200, // canvas263px
type: 'scroll', //
pageButtonPosition: 'end', //
pageIconSize: 10, //
pageIconColor: '#666', //
pageIconInactiveColor: '#ccc', //
itemGap: 6, //
itemWidth: 18, //
itemHeight: 10, //
textStyle: {
fontSize: 10, //
lineHeight: 14 //
}
}
} }
} }
@ -111,5 +137,4 @@
margin-top: 40rpx; margin-top: 40rpx;
display: block; display: block;
} }
</style> </style>

View File

@ -15,6 +15,7 @@ const methods = {
*/ */
// let regionList = [] // 营收上传列表 reginListModel[] // let regionList = [] // 营收上传列表 reginListModel[]
this.groupType = obj.GroupType this.groupType = obj.GroupType
this.provinceCode = obj.ProvinceCode
const requestParamas = { const requestParamas = {
Statistics_Date: obj.time, Statistics_Date: obj.time,
Statistics_Month: obj.month, Statistics_Month: obj.month,
@ -71,6 +72,15 @@ const methods = {
}, [], [], [], []] }, [], [], [], []]
} }
// 云南全部自营 就接触注释 下面传入也变成newDataList
// let newDataList = []
// if (obj.ProvinceCode === '530000') {
// newDataList = data.Result_Data.List.filter(m => m.Business_TypeName === '自营')
// } else {
// newDataList = data.Result_Data.List
// }
if (isServerPartDetail) { // 是服务区营收推送页面 if (isServerPartDetail) { // 是服务区营收推送页面
return _this.getSeverpartReginList(data.Result_Data.List, busniessCounts.Result_Data.List, return _this.getSeverpartReginList(data.Result_Data.List, busniessCounts.Result_Data.List,
tradeData.Result_Data.List, budgetAmount.Result_Data.List) tradeData.Result_Data.List, budgetAmount.Result_Data.List)
@ -112,8 +122,17 @@ const methods = {
oldData.totalOffAmount += newData.TotalOffAmount oldData.totalOffAmount += newData.TotalOffAmount
oldData.mobilePayment += newData.MobilePayment oldData.mobilePayment += newData.MobilePayment
oldData.cashPay += newData.CashPay oldData.cashPay += newData.CashPay
oldData.diffLessPrice += newData.Different_Price_Less // oldData.diffLessPrice += newData.Different_Price_Less
oldData.diffMorePrice += newData.Different_Price_More // oldData.diffMorePrice += newData.Different_Price_More
if (this.provinceCode === '530000') {
if (newData.Business_TypeName === '自营') {
oldData.diffLessPrice += newData.Different_Price_Less || 0
oldData.diffMorePrice += newData.Different_Price_More || 0
}
} else {
oldData.diffLessPrice += newData.Different_Price_Less || 0
oldData.diffMorePrice += newData.Different_Price_More || 0
}
if (newData.BusinessType == 1000) { // 商超 if (newData.BusinessType == 1000) { // 商超
oldData.scCount = oldData.scCount ? oldData.scCount + 1 : 1 oldData.scCount = oldData.scCount ? oldData.scCount + 1 : 1
@ -129,8 +148,20 @@ const methods = {
oldData.totalOffAmount = newData.TotalOffAmount oldData.totalOffAmount = newData.TotalOffAmount
oldData.mobilePayment = newData.MobilePayment oldData.mobilePayment = newData.MobilePayment
oldData.cashPay = newData.CashPay oldData.cashPay = newData.CashPay
oldData.diffLessPrice = newData.Different_Price_Less // oldData.diffLessPrice = newData.Different_Price_Less
oldData.diffMorePrice = newData.Different_Price_More // oldData.diffMorePrice = newData.Different_Price_More
if (this.provinceCode === '530000') {
if (newData.Business_TypeName === '自营') {
oldData.diffLessPrice = newData.Different_Price_Less || 0
oldData.diffMorePrice = newData.Different_Price_More || 0
} else {
oldData.diffLessPrice = 0
oldData.diffMorePrice = 0
}
} else {
oldData.diffLessPrice = newData.Different_Price_Less || 0
oldData.diffMorePrice = newData.Different_Price_More || 0
}
if (newData.BusinessType == 1000) { // 商超 if (newData.BusinessType == 1000) { // 商超

View File

@ -1360,11 +1360,24 @@ export default {
if (option.ProvinceCode) { if (option.ProvinceCode) {
// - // -
if (toSnhuiPageProvinceCode.indexOf(parseInt(option.ProvinceCode)) > -1) { if (toSnhuiPageProvinceCode.indexOf(parseInt(option.ProvinceCode)) > -1) {
// 怀
let date = new Date(option.time)
let y = date.getFullYear()
let m = date.getMonth() + 1
let d = date.getDate()
if (m < 10) {
m = '0' + m
}
if (d < 10) {
d = '0' + d
}
// loading // loading
const url = "/pages/everdayRenven/AnhuiIndex?ProvinceCode=" + const url = "/pages/everdayRenven/AnhuiIndex?ProvinceCode=" +
option.ProvinceCode + option.ProvinceCode +
"&time=" + "&time=" +
option.time + `${y}-${m}-${d}` +
// option.time +
"&GroupType=" + "&GroupType=" +
option.GroupType + option.GroupType +
"&ServerpartIds=" + "&ServerpartIds=" +

View File

@ -27,7 +27,6 @@
<image :src="menus[item.id]==1?item.imagePath:item.noImagePath" mode="aspectFill"></image> <image :src="menus[item.id]==1?item.imagePath:item.noImagePath" mode="aspectFill"></image>
<text class="ico-t-count" v-if="toDoMsg[item.id]>0">{{toDoMsg[item.id]> 99 ? '99+' : toDoMsg[item.id]}}</text> <text class="ico-t-count" v-if="toDoMsg[item.id]>0">{{toDoMsg[item.id]> 99 ? '99+' : toDoMsg[item.id]}}</text>
<text class="menu-text" :class="{'noFn': !menus[item.id] || menus[item.id]==0}">{{item.name}}</text> <text class="menu-text" :class="{'noFn': !menus[item.id] || menus[item.id]==0}">{{item.name}}</text>
</view> </view>