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

自助建站系统官方版学网页设计大概需要多少钱?

自助建站系统官方版,学网页设计大概需要多少钱?,做游戏交易网站,广西莲城建设集团有限公司网站文章目录 渲染对象、实现统计功能实现删除功能设置发布按钮实现发布按钮的提交功能 直接用CSS的模板#xff0c;模板代码如下#xff1a; templateview classtitle近期热梗/viewview classout view class模板代码如下 templateview classtitle近期热梗/viewview classout view classlistview classrow v-for(item,index) in 3 :keyindexview classtext{{index1}}. 标题文字演示/viewview classcloseicon typeclear size26//view/view/view view classcount共3条梗/view view classcommentinput typetext placeholder请输入热梗.../ button sizemini typeprimary disabled 发布/button/view/view /templatescript setup import {ref} from vue; const lists ref([{id:111,title:刚满18岁},{id:222,title:我不吃牛肉},{id:333,title:遥遥领先},{id:444,title:哪里贵了} ]) /scriptstyle langscss scoped .title{font-size: 26px;text-align: center;color:#3c3c3c;padding:30px 0 15px; } .out{width: 90vw;margin:15px auto;box-shadow: 0 10px 20px rgba(0,0,0,0.1);border-radius: 5px;padding:15px;box-sizing: border-box;.list{.row{padding:10px 0;border-bottom:1px solid #e8e8e8;display: flex;justify-content: space-between;align-items: center;font-size: 18px;color:#333;.text{padding-right: 5px;box-sizing: border-box;}}}.count{padding:10px 0;font-size: 15px;color:#888;text-align:center;}.comment{display: flex;margin-top:10px;input{flex:4;background: #f4f4f4;margin-right: 5px;height: 100%; height: 32px;border-radius: 4px;padding:0 10px;color:#333;}button{flex:1; }} }/style 这是整体页面效果 我们要实现这样一些功能 让列表下的“共3条梗”实现统计功能。点击每条热梗后的叉能够实现删除功能。实现发布按钮的功能。能够发布热梗发布后的热梗直接追加在列表后。 渲染对象、实现统计功能 模板中的script中定义了对象先把对象渲染出来然后让梗实现统计功能让它等于数组lists的长度代码如下 templateview classtitle近期热梗/viewview classout view classlistview classrow v-for(item,index) in lists :keyindexview classtext{{index1}}. {{item.title}}/viewview classcloseicon typeclear size26//view/view/view view classcount共{{lists.length}}条梗/view view classcommentinput typetext placeholder请输入热梗.../ button sizemini typeprimary disabled 发布/button/view/view /templatescript setup import {ref} from vue; const lists ref([{id:111,title:刚满18岁},{id:222,title:我不吃牛肉},{id:333,title:遥遥领先},{id:444,title:哪里贵了} ]) /scriptstyle langscss scoped .title{font-size: 26px;text-align: center;color:#3c3c3c;padding:30px 0 15px; } .out{width: 90vw;margin:15px auto;box-shadow: 0 10px 20px rgba(0,0,0,0.1);border-radius: 5px;padding:15px;box-sizing: border-box;.list{.row{padding:10px 0;border-bottom:1px solid #e8e8e8;display: flex;justify-content: space-between;align-items: center;font-size: 18px;color:#333;.text{padding-right: 5px;box-sizing: border-box;}}}.count{padding:10px 0;font-size: 15px;color:#888;text-align:center;}.comment{display: flex;margin-top:10px;input{flex:4;background: #f4f4f4;margin-right: 5px;height: 100%; height: 32px;border-radius: 4px;padding:0 10px;color:#333;}button{flex:1; }} }/style 看看效果 实现删除功能 删除功能的实现先为其加上click事件onClose然后在script中写入函数代码如下 templateview classtitle近期热梗/viewview classout view classlistview classrow v-for(item,index) in lists :keyitem.idview classtext{{index1}}. {{item.title}}/viewview classclose clickonClose(index)icon typeclear size26//view/view/view view classcount共{{lists.length}}条梗/view view classcommentinput typetext placeholder请输入热梗.../ button sizemini typeprimary disabled 发布/button/view/view /templatescript setup import {ref} from vue; const lists ref([{id:111,title:刚满18岁},{id:222,title:我不吃牛肉},{id:333,title:遥遥领先},{id:444,title:哪里贵了} ]) function onClose(index){lists.value.splice(index,1) ; } /scriptstyle langscss scoped .title{font-size: 26px;text-align: center;color:#3c3c3c;padding:30px 0 15px; } .out{width: 90vw;margin:15px auto;box-shadow: 0 10px 20px rgba(0,0,0,0.1);border-radius: 5px;padding:15px;box-sizing: border-box;.list{.row{padding:10px 0;border-bottom:1px solid #e8e8e8;display: flex;justify-content: space-between;align-items: center;font-size: 18px;color:#333;.text{padding-right: 5px;box-sizing: border-box;}}}.count{padding:10px 0;font-size: 15px;color:#888;text-align:center;}.comment{display: flex;margin-top:10px;input{flex:4;background: #f4f4f4;margin-right: 5px;height: 100%; height: 32px;border-radius: 4px;padding:0 10px;color:#333;}button{flex:1; }} }/style 效果如下 设置发布按钮 发布按钮默认是关闭的现在进行设置只要输入框中有内容发布按钮就开启。这里我们通过输入框中的v-model绑定获取数据然后设定没有数据发布按钮保持disable状态代码如下 templateview classtitle近期热梗/viewview classout view classlistview classrow v-for(item,index) in lists :keyitem.idview classtext{{index1}}. {{item.title}}/viewview classclose clickonClose(index)icon typeclear size26//view/view/view view classcount共{{lists.length}}条梗/view view classcommentinput typetext placeholder请输入热梗...v-modeliptvalue / button sizemini typeprimary :disabled !iptvalue.length 发布/button/view/view /templatescript setup import {ref} from vue; const lists ref([{id:111,title:刚满18岁},{id:222,title:我不吃牛肉},{id:333,title:遥遥领先},{id:444,title:哪里贵了} ]) const iptvalue ref() ; function onClose(index){lists.value.splice(index,1) ; } /scriptstyle langscss scoped .title{font-size: 26px;text-align: center;color:#3c3c3c;padding:30px 0 15px; } .out{width: 90vw;margin:15px auto;box-shadow: 0 10px 20px rgba(0,0,0,0.1);border-radius: 5px;padding:15px;box-sizing: border-box;.list{.row{padding:10px 0;border-bottom:1px solid #e8e8e8;display: flex;justify-content: space-between;align-items: center;font-size: 18px;color:#333;.text{padding-right: 5px;box-sizing: border-box;}}}.count{padding:10px 0;font-size: 15px;color:#888;text-align:center;}.comment{display: flex;margin-top:10px;input{flex:4;background: #f4f4f4;margin-right: 5px;height: 100%; height: 32px;border-radius: 4px;padding:0 10px;color:#333;}button{flex:1; }} }/style 实现发布按钮的提交功能 接下来设置点击发布首先设定事件onSubmit然后写入onSubmit函数这里再加上两个功能一个是提交后清除输入框内的内容一个是用confirm事件使敲击回车键具有和点击发布一样的功能代码如下 templateview classtitle近期热梗/viewview classout view classlistview classrow v-for(item,index) in lists :keyitem.idview classtext{{index1}}. {{item.title}}/viewview classclose clickonClose(index)icon typeclear size26//view/view/view view classcount共{{lists.length}}条梗/view view classcommentinput typetext placeholder请输入热梗...v-modeliptvalue confirmonSubmit/ button sizemini typeprimary :disabled !iptvalue.length clickonSubmit发布/button/view/view /templatescript setup import {ref} from vue; const lists ref([{id:111,title:刚满18岁},{id:222,title:我不吃牛肉},{id:333,title:遥遥领先},{id:444,title:哪里贵了} ]) const iptvalue ref() ; //v-model绑定输入框有内容同时会同步到iptvalue function onClose(index){lists.value.splice(index,1) ; } function onSubmit(){lists.value.push({id:Date.now(),title:iptvalue.value}) ;iptvalue.value ; } /scriptstyle langscss scoped .title{font-size: 26px;text-align: center;color:#3c3c3c;padding:30px 0 15px; } .out{width: 90vw;margin:15px auto;box-shadow: 0 10px 20px rgba(0,0,0,0.1);border-radius: 5px;padding:15px;box-sizing: border-box;.list{.row{padding:10px 0;border-bottom:1px solid #e8e8e8;display: flex;justify-content: space-between;align-items: center;font-size: 18px;color:#333;.text{padding-right: 5px;box-sizing: border-box;}}}.count{padding:10px 0;font-size: 15px;color:#888;text-align:center;}.comment{display: flex;margin-top:10px;input{flex:4;background: #f4f4f4;margin-right: 5px;height: 100%; height: 32px;border-radius: 4px;padding:0 10px;color:#333;}button{flex:1; }} }/style 效果如下
http://www.pierceye.com/news/54465/

相关文章:

  • 个人电影网站做APP违法吗wordpress添加优酷视频播放器
  • 小松建设官方网站网站制作费用大概多少
  • 哪家网站做旅游攻略好北京网络推广公司
  • php 读取网站文件wordpress 纯文字主题
  • 做网站备案需要啥资料杭州万户网络
  • 福州网上商城网站建设wordpress外卖
  • 怎么做论坛的网站哪些网站是用vue做的
  • 河北建设厅网站首页专业网站建设质量推荐
  • 手把手教你做网站7网站开发培训班 上地
  • 四川网站建设 四川冠辰科技免费crm网站下载
  • 网站平面设计完成后 与客户怎样沟通山西建设注册中心网站
  • 品牌网站建设找顺的长沙人才网最新招聘信息
  • 免费网站域名注册个人门户网站界面设计模板下载
  • 旅游搜索网站开发网站源码下载教程
  • 娄底市城乡建设局网站色块设计网站
  • 北京高端网站建设系统什么是网站设计
  • 自己切片做网站沈阳市住房和城乡建设局网站
  • 企业网站建设的总体目标自己做蛋糕有什么网站吗
  • 织梦做第一个网站平面设计报价明细表
  • 住房和城乡建设部中国建造师网站可以直接进入的正能量网站老狼
  • 课题网站建设验收总结报告成都建设银行招聘网站
  • 南京市建设档案馆网站邢台市建设银行网站
  • 皖icp阜阳网站建设设置网站关键词
  • 潜江公司做网站网站建设需要多少钱
  • 云南省文山州网站建设网站怎么更改后台登陆密码
  • 网站建设流程策划方案北京朝阳区属于几环
  • php网站开发都需要什么软件快递网站推广怎么做
  • 建设网站的 域名申请的分析平面设计必备软件
  • 成品网站怎么新建网页深圳网站建设托管
  • 商务网站建设理论依据wordpress seo联接插件