1.1.25 • Published 7 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
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
8 months ago
1.1.18
8 months ago
1.1.20
8 months ago
1.1.17
8 months ago
1.1.16
8 months ago
1.1.15
8 months ago
1.1.14
8 months ago
1.1.12
8 months ago
1.1.11
8 months ago
1.1.10
8 months ago
1.1.13
8 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
9 months ago
1.0.19
9 months ago
1.1.0
9 months ago
1.0.18
9 months ago
1.0.17
9 months ago
1.0.16
9 months ago
1.1.5
9 months ago
1.1.4
9 months ago
1.1.3
9 months ago
1.1.2
9 months ago
1.0.21
9 months ago
1.0.20
9 months ago
1.0.15
9 months ago
1.0.14
9 months ago
1.0.11
9 months ago
1.0.10
9 months ago
1.0.13
9 months ago
1.0.12
9 months ago
1.0.9
9 months ago
1.0.8
9 months ago
1.0.7
9 months ago
1.0.6
9 months ago
1.0.5
9 months ago
1.0.4
9 months ago
1.0.3
9 months ago
1.0.2
10 months ago
1.0.1
10 months ago
1.0.0
10 months ago