Commit 79a37827 by zhangxw

bug修复

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