@szlx/privacy

1.0.94 • Public • Published

uniapp 小程序隐私协议逻辑包

安装

yarn add @szlx/privacy

使用

import Privacy from "@szlx/privacy";
import PrivacyMixin from "@szlx/privacy/component";
import EasyPopup from "@szlx/easy-popup";

// html
<easy-popup ref="popup">
  <template v-slot:children="{ component }">
    <privacy v-if="component === 'Privacy'" />
  </template>
</easy-popup>;

// js
// 使用async/await 或者 then
export default {
  mixins: [PrivacyMixin],
  async onLoad() {
    await this.checkPrivacy();
    uni.getUserInfo(0);
  },
};

Readme

Keywords

none

Package Sidebar

Install

npm i @szlx/privacy

Weekly Downloads

3

Version

1.0.94

License

MIT

Unpacked Size

4.12 kB

Total Files

4

Last publish

Collaborators

  • szlx