English
What Is PWC
About 540 wordsAbout 2 min
2025-12-18
PWC (Page Web Component) is a front-end high-code customization capability provided by Fxiaoke for deep extension and personalized development of CRM systems.
What Is PWC Code
PWC (Page Web Component) is a front-end high-code customization capability provided by Fxiaoke for deep extension and personalized development of CRM systems.
PWC is developed based on JavaScript, and its runtime environment covers the Fxiaoke App (mini program side), enabling mobile business experiences under a unified technical system.

Supported Technology Stack
The PWC front end is built on mainstream web technologies and combines the mini program runtime mechanism to deliver both flexibility and consistency on mobile devices.
- Development languages: JavaScript, HTML, CSS
- Runtime framework: Fxiaoke mini program framework
- Runtime environment: Browser / Fxiaoke App
Extension Methods
PWC provides two complementary extension methods to cover two core scenarios: UI extension and system capability extension.
- Custom Components
- Custom Plugins
Custom Components
A custom component is a reusable page function unit mainly used to extend and enhance page presentation and local interaction capabilities.
Typical characteristics:
- Focused on UI element extension
- Supports data binding and event interaction
- Low coupling, reusable, and easy to maintain
Typical use cases:
- Customized form controls
- Business data charts
- Business information cards
Custom Plugins
A custom plugin is a globally oriented enhancement module used to extend or intervene in business behavior and processes at the system level.
Typical characteristics:
- Focused on business logic and system workflows
- Can listen to system events and business hooks
- Can call platform-provided context APIs
- Supports on-demand enablement and scope configuration
Typical use cases:
- Complex data validation rules
- Process control and business customization
- Third-party system integration
Custom Components vs. Custom Plugins
| Type | Custom Component | Custom Plugin |
|---|---|---|
| Core role | An independent functional unit focused on page rendering and local interaction, similar to "Lego bricks" | A global enhancement module focused on business logic and system processes, similar to a "system plugin" |
| Nature of extension | Extension of page elements | Extension of system capabilities |
| Scope | Localized, embedded in a specific page or area | Global, can apply to modules |
| Interaction method | Receives parameters through properties and triggers local events through emitEvent | Works by listening to business hooks and calling context APIs |
| Development focus | View rendering (HTML / CSS) and local interaction logic | Event listening, business logic processing, and platform capability invocation |
| Integration method | Select the component in page configuration and specify the embedding position | Enable it in system or module settings and configure its scope |
FxUI API
The FxUI API is a collection of front-end capability interfaces provided by PWC, exposing core CRM system capabilities to developers.
Through the FxUI API, PWC can:
- Retrieve system information such as organizational structure and users
- Store and read local data
- Call custom functions or platform capabilities
FxUI APIs are divided into two categories:
- Synchronous APIs: return results directly
- Asynchronous APIs: return results through callback functions
Warning
FxUI is gradually migrating to asynchronous APIs, and synchronous APIs will no longer be updated in the future.
Developers can choose the appropriate API based on specific business scenarios.
