合并正式版修改代码

This commit is contained in:
2026-03-06 10:08:16 +08:00
11 changed files with 275 additions and 234 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>
@@ -409,7 +409,7 @@
});
}
const shopUserInfo = ref();
const shopUserInfo = ref({shopInfo:{}});
const config = reactive({});
//邀请码
const inviteCode = ref('');
@@ -508,7 +508,7 @@
totalPage: 0
});
async function getRecoders() {
if (state.config) return;
// if (state.config) return;
const ajaxQuery = {
...query,
shopId: options.shopId
@@ -571,6 +571,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)) {
@@ -585,12 +588,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,
@@ -886,6 +890,10 @@
color: #e8ad7b;
line-height: 48rpx;
text-align: center;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
.bottom-btn {