1.1.25 • Published 8 months ago
ishop-ai-assistant v1.1.25
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
8 months ago
1.1.25
8 months ago
1.1.24
8 months ago
1.1.22
8 months ago
1.1.21
8 months ago
1.1.19
10 months ago
1.1.18
10 months ago
1.1.20
10 months ago
1.1.17
10 months ago
1.1.16
10 months ago
1.1.15
10 months ago
1.1.14
10 months ago
1.1.12
10 months ago
1.1.11
10 months ago
1.1.10
10 months ago
1.1.13
10 months ago
1.1.9
10 months ago
1.1.8
10 months ago
1.1.7
10 months ago
1.1.6
10 months ago
1.1.1
11 months ago
1.0.19
11 months ago
1.1.0
11 months ago
1.0.18
11 months ago
1.0.17
11 months ago
1.0.16
11 months ago
1.1.5
11 months ago
1.1.4
11 months ago
1.1.3
11 months ago
1.1.2
11 months ago
1.0.21
11 months ago
1.0.20
11 months ago
1.0.15
11 months ago
1.0.14
11 months ago
1.0.11
11 months ago
1.0.10
11 months ago
1.0.13
11 months ago
1.0.12
11 months ago
1.0.9
11 months ago
1.0.8
11 months ago
1.0.7
11 months ago
1.0.6
11 months ago
1.0.5
11 months ago
1.0.4
11 months ago
1.0.3
11 months ago
1.0.2
11 months ago
1.0.1
11 months ago
1.0.0
11 months ago