2023.11.14
parent
7c6e881e03
commit
dc946ec669
@ -0,0 +1,47 @@
|
|||||||
|
<template>
|
||||||
|
<view class="aikefuBox">
|
||||||
|
<!-- 这是ai客服!!!! -->
|
||||||
|
<unFab ref="fab" :pattern="pattern" horizontal="left" vertical="bottom"
|
||||||
|
direction="horizontal" @fabClick="fabClick" />
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
import unFab from '@/uni_modules/uni-fab/components/uni-fab/uni-fab.vue'
|
||||||
|
import { onLoad } from "@dcloudio/uni-app"
|
||||||
|
// import mySwiper from "@/components/mySwiper.vue"
|
||||||
|
import {ref,onMounted,nextTick,computed} from "vue"
|
||||||
|
// import unCombox from '@/uni_modules/uni-combox/components/uni-combox/uni-combox.vue'
|
||||||
|
import {useStore} from '@/store/index.js'
|
||||||
|
const store = useStore()
|
||||||
|
import api from "@/api/index.js"
|
||||||
|
const pattern = ref({
|
||||||
|
color: '#7A7E83',
|
||||||
|
backgroundColor: '#fff',
|
||||||
|
selectedColor: '#26758d',
|
||||||
|
buttonColor: '#26758d',
|
||||||
|
iconColor: '#fff',
|
||||||
|
icon:'headphones'
|
||||||
|
})
|
||||||
|
// const content = ref([{
|
||||||
|
// iconPath: '/static/image.png',
|
||||||
|
// selectedIconPath: '/static/image-active.png',
|
||||||
|
// text: '相册',
|
||||||
|
// active: false
|
||||||
|
// }])
|
||||||
|
function fabClick() {
|
||||||
|
// uni.showToast({
|
||||||
|
// title: '点击了悬浮按钮',
|
||||||
|
// icon: 'none'
|
||||||
|
// })
|
||||||
|
uni.navigateTo({
|
||||||
|
url:"/pages/index/aikefu"
|
||||||
|
})
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.aikefuBox{
|
||||||
|
margin-top: 200rpx;
|
||||||
|
}
|
||||||
|
</style>
|
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
@ -0,0 +1,84 @@
|
|||||||
|
{
|
||||||
|
"id": "uni-fab",
|
||||||
|
"displayName": "uni-fab 悬浮按钮",
|
||||||
|
"version": "1.2.5",
|
||||||
|
"description": "悬浮按钮 fab button ,点击可展开一个图标按钮菜单。",
|
||||||
|
"keywords": [
|
||||||
|
"uni-ui",
|
||||||
|
"uniui",
|
||||||
|
"按钮",
|
||||||
|
"悬浮按钮",
|
||||||
|
"fab"
|
||||||
|
],
|
||||||
|
"repository": "https://github.com/dcloudio/uni-ui",
|
||||||
|
"engines": {
|
||||||
|
"HBuilderX": ""
|
||||||
|
},
|
||||||
|
"directories": {
|
||||||
|
"example": "../../temps/example_temps"
|
||||||
|
},
|
||||||
|
"dcloudext": {
|
||||||
|
"sale": {
|
||||||
|
"regular": {
|
||||||
|
"price": "0.00"
|
||||||
|
},
|
||||||
|
"sourcecode": {
|
||||||
|
"price": "0.00"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"contact": {
|
||||||
|
"qq": ""
|
||||||
|
},
|
||||||
|
"declaration": {
|
||||||
|
"ads": "无",
|
||||||
|
"data": "无",
|
||||||
|
"permissions": "无"
|
||||||
|
},
|
||||||
|
"npmurl": "https://www.npmjs.com/package/@dcloudio/uni-ui",
|
||||||
|
"type": "component-vue"
|
||||||
|
},
|
||||||
|
"uni_modules": {
|
||||||
|
"dependencies": ["uni-scss","uni-icons"],
|
||||||
|
"encrypt": [],
|
||||||
|
"platforms": {
|
||||||
|
"cloud": {
|
||||||
|
"tcb": "y",
|
||||||
|
"aliyun": "y"
|
||||||
|
},
|
||||||
|
"client": {
|
||||||
|
"App": {
|
||||||
|
"app-vue": "y",
|
||||||
|
"app-nvue": "y"
|
||||||
|
},
|
||||||
|
"H5-mobile": {
|
||||||
|
"Safari": "y",
|
||||||
|
"Android Browser": "y",
|
||||||
|
"微信浏览器(Android)": "y",
|
||||||
|
"QQ浏览器(Android)": "y"
|
||||||
|
},
|
||||||
|
"H5-pc": {
|
||||||
|
"Chrome": "y",
|
||||||
|
"IE": "y",
|
||||||
|
"Edge": "y",
|
||||||
|
"Firefox": "y",
|
||||||
|
"Safari": "y"
|
||||||
|
},
|
||||||
|
"小程序": {
|
||||||
|
"微信": "y",
|
||||||
|
"阿里": "y",
|
||||||
|
"百度": "y",
|
||||||
|
"字节跳动": "y",
|
||||||
|
"QQ": "y"
|
||||||
|
},
|
||||||
|
"快应用": {
|
||||||
|
"华为": "u",
|
||||||
|
"联盟": "u"
|
||||||
|
},
|
||||||
|
"Vue": {
|
||||||
|
"vue2": "y",
|
||||||
|
"vue3": "y"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue