0.3.4 • Published 3 years ago

@aliretail/mall-refund-sdk v0.3.4

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

交易逆向 mall-refund-sdk


目录结构说明

1. 根目录说明

.
├── src
   ├── componets         -- SDK 导出的交易正向模块
   ├── pages             -- SDK 预览页面集合(仅用于 SDK 开发调试)
   ├── app.js            -- SDK 预览入口文件、处理应用生命周期(仅用于 SDK 开发调试)
   ├── app.json          -- SDK 预览页面路由配置、小程序配置(仅用于 SDK 开发调试)
   ├── global.css        -- SDK 预览全局样式文件(仅用于 SDK 开发调试)
   └── projectConfig.js -- SDK 预览工程配置文件(仅用于 SDK 开发调试)

2. components 目录说明

模块根据页面进行分组,多个页面共同使用到的模块以 common_ 开头,单词以 _ 进行分割,仅自身页面用到的模块以自身页面名开头(如 delivery_detail_),不允许在模块目录命名中出现任何大写字母及数字

.components
├── common_amount
├── common_bottom_button
├── common_buttom_text
├── common_delivery
├── common_evidence
├── common_float_tips
├── common_item
├── common_page_root
├── detail_address
├── detail_button
├── detail_cancel_button
├── detail_info
├── detail_step
├── detail_stream
├── detail_talk_history
├── edit_item_edit_item
├── list_container
├── list_item
├── list_nodata
├── select_item_block
├── select_item_memo
├── select_item_reason
├── select_type_operator
├── service_amount
├── service_block
├── service_buttom_text
├── service_delivery
├── service_evidence
├── service_memo
├── service_reason
└── talk_history_item

3. pages 目录说明

页面命名以 refund_ 开头,单词以 _ 进行分割,不允许在页面命名中出现任何大写字母及数字。

pages 目录下的页面仅用作 SDK 开发调试时使用,正常使用 SDK 时只引用 components 下的模块,详见零售云 C 端壳工程 mall-shell

.pages
├── refund_delivery
├── refund_detail
├── refund_edit_item
├── refund_list
├── refund_select_item
├── refund_select_type
├── refund_service
└── refund_talk_history
    ├── components.js  -- 组件依赖
    ├── index.jsx      -- Page 配置、配置奥创请求相关内容
    └── mock-datas     -- 数据mock(建议:联调通过后以真实、可读、具有代表性的数据覆盖)
        └── default.js

迭代说明

  1. 明确需求是否需要沉淀到交易逆向 SDK
  2. master拉开发分支 daily/x.x.x, 确认 x.x.x 是否已发布过正式包
  3. 需求发布后需及时合并回 master 分支
  4. DEMAND.md中关联需求发布分支、需求 PRD 文档、需求设计稿等,并辅以简单说明方便后人踩坑

开发说明

git clone git@codeup.aliyun.com:yunda/10008009328-mallrefund-official-mod/miniapp-rax-mods.git

npm install

npm start

npm build

// 发包 @离莜
fie publish -d

fie publish -o
若 npm install 报错
npm instal nrm -g 

nrm add cz http://c.public.registry.zacz.cn/

nrm ls
→ cz --------- http://c.public.registry.zacz.cn/

nrm use cz

npm login

npm publish
0.3.4-alpha.1

3 years ago

0.3.4-alpha.2

3 years ago

0.3.4-alpha.3

3 years ago

0.3.1-alpha.1

3 years ago

0.3.4

3 years ago

0.3.3-alpha.1

3 years ago

0.3.3

3 years ago

0.3.2-alpha.1

3 years ago

0.3.2

3 years ago

0.3.1

3 years ago

0.3.1-alpha.2

3 years ago

0.2.9-alpha.1

3 years ago

0.3.0

3 years ago

0.2.9

3 years ago

0.3.0-alpha.1

3 years ago

0.2.8-alpha.1

3 years ago

0.2.8

3 years ago

0.2.7-alpha.3

3 years ago

0.2.7

3 years ago

0.2.7-alpha.2

3 years ago

0.2.7-alpha.1

3 years ago

0.2.3-alpha.1

3 years ago

0.2.4-alpha.1

3 years ago

0.2.5-alpha.1

3 years ago

0.2.6-alpha.1

3 years ago

0.2.6

3 years ago

0.2.3

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.2

3 years ago

0.2.2-alpha.1

3 years ago

0.2.1

3 years ago

0.2.1-alpha.1

3 years ago

0.2.0

3 years ago

0.2.0-alpha.1

3 years ago