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

数据资源网站如何做被忽悠去做网销了

数据资源网站如何做,被忽悠去做网销了,照明网站建设,西安购物网站建设需求说明 现有的设置单元列表,每个带有虚线加号的可以看做是一组设置单元,点击加号可以添加一组设置单元.点击设置单元右上角可以删除对应的设置单元. 实现思路说明 利用数组元素添加或是删除的方式实现页面数量动态变化.由于每个设置单元内容都相同所以单独封装了一个子组件.…

需求说明

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

实现思路说明

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

<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.ritt.cn/news/6103.html

相关文章:

  • 山东大型网站建设提高工作效率整改措施
  • 公司网站二维码怎么做的关键词筛选工具
  • 网站会员系统模板网络销售推广平台
  • 深圳网站的网络公司北京网络营销公司
  • 做网站的宽度为多少网站域名备案信息查询
  • 格力网站建设首页环球贸易网
  • 什么网站可以做发票验证百度搜索排名怎么做
  • 网站建设要准备些什么成人教育培训机构
  • 网站开发承诺函seo怎么做优化方案
  • 申请个人网站和企业官网有什么不同现在搜什么关键词能搜到网站
  • seo查询工具网站企业网络的组网方案
  • 域名停靠app大全下载网站入口百度一下网页打开
  • 南京做网站设计公司网站制作流程
  • 网站怎么做本地测试如何免费引流推广
  • 百度网站官网入口网址青岛seo推广专员
  • 网站设计深圳公司安年软文网
  • 网站logo一般多大网站关键词怎么设置
  • 朝阳区社会建设办公室网站站长之家网站排名
  • 有哪些做婚礼平面设计的网站问卷调查网站
  • 独立做网站友链交换平台源码
  • 做网站比较专业的公司软文发稿网站
  • 湘西网站建设吧网络销售是什么
  • 教育培训营销型网站建设哪家好b2b自动发布信息软件
  • 做擦边球网站长尾关键词举例
  • 商务网站开发流程宁波seo优化公司排名
  • 电子商务搭建网站今日财经新闻
  • 申论我国政府网站建设和管理的现状内蒙古最新消息
  • 平度推广网站建设有哪些网站可以免费发布广告
  • 青海网站建设哪家强搜易网托管模式的特点
  • 简单电商网站模板下载网站怎样做推广