感謝使用CRMEB Java項目產(chǎn)品
歷史版本在多次調(diào)整的時候最后一個2.0.2版本出現(xiàn)一個表單配置屬性導(dǎo)致的
問題:在管理端設(shè)置撥打電話,但是商戶端還是跳轉(zhuǎn)外接的第三方客服
修復(fù)方式如下:
1. 更新表單sql 根據(jù)如下sql id替換表單內(nèi)容
INSERT INTO `eb_system_form_temp` VALUES (76, '客服', '客服', '{\"formRef\":\"elForm\",\"formModel\":\"formData\",\"size\":\"medium\",\"labelPosition\":\"right\",\"labelWidth\":120,\"formRules\":\"rules\",\"gutter\":15,\"disabled\":false,\"span\":24,\"formBtns\":true,\"fields\":[{\"__config__\":{\"label\":\"客服H5鏈接\",\"labelWidth\":null,\"showLabel\":true,\"changeTag\":true,\"tag\":\"el-input\",\"tagIcon\":\"input\",\"required\":true,\"layout\":\"colFormItem\",\"span\":24,\"document\":\"https://element.eleme.cn/#/zh-CN/component/input\",\"regList\":[],\"formId\":101,\"renderKey\":1599641784700,\"tips\":true,\"tipsIsLink\":true,\"tipsLink\":\"http://help.crmeb.net/crmeb_java/2322225\",\"tipsDesc\":\"點擊查看詳細\"},\"__slot__\":{\"prepend\":\"\",\"append\":\"\"},\"placeholder\":\"請輸入客服H5鏈接\",\"style\":{\"width\":\"95%\"},\"clearable\":true,\"prefix-icon\":\"\",\"suffix-icon\":\"\",\"maxlength\":null,\"show-word-limit\":false,\"readonly\":false,\"disabled\":false,\"__vModel__\":\"yzf_h5_url\"},{\"__config__\":{\"label\":\"客服電話\",\"labelWidth\":null,\"showLabel\":true,\"changeTag\":true,\"tag\":\"el-input\",\"tagIcon\":\"input\",\"required\":true,\"tips\":false,\"tipsDesc\":\"\",\"tipsIsLink\":false,\"tipsLink\":\"\",\"layout\":\"colFormItem\",\"span\":24,\"document\":\"https://element.eleme.cn/#/zh-CN/component/input\",\"regList\":[],\"formId\":101,\"renderKey\":1642127406782},\"__slot__\":{\"prepend\":\"\",\"append\":\"\"},\"placeholder\":\"請輸入單行文本客服電話\",\"style\":{\"width\":\"100%\"},\"clearable\":true,\"prefix-icon\":\"\",\"suffix-icon\":\"\",\"maxlength\":null,\"show-word-limit\":false,\"readonly\":false,\"disabled\":false,\"__vModel__\":\"consumer_hotline\"},{\"__config__\":{\"label\":\"電話服務(wù)\",\"labelWidth\":null,\"showLabel\":true,\"tag\":\"el-radio-group\",\"tagIcon\":\"radio\",\"changeTag\":true,\"layout\":\"colFormItem\",\"span\":24,\"optionType\":\"default\",\"regList\":[],\"required\":true,\"tips\":false,\"tipsDesc\":\"\",\"tipsIsLink\":false,\"tipsLink\":\"\",\"border\":false,\"document\":\"https://element.eleme.cn/#/zh-CN/component/radio\",\"formId\":101,\"renderKey\":1677897048252,\"defaultValue\":0},\"__slot__\":{\"options\":[{\"label\":\"開啟\",\"value\":1},{\"label\":\"關(guān)閉\",\"value\":0}]},\"style\":{},\"size\":\"medium\",\"disabled\":false,\"__vModel__\":\"telephone_service_switch\"}]}', '2020-05-21 11:07:21', '2023-03-04 10:34:26');
2:更新數(shù)據(jù)存儲sql 根據(jù)telephone_service_switch 查找或者新增 下列數(shù)據(jù)
INSERT INTO `eb_system_config` VALUES (7521, 'telephone_service_switch', 'telephone_service_switch', 76, '1', 0, '2021-12-10 12:15:43', '2021-12-10 12:15:43');
3:在uniapp中搜索關(guān)鍵字全局修改 telephoneServiceSwitch 判斷值是true的地方修改為1即可
如上設(shè)置后如果沒有生效需要去設(shè)置中找到對應(yīng)客服設(shè)置,會發(fā)現(xiàn)之前的switch組件變成了radio button 設(shè)置后重新保存下即可
至此修復(fù)完畢,如果根據(jù)如上設(shè)置還出現(xiàn)問題可以回貼,我會即時回復(fù)。
感謝使用Crmeb java產(chǎn)品