Install dependencies,
$ npm i
Start the dev server,
$ npm start
Build documentation,
$ npm run docs:build
Run test,
$ npm test
Build library via father
,
$ npm run build
111222
- 自定义工单
- 打款工单
link 方式 https://cloud.tencent.com/developer/article/1842631
1.模块引用方式
import { WorkOrder } from 'kmkf-work-order-service-component'
import { PlatForm } from 'kmkf-work-order-service-component/dist/esm/WorkOrder';
const Text = ()=>{
return <WorkOrder platform={PlatForm.FXG}
shopId={shopId}
buyerNick={buyerNick}
buyerId={buyerId}
orderNo={orderNo}></WorkOrder>
}
| 字段 | 说明 | 数据类型 | | ----------------- | ---------------- | ------------------------------------ | | platform | 平台 | TAOBAO =淘宝|FXG=抖音|PDD=拼多多| | | shopId | 店铺 ID | number | | buyerNick | 买家昵称 | string | | buyerId | 买家 id | string | | orderNo | 订单 id | string | | onEmpowerCallback | 授权弹框点击回调 | function |