ylztest

1.4.2 • Public • Published

小程序授权插件

si-auth

安装

npm i ylztest || cnpm i ylztest

使用方式

props 参数

  1. mobile 手机号 (必须传,授权要用)
  2. token 参数 (必须传,授权要用)
  3. type 环境类型,默认正式环境,'test':测试环境

回调事件

onAuthBack(result)

参数:result 为授权网络请求数据

demo

<template lang="wxml" minapp="wepy">
    <Auth :mobile.sync="mobile" :token.sync="token" @onAuthBack.user="onAuthBack"></Auth>
</template>

<script>
import wepy from 'wepy'
import Auth from 'ylztest/Auth'
export default class Demo extends wepy.page {
    components = {
        Auth
    };
    data = {
        mobile: '18511580429',
        token: 'test-token'
    }
    onShow () {
    }
    methods = {
        onAuthBack (result) {
            console.info(result)
        }
    }
}
</script>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.4.21latest

Version History

VersionDownloads (Last 7 Days)Published
1.4.21
1.4.12
1.4.00
1.3.90
1.3.80
1.3.70
1.3.60
1.3.50
1.3.41
1.3.30
1.3.20
1.3.10
1.3.01
1.2.90
1.2.80
1.2.70
1.2.60
1.2.50
1.2.40
1.2.31
1.2.20
1.2.13
1.2.00
1.1.90
1.1.80
1.1.70
1.1.62
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.1.00
1.0.90
1.0.81
1.0.71
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
0.0.10
1.0.10
1.0.03

Package Sidebar

Install

npm i ylztest

Weekly Downloads

16

Version

1.4.2

License

MIT

Unpacked Size

1.21 MB

Total Files

96

Last publish

Collaborators

  • suki22