# mixi-wxcommon

> ## 页面

Latest version **1.2.0** (published 2020-12-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install mixi-wxcommon
pnpm add mixi-wxcommon
yarn add mixi-wxcommon
bun add mixi-wxcommon
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.0 |
| Published | 2020-12-02 |
| First published | 2020-04-04 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 60.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | mixiyun |

## Links

- npm: https://www.npmjs.com/package/mixi-wxcommon
- npm.io page: https://npm.io/package/mixi-wxcommon

## Dependencies (1)

- [mixi-wxcore](https://npm.io/package/mixi-wxcore.md) ^1.4.6

## Recent versions

- 1.2.0 (latest) — 2020-12-02
- 1.1.6 — 2020-06-14
- 1.1.5 — 2020-06-09
- 1.1.4 — 2020-06-08
- 1.1.3 — 2020-06-08
- 1.1.2 — 2020-06-07
- 1.1.1 — 2020-06-02
- 1.1.0 — 2020-05-31
- 1.0.9 — 2020-05-31
- 1.0.8 — 2020-05-31
- 1.0.7 — 2020-05-30
- 1.0.6 — 2020-05-24
- 1.0.5 — 2020-05-02
- 1.0.4 — 2020-04-30
- 1.0.3 — 2020-04-25
- … 6 more at https://npm.io/package/mixi-wxcommon/versions

## README

# 米夕公共页面

## 页面

### 选择网点
> /pages/net/select

* 参数
  - ability：网点经营能力
  - multi：是否多选
  - companyId：所属企业

### 支付
> /pages/pay/index

* 参数
  - orderId：要支付的订单编号
  - orderType：要支付的订单类型
  - orderInfo：下单之前（没有orderId,orderType）使用该参数
  - saveHandler：如果订单未保存，支付之前保存订单

* 说明
参数`orderInfo`是订单信息，一般在下单之前（未创建订单）预览支付信息，合并下单和支付流程，格式如下：

```json
{
  "id": 1,
  "type": 1,
  "companyId": 1,
  "netId": 1,
  "discount": 1,
  "couponIds": "",
  "receiver": "",
  "receiverMobile": "",
  "receiverAddress": "",
  "receiveNetId": "",
  "items": [{
    "skuId": 1,
    "tkuId": 1,
    "name": "",
    "imageUrl": "",
    "price": 1,
    "count": 1,
    "unit": ""
  }]
}
```

---
_Source: https://npm.io/package/mixi-wxcommon · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
