1.1.25 • Published 12 months ago

ishop-ai-assistant v1.1.25

Weekly downloads
-
License
-
Repository
-
Last release
12 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

12 months ago

1.1.25

12 months ago

1.1.24

12 months ago

1.1.22

12 months ago

1.1.21

12 months ago

1.1.19

1 year ago

1.1.18

1 year ago

1.1.20

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.13

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.1

1 year ago

1.0.19

1 year ago

1.1.0

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago