[TBID:ECX-8356]

This commit is contained in:
wanghai
2026-07-01 18:26:10 +08:00
parent 2501867a72
commit 34c3603a03
3 changed files with 1 additions and 8 deletions

View File

@@ -23,14 +23,8 @@ function SpChat(props) {
const [state, setState] = useImmer(initialState)
const { isWeAppKefu } = state
const { echat, meiqia } = useSelector((state) => state.sys)
const { salespersonInfo } = useSelector((state) => state.shop)
const $instance = getCurrentInstance() || {}
// 小程序客服开关:接口 show_float 0=关闭 1=开启,关闭后不展示悬浮客服
if (salespersonInfo?.show_float == 0) {
return null
}
useEffect(() => {
init()
}, [])

View File

@@ -41,7 +41,6 @@ export const SHOP_ITEM = {
isOpenDivided: 'isOpenDivided', // 是否开启店铺隔离
sort_id: 'sort_id', // 店铺隔离最新排序id
show_salesperson: 'show_salesperson', // 是否显示导购0-不显示1-显示门店二维码2-显示导购二维码
show_float: 'show_float', // 小程序客服(标题栏热区 customerService1-展示0-不展示(接口 distributor/salesperson/qrcode
fixed_salesperson_qrcode_url: 'fixed_salesperson_qrcode_url', // 门店固定二维码
work_qrcode: 'work_qrcode', // 导购企微二维码
work_qrcode_configid: 'work_qrcode_configid', // 导购企微configid

View File

@@ -20,7 +20,7 @@ function FloatSalesperson({ layout = 'vertical' }) {
const { salespersonInfo } = useSelector((state) => state.shop)
const [showModal, setShowModal] = useState(false)
// 无导购信息或无二维码不展示show_float 用于控制小程序客服,不控制导购浮窗)
// 无导购信息或无二维码不展示
// && !salespersonInfo?.work_qrcode_configid
if (!salespersonInfo?.work_qrcode) {
return null