修复分销回显问题,修复部分问题

This commit is contained in:
2026-02-02 09:16:13 +08:00
parent a95d7ebf01
commit 6e2161fc5e
7 changed files with 249 additions and 212 deletions

View File

@@ -1,6 +1,6 @@
<template>
<view class="min-h-100vh bg-gray">
<up-navbar bg-color="transparent" title="分销中心" @leftClick="back" :fixed="true"></up-navbar>
<up-navbar bg-color="transparent" title="全民股东" @leftClick="back" :fixed="true"></up-navbar>
<view class="top">
<image class="top_bg" src="/distribution/static/top_bg.png" :style="imageStyle"></image>
<view class="box" :class="{ type1: isActivated }">
@@ -10,10 +10,10 @@
<text class="u-m-l-14 font-14 color-333 font-700">{{ state.shopName }}</text>
</view>
<view>
<template v-if="state.parentPhone">
<template v-if="state.parentPhone||state.parentName ">
<view class="font-12 color-666">上级{{ state.parentName }}{{ state.parentPhone }}</view>
</template>
<template v-if="!state.parentPhone">
<template v-else>
<view class="bind" @click="showBindShangji = true">绑定上级</view>
</template>
</view>
@@ -499,7 +499,7 @@
totalPage: 0
});
async function getRecoders() {
if (state.config) return;
// if (state.config) return;
const ajaxQuery = {
...query,
shopId: options.shopId
@@ -562,6 +562,9 @@
const showInviteCode = computed(() => {
if (config.upgradeType == 'invite') {
if(config.openType=='pay'&&!isActivated.value){
return false
}
return true;
}
if (config.openType == 'manual' && (!state.distributionUser || !state.distributionUser.level)) {
@@ -576,12 +579,13 @@
if (!state.distributionUser && config.openType == 'manual') {
return true;
}
return false;
});
//是否已成为分销员
const isActivated = computed(() => {
return state.distributionUser && state.distributionUser.level;
return (state.distributionUser && state.distributionUser.level)?true:false;
});
watch(
() => activeTab.value,