1.1.25 • Published 7 months ago

ishop-ai-assistant v1.1.25

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

ishop-ai-assistant 组件库

快速开始

1. 安装

npm install ishop-ai-assistant --save

2. 引入

import Vue from "vue";
import ishopAiAssistant from "ishop-ai-assistant";
import "ishop-ai-assistant/ishop-ai-assistant.css";

Vue.use(ishopAiAssistant.install);

3. 使用

<template>
  <div>
    <ishop-ai-assistant v-if="aiAssistantVisible"
                        :env="env"
                        @close="closeAiAssistant"
                        @goBuy="goBuy"></ishop-ai-assistant>
  </div>
</template>

<script>
  export default {
    data() {
      env: 'dev',
      aiAssistantVisible: false,
    },
    methods: {
      // 关闭AI人工智能助手弹窗
      closeAiAssistant() {
          this.aiAssistantVisible = false
      },
      // AI人工智能助手购买续费
      async goBuy() {
          const userTel = JSON.parse(sessionStorage.getItem('userInfo')).TenantMobile
          const uri = await getIshopUri(userTel)
          const devUri = window.location.origin + '/#/'
          const routerMode = process.env.NODE_ENV === 'development' ? devUri : uri
          this.openLink(`${routerMode}buyAndRenewal?userTel=${userTel}`)
      },
    },
  }
</script>
1.1.23

7 months ago

1.1.25

7 months ago

1.1.24

7 months ago

1.1.22

7 months ago

1.1.21

7 months ago

1.1.19

9 months ago

1.1.18

9 months ago

1.1.20

9 months ago

1.1.17

9 months ago

1.1.16

9 months ago

1.1.15

9 months ago

1.1.14

9 months ago

1.1.12

9 months ago

1.1.11

9 months ago

1.1.10

9 months ago

1.1.13

9 months ago

1.1.9

9 months ago

1.1.8

9 months ago

1.1.7

9 months ago

1.1.6

9 months ago

1.1.1

10 months ago

1.0.19

10 months ago

1.1.0

10 months ago

1.0.18

10 months ago

1.0.17

10 months ago

1.0.16

10 months ago

1.1.5

10 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.0.21

10 months ago

1.0.20

10 months ago

1.0.15

10 months ago

1.0.14

10 months ago

1.0.11

10 months ago

1.0.10

10 months ago

1.0.13

10 months ago

1.0.12

10 months ago

1.0.9

10 months ago

1.0.8

10 months ago

1.0.7

10 months ago

1.0.6

10 months ago

1.0.5

10 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago