Commit 8d84ec40 by 前端

权限

1 parent 7844df55
......@@ -47,10 +47,12 @@ export default {
{
label: "首页",
icon: "home",
name: 'HomeSlot'
},
{
label: "接待记录",
icon: "record",
name: 'RecordList'
},
],
}
......@@ -77,11 +79,10 @@ export default {
const res = await uni.$api.customerApi.haveCustomerAccess({
merchantId
})
const len = this.tabs.length - 1
if (res) this.tabs.splice(len, 0, {
if (res) this.tabs.push( {
label: "客户档案",
icon: "customer-file",
name: 'CustomerFile'
})
this.$store.state.user.haveCustomerAccess = res
......@@ -91,6 +92,7 @@ export default {
this.tabs.push({
label: "个人中心",
icon: "point",
name: 'Point'
})
}
}
......
......@@ -3,7 +3,7 @@
* @Author: huyue
* @Date: 2024-04-08 11:30:30
* @LastEditors: 前端 qianduan01@didihu.com.cn
* @LastEditTime: 2025-01-17 09:25:04
* @LastEditTime: 2025-01-21 15:02:22
-->
<template>
<view class="point-box">
......@@ -69,7 +69,7 @@ export default {
data() {
return {
pointClassification: ['C001', 'C003', 'C002'],
pointClassName: ['能力类', '日常行为类', '学习类'],
pointClassName: ['培训类', '行为类', '学习类'],
statistics: {},
levelImg: [require('@/assets/images/point/bronze.png'), require('@/assets/images/point/silver.png'), require('@/assets/images/point/gold.png'), require('@/assets/images/point/masonry.png')],
detail: [],
......
......@@ -116,11 +116,8 @@ export default {
return this.$refs.finish
},
componentName() {
const len = this.$refs.leftBox.tabs.length
if (this.tabIndex == 0) return 'HomeSlot'
else if (this.tabIndex == 1) return 'RecordList'
else if (this.tabIndex == len - 1) return 'Point'
else return 'CustomerFile'
console.log(this.$refs.leftBox.tabs, this.tabIndex, this.$refs.leftBox.tabs[this.tabIndex].name)
return this.$refs.leftBox.tabs[this.tabIndex].name
}
},
methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!