'update'
This commit is contained in:
parent
23fb9a310a
commit
8fcf510dbc
@ -90,7 +90,7 @@ const cutDate = (dd, type, daynum) => {
|
|||||||
var s = dd.getSeconds() < 10 ? '0' + dd.getSeconds() : dd.getSeconds()
|
var s = dd.getSeconds() < 10 ? '0' + dd.getSeconds() : dd.getSeconds()
|
||||||
return type.replace('YYYY', y).replace('MM', m).replace('DD', d).replace('hh', h).replace('mm', mi).replace('ss', s)
|
return type.replace('YYYY', y).replace('MM', m).replace('DD', d).replace('hh', h).replace('mm', mi).replace('ss', s)
|
||||||
}
|
}
|
||||||
// 金额格式化处理方法
|
// 四舍五入的保留两位小数的 金额化数字方法
|
||||||
const fmoney = (s, n) => {
|
const fmoney = (s, n) => {
|
||||||
/*
|
/*
|
||||||
* 参数说明:
|
* 参数说明:
|
||||||
@ -118,7 +118,7 @@ const fmoney = (s, n) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// 没有小数点的金额格式化
|
// 四舍五入不保留小数的 金额化数字方法
|
||||||
function noDecimal(s){
|
function noDecimal(s){
|
||||||
console.log('s',s)
|
console.log('s',s)
|
||||||
let fuhao = ''; //如果数字小于零则值为-
|
let fuhao = ''; //如果数字小于零则值为-
|
||||||
@ -487,7 +487,7 @@ function handleReduceAMonth(nowTime,newTime){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 不四舍五入 保留两位小数的金额化方法
|
||||||
function getMoney(money){
|
function getMoney(money){
|
||||||
if (!money || isNaN(money)) return "0.00";
|
if (!money || isNaN(money)) return "0.00";
|
||||||
let num = parseFloat(money + '') + '';
|
let num = parseFloat(money + '') + '';
|
||||||
@ -511,7 +511,7 @@ function getMoney(money){
|
|||||||
|
|
||||||
return num;
|
return num;
|
||||||
}
|
}
|
||||||
|
// 不四舍五入 不保留两位小数的金额化方法
|
||||||
function getMoneyNoDecimal(money){
|
function getMoneyNoDecimal(money){
|
||||||
if (!money || isNaN(money)) return "0";
|
if (!money || isNaN(money)) return "0";
|
||||||
let num = parseFloat(money + '') + '';
|
let num = parseFloat(money + '') + '';
|
||||||
@ -531,7 +531,35 @@ function getMoneyNoDecimal(money){
|
|||||||
}
|
}
|
||||||
return num;
|
return num;
|
||||||
}
|
}
|
||||||
|
// 封装的排序数组的方法
|
||||||
|
// list 为排序的数组 field 为按照那个字段排序 type 正序还是倒序 1正 2倒
|
||||||
|
const handleGetSortList = (list,field,type)=>{
|
||||||
|
if (list && list.length>0){
|
||||||
|
let len = list.length
|
||||||
|
if (type===2){
|
||||||
|
for (var i = 0; i < len - 1;i++){
|
||||||
|
for (var j = 0; j < len - 1 - i; j++) {
|
||||||
|
if (list[i][field]<list[j][field]){
|
||||||
|
var temp = list[j];
|
||||||
|
list[j] = list[j + 1];
|
||||||
|
list[j + 1] = temp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
for (var i = 0; i < len - 1;i++){
|
||||||
|
for (var j = 0; j < len - 1 - i; j++) {
|
||||||
|
if (list[i][field]>list[j][field]){
|
||||||
|
var temp = list[j];
|
||||||
|
list[j] = list[j + 1];
|
||||||
|
list[j + 1] = temp;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -555,6 +583,7 @@ export default {
|
|||||||
// bMapToQQMap,
|
// bMapToQQMap,
|
||||||
playVideo,
|
playVideo,
|
||||||
getMoney,
|
getMoney,
|
||||||
|
handleGetSortList,
|
||||||
getMoneyNoDecimal,
|
getMoneyNoDecimal,
|
||||||
getThisMonthDateList,
|
getThisMonthDateList,
|
||||||
handleReduceAMonth
|
handleReduceAMonth
|
||||||
|
|||||||
@ -149,7 +149,6 @@ export default {
|
|||||||
|
|
||||||
this.seat = uni.getStorageSync('seatInfo')
|
this.seat = uni.getStorageSync('seatInfo')
|
||||||
let _this = this
|
let _this = this
|
||||||
console.log('this.seat11',this.seat)
|
|
||||||
if (this.seat){
|
if (this.seat){
|
||||||
//获取用户的经纬度位置存在stroge里面
|
//获取用户的经纬度位置存在stroge里面
|
||||||
wx.getFuzzyLocation({
|
wx.getFuzzyLocation({
|
||||||
@ -214,7 +213,6 @@ export default {
|
|||||||
ServerpartId:item.SERVERPART_ID
|
ServerpartId:item.SERVERPART_ID
|
||||||
}
|
}
|
||||||
const total = await request.$webGet('CommercialApi/BaseInfo/GetServerpartInfo',req)
|
const total = await request.$webGet('CommercialApi/BaseInfo/GetServerpartInfo',req)
|
||||||
console.log('total',total)
|
|
||||||
uni.navigateTo({
|
uni.navigateTo({
|
||||||
url:`/pages/commercialBI/map?longitude=${total.Result_Data.ServerpartInfo?total.Result_Data.ServerpartInfo.SERVERPART_X:''}&latitude=${total.Result_Data.ServerpartInfo?total.Result_Data.ServerpartInfo.SERVERPART_Y:''}&id=${item.SERVERPART_ID}`
|
url:`/pages/commercialBI/map?longitude=${total.Result_Data.ServerpartInfo?total.Result_Data.ServerpartInfo.SERVERPART_X:''}&latitude=${total.Result_Data.ServerpartInfo?total.Result_Data.ServerpartInfo.SERVERPART_Y:''}&id=${item.SERVERPART_ID}`
|
||||||
})
|
})
|
||||||
@ -250,7 +248,6 @@ export default {
|
|||||||
this.tableList = this.handleList(res.Result_Data.List,this.serviceList)
|
this.tableList = this.handleList(res.Result_Data.List,this.serviceList)
|
||||||
this.tableList = this.handleSortList(this.tableList)
|
this.tableList = this.handleSortList(this.tableList)
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
console.log('this.tableList',this.tableList)
|
|
||||||
})
|
})
|
||||||
}else if(val === 1 ){
|
}else if(val === 1 ){
|
||||||
const req= {
|
const req= {
|
||||||
@ -266,7 +263,6 @@ export default {
|
|||||||
this.tableList = this.handleList(res.Result_Data.List,this.serviceList)
|
this.tableList = this.handleList(res.Result_Data.List,this.serviceList)
|
||||||
this.tableList = this.handleSortList(this.tableList)
|
this.tableList = this.handleSortList(this.tableList)
|
||||||
uni.hideLoading()
|
uni.hideLoading()
|
||||||
console.log('this.tableList',this.tableList)
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -1302,6 +1302,7 @@ import RateCharts from "./components/rateCharts.vue";
|
|||||||
import SliderPage from "./components/sliderPage.vue";
|
import SliderPage from "./components/sliderPage.vue";
|
||||||
import UniDataSelect from "../../components/uni-data-select/uni-data-select.vue";
|
import UniDataSelect from "../../components/uni-data-select/uni-data-select.vue";
|
||||||
import NumberScroll from "./components/numberScroll.vue";
|
import NumberScroll from "./components/numberScroll.vue";
|
||||||
|
import moment from "moment";
|
||||||
var rincanvas = {};
|
var rincanvas = {};
|
||||||
export default {
|
export default {
|
||||||
components: {SliderPage, RateCharts, MonthCharts, Tabbar,uniPopup,UniDataSelect,NumberScroll},
|
components: {SliderPage, RateCharts, MonthCharts, Tabbar,uniPopup,UniDataSelect,NumberScroll},
|
||||||
@ -2046,7 +2047,8 @@ export default {
|
|||||||
handleGetWarningList(){
|
handleGetWarningList(){
|
||||||
const date = new Date()
|
const date = new Date()
|
||||||
// 拿到当前小时的前一小时
|
// 拿到当前小时的前一小时
|
||||||
let h = date.getHours() - 1
|
// let h = 24
|
||||||
|
let h = date.getHours()
|
||||||
let y = date.getFullYear()
|
let y = date.getFullYear()
|
||||||
let m = date.getMonth() + 1
|
let m = date.getMonth() + 1
|
||||||
if (m<10){
|
if (m<10){
|
||||||
@ -2056,13 +2058,15 @@ export default {
|
|||||||
if (d<10){
|
if (d<10){
|
||||||
d = '0'+d
|
d = '0'+d
|
||||||
}
|
}
|
||||||
|
|
||||||
const req= {
|
const req= {
|
||||||
// this.single
|
// this.single
|
||||||
StatisticsDate: `${y}-${m}-${d}`,
|
StatisticsDate: h===0 || h===24?moment(`${y}-${m}-${d}`).subtract(1, 'day').format('YYYY-MM-DD'):`${y}-${m}-${d}`,
|
||||||
StatisticsHour:h,
|
StatisticsHour:h===0 || h===24?23:h - 1,
|
||||||
StatisticsType:1,
|
StatisticsType:1,
|
||||||
ShowCount:20
|
ShowCount:20
|
||||||
}
|
}
|
||||||
|
console.log('12312312req',req)
|
||||||
request.$webGet('CommercialApi/BigData/GetBayonetWarning',req).then(res=>{
|
request.$webGet('CommercialApi/BigData/GetBayonetWarning',req).then(res=>{
|
||||||
if (res.Result_Data.List && res.Result_Data.List.length>0){
|
if (res.Result_Data.List && res.Result_Data.List.length>0){
|
||||||
this.special = true
|
this.special = true
|
||||||
|
|||||||
@ -19,6 +19,7 @@
|
|||||||
// 主题颜色配置:如每个图表类型需要不同主题,请在对应图表类型上更改color属性
|
// 主题颜色配置:如每个图表类型需要不同主题,请在对应图表类型上更改color属性
|
||||||
const color = ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'];
|
const color = ['#1890FF', '#91CB74', '#FAC858', '#EE6666', '#73C0DE', '#3CA272', '#FC8452', '#9A60B4', '#ea7ccc'];
|
||||||
|
|
||||||
|
// 四舍五入的保留两位小数的 金额化数字方法
|
||||||
const fmoney = (s, n) => {
|
const fmoney = (s, n) => {
|
||||||
/*
|
/*
|
||||||
* 参数说明:
|
* 参数说明:
|
||||||
@ -44,7 +45,7 @@ const fmoney = (s, n) => {
|
|||||||
return fuhao + [...t].reverse().join("") + "." + r;
|
return fuhao + [...t].reverse().join("") + "." + r;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// 四舍五入不保留小数的 金额化数字方法
|
||||||
const noDecimal = (s) =>{
|
const noDecimal = (s) =>{
|
||||||
let fuhao = ''; //如果数字小于零则值为-
|
let fuhao = ''; //如果数字小于零则值为-
|
||||||
if (s < 0) {
|
if (s < 0) {
|
||||||
@ -59,7 +60,7 @@ const noDecimal = (s) =>{
|
|||||||
}
|
}
|
||||||
return fuhao + [...t].reverse().join("")
|
return fuhao + [...t].reverse().join("")
|
||||||
}
|
}
|
||||||
|
// 不四舍五入 保留两位小数的金额化方法
|
||||||
const getMoney = (money)=>{
|
const getMoney = (money)=>{
|
||||||
if (!money || isNaN(money)) return "0.00";
|
if (!money || isNaN(money)) return "0.00";
|
||||||
let num = parseFloat(money + '') + '';
|
let num = parseFloat(money + '') + '';
|
||||||
@ -83,7 +84,7 @@ const getMoney = (money)=>{
|
|||||||
|
|
||||||
return num;
|
return num;
|
||||||
}
|
}
|
||||||
|
// 不四舍五入 不保留两位小数的金额化方法
|
||||||
const getMoneyNoDecimal = (money)=>{
|
const getMoneyNoDecimal = (money)=>{
|
||||||
if (!money || isNaN(money)) return "0";
|
if (!money || isNaN(money)) return "0";
|
||||||
let num = parseFloat(money + '') + '';
|
let num = parseFloat(money + '') + '';
|
||||||
|
|||||||
@ -1000,10 +1000,14 @@ export default {
|
|||||||
for (let i = 1;i<=dayNumber;i++){
|
for (let i = 1;i<=dayNumber;i++){
|
||||||
if (i<7){
|
if (i<7){
|
||||||
dateList.push({label:`第${i}天`,value:`2024-01-${26+i-1}`})
|
dateList.push({label:`第${i}天`,value:`2024-01-${26+i-1}`})
|
||||||
|
}else{
|
||||||
|
if (i-6>29){
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
dateList.push({label:`第${i}天`,value:`2024-02-${i - 7 + 1<10?`0${i - 7 + 1}`:i - 7 + 1}`})
|
dateList.push({label:`第${i}天`,value:`2024-02-${i - 7 + 1<10?`0${i - 7 + 1}`:i - 7 + 1}`})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
this.scrollList = dateList
|
this.scrollList = dateList
|
||||||
this.selectDateText = dateList[dayNumber-1].value
|
this.selectDateText = dateList[dayNumber-1].value
|
||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
@ -1404,8 +1408,6 @@ export default {
|
|||||||
// 获取最新的同步日期
|
// 获取最新的同步日期
|
||||||
async handleGetNewUpdateTime(){
|
async handleGetNewUpdateTime(){
|
||||||
const data = await request.$webGet('CommercialApi/Revenue/GetLastSyncDateTime')
|
const data = await request.$webGet('CommercialApi/Revenue/GetLastSyncDateTime')
|
||||||
console.log('1111',data)
|
|
||||||
console.log('this',this.lastDay)
|
|
||||||
if (this.lastDay === data.Result_Data){
|
if (this.lastDay === data.Result_Data){
|
||||||
this.isShowWarningTime = false
|
this.isShowWarningTime = false
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,10 +61,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="chartsItem" style="height:280px;margin-top: 32px">
|
<div class="chartsItem" style="height:280px;margin-top: 32px">
|
||||||
<p class="title">业态交易值占比</p>
|
<p class="title">业态交易值占比</p>
|
||||||
<div>
|
<div v-if="businessTypeList && businessTypeList.length>0">
|
||||||
<business-format :data="businessTypeList"/>
|
<business-format :data="businessTypeList"/>
|
||||||
<analyse :analyseInfo="{analysisins_type: 1405,analysisins_format: 2000}" />
|
<analyse :analyseInfo="{analysisins_type: 1405,analysisins_format: 2000}" />
|
||||||
</div>
|
</div>
|
||||||
|
<div v-else>
|
||||||
|
<no-data :height="'280'"/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="chartsItem" style="height:420px;margin-top: 32px">
|
<div class="chartsItem" style="height:420px;margin-top: 32px">
|
||||||
<p class="title">商超畅销品</p>
|
<p class="title">商超畅销品</p>
|
||||||
@ -594,6 +597,8 @@ export default {
|
|||||||
StatisticsDate:this.time,
|
StatisticsDate:this.time,
|
||||||
BusinessTradeIds:-1
|
BusinessTradeIds:-1
|
||||||
}
|
}
|
||||||
|
this.businessTypeList = []
|
||||||
|
return
|
||||||
}else{
|
}else{
|
||||||
req = {
|
req = {
|
||||||
ProvinceCode:'340000',
|
ProvinceCode:'340000',
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="businessFormat">
|
<div>
|
||||||
|
<div class="businessFormat" v-if="isShow">
|
||||||
<QiunDataCharts
|
<QiunDataCharts
|
||||||
type="ring"
|
type="ring"
|
||||||
:opts="opts"
|
:opts="opts"
|
||||||
@ -12,6 +13,8 @@
|
|||||||
<!-- <canvas class="format" style="width: 100vw;height: 260px;position: fixed;left: 100%" canvas-id="businessFormat" id="businessFormat" @tap="tap"/>-->
|
<!-- <canvas class="format" style="width: 100vw;height: 260px;position: fixed;left: 100%" canvas-id="businessFormat" id="businessFormat" @tap="tap"/>-->
|
||||||
<!-- <image style="width: 100vw;height: 260px" v-if="formatPath" class="format" :src="formatPath"></image>-->
|
<!-- <image style="width: 100vw;height: 260px" v-if="formatPath" class="format" :src="formatPath"></image>-->
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
@ -26,7 +29,7 @@ export default {
|
|||||||
width:0,
|
width:0,
|
||||||
formatPath:'',
|
formatPath:'',
|
||||||
opts:{},
|
opts:{},
|
||||||
res:{}
|
res:{},
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
props: {
|
props: {
|
||||||
@ -38,11 +41,15 @@ export default {
|
|||||||
watch: {
|
watch: {
|
||||||
data: {
|
data: {
|
||||||
handler(value) {
|
handler(value) {
|
||||||
|
console.log('value1232132',value)
|
||||||
this.handleCarData(value)
|
this.handleCarData(value)
|
||||||
},
|
},
|
||||||
immediate: true
|
immediate: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
onShow(){
|
||||||
|
console.log('data',this.data)
|
||||||
|
},
|
||||||
methods: {
|
methods: {
|
||||||
tap(e){
|
tap(e){
|
||||||
uChartsInstance[e.target.id].showToolTip(e, {
|
uChartsInstance[e.target.id].showToolTip(e, {
|
||||||
@ -181,4 +188,25 @@ export default {
|
|||||||
height: 260px;
|
height: 260px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.noData{
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 12px;
|
||||||
|
padding: 16px 0;
|
||||||
|
.img{
|
||||||
|
width:60px;
|
||||||
|
height: 60px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
}
|
||||||
|
.text{
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #6C737A;
|
||||||
|
line-height: 20rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@ -9,7 +9,7 @@
|
|||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<p class="price">{{ info.TicketCount?info.TicketCount:'-' }}</p>
|
<p class="price">{{ info.TicketCount?$util.getMoneyNoDecimal(info.TicketCount):'-' }}</p>
|
||||||
<view class="right" v-if="info.TicketCount">
|
<view class="right" v-if="info.TicketCount">
|
||||||
<image class="arrowTop" :src="Number((info.TicketCount / info.TicketAvgCount)-1)>0?'https://eshangtech.com/ShopICO/ahyd-BID/index/addIcon.svg':'https://eshangtech.com/ShopICO/ahyd-BID/index/reduce.svg'"></image>
|
<image class="arrowTop" :src="Number((info.TicketCount / info.TicketAvgCount)-1)>0?'https://eshangtech.com/ShopICO/ahyd-BID/index/addIcon.svg':'https://eshangtech.com/ShopICO/ahyd-BID/index/reduce.svg'"></image>
|
||||||
<text class="text">{{orderTransaction+'%'}}</text>
|
<text class="text">{{orderTransaction+'%'}}</text>
|
||||||
@ -29,7 +29,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<p class="price">{{ info.VehicleCount?info.VehicleCount:'-' }}</p>
|
<p class="price">{{ info.VehicleCount?$util.getMoneyNoDecimal(info.VehicleCount):'-' }}</p>
|
||||||
<view class="right" v-if="addAreaCarNumber">
|
<view class="right" v-if="addAreaCarNumber">
|
||||||
<image class="arrowTop" :src="((info.VehicleCount / info.MonthVehicleCount)-1)>0?'https://eshangtech.com/ShopICO/ahyd-BID/index/addIcon.svg':'https://eshangtech.com/ShopICO/ahyd-BID/index/reduce.svg'"></image>
|
<image class="arrowTop" :src="((info.VehicleCount / info.MonthVehicleCount)-1)>0?'https://eshangtech.com/ShopICO/ahyd-BID/index/addIcon.svg':'https://eshangtech.com/ShopICO/ahyd-BID/index/reduce.svg'"></image>
|
||||||
<text class="text">{{addAreaCarNumber ? addAreaCarNumber + '%':'-' + '%'}}</text>
|
<text class="text">{{addAreaCarNumber ? addAreaCarNumber + '%':'-' + '%'}}</text>
|
||||||
@ -56,7 +56,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="bottom">
|
<div class="bottom">
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<p class="price">{{ info.TicketAvgCount?info.TicketAvgCount:'-' }}</p>
|
<p class="price">{{ info.TicketAvgCount?$util.getMoneyNoDecimal(info.TicketAvgCount):'-' }}</p>
|
||||||
<p class="text">客单交易 <text class="unit">/笔</text></p>
|
<p class="text">客单交易 <text class="unit">/笔</text></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
@ -64,7 +64,7 @@
|
|||||||
<p class="text">客单均价 <text class="unit">/元</text></p>
|
<p class="text">客单均价 <text class="unit">/元</text></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
<p class="price">{{ info.MonthVehicleCount?info.MonthVehicleCount:'-' }}</p>
|
<p class="price">{{ info.MonthVehicleCount?$util.getMoneyNoDecimal(info.MonthVehicleCount):'-' }}</p>
|
||||||
<p class="text">入区车辆 <text class="unit">/辆</text></p>
|
<p class="text">入区车辆 <text class="unit">/辆</text></p>
|
||||||
</div>
|
</div>
|
||||||
<div class="item">
|
<div class="item">
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="main">
|
<div class="main" :style="{height: height?height+'px':''}">
|
||||||
<image :class="type==='index'?'typeImg':'img'" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/noData.svg"></image>
|
<image :class="type==='index'?'typeImg':'img'" src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/noData.svg"></image>
|
||||||
<p class="text" v-if="type!=='car'">抱歉,数据为第三方接口传输,无法进行画像分析</p>
|
<p class="text" v-if="type!=='car'">抱歉,数据为第三方接口传输,无法进行画像分析</p>
|
||||||
<p class="text" v-else>抱歉,第三方数据未传,无法分析</p>
|
<p class="text" v-else>抱歉,第三方数据未传,无法分析</p>
|
||||||
@ -17,6 +17,10 @@ export default {
|
|||||||
type:{
|
type:{
|
||||||
type:String,
|
type:String,
|
||||||
default:''
|
default:''
|
||||||
|
},
|
||||||
|
height:{
|
||||||
|
type:String,
|
||||||
|
default:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(query){
|
onLoad(query){
|
||||||
|
|||||||
@ -368,12 +368,21 @@ export default {
|
|||||||
woman:'',
|
woman:'',
|
||||||
res:[]
|
res:[]
|
||||||
}
|
}
|
||||||
const req = {
|
let req
|
||||||
|
if (this.serviceInfo.SERVERPART_NAME==='安徽驿达'){
|
||||||
|
req = {
|
||||||
statisticsType:1,
|
statisticsType:1,
|
||||||
provinceCode:'340000',
|
provinceCode:'340000',
|
||||||
serverpartId:this.serviceInfo.SERVERPART_NAME==='安徽驿达'?null:this.serviceInfo.Serverpart_ID,
|
|
||||||
statisticsMonth:this.$util.getThisMonth(time)
|
statisticsMonth:this.$util.getThisMonth(time)
|
||||||
}
|
}
|
||||||
|
}else{
|
||||||
|
req = {
|
||||||
|
statisticsType:1,
|
||||||
|
provinceCode:'340000',
|
||||||
|
serverpartId:this.serviceInfo.Serverpart_ID,
|
||||||
|
statisticsMonth:this.$util.getThisMonth(time)
|
||||||
|
}
|
||||||
|
}
|
||||||
let totalData = await request.$webGet('CommercialApi/Customer/GetCustomerRatio',req)
|
let totalData = await request.$webGet('CommercialApi/Customer/GetCustomerRatio',req)
|
||||||
totalData.Result_Data.List.forEach(item=>{
|
totalData.Result_Data.List.forEach(item=>{
|
||||||
// 判断男性和女性 然后赋值
|
// 判断男性和女性 然后赋值
|
||||||
@ -401,6 +410,7 @@ export default {
|
|||||||
// data: [[25,35,17],[35,15,15]]
|
// data: [[25,35,17],[35,15,15]]
|
||||||
// }
|
// }
|
||||||
// ]
|
// ]
|
||||||
|
console.log('result',result)
|
||||||
this.genderBubbleList = result
|
this.genderBubbleList = result
|
||||||
},
|
},
|
||||||
//客群消费偏好
|
//客群消费偏好
|
||||||
|
|||||||
@ -923,10 +923,14 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
previewImage(event,index){
|
previewImage(event,index){
|
||||||
|
this.isHandleOnShow = false
|
||||||
// 预览图片的方法
|
// 预览图片的方法
|
||||||
wx.previewImage({
|
wx.previewImage({
|
||||||
current: event.currentTarget.dataset.src[index], // 当前显示图片的http链接
|
current: event.currentTarget.dataset.src[index], // 当前显示图片的http链接
|
||||||
urls: event.currentTarget.dataset.src // 需要预览的图片http链接列表 数组形式
|
urls: event.currentTarget.dataset.src, // 需要预览的图片http链接列表 数组形式
|
||||||
|
success:function (res) {
|
||||||
|
console.log('res',res)
|
||||||
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 弹出框点击蒙层关闭
|
// 弹出框点击蒙层关闭
|
||||||
|
|||||||
@ -89,6 +89,7 @@ export default {
|
|||||||
isShowSwiper:false,// 是否显示滑动块
|
isShowSwiper:false,// 是否显示滑动块
|
||||||
menu:{},
|
menu:{},
|
||||||
serviceInfo:{},// 当前选中服务区
|
serviceInfo:{},// 当前选中服务区
|
||||||
|
isHandleOnShow: true,// 是否调用onShow的方法
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(query){
|
onLoad(query){
|
||||||
@ -113,6 +114,7 @@ export default {
|
|||||||
// 商业汇总的滑动方法
|
// 商业汇总的滑动方法
|
||||||
handleChangeSelect(e){
|
handleChangeSelect(e){
|
||||||
console.log('e',e)
|
console.log('e',e)
|
||||||
|
this.handleChangePreview(true)
|
||||||
this.selectPortrait = e.detail.current
|
this.selectPortrait = e.detail.current
|
||||||
},
|
},
|
||||||
// 切换页码
|
// 切换页码
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user