mirror of
https://gitee.com/ShopeX/ECShopX_mobile-frontend
synced 2026-08-07 05:05:46 +08:00
[TBID:ECX-8356]
This commit is contained in:
@@ -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()
|
||||
}, [])
|
||||
|
||||
@@ -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', // 小程序客服(标题栏热区 customerService):1-展示,0-不展示(接口 distributor/salesperson/qrcode)
|
||||
fixed_salesperson_qrcode_url: 'fixed_salesperson_qrcode_url', // 门店固定二维码
|
||||
work_qrcode: 'work_qrcode', // 导购企微二维码
|
||||
work_qrcode_configid: 'work_qrcode_configid', // 导购企微configid
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user