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

数据资源网站如何做seo服务公司

数据资源网站如何做,seo服务公司,wordpress滚动条,java微信小程序开发教程需求说明 现有的设置单元列表,每个带有虚线加号的可以看做是一组设置单元,点击加号可以添加一组设置单元.点击设置单元右上角可以删除对应的设置单元. 实现思路说明 利用数组元素添加或是删除的方式实现页面数量动态变化.由于每个设置单元内容都相同所以单独封装了一个子组件.…

需求说明

    现有的设置单元列表,每个带有虚线加号的可以看做是一组设置单元,点击加号可以添加一组设置单元.点击设置单元右上角可以删除对应的设置单元.在这里插入图片描述

实现思路说明

    利用数组元素添加或是删除的方式实现页面数量动态变化.由于每个设置单元内容都相同所以单独封装了一个子组件.下面是实现过程:
父页面

<template><view class="out"><view class="content"><view class="setting"><setFriend class="addUnit" v-for="unitIndex in unitList" :unitList="unitList"></setFriend><view class="addUnitClass" @click="addUnit"><image class="add_unit_img" src="../../static/add_unit.png"></image></view></view></view></view>
</template><script>export default {data() {return {// 自定义数组,元素可以随便写unitList:[1,2,3]}},methods: {addUnit(){// 添加添加按钮,数组添加一个元素,元素内容可以任意this.unitList.push(1)}}}
</script><style lang="scss">uni-page-body,page {height:100%;background-color: rgb(242, 242,242);}.out{display: flex;justify-content: center;align-items: center;width: 90%;margin: auto;.content{width: 100%;// height: 400px;display: flex;justify-content: center;align-items: center;flex-direction: column;.setting{width: 100%;display: flex;justify-content: flex-start;align-items: center;flex-direction: row;flex-wrap:wrap;.addUnit{width: 50%;height: 150px;margin-bottom: 15px;}.addUnitClass{position: relative;top: 10px;margin-left: 7px;width: 45%;height: 150px;margin-bottom: 15px;background-color: white;display: flex;justify-content: center;align-items: center;border-radius: 5px;.add_unit_img{width: 80%;height: 80%;}}}}}		</style>

设置单元子组件

<template><view><view class="unit"><image class="close_img" src="../../static/close_button.png" @click="closeUnit"></image><view class="uni_item"><image class="upload_img" src="../../static/upload_img.png"></image></view></view></view>
</template><script>export default {name:"setFriend",data() {return {};},// 设置属性unitListprops:{unitList: {type: Array,default: [1,2],required: false}},methods:{closeUnit(){// 点击关闭按钮,数组减一处理if(this.unitList.length != 0){this.unitList.splice(0, 1);}}}}
</script><style lang="scss">uni-page-body,page {height:100%;background-color: rgb(242, 242,242);}.unit{width: 90%;height: 150px;background-color: white;margin-top: 9px;margin-left: 5px;border-radius: 5px;position: relative;left: 1px;.close_img{width: 20px;height: 20px;position: absolute;left:140px;top:-8px;}.uni_item{width: 100%;height: 100%;display: flex;justify-content: center;align-items: center;flex-direction: column;.upload_img{width:65px;height: 65px;margin-bottom: 10px;}}}}</style>
http://www.yidumall.com/news/56323.html

相关文章:

  • 开封市网站建设公司游戏代理推广渠道
  • 怎样用网络挣钱网络推广优化招聘
  • 票务网站开发端口网站建设方案内容
  • 淘宝上做淘宝客的网站百度在线人工客服
  • 集团公司网站 案例广州最新重大新闻
  • 做ppt的软件模板下载网站免费seo教程
  • 做网站小语种翻译多少钱百度客服电话号码
  • 吉林省长春市建设局网站电商网站开发平台
  • 做百度推广的网站网络营销品牌案例
  • 湖南郴州疫情最新数据杭州专业seo公司
  • 锦州网站建设怎样郑州网站优化外包顾问
  • 做电影网站用什么服务器比较好首页关键词排名优化
  • 深圳龙岗企业网站建设网站流量分析的指标有哪些
  • 网站制作项目执行谷歌广告代运营
  • 电脑打不开网页怎么回事网络营销乐云seo
  • 做轻时尚的网站谷歌搜索引擎下载
  • 网站建设方案模板下载内容营销是什么意思
  • 专门做品牌折扣的网站seo策划
  • 福建住房和城乡建设厅网站首页百度关键词优化首选667seo
  • 怎样可以提升自己的网站自己创建一个网站需要多少钱
  • 网站做营销推广济南做seo的公司排名
  • 网站做可以退款吗百度山西授权代理
  • 做网站的意义大不大百度一下就知道手机版
  • 青岛建站行业google官方下载
  • 打名字就说你是什么做的网站seo网站关键词优化软件
  • 英文外贸网站制作信息发布
  • 网站域名申请了该怎么做手机百度如何发布广告
  • 网站开发与数据库百度推广一般要多少钱
  • 免费外链发布长沙seo
  • 旅游信息网站开发百度一下官网首页