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

海南澄迈住房和城乡建设厅网站个人是否可以申请网址

海南澄迈住房和城乡建设厅网站,个人是否可以申请网址,吴桥做网站,vs做网站登录界面要求 可以进行购物车水果删除可以进行水果数量增减可以进行总价计算、购物车商品计算选中所有水果也会一同勾选全选框#xff0c;全选框勾选也能选中所有水果可以记录购物车状态#xff0c;当页面关闭后重新打开可以看到原先的购物车数据 功能代码 !DOCTYPE html…要求 可以进行购物车水果删除可以进行水果数量增减可以进行总价计算、购物车商品计算选中所有水果也会一同勾选全选框全选框勾选也能选中所有水果可以记录购物车状态当页面关闭后重新打开可以看到原先的购物车数据 功能代码 !DOCTYPE html html langenheadmeta charsetUTF-8 /meta http-equivX-UA-Compatible contentIEedge /meta nameviewport contentwidthdevice-width, initial-scale1.0 /link relstylesheet href./css/inputnumber.css /link relstylesheet href./css/index.css /title购物车/title /headbodydiv classapp-container idapp!-- 顶部banner --div classbanner-boximg srchttp://autumnfish.cn/static/fruit.jpg alt //div!-- 面包屑 --div classbreadcrumbspan/span/span购物车/span/div!-- 购物车主体 --div classmain v-iffruitList.length0div classtable!-- 头部 --div classtheaddiv classtrdiv classth选中/divdiv classth th-pic图片/divdiv classth单价/divdiv classth num-th个数/divdiv classth小计/divdiv classth操作/div/div/div!-- 身体 --div classtbodydiv classtr :class{active:item.isChecked} v-for(item,index) in fruitList :keyitem.iddiv classtdinput typecheckbox v-modelitem.isChecked //divdiv classtdimg :srcitem.icon alt //divdiv classtd{{item.price}}/divdiv classtddiv classmy-input-numberbutton :disableditem.num 0 classdecrease clicksub(item.id) - /buttonspan classmy-input__inner{{item.num}}/spanbutton classincrease clickadd(item.id) /button/div/divdiv classtd{{item.price * item.num}}/divdiv classtdbutton clickdel(item.id)删除/button/div/div/div/div!-- 底部 --div classbottom!-- 全选 --label classcheck-allinput typecheckbox v-modelisAll /全选/labeldiv classright-box!-- 所有商品总价 --span classprice-box总价nbsp;nbsp;:nbsp;nbsp;¥nbsp;span classprice{{totalPrice}}/span/span!-- 结算按钮 --button classpay结算( {{totalNum}} )/button/div/div/div!-- 空车 --div classempty v-else空空如也/div/divscript srchttps://cdn.jsdelivr.net/npm/vue2/dist/vue.js/scriptscriptconst defaultArr [{id: 1,icon: ./img/火龙果.png,isChecked: true,num: 2,price: 6,},{id: 2,icon: ./img/荔枝.png,isChecked: false,num: 7,price: 20,},{id: 3,icon: ./img/榴莲.png,isChecked: false,num: 3,price: 40,},{id: 4,icon: ./img/鸭梨.png,isChecked: true,num: 10,price: 3,},{id: 5,icon: ./img/樱桃.png,isChecked: false,num: 20,price: 34,},]const app new Vue({el: #app,data: {// 水果列表fruitList: JSON.parse(localStorage.getItem(list)) || defaultArr},methods: {del(id) {this.fruitList this.fruitList.filter(item item.id ! id)},add(id) {const fruit this.fruitList.find(item item.id id)fruit.num;},sub(id) {const fruit this.fruitList.find(item item.id id)fruit.num--;}},computed: {isAll: {get() {return this.fruitList.every(item item.isChecked)},set(value) {this.fruitList.forEach(item item.isChecked value)}},totalPrice() {return this.fruitList.reduce((sum, item) {if (item.isChecked) {return sum item.price * item.num} else {return sum}}, 0)},totalNum() {return this.fruitList.reduce((sum, item) {if (item.isChecked) {return sum item.num} else {return sum}}, 0)}},watch: {fruitList: {deep: true,handler(newValue) {localStorage.setItem(list, JSON.stringify(newValue))}}}})/script /body/htmlcss代码 index.css .app-container {padding-bottom: 300px;width: 800px;margin: 0 auto; } media screen and (max-width: 800px) {.app-container {width: 600px;} } .app-container .banner-box {border-radius: 20px;overflow: hidden;margin-bottom: 10px; } .app-container .banner-box img {width: 100%; } .app-container .nav-box {background: #ddedec;height: 60px;border-radius: 10px;padding-left: 20px;display: flex;align-items: center; } .app-container .nav-box .my-nav {display: inline-block;background: #5fca71;border-radius: 5px;width: 90px;height: 35px;color: white;text-align: center;line-height: 35px;margin-right: 10px; }.breadcrumb {font-size: 16px;color: gray; } .table {width: 100%;text-align: left;border-radius: 2px 2px 0 0;border-collapse: separate;border-spacing: 0; } .th {color: rgba(0, 0, 0, 0.85);font-weight: 500;text-align: left;background: #fafafa;border-bottom: 1px solid #f0f0f0;transition: background 0.3s ease; } .th.num-th {flex: 1.5; } .th {text-align: center; } .th:nth-child(4), .th:nth-child(5), .th:nth-child(6), .th:nth-child(7) {text-align: center; } .th.th-pic {flex: 1.3; } .th:nth-child(6) {flex: 1.3; }.th, .td {position: relative;padding: 16px 16px;overflow-wrap: break-word;flex: 1; } .pick-td {font-size: 14px; } .main, .empty {border: 1px solid #f0f0f0;margin-top: 10px; } .tr {display: flex;cursor: pointer;border-bottom: 1px solid #ebeef5; } .tr.active {background-color: #f5f7fa; } .td {display: flex;justify-content: center;align-items: center; }.table img {width: 100px;height: 100px; }button {outline: 0;box-shadow: none;color: #fff;background: #d9363e;border-color: #d9363e;color: #fff;background: #d9363e;border-color: #d9363e;line-height: 1.5715;position: relative;display: inline-block;font-weight: 400;white-space: nowrap;text-align: center;background-image: none;border: 1px solid transparent;box-shadow: 0 2px 0 rgb(0 0 0 / 2%);cursor: pointer;transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);-webkit-user-select: none;-moz-user-select: none;-ms-user-select: none;user-select: none;touch-action: manipulation;height: 32px;padding: 4px 15px;font-size: 14px;border-radius: 2px; } button.pay {background-color: #3f85ed;margin-left: 20px; }.bottom {height: 60px;display: flex;align-items: center;justify-content: space-between;padding-right: 20px;border: 1px solid #f0f0f0;border-top: none;padding-left: 20px; } .right-box {display: flex;align-items: center; } .check-all {cursor: pointer; } .price {color: hotpink;font-size: 30px;font-weight: 700; } .price-box {display: flex;align-items: center; } .empty {padding: 20px;text-align: center;font-size: 30px;color: #909399; } .my-input-number {display: flex; } .my-input-number button {height: 40px;color: #333;border: 1px solid #dcdfe6;background-color: #f5f7fa; } .my-input-number button:disabled {cursor: not-allowed!important; } .my-input-number .my-input__inner {height: 40px;width: 50px;padding: 0;border: none;border-top: 1px solid #dcdfe6;border-bottom: 1px solid #dcdfe6; }inputNumber.css position: relative;display: inline-block;width: 140px;line-height: 38px; } .my-input-number span {-moz-user-select: none;-webkit-user-select: none;-ms-user-select: none; } .my-input-number .my-input {display: block;position: relative;font-size: 14px;width: 100%; } .my-input-number .my-input__inner {-webkit-appearance: none;background-color: #fff;background-image: none;border-radius: 4px;border: 1px solid #dcdfe6;box-sizing: border-box;color: #606266;display: inline-block;font-size: inherit;height: 40px;line-height: 40px;outline: none;padding: 0 15px;transition: border-color 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);width: 100%;padding-left: 50px;padding-right: 50px;text-align: center; } .my-input-number .my-input-number__decrease, .my-input-number .my-input-number__increase {position: absolute;z-index: 1;top: 1px;width: 40px;height: auto;text-align: center;background: #f5f7fa;color: #606266;cursor: pointer;font-size: 13px; } .my-input-number .my-input-number__decrease {left: 1px;border-radius: 4px 0 0 4px;border-right: 1px solid #dcdfe6; } .my-input-number .my-input-number__increase {right: 1px;border-radius: 0 4px 4px 0;border-left: 1px solid #dcdfe6; } .my-input-number .my-input-number__decrease.is-disabled, .my-input-number .my-input-number__increase.is-disabled {color: #c0c4cc;cursor: not-allowed; }
http://www.tj-hxxt.cn/news/139030.html

相关文章:

  • 怎么优化网站关键字app对接wordpress
  • 建站群赚钱有前途吗网站建设tlmh
  • 能利用双股铜芯电话线做网站吗福州鼓楼区网站建设
  • iis提示网站建设中app介绍网站模板
  • 网站内怎么做搜索建设京东物流网站的目标是什么
  • 建网站 开发app洛阳网站建设首选洛阳铭信科技
  • 网站 医院信息化建设潍坊专业技术人员继续教育
  • 公司建设网站有什么好处计算机网站开发书籍
  • 如何建设专题网站冶金工业建设工程定额总站网站
  • 北京网站改版哪家好广州企业管理咨询公司排名
  • 网站备案拍照是什么郑州网站制作服务
  • 郑州网站制作报价企业网站源码搜一品资源
  • 长春做企业网站多少钱微博优惠券网站怎么做
  • iis7架设网站桂林两江四湖夜游
  • 做yield网站多少钱wordpress+用户中心插件
  • 嘉兴做网站的公司企业上云解决方案
  • 做网站合肥西宁网站seo价格
  • 公司在百度怎么推广电商seo推广
  • 什么是网站标题单业网站建设
  • 网站建设策划优点企业文化手册
  • 图片展示型网站模板wordpress 秀米
  • 苏州相城区做网站论坛类网站开发
  • 购物建设网站网站空间费1年1200
  • 那里建设网站大兴做网站的公司
  • asp网站代码 部分封装移动网站模板下载
  • 网站介绍模版网站建设社区交流
  • 网站开发与维护是干什么的自适应网站开发seo
  • 网站优化有什么用江西建设质量安全监督网站
  • 灵犀科技 高端网站建设首页企业常用的网络营销方法
  • 有哪些网站可以做电子邀请函网站建设需要怎样的经营范围