uniapp 首页制作

news2024/9/25 23:19:14

uniapp拨打固定的电话  


			function Hotline() {
				// 拨打电话
				uni.makePhoneCall({
					phoneNumber: '19969547693'
				})
			}

 页面跳转

	//普通跳转
			function homepage() {
				uni.navigateTo({
					url: '/pages/homepage/homepage'
				});
			}

	//二、uni.redirectTo关闭当前页面,跳转到应用内的某个页面。

			uni.redirectTo({
				url: './index/index'
			});


	//三、uni.switchTab跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面。

			uni.switchTab({
				url: '/pages/homepage/homepage'
			});

首页页面展示 

代码

<template>
	<view class="bg">

		<!-- 搜索地址  title-->
		<div class="title">
			<!-- 一级导航 -->
			<uni-combox :candidates="candidates" placeholder="请选择所在城市" v-model="city" labelWidth="70px"
				style="background-color:(117,17,29); margin: 4px 10px;"></uni-combox>

			<!-- 二级导航 -->
			<p
				style=" margin: 10px; color: white; line-height: 20px; height: 20px; background-color: (117,17,29);padding: 2px;">
				无障碍阅读</p>
		</div>

		<!-- 轮播图 swiper-box-->
		<uni-swiper-dot :info="info">
			<swiper class="swiper-box">
				<swiper-item v-for="(item ,index) in info" :key="index">
					<view class="swiper-box-img">
						{{item.content}}
					</view>
				</swiper-item>
			</swiper>
		</uni-swiper-dot>


		<!-- 常用服务 service-->
		<div class="common">
			<uni-icons type="map-pin" size="30" color="red"></uni-icons>
			<h3>常用服务</h3>
		</div>

		<div style="display: flex;flex-wrap: wrap; justify-content:space-around;">
			<div @click='homepage  ' style="margin: 4px 12px;">
				<image src="../../static/weixiu.png" class="service-img"></image>
				<p class="service-p">我要保修</p>
			</div>
			<div @click='complaint' style="margin: 4px 12px;">
				<image src="../../static/i247.png" class="service-img"></image>
				<p class="service-p">投诉意见</p>
			</div>
			<div @click='Hotline' style="margin: 4px 12px;">
				<image src="../../static/dianhua.png" class="service-img"></image>
				<p class="service-p">服务热线</p>
			</div>
			<div @click='Notice' style="margin: 4px 12px;">
				<image src="../../static/gonggao.png" class="service-img"></image>
				<p class="service-p">通知公告</p>
			</div>

			<div @click='HandleRepairs' style="margin: 4px 12px;">
				<image src="../../static/tousu.png" class="service-img"></image>
				<p class="service-p">导出表单</p>
			</div>
			<div @click='HandlingComplaints' style="margin: 4px 12px;">
				<image src="../../static/faxian.png" class="service-img"></image>
				<p class="service-p">导入表单</p>
			</div>
		</div>

		<!-- 公平 public-nav-->
		<h3><uni-icons type="map-pin" size="30" color="red"></uni-icons>{{listcons.title}}</h3>
		<uni-segmented-control :values="items" @clickItem="onClickItem" styleType="text"
			style="margin-right: 120px; margin-left: 20px;" />
		<view class="public-nav">
			<view>
				<view class="public-view" v-for="item in listcons.items " :key="item">
					<img :src="item.icon" class="public-img" />
					<p class="public-text">{{item.label}}</p>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		setup(_, ctx) {
			const mode = 'round'
			const items = ['报修意见', '通知通告', '导出表单']

			const city = ''
			const candidates = ['北京', '南京', '东京', '武汉', '天津', '上海', '海口']


			const services = {
				title: '常用服务',
				items: [{
						icon: '/static/weixiu.png',
						label: '我要保修',
						url: '/pages/homepage/homepage'
					},
					{
						icon: '/static/i247.png',
						label: '投诉意见',
					},
					{
						icon: '/static/dianhua.png',
						label: '服务热线',
					}, {
						icon: '/static/gonggao.png',
						label: '通知公告',
					}, {
						icon: '/static/tousu.png',
						label: '导出表单',
					}, {
						icon: '/static/faxian.png',
						label: '导入表单',
					}
				],
			}

			function onClickItem(e) {
				if (currents.value !== e.currentIndex) {
					currents.value = e.currentIndex
				}
			}

			const info = [{
					content: ''
				},
				{
					content: ''
				},
				{
					content: ''
				},
			]

			const listcons = {
				title: '公开公正',
				items: [{
					icon: '../../static/微信图片_20230903143138.jpg',
					label: '2023中秋国庆假期盘点 高速公路川流不息,景区景点“人从众”,大型商超人气火爆,电影市场红火向好'
				}, {
					icon: '../../static/微信图片_20230903143138.jpg',
					label: '今年中秋、国庆双节并行,超8亿人次出游、国内旅游收入超7500亿元,上涨的热情、刷新的数据,映射出人们对美好生活的期盼,彰显中国经济的活力'
				}, {
					icon: '../../static/微信图片_20230903143138.jpg',
					label: '没想到泼天的富贵要到文具届了,我想说自动铅笔更贵是因为它比普通铅笔改进了技术'
				}, {
					icon: '../../static/微信图片_20230903143138.jpg',
					label: '2023中秋国庆假期盘点 高速公路川流不息,景区景点“人从众”,大型商超人气火爆,电影市场红火向好'
				}, {
					icon: '../../static/微信图片_20230903143138.jpg',
					label: '今年中秋、国庆双节并行,超8亿人次出游、国内旅游收入超7500亿元,上涨的热情、刷新的数据,映射出人们对美好生活的期盼,彰显中国经济的活力'
				}, {
					icon: '../../static/微信图片_20230903143138.jpg',
					label: '没想到泼天的富贵要到文具届了,我想说自动铅笔更贵是因为它比普通铅笔改进了技术'
				}, ],
			}


			function homepage() {
				uni.navigateTo({
					url: '/pages/homepage/homepage'
				});
			}


			function complaint() {
				uni.navigateTo({
					url: '/pages/complaint/complaint'
				});
			}


			function Hotline() {
				// 拨打电话
				uni.makePhoneCall({
					// phoneNumber: '19969547693'
					phoneNumber: '18343078388'
				})
			}

			function Notice() {
				uni.navigateTo({
					url: '/pages/Notice/Notice'
				});
			}

			function HandleRepairs() {
				uni.navigateTo({
					url: '/pages/HandleRepairs/HandleRepairs'
				});
			}

			function HandlingComplaints() {
				uni.navigateTo({
					url: '/pages/HandlingComplaints/HandlingComplaints'
				});
			}

			return {
				info,
				mode,
				items,
				onClickItem,
				city,
				candidates,
				complaint,
				homepage,
				Hotline,
				Notice,
				HandleRepairs,
				HandlingComplaints,
				listcons,
				services
			}
		}
	}
</script>
<style scoped>
	/* 背景 */
	.bg {
		width: 100%;
		height: 150px;
		background-image: url('/static//QQ截图20230928135008.jpg');
		background-position: center center;
		background-repeat: no-repeat;

	}

	/* 搜索地址 */
	.title {
		display: flex;
		justify-content: space-between;
	}

	.title-p {
		color: antiquewhite;
	}

	/* 轮播图 */
	.swiper-box {
		margin: 10px;
	}

	.swiper-box-img {
		/* 	background-color: aquamarine; */
		width: 100%;
		height: 150px;
		background-image: url('../../static/212592593253b564407bcec.jpg');
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
		color: aqua;
	}

	/* 常用服务 */

	.common {
		width: 120px;
		display: flex;
		/* margin: 20px 0; */
		margin-top: 20px;
	}

	.service-nav {
		display: flex;
		flex-wrap: wrap;
	}

	.service-img {
		width: 25px;
		height: 25px;
		margin-left: 20px;
		margin-top: 5px;
	}

	.service-p {
		margin-left: 10px;
		margin-top: 5px;
	}


	/* 公式公开 */
	.public {
		margin-top: -20px;
	}

	.public-nav {
		display: flex;
		margin-top: 15px;
		height: 22rem;
	}

	.public-view {
		display: flex;
		align-items: center;
	}

	.public-img {
		width: 70px;
		height: 70px;
		margin: 0 20px;
		margin-top: 5px;
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
	}

	.public-text {
		width: 240px;
		font-size: 14px;
		color: #666;
		/* 让文本不换行 */
		white-space: nowrap;
		overflow: hidden;
		/* 超出部分隐藏 */
		text-overflow: ellipsis;
		/* 使用省略号代替超出部分 */
	}

	.example-body {
		padding: 12px;
		background-color: #FFFFFF;
	}

	.result-box {
		text-align: center;
		padding: 20px 0px;
		font-size: 16px;
	}
</style>

我的页面展示

代码 

<template>
	<view class="bg">
		<p class="boder"></p>
		<h3 class="name">ID : {{name}}</h3>
	</view>
	<view class="">
		<view class="container">


			<uni-section>
				<uni-group mode="card">
					<view class="tuichu">
						<image src="../../static/baoxiu.png" style="width: 20px; height: 20px;margin-right: 20px;">
						</image>
						<h3 @click="gonavigate">服务 </h3>

					</view>
				</uni-group>

				<uni-group title="" mode="card">

					<view class="" style="display: flex; justify-content: space-between;">
						<view class="tuichu">
							<image src="../../static/baoxiu.png" style="width: 20px; height: 20px;margin-right: 20px;">
							</image>
							<h3 @click="gonavigate">收藏 </h3>

						</view>
						<uni-icons type="forward" size="20"></uni-icons>

					</view>
					<uni-list-item :disabled="true" style="margin-top: 10px;"></uni-list-item>
					<view class="" style="display: flex; justify-content: space-between;">
						<view class="tuichu">
							<image src="../../static/baoxiu.png" style="width: 20px; height: 20px;margin-right: 20px;">
							</image>
							<h3 @click="gonavigate">朋友圈 </h3>

						</view>
						<uni-icons type="forward" size="20"></uni-icons>

					</view>
					<uni-list-item :disabled="true" style="margin-top: 10px;"></uni-list-item>
					<view class="" style="display: flex; justify-content: space-between;">
						<view class="tuichu">
							<image src="../../static/baoxiu.png" style="width: 20px; height: 20px;margin-right: 20px;">
							</image>
							<h3 @click="gonavigate">导入 </h3>

						</view>
						<uni-icons type="forward" size="20"></uni-icons>

					</view>
				</uni-group>


				<uni-group mode="card">
					<view class="tuichu">
						<image src="../../static/baoxiu.png" style="width: 20px; height: 20px;margin-right: 20px;">
						</image>
						<h3 @click="gonavigate">退出 </h3>
					</view>
				</uni-group>
			</uni-section>

		</view>
	</view>
</template>
<script>
	export default {
		setup() {
			const name = '周阿狗'


			function gonavigate() {
				uni.showToast({
					title: '退出成功',
					icon: 'none',
				});
				uni.redirectTo({
					url: '../index/index'
				});
			}


			return {
				name,
				gonavigate
			}
		}
	}
</script>
<style>
	.bg {
		width: 100%;
		height: 180px;
		background-image: url('../../static/微信图片_20230903143208.jpg');
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
		display: flex;
	}

	.boder {
		width: 70px;
		height: 70px;
		margin: 40px;
		border-radius: 30px;
		background-image: url('../../static/31wode.png');
		background-position: center center;
		background-repeat: no-repeat;
		background-size: cover;
	}

	.name {
		padding: 60px 0;
		color: aliceblue;
	}

	.tuichu {
		display: flex;
	}
</style>

登录展示

代码 

 <template>
 	<view class="t-login">
 		<image class="img-a" src="https://zhoukaiwen.com/img/loginImg/2.png"></image>
 		<image class="img-b" src="https://zhoukaiwen.com/img/loginImg/3.png"></image>
 		<view class="t-b">中通数智科技</view>
 		<view class="t-b2">吉林省中通数智科技有限公司</view>
 		<form class="cl">
 			<view class="t-a">
 				<image src="https://zhoukaiwen.com/img/loginImg/sj.png"></image>
 				<view class="line"></view>
 				<input placeholder="输入手机号" class="login-content_input" v-model="username" name="username" />
 				<!-- <input type="number" name="username" placeholder="请输入手机号" maxlength="11" v-model="username" /> -->
 			</view>
 			<view class="t-a">
 				<image src="https://zhoukaiwen.com/img/loginImg/yz.png"></image>
 				<view class="line"></view>
 				<input placeholder="请输入密码" class="login-content_input" v-model="password" :password="password" />
 				<!-- <input type="number" name="code" maxlength="6" placeholder="请输入密码"  v-model="password" :password="password"  /> -->
 			</view>
 			<view class="rememberMe">




 				<view class="rememberMe-text">记住我</view>
 			</view>

 			<button @tap="dengLu()">登 录</button>
 		</form>

 	</view>
 </template>

 <script lang="ts">
	import { ref } from 'vue'
	export default {

		setup() {
			const username = ref<String>('test000')
			const password = ref<String>('test123456')
			const rememberMe = ref<Boolean>(true)

			function dengLu() {
				uni.switchTab({
					url: '/pages/home/home'
				});
			}

			return {
				username,
				password,
				rememberMe,
				dengLu
			}

		}
	}
 </script>


 <style scoped>
 	.login-content {
 		width: 100%;
 		text-align: center;
 		position: fixed;
 	}

 	/* 标题 */
 	.login-title {
 		margin-top: 180px;
 		font-size: 40px;
 		font-weight: bold;
 		margin-bottom: 50px;

 	}

 	.login-content_input {
 		width: 80%;
 		height: 40px;
 		background: #F8F8F8;
 		border-radius: 25px;
 		text-align: left;
 		padding: 10px;
 		box-sizing: border-box;
 		font-size: 15px;
 		margin: 0 10%;
 	}

 	/* 手机号  密码 */
 	.iphone,
 	.password {
 		position: relative;
 		margin-bottom: 60px;

 	}

 	/* 记住我 */
 	.rememberMe {
 		right: 15%;
 		position: fixed;
 		display: flex;
 		margin-top: 2px;
 	}

 	/* 按钮 */
 	.login-btn {
 		/* margin: 0 20%;
		width: 58%;
		height: 50px;
		background: #004d00;
		border-radius: 5px;
		color: #fff;
		font-size: 25px;
		text-align: center;
		line-height: 50px;
		position: fixed;
		bottom: 60px; */
 		position: fixed;
 		border-radius: 10px;
 		top: 80%;
 		left: 0;
 		right: 0;
 		bottom: 15%;
 		margin: 0 auto;
 		text-align: center;
 		width: 200px;
 		background-color: #006400;
 		color: white;
 		line-height: 34px;
 		font-size: 1rem;
 	}

 	.img-a {
 		position: absolute;
 		width: 100%;
 		top: -150rpx;
 		right: 0;
 	}

 	.img-b {
 		position: absolute;
 		width: 50%;
 		bottom: 0;
 		left: -50rpx;
 		/* margin-bottom: -200rpx; */
 	}

 	.t-login {
 		width: 650rpx;
 		margin: 0 auto;
 		font-size: 28rpx;
 		color: #000;
 	}

 	.t-login button {
 		margin: 64px 0;
 		font-size: 28rpx;
 		background: #5677fc;
 		color: #fff;
 		height: 90rpx;
 		line-height: 90rpx;
 		border-radius: 50rpx;
 		box-shadow: 0 5px 7px 0 rgba(86, 119, 252, 0.2);
 	}

 	.t-login input {
 		padding: 0 20rpx 0 120rpx;
 		height: 90rpx;
 		line-height: 90rpx;
 		margin-bottom: 50rpx;
 		background: #f8f7fc;
 		border: 1px solid #e9e9e9;
 		font-size: 28rpx;
 		border-radius: 50rpx;
 	}

 	.t-login .t-a {
 		position: relative;
 	}

 	.t-login .t-a image {
 		width: 40rpx;
 		height: 40rpx;
 		position: absolute;
 		left: 80rpx;
 		top: 28rpx;
 		/* border-right: 2rpx solid #dedede; */
 		margin-right: 20rpx;
 	}

 	.t-login .t-a .line {
 		width: 2rpx;
 		height: 40rpx;
 		background-color: #dedede;
 		position: absolute;
 		top: 28rpx;
 		left: 130rpx;
 	}

 	.t-login .t-b {
 		text-align: left;
 		font-size: 46rpx;
 		color: #000;
 		padding: 300rpx 0 30rpx 0;
 		font-weight: bold;
 	}

 	.t-login .t-b2 {
 		text-align: left;
 		font-size: 32rpx;
 		color: #aaaaaa;
 		padding: 0rpx 0 120rpx 0;
 	}

 	.t-login .t-c {
 		position: absolute;
 		right: 22rpx;
 		top: 22rpx;
 		background: #5677fc;
 		color: #fff;
 		font-size: 24rpx;
 		border-radius: 50rpx;
 		height: 50rpx;
 		line-height: 50rpx;
 		padding: 0 25rpx;
 	}

 	.t-login .t-d {
 		text-align: center;
 		color: #999;
 		margin: 80rpx 0;
 	}

 	.t-login .t-e {
 		text-align: center;
 		width: 250rpx;
 		margin: 80rpx auto 0;
 	}

 	.t-login .t-g {
 		float: left;
 		width: 50%;
 	}

 	.t-login .t-e image {
 		width: 50rpx;
 		height: 50rpx;
 	}

 	.t-login .t-f {
 		text-align: center;
 		margin: 200rpx 0 0 0;
 		color: #666;
 	}

 	.t-login .t-f text {
 		margin-left: 20rpx;
 		color: #aaaaaa;
 		font-size: 27rpx;
 	}

 	.t-login .uni-input-placeholder {
 		color: #000;
 	}

 	.cl {
 		zoom: 1;
 	}

 	.cl:after {
 		clear: both;
 		display: block;
 		visibility: hidden;
 		height: 0;
 		content: '\20';
 	}

 	.rememberMe {
 		right: 15%;
 		position: fixed;
 		display: flex;
 	}

 	.ada {
 		margin-top: 20px;
 	}

 	.rememberMe-text {
 		line-height: 30px;
 	}
 </style>

 

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

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

相关文章

Qt源码调试

在实际Qt开发中如果遇到Qt内部的问题&#xff0c;往往只能通过调试源代码解决。可是从Qt5.9.9版本开始安装包中就不提供pdb文件。我安装的Qt5.12.12版本目录路径D:\Qt\Qt5.12.12\5.12.12\msvc2017_64\bin下面并没有dll配套的pdb文件。但是如果自己编译源码又太费时间。 今天在观…

踩雷react-useRef钩子函数

今天测试提了一个bug&#xff0c;之前做的有个需求&#xff0c;在触发事件发起请求后&#xff0c;成功响应返回的新的数据没有第一时间渲染到网页上。 方法也都成功更新了数据&#xff0c;就是渲染会慢1-2分钟&#xff0c;排错排了老半天&#xff0c;最后找到了原因。 一般情…

CentOS 安装MySQL 详细教程

参考:https://www.cnblogs.com/dotnetcrazy/p/10871352.html 参考:https://www.cnblogs.com/qiujz/p/13390811.html 参考:https://blog.csdn.net/darry1990/article/details/130419433 一、安装 一、进入安装目录 将账户切换到root账户下&#xff0c;进入local目录下 cd /usr…

mysql面试题42:主键使用自增ID还是UUID,并且说下原因

该文章专注于面试,面试只要回答关键点即可,不需要对框架有非常深入的回答,如果你想应付面试,是足够了,抓住关键点 其他的分布式主键使用方案,可以看下这篇文章:《有哪些合适的分布式主键方案》 面试官:主键使用自增ID还是UUID,并且说下原因 自增ID 自增ID(Auto I…

免费主机|永久免费空间|php虚拟主机|博客主机|论坛主机|免费域名|云主机

免费主机|永久免费空间|php虚拟主机|博客主机|论坛主机|免费域名|云主机 在出教程之前准备好久&#xff0c;测试搭建轻量论坛无压力 选用稳定免费域名➕免费主机分销给&#xff0c;可以套CDN使用 坚持免费时间是大厂不能媲美&#xff0c;刚开始做网站时用的是这个分销&#…

分类预测 | MATLAB实现KOA-CNN-GRU开普勒算法优化卷积门控循环单元数据分类预测

分类预测 | MATLAB实现KOA-CNN-GRU开普勒算法优化卷积门控循环单元数据分类预测 目录 分类预测 | MATLAB实现KOA-CNN-GRU开普勒算法优化卷积门控循环单元数据分类预测分类效果基本描述程序设计参考资料 分类效果 基本描述 1.MATLAB实现KOA-CNN-GRU开普勒算法优化卷积门控循环单…

华为OD机考算法题:找终点

目录 题目部分 解读与分析 代码实现 题目部分 题目找终点难度易题目说明给定一个正整数数组&#xff0c;设为nums&#xff0c;最大为100个成员&#xff0c;求从第一个成员开始&#xff0c;正好走到数组最后一个成员&#xff0c;所使用的最少步骤数。 要求&#xff1a; 1.第…

系统架构师备考倒计时26天(每日知识点)

详细的项目范围说明书&#xff0c;是项目成功的关键。 范围定义的输入包括以下内容: ① 项目章程。如果项目章程或初始的范围说明书没有在项目执行组织中使用&#xff0c;同样的信息需要进一步收集和开发&#xff0c;以产生详细的项目范围说明书。 ② 项目范围管理计划。 ③ 组…

性能优化-中间件tomcat调优

Tomcat作用 主要有三个: 管理Servlet应用的生命周期。Tomcat可以管理和控制Servlet应用程序的启动、停止、暂停和恢复等生命周期过程,确保Servlet应用的稳定运行和有序管理。把客户端请求的url映射到对应的servlet。Tomcat作为一个Web服务器,可以将客户端发送的HTTP请求URL…

【算法-贪心】无重叠区间-力扣 435 题

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

c++视觉处理----固定阈值操作:Threshold()函数,实时处理:二值化,反二值化,截断,设为零,反向设为零

固定阈值操作&#xff1a; Threshold()函数 cv::threshold() 函数是OpenCV中用于执行固定阈值二值化操作的函数。它可以用来将图像中的像素值根据用户定义的阈值转换为二进制值&#xff08;0或255&#xff09;&#xff0c;以便进行图像分割、物体检测和特征提取等任务。 cv::…

迁移Linux服务器用户数据(将一个服务器的Linux用户数据迁移到另一个Linux服务器用户的流程)

文章目录 1、打包源Linux服务器用户的数据2、发送源Linux服务器用户的数据3、查看目的服务器用户接受到的数据 1、打包源Linux服务器用户的数据 先来到根目录&#xff0c;再使用tar命令打包数据&#xff1a;tar czvf root.zip.gz ./* 2、发送源Linux服务器用户的数据 在根目…

【深度学习】深度学习实验二——前馈神经网络解决上述回归、二分类、多分类、激活函数、优化器、正则化、dropout、早停机制

一、实验内容 实验内容包含要进行什么实验&#xff0c;实验的目的是什么&#xff0c;实验用到的算法及其原理的简单介绍。 1.1 手动实现前馈神经网络解决上述回归、二分类、多分类问题 分析实验结果并绘制训练集和测试集的loss曲线。 原理介绍&#xff1a;回归问题使用的损失函…

【手写数字识别】GPU训练版本

SVM Adaboost Bagging 完整代码 I import torch import torch.nn.functional as F from torch.utils.data import DataLoader, TensorDataset from torchvision import transforms, datasets import matplotlib.pyplot as plt# 超参数 batch_size 64 num_epochs 10# 数据…

计算机网络第三章——数据链路层(二)

提示&#xff1a;文章写完后&#xff0c;目录可以自动生成&#xff0c;如何生成可参考右边的帮助文档 文章目录 3.4.2 停止等待协议为什么要有停止等待协议无差错情况有差错的情况 停等协议性能分析脑图时刻 3.4.3 后退n帧协议后退n帧协议中的滑动窗口GBN发送方必须响应的三件事…

智能晾衣架丨以科技解放双手

以往的晾衣架大多是平放式、手摇式居多&#xff0c;为衣物的晾晒提供了一个“栖身之所。”随着科技的日新月异&#xff0c;智能家居的产品越来越多。晾衣架也不例外&#xff0c;一款带有语音控制升降、同时具备照明和消毒的多功能衣架也已深入生活&#xff0c;正被人们所接受。…

算法题系列12·字符串判断子序列

目录 题目描述 实现 题目描述 给定字符串 s 和 t &#xff0c;判断 s 是否为 t 的子序列。 字符串的一个子序列是原始字符串删除一些&#xff08;也可以不删除&#xff09;字符而不改变剩余字符相对位置形成的新字符串。&#xff08;例如&#xff0c;"ace"是"…

RabbitMQ与springboot整合

1、基本概念 Server&#xff1a;接收客户端的连接&#xff0c;实现AMQP实体服务&#xff1b;Connection&#xff1a;连接&#xff0c;应用程序与Server的网络连接&#xff0c;TCP连接&#xff1b;Channel&#xff1a;信道&#xff0c;消息读写等操作在信道中进行。客户端可以建…

Python 图形化界面基础篇:发布应用程序到不同平台

Python 图形化界面基础篇&#xff1a;发布应用程序到不同平台 引言步骤1&#xff1a;准备应用程序1.1 处理依赖关系1.2 创建用户文档1.3 处理平台差异 步骤2&#xff1a;创建安装程序2.1 使用cx_Freeze创建独立包2.2 使用 PyInstaller 创建可执行文件2.3 使用其他工具 步骤3&am…

如何在 Spring Boot 中进行数据备份

在Spring Boot中进行数据备份 数据备份是确保数据安全性和可恢复性的关键任务之一。Spring Boot提供了多种方法来执行数据备份&#xff0c;无论是定期备份数据库&#xff0c;还是将数据导出到外部存储。本文将介绍在Spring Boot应用程序中进行数据备份的不同方法。 方法1: 使用…