HTML+VUE+element-ui通过点击不同按钮展现不同页面

完整源码可以私聊我,需要一点点费用~ 

页面展示

方案一

方案二

代码解释

方案一:使用v-show

这种方案只适合有两种页面

现在form表单中设置好要展现的页面名(此处的url没有作用不用管)

通过一个两个for循环分别将form表单填入的数据回显到页面中,并通过menuHandle函数进行 点击后会发生的事件,:index和:key都是用来定位那一个单独的div

可以看到点击后触发函数里这个show变量的true和flase。

而具体内容中写了两个页面内容,再通过v-if函数展现dish和comment页面

方案二:使用<iframe>

同样的通过两个v-for循环将menuList中的内容页面展现出来,同时绑定一个menuHandle函数,点击的时候触发该函数

该函数被触发的时候,就会将当前元素的id、url等元素填入到展现的form表单中

内容展现区就是通过<iframe>框架进行展现

 

代码展示

方案一

<!DOCTYPE html>
<html lang="en">
<head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! --><meta name="viewport"content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=no,minimal-ui"><title>k1饱了吗</title><link rel="icon" href="images/favico.ico"><!--不同屏幕尺寸根字体设置--><script src="./js/base.js"></script><!--element-ui的样式--><link rel="stylesheet" href="../backend/plugins/element-ui/index.css"/><!--引入vant样式--><link rel="stylesheet" href="styles/vant.min.css"/><!-- 引入样式  --><link rel="stylesheet" href="styles/index.css"/><!--本页面内容的样式--><link rel="stylesheet" href="styles/main.css"/><link rel="stylesheet" href="styles/icon/iconfont.css"/>
</head>
<body>
<div id="main" class="app"><div class="divHead"><img src="./images/user.png" @click="toUserPage"/></div><!--    头部标签区--><div class="divTitle"><div class="divStatic"><img src="./images/logo.png" class="logo"/><div class="divDesc"><div class="divName">饱了吗餐厅</div><div class="divSend"><span><img src="./images/time.png"/> 距离1.5km</span><span><img src="./images/money.png"/> 配送费6元</span><span><img src="./images/location.png"/> 预计时长12min</span></div></div></div><div class="divDesc">简介: 饱了吗餐厅是对抗饿了么的独立的品牌,定位“大众化的美食外送餐饮”,和美了么内卷竞争。</div></div><!--    菜品和评论选择区--><div class="divSelect"><div v-for="item in menuList" :key="item.id"><div :index="item.id" v-if="item.children && item.children.length>0"><template slot="title"><span>{{item.name}}</span></template><divv-for="sub in item.children":index="sub.id":key="sub.id"@click="menuHandle(sub,false)"><span slot="title" :class="sub.name">{{sub.name}}</span></div></div><div v-else :index="item.id" @click="menuHandle(item,false)"><span slot="title">{{item.name}}</span></div></div></div><!--    内容展现区--><div class="divBody"><!--展示菜单--><div class="dish" v-if="show" style="display: flex;"><div class="divType"><ul><li v-for="(item,index) in categoryList" :key="index" @click="categoryClick(index,item.id,item.type)":class="{active:activeType === index}">{{item.name}}</li></ul></div><div class="divMenu"><div><div class="divItem" v-for="(item,index) in dishList" :key="index" @click="dishDetails(item)"><el-image :src="imgPathConvert(item.image)"><div slot="error" class="image-slot"><img src="./images/noImg.png"/></div></el-image><div><div class="divName">{{item.name}}</div><div class="divDesc">{{item.description}}</div><div class="divDesc">{{'月销' + (item.saleNum ? item.saleNum : 0) }}</div><div class="divBottom"><span>¥</span><span>{{item.price/100}}</span></div><div class="divNum"><div class="divSubtract" v-if="item.number > 0"><img src="./images/subtract.png" @click.prevent.stop="subtractCart(item)"/></div><div class="divDishNum">{{item.number}}</div><div class="divTypes" v-if="item.flavors && item.flavors.length > 0 && !item.number "@click.prevent.stop="chooseFlavorClick(item)">选择规格</div><div class="divAdd" v-else><img src="./images/add.png" @click.prevent.stop="addCart(item)"/></div></div></div></div></div></div></div><!--展示评论--><div class="comment" v-if="!show"><div><div class="divItem" v-for="(item,index) in commentList" :key="index"><div class="divInfo"><div class="divName">{{item.name}}</div><div class="divTime">{{item.createTime}}</div></div><div class="divComment"><div v-if="item.description" class="divDesc">{{item.description}}</div></div><el-image v-if="item.image" :src="imgPathConvert(item.image)" ></el-image></div></div></div><!--        菜品选择区--><!--        <div class="app-main" v-loading="loading">--><!--            <div class="divTmp" v-show="loading"></div>--><!--            <iframe--><!--                    id="cIframe"--><!--                    class="c_iframe"--><!--                    name="cIframe"--><!--                    :src="iframeUrl"--><!--                    width="100%"--><!--                    height="auto"--><!--                    frameborder="0"--><!--                    v-show="!loading"--><!--            ></iframe>--><!--        </div>--></div><div class="divLayer"><div class="divLayerLeft"></div><div class="divLayerRight"></div></div><div class="divCart" v-if="categoryList.length > 0"><div :class="{imgCartActive: cartData && cartData.length > 0, imgCart:!cartData || cartData.length<1}"@click="openCart"></div><div :class="{divGoodsNum:1===1, moreGoods:cartData && cartData.length > 99}"v-if="cartData && cartData.length > 0">{{ goodsNum }}</div><div class="divNum"><span>¥</span><span>{{goodsPrice}}</span></div><div class="divPrice"></div><div :class="{btnSubmitActive: cartData && cartData.length > 0, btnSubmit:!cartData || cartData.length<1}"@click="toAddOrderPage">去结算</div></div><van-dialog v-model="dialogFlavor.show" :show-confirm-button="false" class="dialogFlavor" ref="flavorDialog"><div class="dialogTitle">{{dialogFlavor.name}}</div><div class="divContent"><div v-for="flavor in dialogFlavor.flavors" :key="flavor.id"><div class="divFlavorTitle">{{flavor.name}}</div><span v-for="item in JSON.parse(flavor.value)":key="item"@click="flavorClick(flavor,item)":class="{spanActive:flavor.dishFlavor === item}">{{item}}</span></div></div><div class="divBottom"><div><span class="spanMoney">¥</span>{{dialogFlavor.price/100}}</div><div @click="dialogFlavorAddCart">加入购物车</div></div><div class="divFlavorClose" @click="dialogFlavor.show = false"><img src="./images/close.png"/></div></van-dialog><van-popup v-model="cartDialogShow" position="bottom" :style="{ height: '50%' }" class="dialogCart"><div class="divCartTitle"><div class="title">购物车</div><div class="clear" @click="clearCart"><i class="el-icon-delete"></i> 清空</div></div><div class="divCartContent"><div v-for="item in cartData" :key="item.id" class="divCartItem"><el-image :src="imgPathConvert(item.image)"><div slot="error" class="image-slot"><img src="./images/noImg.png"/></div></el-image><div class="divDesc"><div class="name">{{item.name}}</div><div class="price"><span class="spanMoney">¥</span>{{item.amount}}</div></div><div class="divNum"><div class="divSubtract"><img src="./images/subtract.png" @click="cartNumberSubtract(item)"/></div><div class="divDishNum">{{item.number}}</div><div class="divAdd"><img src="./images/add.png" @click="cartNumAdd(item)"/></div></div><div class="divSplit"></div></div></div></van-popup><van-dialog v-model="detailsDialog.show":show-confirm-button="false"class="detailsDialog"ref="detailsDialog"v-if="detailsDialog.show"><div class="divContainer"><el-image :src="imgPathConvert(detailsDialog.item.image)"><div slot="error" class="image-slot"><img src="./images/noImg.png"/></div></el-image><div class="title">{{detailsDialog.item.name}}</div><div class="content">{{detailsDialog.item.description}}</div></div><div class="divNum"><div class="left"><span>¥</span><span>{{detailsDialog.item.price/100}}</span></div><div class="right"><div class="divSubtract" v-if="detailsDialog.item.number > 0"><img src="./images/subtract.png" @click="subtractCart(detailsDialog.item)"/></div><div class="divDishNum">{{detailsDialog.item.number}}</div><div class="divTypes"v-if="detailsDialog.item.flavors && detailsDialog.item.flavors.length > 0 && !detailsDialog.item.number "@click="chooseFlavorClick(detailsDialog.item)">选择规格</div><div class="divAdd" v-else><img src="./images/add.png" @click="addCart(detailsDialog.item)"/></div></div></div><div class="detailsDialogClose" @click="detailsDialog.show = false"><img src="./images/close.png"/></div></van-dialog><van-dialog v-model="setMealDialog.show":show-confirm-button="false"class="setMealDetailsDialog"ref="setMealDetailsDialogd"v-if="setMealDialog.show"><div class="divContainer"><div class="title">{{setMealDialog.item.name}}</div><div class="item" v-for="(item,index) in setMealDialog.item.list" :key="index"><el-image :src="imgPathConvert(item.image)"><div slot="error" class="image-slot"><img src="./images/noImg.png"/></div></el-image><div class="divSubTitle">{{item.name + '(' + item.copies + '份)' }}<div class="divPrice"><span>¥</span><span>{{item.price/100}}</span></div></div><div class="content">{{item.description}}</div></div></div><div class="divNum"><div class="left"><span>¥</span><span>{{setMealDialog.item.price/100}}</span></div><div class="right"><div class="divSubtract" v-if="setMealDialog.item.number > 0"><img src="./images/subtract.png" @click="subtractCart(setMealDialog.item)"/></div><div class="divDishNum">{{setMealDialog.item.number}}</div><div class="divAdd" v-if="setMealDialog.item.number"><img src="./images/add.png" @click="addCart(setMealDialog.item)"/></div><div class="addCart" @click="addCart(setMealDialog.item)" v-if="!setMealDialog.item.number">加入购物车</div></div></div><div class="detailsDialogClose" @click="setMealDialog.show = false"><img src="./images/close.png"/></div></van-dialog>
</div>
<!-- 开发环境版本,包含了有帮助的命令行警告 -->
<script src="../backend/plugins/vue/vue.js"></script>
<!-- 引入组件库 -->
<script src="../backend/plugins/element-ui/index.js"></script>
<!-- 引入vant样式 -->
<script src="./js/vant.min.js"></script>
<!-- 引入axios -->
<script src="../backend/plugins/axios/axios.min.js"></script>
<script src="./js/request.js"></script>
<script src="./js/common.js"></script>
<script src="./api/main.js"></script>
<script src="../api/comment.js"></script>
</body>
<script>new Vue({el: '#main',data() {return {//左边菜品类别indexactiveType: 0,categoryList: [],categoryId: undefined,dishList: [],cartData: [],commentList: [],dialogFlavor: {name: '',flavors: [],dishId: undefined,price: undefined,show: false,image: ''},cartDialogShow: false,detailsDialog: {show: false,item: {image: ''}},setMealDialog: {show: false,item: {}},menuList: [// {//   id: '1',//   name: '门店管理',//   children: [{id: '2',name: '菜品',url: '../front/page/showDish.html',icon: 'icon-member'},{id: '3',name: '评论',url: '../backend/page/member/list.html',icon: 'icon-category'}],iframeUrl: '../backend/page/member/list.html',headTitle: '菜品',goBackFlag: false,loading: true,timer: null,show: true}},computed: {goodsNum() {let num = 0this.cartData.forEach(item => {num += item.number})if (num < 99) {return num} else {return '99+'}},goodsPrice() {let price = 0this.cartData.forEach(item => {price += (item.number * item.amount)})return price}},created() {const userInfo = window.localStorage.getItem('userInfo')if (userInfo) {this.userInfo = JSON.parse(userInfo)}this.closeLoading()},watch: {'dialogFlavor.show'(flag) {if (flag) {document.querySelector('.divCart').style.zIndex = 1} else {document.querySelector('.divCart').style.zIndex = 3000}},},mounted() {this.initData()window.menuHandle = this.menuHandle},methods: {//初始化数据initData() {Promise.all([categoryListApi(), cartListApi({})]).then(res => {//获取分类数据if (res[0].code === 1) {this.categoryList = res[0].dataif (Array.isArray(res[0].data) && res[0].data.length > 0) {this.categoryId = res[0].data[0].idif (res[0].data[0].type === 1) {this.getDishList()this.getCommentList()} else {this.getSetmealData()}}} else {this.$notify({type: 'warning', message: res[0].msg});}//获取菜品数据if (res[1].code === 1) {this.cartData = res[1].data} else {this.$notify({type: 'warning', message: res[1].msg});}})},//分类点击categoryClick(index, id, type) {this.activeType = indexthis.categoryId = idif (type === 1) {//菜品this.getDishList()} else {this.getSetmealData()}},//获取菜品数据async getDishList() {if (!this.categoryId) {return}const res = await dishListApi({categoryId: this.categoryId, status: 1})if (res.code === 1) {let dishList = res.dataconst cartData = this.cartDataif (dishList.length > 0 && cartData.length > 0) {dishList.forEach(dish => {cartData.forEach(cart => {if (dish.id === cart.dishId) {dish.number = cart.number}})})}this.dishList = dishList} else {this.$notify({type: 'warning', message: res.msg});}},//获取套餐数据setmealIdasync getSetmealData() {if (!this.categoryId) {return}const res = await setmealListApi({categoryId: this.categoryId, status: 1})if (res.code === 1) {let dishList = res.dataconst cartData = this.cartDataif (dishList.length > 0 && cartData.length > 0) {dishList.forEach(dish => {cartData.forEach(cart => {if (dish.id === cart.setmealId) {dish.number = cart.number}})})}this.dishList = dishList} else {this.$notify({type: 'warning', message: res.msg});}},//获取购物车数据async getCartData() {const res = await cartListApi({})if (res.code === 1) {this.cartData = res.data} else {this.$notify({type: 'warning', message: res.msg});}},//菜单中往购物车中添加商品async addCart(item) {let params = {amount: item.price / 100,//金额dishFlavor: item.dishFlavor,//口味  如果没有传undefineddishId: undefined,//菜品idsetmealId: undefined,//套餐idname: item.name,image: item.image}if (Array.isArray(item.flavors)) {//表示是菜品params.dishId = item.id} else {//表示套餐 套餐没有口味params.setmealId = item.id}const res = await addCartApi(params)if (res.code === 1) {this.dishList.forEach(dish => {if (dish.id === item.id) {dish.number = res.data.number}})if (this.setMealDialog.show) {item.number = res.data.number}this.getCartData()} else {this.$notify({type: 'warning', message: res.msg});}},//菜单中减少选中的商品async subtractCart(item) {let params = {dishId: item.id,}if (!Array.isArray(item.flavors)) {params = {setmealId: item.id,}}const res = await updateCartApi(params)if (res.code === 1) {this.dishList.forEach(dish => {if (dish.id === item.id) {dish.number = (res.data.number === 0 ? undefined : res.data.number)}})if (this.setMealDialog.show) {item.number = (res.data.number === 0 ? undefined : res.data.number)}this.getCartData()} else {this.$notify({type: 'warning', message: res.msg});}},//展开购物车openCart() {if (this.cartData.length > 0) {this.cartDialogShow = true}},//购物车中增加商品数量async cartNumAdd(item) {let params = {amount: item.amount,//金额dishFlavor: item.dishFlavor,//口味  如果没有传undefineddishId: item.dishId,//菜品idsetmealId: item.setmealId,//套餐idname: item.name,image: item.image}const res = await addCartApi(params)if (res.code === 1) {this.dishList.forEach(dish => {if (dish.id === (item.dishId || item.setmealId)) {dish.number = res.data.number}})console.log(this.dishList)this.getCartData()} else {this.$notify({type: 'warning', message: res.msg});}},//购物车中减少商品数量async cartNumberSubtract(item) {let params = {dishId: item.dishId,setmealId: item.setmealId,}const res = await updateCartApi(params)if (res.code === 1) {this.dishList.forEach(dish => {if (dish.id === (item.dishId || item.setmealId)) {dish.number = (res.data.number === 0 ? undefined : res.data.number)}})this.getCartData()} else {this.$notify({type: 'warning', message: res.msg});}},//修改商品列表中的数据numberchangeDishList(item) {for (let ele of this.dishList) {if (ele.id === (item.setmealId || item.dishId)) {ele.number = item.number}}},//清空购物车async clearCart() {const res = await clearCartApi()if (res.code === 1) {for (let ele of this.dishList) {ele.number = undefined}this.cartData = []this.cartDialogShow = false} else {this.$notify({type: 'warning', message: res.msg});}},//点击选择规格chooseFlavorClick(item) {this.dialogFlavor = {name: '',flavors: [],dishId: undefined,price: undefined,show: false}this.dialogFlavor = {name: item.name,flavors: item.flavors,dishId: item.id,price: item.price,show: true,image: item.image}},flavorClick(flavor, item) {flavor.dishFlavor = item//强制刷新dialog的domthis.dialogFlavor.show = falsethis.dialogFlavor.show = true},//选择规格加入购物车dialogFlavorAddCart() {const dialogFlavor = this.dialogFlavorlet flag = truelet dishFlavor = []dialogFlavor.flavors.forEach(item => {if (item.dishFlavor) {dishFlavor.push(item.dishFlavor)} else {flag = falseNotify({type: 'warning', message: '请选择' + item.name});}})if (flag) {this.addCart({price: dialogFlavor.price,dishFlavor: dishFlavor.join(","),id: dialogFlavor.dishId,flavors: [],image: dialogFlavor.image,name: dialogFlavor.name})this.dialogFlavor.show = false}},//网络图片路径转换imgPathConvert(path) {return imgPath(path)},//跳转到去结算界面toAddOrderPage() {if (this.cartData.length > 0) {window.requestAnimationFrame(() => {window.location.href = '/front/page/add-order.html'})}},toUserPage() {window.requestAnimationFrame(() => {window.location.href = '/front/page/user.html'})},async dishDetails(item) {//先清除对象数据,如果不行的话dialog使用v-ifthis.detailsDialog.item = {}this.setMealDialog.item = {}if (Array.isArray(item.flavors)) {this.detailsDialog.item = itemthis.detailsDialog.show = true} else {//显示套餐的数据const res = await setMealDishDetailsApi(item.id)if (res.code === 1) {this.setMealDialog.item = {...item, list: res.data}this.setMealDialog.show = true} else {this.$notify({type: 'warning', message: res.msg});}}},addComment() {window.location.href = 'page/addComment.html'},menuHandle(item, goBackFlag) {this.loading = truethis.menuActived = item.idthis.iframeUrl = item.urlthis.headTitle = item.namethis.goBackFlag = goBackFlagthis.show = !this.showthis.closeLoading()},closeLoading() {this.timer = nullthis.timer = setTimeout(() => {this.loading = false}, 1000)},showContent(button){if(button == 'showDishContent'){this.showContent = true;this.showComment = false;}else if(button == 'showCommentContent'){this.showContent = false;this.showComment = true;}},async getCommentList(){const res = await commentListApi()if(res.code === 1){this.commentList = res.data}else {this.$notify({type: 'warning', message: res.msg})}}}})
</script>
</html>

方案二

<!DOCTYPE html>
<html lang="en">
<head><meta charset="UTF-8"/><meta http-equiv="X-UA-Compatible" content="IE=edge"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>11外卖管理端</title><link rel="shortcut icon" href="favicon.ico"><!-- 引入样式 --><!-- <link rel="stylesheet" href="plugins/element-ui/index.css"/> --><link rel="stylesheet" href="styles/common.css"/><link rel="stylesheet" href="styles/index.css"/><link rel="stylesheet" href="styles/icon/iconfont.css"/><style>.body {min-width: 1366px;}.app-main {height: calc(100% - 64px);}.app-main .divTmp {width: 100%;height: 100%;}</style>
</head><body>
<div class="app" id="app"><div class="app-wrapper openSidebar clearfix"><!-- sidebar --><div class="sidebar-container"><el-scrollbar wrap-class="scrollbar-wrapper"><el-menu><div v-for="item in menuList" :key="item.id"><el-submenu :index="item.id" v-if="item.children && item.children.length>0"><template slot="title"><i class="iconfont" :class="item.icon"></i><span>{{item.name}}</span></template><el-menu-itemv-for="sub in item.children":index="sub.id":key="sub.id"@click="menuHandle(sub,false)"><i :class="iconfont" :class="sub.icon"></i><span slot="title">{{sub.name}}</span></el-menu-item></el-submenu><el-menu-item v-else :index="item.id" @click="menuHandle(item,false)"><i class="iconfont" :class="item.icon"></i><span slot="title">{{item.name}}</span></el-menu-item></div></el-menu></el-scrollbar></div><div class="main-container"><!-- <navbar /> --><div class="navbar"><div class="head-lable"><span v-if="goBackFlag" class="goBack" @click="goBack()"><img src="images/icons/btn_back@2x.png" alt=""/> 返回</span><span>{{headTitle}}</span></div><div class="right-menu"><div class="avatar-wrapper">{{ userInfo.name }}</div><!-- <div class="logout" @click="logout">退出</div> --><img src="images/icons/btn_close@2x.png" class="outLogin" alt="退出" @click="logout"/></div></div><div class="app-main" v-loading="loading"><div class="divTmp" v-show="loading"></div><iframeid="cIframe"class="c_iframe"name="cIframe":src="iframeUrl"width="100%"height="auto"frameborder="0"v-show="!loading"></iframe></div></div></div>
</div>
<!-- 开发环境版本,包含了有帮助的命令行警告 -->
<script src="plugins/vue/vue.js"></script>
<!-- 引入组件库 -->
<script src="plugins/element-ui/index.js"></script>
<!-- 引入axios -->
<script src="plugins/axios/axios.min.js"></script>
<script src="js/request.js"></script>
<script src="./api/login.js"></script>
<script>new Vue({el: '#app',data() {return {defAct: '2',menuActived: '2',userInfo: {},menuList: [// {//   id: '1',//   name: '门店管理',//   children: [{id: '2',name: '员工管理',url: 'page/member/list.html',icon: 'icon-member'},{id: '3',name: '分类管理',url: 'page/category/list.html',icon: 'icon-category'},{id: '4',name: '菜品管理',url: 'page/food/list.html',icon: 'icon-food'},{id: '5',name: '套餐管理',url: 'page/combo/list.html',icon: 'icon-combo'},{id: '6',name: '订单明细',url: 'page/order/list.html',icon: 'icon-order'}//   ],// },],iframeUrl: 'page/member/list.html',headTitle: '员工管理',goBackFlag: false,loading: true,timer: null}},computed: {},created() {const userInfo = window.localStorage.getItem('userInfo')if (userInfo) {this.userInfo = JSON.parse(userInfo)}this.closeLoading()},beforeDestroy() {this.timer = nullclearTimeout(this.timer)},mounted() {window.menuHandle = this.menuHandle},methods: {logout() {logoutApi().then((res) => {if (res.code === 1) {localStorage.removeItem('userInfo')window.location.href = '/backend/page/login/login.html'}})},goBack() {// window.location.href = 'javascript:history.go(-1)'const menu = this.menuList.find(item => item.id === this.menuActived)// this.goBackFlag = false// this.headTitle = menu.namethis.menuHandle(menu, false)},menuHandle(item, goBackFlag) {this.loading = truethis.menuActived = item.idthis.iframeUrl = item.urlthis.headTitle = item.namethis.goBackFlag = goBackFlagthis.closeLoading()},closeLoading() {this.timer = nullthis.timer = setTimeout(() => {this.loading = false}, 1000)}}})
</script>
</body>
</html>

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.mzph.cn/news/88413.shtml

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

PWN环境搭建

虚拟机Ubuntu安装 工具&#xff1a;Vmware 16 以及 Ubuntu 18或20 来源&#xff1a;清华大学开源软件镜像站 | Tsinghua Open Source Mirror 虚拟机安装流程 安装很简单&#xff0c;按照提示一步步来即可 处理器可以多给一些&#xff0c;我给了8个&#xff0c;内核数量不…

004:vue使用relation-graph实现关系图谱

文章目录 1. 效果2. relation-graph简介3. 安装及使用4. 其他更多示例 1. 效果 2. relation-graph简介 这是一个Vue关系图谱组件&#xff0c;可以展示如组织机构图谱、股权架构图谱、集团关系图谱等知识图谱&#xff0c;可提供多种图谱布局&#xff0c;包括树状布局、中心布局…

ChatGPT推出全新功能,引发人工智能合成声音担忧|百能云芯

人工智能AI科技企业OpenAI公司25日宣布&#xff0c;其聊天应用程序ChatGPT如今具备「看、听、说」能力&#xff0c;至少能够理解口语、用合成语音回应并且处理图像&#xff1b;但专家忧心&#xff0c;以假乱真与深度伪造的乱象可能变本加厉。 国家广播公司新闻网(NBC News)报导…

全新UI基于Thinkphp的最新自助打印系统/云打印小程序源码/附教程

这是一款全新的基于Thinkphp的最新自助打印系统&#xff0c;最新UI界面设计的云打印小程序源码&#xff0c;带有简单的教程。 下载地址&#xff1a;https://bbs.csdn.net/topics/617324130

简述ceph文件储存系统

Ceph 是一个统一的分布式存储系统和共享机制&#xff0c;它定义了数据如何存储在一个或多个节点上并呈现给其他机器以供文件访问。 Ceph特点 高性能 a. 摒弃了传统的集中式存储元数据寻址的方案&#xff0c;采用CRUSH算法&#xff0c;数据分布均衡&#xff0c;并行度高。 b.考…

WSL2编译安卓11源码,,刷入pixel设备,并使用asfp查看源码

目录 WSL2编译安卓11源码,&#xff0c;刷入pixel设备源码下载驱动下载编译刷机源码导入Android Studio for platformADB调试 WSL2编译安卓11源码,&#xff0c;刷入pixel设备 aosp编译完成后&#xff0c;刷入手机其实非常简单&#xff0c;但是使用wsl有一个问题&#xff0c;就是…

crypto:变异凯撒

题目 下载题目所给的压缩包后解压得到文本提示 由题目名可知为凯撒密码 根据提示格式为flag{}&#xff0c;所以猜测前四个字符原文为flag 先来推测一下偏移量 a->f 偏移量为-5&#xff0c;按道理来说每个字符的偏移量都是一样的&#xff0c;但是对照过后发现后面的字符对…

Java面向对象高级

文章目录 面向对象高级Object类的常用方法常用方法一&#xff08;面向对象阶段&#xff09;** 和 equals 的区别** 关键字native**单例设计模式&#xff08;Singleton&#xff09;**前情回顾&#xff08;学习基础&#xff09;静态修饰符Static设计模式概念开发步骤**两种实现方…

springboot集成quartz并实现定时任务管理

依赖&#xff1a; <quartz.version>2.3.0</quartz.version><dependency><groupId>org.quartz-scheduler</groupId><artifactId>quartz</artifactId><version>${quartz.version}</version><exclusions><exclus…

“的修“报修工单管理系统有哪些功能和作用?

“的修"报修工单管理系统是基于微信平台的&#xff0c;无需下载和安装&#xff0c;只需扫码即可使用。它是一个维保过程管控的理想解决方案&#xff0c;适用于企业、学校、医院、物业等单位需要设备维保的场景。“的修"报修小程序具有独立部署和可控的数据安全性&…

手把手教你实现:将后端SpringBoot项目部署到华为云服务器上

前言 前提&#xff1a;有一个后端项目&#xff0c;项目能够运行在本地&#xff0c;可以通过本地访问&#xff08;localhost&#xff09; 如果没有可以看这篇&#xff1a;一个基于SpringBoot的后端项目 注册华为云账号 华为云官网 购买云服务器 产品 -> 华为云耀云服务器…

【数据结构-树】哈夫曼树

&#x1f49d;&#x1f49d;&#x1f49d;欢迎来到我的博客&#xff0c;很高兴能够在这里和您见面&#xff01;希望您在这里可以感受到一份轻松愉快的氛围&#xff0c;不仅可以获得有趣的内容和知识&#xff0c;也可以畅所欲言、分享您的想法和见解。 推荐:kuan 的首页,持续学…

图片编辑小程序源码/拼图小程序源码

图片编辑小程序源码&#xff0c;拼图小程序源码。全能、便捷的图片编辑工具。实现了图片裁剪、添加文字、涂鸦、拼长图、拼相框等图片编辑功能&#xff0c;另外还有一个简易的表情包制作功能。 主要有以下几个功能&#xff1a;图片裁剪、添加文字、涂鸦功能、拼长图、拼相框、表…

mybati缓存了解

title: “mybati缓存了解” createTime: 2021-12-08T12:19:5708:00 updateTime: 2021-12-08T12:19:5708:00 draft: false author: “ggball” tags: [“mybatis”] categories: [“java”] description: “mybati缓存了解” mybatis的缓存 首先来看下mybatis对缓存的规范&…

Ingress Controller

什么是 Ingress Controller &#xff1f; 在云原生生态中&#xff0c;通常来讲&#xff0c;入口控制器( Ingress Controller )是 Kubernetes 中的一个关键组件&#xff0c;用于管理入口资源对象。 Ingress 资源对象用于定义来自外网的 HTTP 和 HTTPS 规则&#xff0c;以控制进…

el-image 和 el-table冲突层级冲突问题

其中原理&#xff0c;很多博客已经所过了&#xff0c;table组件中使用图片&#xff0c;会出现层级过低问题&#xff0c; 网上大部分解决方式是 使用穿透 // 单元格样式 ::v-deep(.el-table__cell) {position: static !important; }我在此不推荐这种解决方式&#xff0c;原因&a…

Leetcode228. 汇总区间

力扣&#xff08;LeetCode&#xff09;官网 - 全球极客挚爱的技术成长平台 给定一个 无重复元素 的 有序 整数数组 nums 。 返回 恰好覆盖数组中所有数字 的 最小有序 区间范围列表 。也就是说&#xff0c;nums 的每个元素都恰好被某个区间范围所覆盖&#xff0c;并且不存在属…

二、VXLAN BGP EVPN基本原理

VXLAN BGP EVPN基本原理 1、BGP EVPN2、BGP EVPN路由2.1、Type2路由——MAC/IP路由2.2、Type3路由——Inclusive Multicast路由2.3、Type5路由——Inclusive Multicast路由 ————————————————————————————————————————————————…

聚焦云原生安全|如何为5G边缘云和工业互联网应用筑牢安全防线

9月22日&#xff0c;2023年中国信息通信业发展高层论坛5G工业互联网分论坛在北京顺利举办。 作为国内云原生安全领导厂商&#xff0c;安全狗受邀出席此次活动。 据悉&#xff0c;中国信息通信业发展高层论坛是致力于研究信息通信业发展新问题、新趋势&#xff0c;推动信息通信…

uniapp项目实践总结(二十三)网页和小程序应用打包教程

导语&#xff1a;当你的应用程序开发完成后&#xff0c;在发布到互联网之前&#xff0c;需要进行打包操作&#xff0c;包括网页端、小程序端的打包。 目录 准备工作网页打包小程序打包 准备工作 在打包之前&#xff0c;请保证你的 uniapp 应用程序编译到网页、小程序是可以正…