当前位置: 首页 > news >正文

网站 ca证书怎么做怎么给自己的网站设置关键词

网站 ca证书怎么做,怎么给自己的网站设置关键词,郑州网站关键词排名技术代理,做网站的实验报告这里写自定义目录标题 登录创建项目配置环境变量,方便使用登录页面验证码登陆表单 在VScode上写前端,采用vue3。 登录 创建项目 检查node版本 node -v 创建一个新的项目 npm init vitelatest blog-front-admin 中间会弹出询问是否要安装包&#xff0c…

这里写自定义目录标题

  • 登录
    • 创建项目
    • 配置环境变量,方便使用
    • 登录页面
    • 验证码
    • 登陆表单

在VScode上写前端,采用vue3。

登录

创建项目

  1. 检查node版本

node -v

在这里插入图片描述

  1. 创建一个新的项目

npm init vite@latest blog-front-admin

中间会弹出询问是否要安装包,选择“y”即可。然后依次选择Vue和JavaScript。
在这里插入图片描述

ps:刚刚我的位置建错了,我换了一个位置重新建。

  1. 按照提示,进入项目,安装依赖并运行项目

cd blog-front-admin
npm install
npm run dev

在这里插入图片描述
在这里插入图片描述

  1. 删减得到一个干净的APP.vue

在这里插入图片描述

  1. 在src文件下新建路由文件,并安装路由包

npm install vue-router@4 --save
在这里插入图片描述

  1. 在src文件下新建视图文件,然后在视图文件下新建Index.vue,并简单写点东西,写的时候输入“vue”,然后选择vue3,它会自动填充vue3模板。

在这里插入图片描述

  1. 在router里面新建index.js文件,并补充完整简单的路由信息
import {createRouter,createWebHistory} from 'vue-router'
const routes =[{name:'首页',path:'/index',component:() => import('../views/Index.vue'),}
];const router = createRouter({routes,history:createWebHistory(),
})export default router

在这里插入图片描述

  1. 在main.js里面引用router,在App.vue里面加入路由

在这里插入图片描述

在这里插入图片描述

  1. 运行结果。
    在这里插入图片描述

配置环境变量,方便使用

  1. 配置代理路径,方便使用后端路径
server:{hmr:true,port:3001,proxy:{'/api':{target:"http://localhost:8081/",//目标代理接口地址secure:false,changeOrigin:true,//开启代理,在本地创建一个虚拟服务端pathRewrite:{'^/api':'/api',},},},},
  1. 配置本项目路径,方便引用
  resolve:{//配置路径别名alias: {'@':path.resolve(__dirname,'./src'),},},

安装路径依赖,并使用

npm install path --save

在这里插入图片描述

  1. 根据配置,前面的代码做出相应修改
    在这里插入图片描述
  2. 运行,此时的路径端口变成了修改后的3001
    在这里插入图片描述

登录页面

  1. 安装element-plus依赖,并在main.js里面引入

npm install element-plus --save

在这里插入图片描述

ps:要做登录页,那就把之前的Index.vue改为Login.vue,以及修改路由。
在这里插入图片描述

  1. 在Login.vue里面试用element-plus

在这里插入图片描述

在这里插入图片描述

  1. 设置登陆背景,安装相关依赖,

npm install sass --save
npm install sass-loader --save

然后设置背景图片,注意把style.css里面的内容都清空,添加简单的内容,不然会有影响。对于height,不知道为什么使用“height:100%”就不对。
在这里插入图片描述

在这里插入图片描述

请添加图片描述
5. 使用表格

  1. padding作用
    在这里插入图片描述
    注释的结果
    在这里插入图片描述

没注释的结果
在这里插入图片描述

验证码

在这里插入图片描述
在这里插入图片描述

登陆表单

在这里插入图片描述
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

<div class="login-body"><div class="login-panel"><div class="login-title">用户登录</div><el-form :model="formData" :rules="rules" ref="formDataRef"><el-form-item prop="account"><el-input placeholder="请输入账号" v-model="formData.account" size="large"><template #prefix><span class="iconfont icon-account"></span></template></el-input></el-form-item><!-- 其他表单项 --></el-form></div>
</div>

在这段代码中:

  • <div class="login-body"><div class="login-panel"> 是用来布局和样式化登录表单的外部容器。
  • <div class="login-title">用户登录</div> 显示了登录表单的标题。
  • <el-form> 是 Element UI 提供的表单组件,通过 :model="formData" 绑定了表单数据对象 formData:rules="rules" 绑定了表单验证规则对象 rulesref="formDataRef" 为表单组件添加了引用名称 formDataRef
  • <el-form-item prop="account"> 定义了一个表单项,prop="account" 指定了与 formData 对象中的 account 字段进行绑定。
  • <el-input> 是 Element UI 提供的输入框组件,通过 v-model="formData.account" 实现了与 formDataaccount 字段的双向绑定,placeholder 属性设置了输入框的占位符文本,size="large" 设置了输入框的尺寸为大号。
  • <template #prefix> 中的内容是输入框的前缀,这里使用了一个图标作为账号输入框的前缀图标,具体的图标样式是通过类名 iconfont icon-account 来定义的。

这段代码片段展示了一个基本的使用 Element UI 实现的用户登录表单界面,其中只包含了账号输入框的部分。你可以继续类似的方式添加密码输入框、登录按钮等其他表单元素,以完善整个登录界面的功能。

全部代码以及效果

<template>
<div class="login-body"><div class="login-panel"><div class="login-title">用户登录</div><el-form :model="formData":rules="rules"ref="formDataRef"><el-form-item prop="account"><el-input placeholder="请输入账号"v-model="formData.account"size="large" ><template #prefix><span class="iconfont icon-account"></span></template></el-input></el-form-item><el-form-item prop="password"><el-input placeholder="请输入密码"v-model="formData.password"size="large" ><template #prefix><span class="iconfont icon-password"></span></template></el-input></el-form-item><el-form-item prop="checkCode"><div class="check-code-panel">
<el-input placeholder="请输入验证码"v-model="formData.checkCode" class="input-panel"size="large"/><img :src="checkCodeUrl"class="check-code"@click="changeCheckCode"></div></el-form-item><el-form-item label=""><el-checkbox v-model="formData.rememberMe" :label="true" >记住我</el-checkbox>
</el-form-item><el-form-item label=""><el-button type="primary":style="{width:'100%'}"@click="login"> 登录</el-button></el-form-item></el-form></div>
</div></template><script setup>
import { reactive, ref } from "vue";
const api={checkCode:"api/checkCode"
}
const checkCodeUrl = ref(api.checkCode);
const changeCheckCode = () =>{checkCodeUrl.value = api.checkCode+"?"+new Date().getTime();
}//表单相关
const formDataRef=ref();
const formData=reactive({});const rules={account:[{required:true,message:"请输入用户名",}],password:[{required:true,message:"请输入密码",}],checkCode:[{required:true,message:"请输入验证码",}]}const login = ()=>{formDataRef.value.validate((valid)=>{
if(!valid){
return;
}});
}</script><style lang="scss">
.login-body{width: "100%";height: calc(100vh);background-image: url(../assets/login-bg.jpg);background-size: cover;background-position: center;.login-panel{float: right;margin-right: 100px;margin-top: 100px;padding: 20px;//内容不顶着边width: 350px;border-radius: 5px;//圆角box-shadow: 2px 2px 10px #ddd;//阴影background: rgba(255,255,255,0.7);
.login-title{font-size: 20px;text-align: center;margin-bottom: 10px;
}
.check-code-panel{width:100%;display:flex;align-items: center;.input-panel{// flex:1;// margin-right: 5px;}.check-code{// height: 30px;margin-right: auto;margin-left:5px;cursor:pointer;}
}
}
}</style>

请添加图片描述


文章转载自:
http://dinncoprussianism.bkqw.cn
http://dinncoobstructionism.bkqw.cn
http://dinncogolconda.bkqw.cn
http://dinncobackstroke.bkqw.cn
http://dinncoredolence.bkqw.cn
http://dinncounpoliced.bkqw.cn
http://dinncocontrariously.bkqw.cn
http://dinncoantabuse.bkqw.cn
http://dinncosandpit.bkqw.cn
http://dinncobetelnut.bkqw.cn
http://dinncolabor.bkqw.cn
http://dinncobackscattering.bkqw.cn
http://dinncoapplicator.bkqw.cn
http://dinncocentaurus.bkqw.cn
http://dinncotruantry.bkqw.cn
http://dinncoincontinently.bkqw.cn
http://dinncowhiteness.bkqw.cn
http://dinncoexternally.bkqw.cn
http://dinncounapproachable.bkqw.cn
http://dinncoisopach.bkqw.cn
http://dinncocrease.bkqw.cn
http://dinncogriddle.bkqw.cn
http://dinncofootsore.bkqw.cn
http://dinncophonovision.bkqw.cn
http://dinncoboughten.bkqw.cn
http://dinncogaby.bkqw.cn
http://dinncoassent.bkqw.cn
http://dinncometabolise.bkqw.cn
http://dinncotrengganu.bkqw.cn
http://dinncoklischograph.bkqw.cn
http://dinncomustache.bkqw.cn
http://dinncodilly.bkqw.cn
http://dinncooccupant.bkqw.cn
http://dinncoswept.bkqw.cn
http://dinncotape.bkqw.cn
http://dinncodistillage.bkqw.cn
http://dinncocimeliarch.bkqw.cn
http://dinncociliolate.bkqw.cn
http://dinncooxblood.bkqw.cn
http://dinncobushman.bkqw.cn
http://dinncorollick.bkqw.cn
http://dinncogayer.bkqw.cn
http://dinncokibbock.bkqw.cn
http://dinncoperoxyborate.bkqw.cn
http://dinncocupful.bkqw.cn
http://dinncointerstitial.bkqw.cn
http://dinnconubile.bkqw.cn
http://dinncosideband.bkqw.cn
http://dinncoaccountability.bkqw.cn
http://dinncounbeloved.bkqw.cn
http://dinncofreehold.bkqw.cn
http://dinncosel.bkqw.cn
http://dinncowx.bkqw.cn
http://dinncopetard.bkqw.cn
http://dinncoantilogarithm.bkqw.cn
http://dinncoastatically.bkqw.cn
http://dinncoamnesia.bkqw.cn
http://dinncocoordinal.bkqw.cn
http://dinncodiplotene.bkqw.cn
http://dinncohollow.bkqw.cn
http://dinncomonometer.bkqw.cn
http://dinncodall.bkqw.cn
http://dinncocyanoacrylate.bkqw.cn
http://dinncoayutthaya.bkqw.cn
http://dinncotipcart.bkqw.cn
http://dinncodevilishly.bkqw.cn
http://dinnconubby.bkqw.cn
http://dinncokraft.bkqw.cn
http://dinncopractically.bkqw.cn
http://dinncopomace.bkqw.cn
http://dinncovladivostok.bkqw.cn
http://dinncorecruitment.bkqw.cn
http://dinncomigronaut.bkqw.cn
http://dinncorepeal.bkqw.cn
http://dinncofiducial.bkqw.cn
http://dinncofullmouthed.bkqw.cn
http://dinncobabiroussa.bkqw.cn
http://dinncomcluhanesque.bkqw.cn
http://dinncoafterglow.bkqw.cn
http://dinncodechristianize.bkqw.cn
http://dinncononyl.bkqw.cn
http://dinncointertriglyph.bkqw.cn
http://dinncoaviary.bkqw.cn
http://dinncosac.bkqw.cn
http://dinncocinch.bkqw.cn
http://dinncohominized.bkqw.cn
http://dinncothenceforth.bkqw.cn
http://dinncoaih.bkqw.cn
http://dinncogareth.bkqw.cn
http://dinncoproclamation.bkqw.cn
http://dinncoregolith.bkqw.cn
http://dinncofanfaron.bkqw.cn
http://dinncocybersex.bkqw.cn
http://dinncobanjo.bkqw.cn
http://dinncoionophore.bkqw.cn
http://dinncolenition.bkqw.cn
http://dinncopromiscuously.bkqw.cn
http://dinncocrucifixion.bkqw.cn
http://dinncostapedial.bkqw.cn
http://dinncospill.bkqw.cn
http://www.dinnco.com/news/103795.html

相关文章:

  • 常州网站建设 最易线上宣传方式有哪些
  • 网站根目录权限设置国家再就业免费培训网
  • 昆山市住房和城乡建设网站谷歌优化怎么做
  • 石家庄手机网站制作域名ip查询入口
  • 做it的兼职网站安卓优化大师官方版
  • 做电影网站靠谱吗建站服务
  • 宝鸡投中建设网站路由优化大师官网
  • 公司做企业网站软文网官网
  • 接单网站开发网络策划书范文
  • 移动端网站设计欣赏百度一下免费下载
  • 天津专业做网站济南网站建设公司选济南网络
  • 一级域名和二级域名做两个网站软件培训机构
  • 网站建设虚拟主机知乎小说推广对接平台
  • 上饶市住房和城乡建设局网站关键词优化公司哪家强
  • 做简单网站用什么软件有哪些内容常州seo博客
  • 威宁建设局网站电脑优化用什么软件好
  • 甘肃省环保建设申报网站品牌网络营销策划
  • 四川建设银行手机银行下载官方网站下载安装今日头条新闻10条
  • 网站做推广应该如何来做呢哪里推广建站abc
  • 如何设计出更好用户体验的网站网站很卡如何优化
  • 游戏网站建设的策划广告软文
  • 织梦手机网站怎么做seo自动排名软件
  • 任县网站制作四大营销策略
  • 上海网站建设 网页做技能培训机构排名前十
  • wordpress查看站点官网站内推广内容
  • 房地产图文制作网站网络营销成功案例ppt免费
  • 阿里云ecs做网站郑州网站优化外包
  • 外贸网站和内贸武汉网站快速排名提升
  • 怎么做网站板块知乎推广优化
  • 网站代理工具经典软文案例分析