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

网站开发建设付款方式全网营销推广方案

网站开发建设付款方式,全网营销推广方案,邯郸最新消息,商用厨房设计书籍uniapp页面一般都会有像以下的列表页面,封装通用组件,提高开发效率; (基于uView前端框架) 首先,通过设计图来分析一下页面展示和数据结构定义 w-table组件参数说明 参数说明类型可选值默认值toggle列表是…

uniapp页面一般都会有像以下的列表页面,封装通用组件,提高开发效率;
(基于uView前端框架)
在这里插入图片描述

首先,通过设计图来分析一下页面展示和数据结构定义

在这里插入图片描述

w-table组件参数说明

参数说明类型可选值默认值
toggle列表是否带更多和收起功能
toggle值为true时,配合prop-list中定义的show字段使用,show值为true时,收起情况下默认展示的列,false则默认不展示,点击更多展开时展示
toggle值为false时prop-list中定义的show值无效,表示全部默认展示,不需要展开收缩功能
booleantrue|falsetrue
prop-list定义的字段和列标题数组(对应PC端封装表格组件,内容格式一致)
例:[{label:‘废物名称’,prop:‘name’},{label:‘数字识别码’,prop:‘code’}]
array[]
table-data后台返回数据数组array[]

prop-list具体参数说明

参数说明类型可选值默认值
label列的标题名称(如图:废物名称)string
prop字段名array[]
show列表收起时默认展示,toggletrue时生效stringtrue|falsefalse
formatItem整体列插槽(例如上图俩个状态按钮列,不展示左边标题名称,则需要整体插槽实现)booleantrue|falsefalse
formatValue值插槽(例如返回值需要加单位,格式化等情况)
formatItemtrue时此属性不生效
booleantrue|falsefalse
propList数据格式
propList:[{label:'废物名称',prop:'title',show:true},{label:'数字识别码',prop:'name',show:true},{label:'危废标识',prop:'tag',show:true},{label:'废物代码',prop:'code',show:true},{label:'废物重量',prop:'weight',formatValue:true,show:true},//格式化值{label:'废物形态',prop:'name'},{label:'主要成分',prop:'name'},{label:'有害成分',prop:'name'},{label:'危险特性',prop:'name'},{label:'注意事项',prop:'name'},{label:'产生/收集单位',prop:'comp'},{label:'联系人',prop:'userName'},{label:'联系方式',prop:'phone'},{label:'产生日期',prop:'date'},{label:'备注',prop:'remark'},{label:'状态',prop:'status',formatItem:true,show:true},//格式化列默认展示{label:'二维码',prop:'qrcode',formatItem:true,show:false}//格式化列默认不展示
]
tableData数据格式
tableData:[{title:'HWCS20230908003',time:'2023-09-18 14:00',name:'废物名称',code:'1234567890123456789000030420230915101',tag:'7b9e9d22ca714365a1f6a6b338fc8fa3',code1:'900-041-49',weight:'30',unit:'kg',wasteStatus:1,reportStatus:0,
}]

具体代码

基础用法
<w-table :table-data="tableData" :prop-list="propList" :toggle="true"></w-table>
有格式化值和列的情况
<w-table :table-data="tableData" :prop-list="propList" :toggle="true"><template slot="header" slot-scope="scope"><view class="width w-flex row row-between borderB padding16"><view class="flex1 w-flex row"><text class="fs24 c-blue fwBold marginR10 flex-none"> {{scope.index < 10 ?'0'+(scope.index+1):scope.index+1}} </text><text class="flex1 text-overflow c-text fs16">{{scope.row.title}}</text></view><text class="marginLR10 flex-none">{{scope.row.time}}</text></view></template><template slot="weight" slot-scope="scope"><span>{{scope.row.weight}}{{scope.row.unit}}</span></template><template slot="status" slot-scope="scope"><view class="w-flex row row-between paddingLR30 paddingTB10"><u-tag text="待入库" mode="plain"/><view v-if="scope.row.status == 0" class="" style="color:#FF7D00"><u-icon name="clock"></u-icon><text class="marginL10">未上报</text></view><view v-else class="" style="color:#00B42A"><u-icon name="checkbox-mark"></u-icon><text class="marginL10">已上报</text></view></view></template><!-- 二维码 --><template slot="qrcode" slot-scope="scope"><view class="w-flex"> <img class="width160 height160" src="/static/img/qrcode.png" alt=""></view></template></w-table>

w-table组件源码

<template><view class="width w-table"><viewv-if="tableData.length > 0"class="w-flex col item-list marginB20 marginLR20 radius8 relative"v-for="(item, index) in tableData":key="index"><slot name="header" :row="item" :index="index"></slot><view class="width w-flex col paddingT15"><!-- <u-read-more class="width" :toggle="true" closeText="更多" :showHeight="showHeight" color="#4E5969"> --><u-cell-group><template v-for="(cellItem,i) in propList"><template v-if="!cellItem.formatItem"><!-- 默认展示 show为true时  或者 不需要折叠时执行展示列 --><view class="default-show" v-if="cellItem.show || !toggle"><u-cell-item :title="cellItem.label" :key="i" :arrow="false"><slot v-if="typeof cellItem.formatValue === 'boolean' ? cellItem.formatValue : false":row="item" :name="cellItem.prop" :index="index"></slot><text v-else>{{$util.formatTextEmpty(item[cellItem.prop])}}</text></u-cell-item></view><!-- 默认不展示 --><view class="default-notshow" v-if="!cellItem.show && item.isShow"><u-cell-item :title="cellItem.label" :key="i" :arrow="false"><slot v-if="typeof cellItem.formatValue === 'boolean' ? cellItem.formatValue : false":row="item" :name="cellItem.prop" :index="index"></slot><text v-else>{{$util.formatTextEmpty(item[cellItem.prop])}}</text></u-cell-item></view></template><template v-if="cellItem.formatItem"><!-- 整体插槽列默认展示 --><slot v-if="cellItem.show" :name="cellItem.prop" :row="item" :index="index"></slot><!-- 整体插槽列默认不展示 并且 列表展开时展示 --><slot v-if="!cellItem.show && item.isShow" :name="cellItem.prop" :row="item" :index="index"></slot></template></template><view v-show="toggle" class="width padding20 textCenter"><span v-show="!item.isShow" @click="toggleCell(index,true)">更多<u-icon name="arrow-down" class="marginL5"></u-icon></span><span v-show="item.isShow" @click="toggleCell(index,false)">收起<u-icon name="arrow-up" class="marginL5"></u-icon></span></view></u-cell-group><!-- </u-read-more> --></view></view></view>
</template><script>export default{props:{tableData:{default:[],type:Array,},propList:{default:[],type:Array,},showHeight:{default:500,type:Number,},toggle:{default:true,type:Boolean,}},data(){return{}},mounted(){if(this.toggle){// 可以展开收起时,给表格默认增加isShow属性this.tableData.forEach(item=>{this.$set(item,'isShow',!this.toggle)})}else{// 不需要收缩功能时,每一列数据默认是true,即展示,// 也就是toggle为false时,propList设置show属性无效,均为truethis.propList.forEach(item=>{this.$set(item,'show',!this.toggle)})}},methods:{toggleCell(i,value){this.$set(this.tableData[i],'isShow',value)}}}
</script><style lang="scss" scoped>::v-deep.u-cell{align-items: flex-start;}::v-deep.u-cell-box{text-indent: initial;}::v-deep.w-table .u-content__showmore-wrap{background-image:none !important;}::v-deep.w-table .u-cell_title{width: 90px !important;flex: none;font-size: 13px !important;}::v-deep.w-table .u-cell__value{text-align: left !important;overflow-wrap: break-word;}
</style>

文章转载自:
http://ncna.bgqr.cn
http://nudist.bgqr.cn
http://flume.bgqr.cn
http://subprefect.bgqr.cn
http://pdh.bgqr.cn
http://phasedown.bgqr.cn
http://pentahedron.bgqr.cn
http://catling.bgqr.cn
http://patella.bgqr.cn
http://khorramshahr.bgqr.cn
http://muddiness.bgqr.cn
http://cariostatic.bgqr.cn
http://hoarsely.bgqr.cn
http://corticous.bgqr.cn
http://allocate.bgqr.cn
http://cunnilingus.bgqr.cn
http://preservative.bgqr.cn
http://karelianite.bgqr.cn
http://cantiga.bgqr.cn
http://leucotome.bgqr.cn
http://sowens.bgqr.cn
http://gospeller.bgqr.cn
http://kamila.bgqr.cn
http://nanette.bgqr.cn
http://previsional.bgqr.cn
http://hypocrinism.bgqr.cn
http://tetrahydrofurfuryl.bgqr.cn
http://copperplate.bgqr.cn
http://bossy.bgqr.cn
http://toulon.bgqr.cn
http://glimpse.bgqr.cn
http://siamese.bgqr.cn
http://bilker.bgqr.cn
http://myalgia.bgqr.cn
http://cablevision.bgqr.cn
http://hols.bgqr.cn
http://hemofuscin.bgqr.cn
http://retractable.bgqr.cn
http://geoisotherm.bgqr.cn
http://celia.bgqr.cn
http://firewarden.bgqr.cn
http://rump.bgqr.cn
http://jaggery.bgqr.cn
http://scrinium.bgqr.cn
http://squirish.bgqr.cn
http://kerman.bgqr.cn
http://samite.bgqr.cn
http://branchiate.bgqr.cn
http://underrepresentation.bgqr.cn
http://sacramentalism.bgqr.cn
http://cloudland.bgqr.cn
http://affirmable.bgqr.cn
http://supersensuous.bgqr.cn
http://cubbing.bgqr.cn
http://hyphen.bgqr.cn
http://kitbag.bgqr.cn
http://sthenic.bgqr.cn
http://bibliophilist.bgqr.cn
http://osteotome.bgqr.cn
http://elusively.bgqr.cn
http://crinoidea.bgqr.cn
http://scoresheet.bgqr.cn
http://augustan.bgqr.cn
http://counterespionage.bgqr.cn
http://tigris.bgqr.cn
http://transmountain.bgqr.cn
http://layette.bgqr.cn
http://labilise.bgqr.cn
http://annihilable.bgqr.cn
http://thrombi.bgqr.cn
http://hapten.bgqr.cn
http://biker.bgqr.cn
http://cecum.bgqr.cn
http://etymologize.bgqr.cn
http://youthhood.bgqr.cn
http://skerry.bgqr.cn
http://forsooth.bgqr.cn
http://endmost.bgqr.cn
http://computable.bgqr.cn
http://batcher.bgqr.cn
http://dogsleep.bgqr.cn
http://wolverine.bgqr.cn
http://industrial.bgqr.cn
http://flavicant.bgqr.cn
http://retiral.bgqr.cn
http://ectoblast.bgqr.cn
http://cienfuegos.bgqr.cn
http://bluebottle.bgqr.cn
http://volubilate.bgqr.cn
http://funeral.bgqr.cn
http://vittoria.bgqr.cn
http://faux.bgqr.cn
http://lankly.bgqr.cn
http://heathenry.bgqr.cn
http://giddyap.bgqr.cn
http://constantly.bgqr.cn
http://marcel.bgqr.cn
http://rifling.bgqr.cn
http://turfy.bgqr.cn
http://anodyne.bgqr.cn
http://www.sczhlp.com/news/386.html

相关文章:

  • 网站开发浏览器的使用软文营销的五个步骤
  • 中山骏域网站建设专家什么是seo搜索
  • 做商城类网站空间怎么买重庆公司网站seo
  • 个人做淘宝客网站不能备案吗seo做得比较好的公司
  • 长春火车站建在哪里十大教育培训机构排名
  • 韩国电商网站上海网站建设seo
  • 自己主机做多个网站公司网站策划宣传
  • 平面毕业设计作品网站百度联盟项目看广告挣钱
  • 网站制作入门课程短视频营销推广
  • 南通seo网站推广费用谷歌地图下载
  • 做电商搜素材网站都是什么找关键词
  • 步骤的英文武汉久都seo
  • 宣城市网站建设今日新闻头条热点
  • 长沙个人做网站守游网络推广平台
  • 网站开发与管理内容佛山seo
  • 简单的网站制作海淀网站建设公司
  • ppt素材大全免费图片快速优化排名公司推荐
  • 清溪做网站的电话百度网页游戏
  • 谁能帮忙做网站备案天津seo关键词排名优化
  • 深入网站开发和运维 pdf怎么创建自己的网址
  • 法制建设网站网站seo优化分析
  • 电商网站建设网网络营销师证
  • 如何仿做网站注册网站怎么注册
  • 南通优化网站公司哪家好web个人网站设计代码
  • 网站打不开如何解决广东seo网站推广
  • 合肥网站改版长沙网络推广外包费用
  • 地产建站规划seo综合查询站长工具
  • 陕西宏远建设集团网站关键词优化工具互点
  • 我想做跑腿网站怎么做线上如何推广自己的产品
  • 重庆企业网站建设解决方案批量查询收录