# cashier-front

> 账号 zmz 密码 111111

Latest version **0.1.5** (published 2019-09-27) · 0 weekly downloads

## Install

```sh
npm install cashier-front
pnpm add cashier-front
yarn add cashier-front
bun add cashier-front
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.5 |
| Published | 2019-09-27 |
| First published | 2019-09-27 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 9 |
| Unpacked size | 332.7 KB |
| Known vulnerabilities | 0 (+25 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | songbo.zheng |

## Links

- npm: https://www.npmjs.com/package/cashier-front
- npm.io page: https://npm.io/package/cashier-front

## Dependencies (9)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [axios](https://npm.io/package/axios.md) ^0.18.0
- [jsencrypt](https://npm.io/package/jsencrypt.md) ^3.0.0-rc.1
- [vue-router](https://npm.io/package/vue-router.md) ^3.0.6
- [@babel/core](https://npm.io/package/@babel/core.md) ^7.5.0
- [babel-loader](https://npm.io/package/babel-loader.md) ^8.0.6
- [@babel/polyfill](https://npm.io/package/@babel/polyfill.md) ^7.4.4
- [@babel/preset-env](https://npm.io/package/@babel/preset-env.md) ^7.5.0
- [svg-sprite-loader](https://npm.io/package/svg-sprite-loader.md) ^4.1.6

## Recent versions

- 0.1.5 (latest) — 2019-09-27

## README

# Tip

账号 zmz
密码 111111

### 交互

```
    // 事件列表

    /* 
     * @paymentResult // 支付结果
     * 参数1：支付状态：process || succeed || failed
     * 参数2：orderNo
     */

    /*
     * @load // 支付方式查询完成
    */

    /* 
    * @tip // 支付提示
    *  {
    *      avaliableAmount // 可用金额
    *           或者 
    *      perOrderMax // 订单最大额
    *      perOrderMax // 单日最大额
    *  }
    */
    
    props: {
        token: { // 下单token 必须
            type: [String, null, undefined],
            required: true
        },
        money: { // 金额 必须
            type: [Number, String],
            required: true
        },
        minMoney: { // 金额 必须
            type: [Number, String],
            required: true
        },
        productCode: { // 产品码 必须
            type: String,
            required: true
        },
        productType: { // 产品类型 必须
            type: String,
            required: true
        },
        boundQueryType: { // 红包类型 必须
            type: String,
            required: true
        },
        merchantNo: { // 商户号 必须
            type: String,
            required: true
        },
        supplyCode: { // 供应商编码 必须
            type: String,
            required: true
        },
        boundQueryType: { // 供应商编码 必须
            type: String,
            required: true
        },
        isIncludeBound: { // 是否有优惠券逻辑
            type: Boolean,
            default: true
        },
    },
```


### Test

```
    <template>
        <div>
            <input v-model="money"/>
            <CashierPugin
                token=""
                productCode="000780"
                boundQueryType="1"
                productType="1"
                minMoney='100'
                merchantNo="10010"
                supplyCode="联通"
                :money="money">
            </CashierPugin>
        </div>
    </template>

    <script>
    import CashierPugin from "@/pages/cashier-pugin.vue";

    export default {
        data() {
            return {
                money: '1000'
            }
        },
        components: {
            CashierPugin
        }
    }
    </script>

    <style lang="less" scoped>

    </style>
```
# cashier-plugin

收银台插件

### 本地调试可以使用

```
npm link
```

### fixbug 升级比版本号 
```
npm version patch

npm version patch -m "Upgrade to %s for reasons"

```

### 添加功能，次版本号
```
npm version minor
```

### 大版本改动
```
npm version major
```
### 

### 发布 
```
删除private

npm login

npm publish .
```

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