Commit 79a37827 by zhangxw

bug修复

1 parent e68d9ece
...@@ -158,8 +158,9 @@ Component({ ...@@ -158,8 +158,9 @@ Component({
merchantId, merchantId,
businessType: businessTypeObj[current] businessType: businessTypeObj[current]
} }
wx.$api.showLoading()
CustomerApi.getKPIData(params).then(res => { CustomerApi.getKPIData(params).then(res => {
console.log(res) wx.$api.hideLoading()
res?.forEach(val => { res?.forEach(val => {
val.completed = this.formatCurrency(val.completed) val.completed = this.formatCurrency(val.completed)
val.target = this.formatCurrency(val.target) val.target = this.formatCurrency(val.target)
......
...@@ -63,7 +63,9 @@ Component({ ...@@ -63,7 +63,9 @@ Component({
}, },
getDetailData() { getDetailData() {
let { merchantId } = this.data let { merchantId } = this.data
wx.$api.showLoading()
CustomerApi.getStoreOverviewData({id: merchantId}).then(res => { CustomerApi.getStoreOverviewData({id: merchantId}).then(res => {
wx.$api.hideLoading()
res?.safetyIndexWarningList?.forEach(val => { res?.safetyIndexWarningList?.forEach(val => {
val.cycleIndicator = this.formatPercent(val.cycleIndicator) val.cycleIndicator = this.formatPercent(val.cycleIndicator)
val.fallbackIndicator = this.formatPercent(val.fallbackIndicator) val.fallbackIndicator = this.formatPercent(val.fallbackIndicator)
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
margin-bottom: 200rpx; margin-bottom: 200rpx;
background: #FFFFFF; background: #FFFFFF;
width: 100%; width: 100%;
padding: 24rpx 32rpx 32rpx 32rpx; padding: 16rpx 32rpx 32rpx 32rpx;
} }
.section { .section {
margin: 16rpx 16rpx 24rpx; margin: 16rpx 0 24rpx;
border-bottom: 1rpx solid #E4E8EE; border-bottom: 1rpx solid #E4E8EE;
&:last-child { &:last-child {
border-bottom: 0; border-bottom: 0;
......
...@@ -71,11 +71,11 @@ ...@@ -71,11 +71,11 @@
<view class="card"> <view class="card">
<view class="row"> <view class="row">
<view class="label">名称</view> <view class="label">名称</view>
<view class="value">{{m.personnelName}}</view> <view class="value">{{m.personnelName || '-'}}</view>
</view> </view>
<view class="row"> <view class="row">
<view class="label">手机号</view> <view class="label">手机号</view>
<view class="value">{{m.personnelPhone}}</view> <view class="value">{{m.personnelPhone || '-'}}</view>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -192,7 +192,7 @@ Page({ ...@@ -192,7 +192,7 @@ Page({
async getLocation() { async getLocation() {
try { try {
const loc = await wx.getLocation({ type: "gcj02" }) const loc = await wx.getLocation()
const { latitude, longitude } = loc const { latitude, longitude } = loc
wx.$api.showLoading() wx.$api.showLoading()
const res = await mapApi.detailedAdrress([latitude, longitude]) const res = await mapApi.detailedAdrress([latitude, longitude])
......
...@@ -138,6 +138,7 @@ class TRACK { ...@@ -138,6 +138,7 @@ class TRACK {
item = { item = {
loginAccount: userInfo?.name, loginAccount: userInfo?.name,
uuid: userInfo?.uuid, uuid: userInfo?.uuid,
userType: userInfo?.loginRole, // 1 总监 2 大区经理 3 销售人员
systemSource: 5, systemSource: 5,
eventTime: new Date().format('yyyy-MM-dd hh:mm:ss'), eventTime: new Date().format('yyyy-MM-dd hh:mm:ss'),
eventType, eventType,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!