【修复】修复分销商,代理商我的团队中【推荐人】信息显示错误的问题,修复分销商推广列表下级汇总数据为0的异常情况。

This commit is contained in:
jianweie code
2024-03-19 13:41:13 +08:00
parent 040c5ce981
commit d55a2de35d
3 changed files with 9 additions and 9 deletions

View File

@@ -13,13 +13,13 @@
<u-sticky customNavHeight="48"> <u-sticky customNavHeight="48">
<view class="head_box coreshop-bg-blue coreshop-padding-top-10 coreshop-padding-bottom-10"> <view class="head_box coreshop-bg-blue coreshop-padding-top-10 coreshop-padding-bottom-10">
<!-- 推荐人 --> <!-- 推荐人 -->
<view class="referrer-box coreshop-flex coreshop-align-center coreshop-padding-left-15 coreshop-padding-right-15" v-if="referrerInfo && referrerInfo.avatarImage"> <view class="referrer-box coreshop-flex coreshop-align-center coreshop-padding-left-15 coreshop-padding-right-15" v-if="referrerInfo">
上级推荐人 推荐人
<image class="referrer-avatarImage" :src="referrerInfo.avatarImage" mode=""></image> <image class="referrer-avatarImage" :src="referrerInfo.avatar" mode="" v-if="referrerInfo.avatar"></image>
{{ referrerInfo.nickName }} {{ referrerInfo.nickname }}
</view> </view>
<view class="referrer-box coreshop-flex coreshop-align-center coreshop-padding-left-15 coreshop-padding-right-15" v-else> <view class="referrer-box coreshop-flex coreshop-align-center coreshop-padding-left-15 coreshop-padding-right-15" v-else>
上级推荐人 推荐人
</view> </view>
<!-- 团队数据总览 --> <!-- 团队数据总览 -->
<view class="team-data-box coreshop-flex coreshop-justify-between"> <view class="team-data-box coreshop-flex coreshop-justify-between">

View File

@@ -13,10 +13,10 @@
<u-sticky customNavHeight="48"> <u-sticky customNavHeight="48">
<view class="head_box coreshop-bg-red coreshop-padding-top-10 coreshop-padding-bottom-10"> <view class="head_box coreshop-bg-red coreshop-padding-top-10 coreshop-padding-bottom-10">
<!-- 推荐人 --> <!-- 推荐人 -->
<view class="referrer-box coreshop-flex coreshop-align-center coreshop-padding-left-15 coreshop-padding-right-15" v-if="referrerInfo && referrerInfo.avatarImage"> <view class="referrer-box coreshop-flex coreshop-align-center coreshop-padding-left-15 coreshop-padding-right-15" v-if="referrerInfo">
推荐人 推荐人
<image class="referrer-avatarImage" :src="referrerInfo.avatarImage" mode=""></image> <image class="referrer-avatarImage" :src="referrerInfo.avatar" mode="" v-if="referrerInfo.avatar"></image>
{{ referrerInfo.nickName }} {{ referrerInfo.nickname }}
</view> </view>
<view class="referrer-box coreshop-flex coreshop-align-center coreshop-padding-left-15 coreshop-padding-right-15" v-else> <view class="referrer-box coreshop-flex coreshop-align-center coreshop-padding-left-15 coreshop-padding-right-15" v-else>
推荐人 推荐人

View File

@@ -2088,7 +2088,7 @@ namespace CoreCms.Net.Web.WebApi.Controllers
p.avatarImage, p.avatarImage,
mobile = UserHelper.FormatMobile(p.mobile), mobile = UserHelper.FormatMobile(p.mobile),
p.createTime, p.createTime,
childNum = _userServices.GetCount(p => p.parentId == p.id) childNum = _userServices.GetCount(op => op.parentId == p.id)
}); });
jm.otherData = new jm.otherData = new
{ {