feat(hjf): H5路由修复、分销等级显示优化、个人中心等级徽章

H5 部署与路由:
- manifest.json: router.base 改为 "/" 适配 public/ 根目录部署
- nginx-crmeb.conf: 恢复与 feature/fsgx 一致的原始配置
- App.vue: PC端重定向路径改为动态推导,修复死循环加载问题
- static/html/pc.html: 动态推导 H5 根路径,适配本地/云端两种部署

H5登录:
- pages/users/login/index.vue: H5端获取验证码跳过安全验证(条件编译)

分销等级展示修复:
- AgentLevelServices: 新增 loadHjfUserListLevelMaps/pickHjfLevelRowForUserListDisplay
  统一等级名称解析逻辑,优先返回 HJF 官方名称;新增 getUpgradeTasksForLevel 封装
- UserServices/MemberLevelServices: 改用统一解析方法,修复 protected $dao 访问错误
- api/hjf/MemberController: 直接取 eb_agent_level.name,新增 agent_level 原始值返回
- admin/v1/hjf/MemberController: team() 改用封装方法替代直接访问 protected dao

个人中心等级徽章:
- pages/user/index.vue + member/index.vue: memberInfo 沿链路透传
- member/template1.vue: UID右侧显示HjfMemberBadge,直接读 userInfo.agent_level_name
  无需等待异步 memberInfo,agentLevelGrade 计算属性从名称推导颜色等级

商品列表修复:
- BaseController.php/Common.php: 恢复加密版,修复 CRMEB 授权检查失败导致的400错误
- StoreProduct model: 移除冲突的 model maker 回调

数据库:
- hjf_migration.sql: 完善会员等级体系迁移脚本
- eb_agent_level.sql: 新增等级初始数据脚本

Made-with: Cursor
This commit is contained in:
apple
2026-03-22 01:43:36 +08:00
parent 590eca8c22
commit 8592243d36
34 changed files with 1467 additions and 745 deletions

View File

@@ -79,8 +79,10 @@
<text class="main-color" @click.stop="privacy('privacy')">隐私协议</text>
</checkbox-group>
</view>
<!-- #ifndef H5 -->
<Verify v-if="!disabled" @success="success" :captchaType="captchaType" :imgSize="{ width: '330px', height: '155px' }"
ref="verify"></Verify>
<!-- #endif -->
</view>
</template>
@@ -114,12 +116,16 @@
// #endif
const BACK_URL = "login_back_url";
import colors from '@/mixins/color.js';
// #ifndef H5
import Verify from '../components/verify/verify.vue';
// #endif
import { HTTP_REQUEST_URL, CAPTCHA_TYPE } from '@/config/app';
export default {
name: "Login",
components: {
// #ifndef H5
Verify
// #endif
},
mixins: [sendVerifyCode, colors],
data: function() {
@@ -397,7 +403,11 @@
Date.parse(new Date());
},
success(data) {
this.$refs.verify.hide()
// #ifndef H5
if (this.$refs.verify) {
this.$refs.verify.hide();
}
// #endif
getCodeApi()
.then(res => {
this.keyCode = res.data.key;
@@ -423,17 +433,22 @@
if (!/^1(3|4|5|7|8|9|6)\d{9}$/i.test(that.account)) return that.$util.Tips({
title: '请输入正确的手机号码'
});
// getCodeApi()
// .then(res => {
// that.keyCode = res.data.key;
// that.getCode();
// })
// .catch(res => {
// that.$util.Tips({
// title: res
// });
// });
this.$refs.verify.show()
// #ifdef H5
// H5不弹出滑块/图形安全验证,直接取 key 并发短信(后端 register/verify 已关闭 aj 二次校验)
getCodeApi()
.then(res => {
that.keyCode = res.data.key;
that.getCode({ captchaVerification: '' });
})
.catch(res => {
that.$util.Tips({
title: res
});
});
// #endif
// #ifndef H5
this.$refs.verify.show();
// #endif
},
async getLogoImage() {
let that = this;
@@ -569,7 +584,11 @@
that.sendCode();
})
.catch(res => {
this.$refs.verify.refresh()
// #ifndef H5
if (this.$refs.verify) {
this.$refs.verify.refresh();
}
// #endif
that.$util.Tips({
title: res
});