This commit is contained in:
cclu 2023-03-03 09:34:47 +08:00
parent 70c6d91160
commit 9da17411ba
5 changed files with 20 additions and 8 deletions

View File

@ -61,13 +61,17 @@
}, },
"appid" : "wxa99ef047735c031e", "appid" : "wxa99ef047735c031e",
"setting" : { "setting" : {
"urlCheck" : true, "urlCheck" : false,
"es6" : true, "es6" : true,
"minified" : true, "minified" : true,
"postcss" : true "postcss" : true
}, },
"usingComponents" : true, "usingComponents" : true,
"permission" : {}, "permission" : {
"scope.userLocation" : {
"desc" : "获取位置信息用于展示"
}
},
"uniStatistics" : { "uniStatistics" : {
"enable" : false "enable" : false
} }

View File

@ -4,7 +4,8 @@
<AnhHead :today="today" :headMsg="headMsg" :lastDay="lastDay" <AnhHead :today="today" :headMsg="headMsg" :lastDay="lastDay"
:provinceCode="theRequest&&theRequest.ProvinceCode" @bindDateChange="bindDateChange" :isup="isup" :provinceCode="theRequest&&theRequest.ProvinceCode" @bindDateChange="bindDateChange" :isup="isup"
:nowDay="nowDay" :selectDate="theRequest&&theRequest.time" @toggle="toggleCard"></AnhHead> :nowDay="nowDay" :selectDate="theRequest&&theRequest.time" @toggle="toggleCard"></AnhHead>
<view style="background-color: #fff;"> <!--营收占比的上面组件 -->
<view style="background-color: #fff;">
<!--安徽省 昨日营收占比 --> <!--安徽省 昨日营收占比 -->
<div v-if="theRequest && theRequest.GroupType!=1010"> <div v-if="theRequest && theRequest.GroupType!=1010">
<div class="uni-inline-item modle-title"> <div class="uni-inline-item modle-title">
@ -111,6 +112,8 @@
</div> </div>
</div> </div>
</template> </template>
<!-- 第二种情况 v-if已经区分 -->
<template v-else-if="theRequest && theRequest.GroupType==1000"> <template v-else-if="theRequest && theRequest.GroupType==1000">
<!-- <div class="region-title" :class="{'active':regionShow1}">省内区域</div> --> <!-- <div class="region-title" :class="{'active':regionShow1}">省内区域</div> -->
<div v-show="regionShow1"> <div v-show="regionShow1">
@ -267,7 +270,6 @@
let canToSeverpartIndex = !provinceId ? this.hasSeverpartIndexAuthority : this.PushAuthority.some(n => { let canToSeverpartIndex = !provinceId ? this.hasSeverpartIndexAuthority : this.PushAuthority.some(n => {
return n.ProvinceCode == provinceId && n.ShopAnalysisType == 1 return n.ProvinceCode == provinceId && n.ShopAnalysisType == 1
}) })
this.$util.toNextRoute('navigateTo', canToSeverpartIndex ? severpartIndexPath : serverpartUploadPath) this.$util.toNextRoute('navigateTo', canToSeverpartIndex ? severpartIndexPath : serverpartUploadPath)
item.visited = true item.visited = true
@ -317,6 +319,7 @@
const ctx = uni.createCanvasContext(obj.id, this); const ctx = uni.createCanvasContext(obj.id, this);
data.series = data.series.concat(obj.data) data.series = data.series.concat(obj.data)
rincanvas[obj.id] = new uCharts({ rincanvas[obj.id] = new uCharts({
//
// $this: this, // $this: this,
// canvasId: obj.id, // canvasId: obj.id,
context: ctx, context: ctx,
@ -437,10 +440,10 @@
totalData.budgetamoutShow = totalData.budgetAmount ? _this.$util.fmoney(totalData.budgetAmount) : totalData.budgetamoutShow = totalData.budgetAmount ? _this.$util.fmoney(totalData.budgetAmount) :
0.00 // 0.00 //
totalData.diffBudgetTotal = Math.abs(totalData.budgetAmount - totalData.cashPay) // totalData.diffBudgetTotal = Math.abs(totalData.budgetAmount - totalData.cashPay) //
totalData.diffBili = totalData.budgetAmount > 0 ? this.$util.fmoney((headMsg.diffBudgetTotal / totalData.diffBili = totalData.budgetAmount > 0 ? this.$util.fmoney(( totalData.diffBudgetTotal /
totalData.budgetAmount) * 100, 2) : '100' // totalData.budgetAmount) * 100, 2) : '100' //
this.headMsg = totalData _this.headMsg = totalData
// //
const [progressList, pieList] = this.getProgressData(busniessTypePie, totalData.cashPay) const [progressList, pieList] = this.getProgressData(busniessTypePie, totalData.cashPay)
this.modelProgress = progressList this.modelProgress = progressList
@ -552,7 +555,6 @@
this.opacity = (options.scrollTop - 30) / 68 this.opacity = (options.scrollTop - 30) / 68
}, },
onLoad(option) { onLoad(option) {
uni.showLoading({ uni.showLoading({
title: '正在加载...' title: '正在加载...'
}) })
@ -567,6 +569,8 @@
if (this.PushAuthority.length > 0) { if (this.PushAuthority.length > 0) {
this.theRequest = this.defaultMsg() || {} this.theRequest = this.defaultMsg() || {}
console.log('theRequest',this.theRequest)
this.theRequest.time = this.lastDay this.theRequest.time = this.lastDay
this.theRequest.month = this.$util.cutDate(this.lastDay, 'YYYYMM') this.theRequest.month = this.$util.cutDate(this.lastDay, 'YYYYMM')
this.initData() this.initData()

View File

@ -222,6 +222,7 @@
CarAnalysis CarAnalysis
}, },
onLoad(option) { onLoad(option) {
console.log(option)
_self = this _self = this
uni.showLoading({ uni.showLoading({
title: '正在加载...' title: '正在加载...'
@ -543,6 +544,7 @@
_this.pageData = res.Result_Data _this.pageData = res.Result_Data
if (res.Result_Data.listBusinessModel) { if (res.Result_Data.listBusinessModel) {
let list = JSON.parse(JSON.stringify(res.Result_Data.listBusinessModel)) let list = JSON.parse(JSON.stringify(res.Result_Data.listBusinessModel))
console.log('list',list)
if (list.length > 0) { if (list.length > 0) {
let all = { let all = {
Bussiness_Name: '全部', Bussiness_Name: '全部',
@ -583,7 +585,7 @@
// totalData.dayOfShow = this.$util.cutDate(theRequest.time, 'MMDD') // totalData.dayOfShow = this.$util.cutDate(theRequest.time, 'MMDD')
totalData.budgetamoutShow = totalData.budgetAmount ? _this.$util.fmoney(totalData.budgetAmount) : 0.00 totalData.budgetamoutShow = totalData.budgetAmount ? _this.$util.fmoney(totalData.budgetAmount) : 0.00
totalData.diffBudgetTotal = Math.abs(totalData.budgetAmount - totalData.cashPay) totalData.diffBudgetTotal = Math.abs(totalData.budgetAmount - totalData.cashPay)
totalData.diffBili = totalData.budgetAmount > 0 ? this.$util.fmoney((headMsg.diffBudgetTotal / totalData.diffBili = totalData.budgetAmount > 0 ? this.$util.fmoney((totalData.diffBudgetTotal /
totalData.budgetAmount) * 100, 2) : '100' totalData.budgetAmount) * 100, 2) : '100'
this.sMsg = totalData this.sMsg = totalData

View File

@ -262,6 +262,7 @@
AppletMenuStatus: this.membershipType === 9999 ? '1,2' : '1' AppletMenuStatus: this.membershipType === 9999 ? '1,2' : '1'
}) })
this.modelMenu = res.Result_Data.List this.modelMenu = res.Result_Data.List
console.log('modelMenu',this.modelMenu)
} }
}, },
onReady() { onReady() {

View File

@ -42,6 +42,7 @@
...mapActions(['updateUser']), ...mapActions(['updateUser']),
...mapMutations(['setUser']), ...mapMutations(['setUser']),
getPhoneNumber (e) { getPhoneNumber (e) {
console.log(e)
uni.showLoading({ uni.showLoading({
title:'正在加载...', title:'正在加载...',
mask:true mask:true