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

网站如何添加认证联盟商场设计与商品陈列

网站如何添加认证联盟,商场设计与商品陈列,东庄水利建设公司网站,泰州网站建设推广首先声明一点:下面的内容是从一个uniapp的程序中摘录的,并非本人所写,先做记录,以免后续遇到相似需求抓耳挠腮。 这里写目录标题 效果图代码——html部分cu-custom组件anil-seat组件 代码——jscss部分 效果图 代码——html部分 …

首先声明一点:下面的内容是从一个uniapp的程序中摘录的,并非本人所写,先做记录,以免后续遇到相似需求抓耳挠腮。

这里写目录标题

  • 效果图
  • 代码——`html`部分
            • `cu-custom`组件
            • `anil-seat`组件
  • 代码——`js`+`css`部分

效果图

在这里插入图片描述

代码——html部分

<template><view><cu-custom class="navBox" bgColor="bg-gradual-blue" :isBack="true"><block slot="backText">返回</block><block slot="content">在线选座</block></cu-custom><anil-seat title="皮皮鲁与鲁西西之罐头小人"info="2021年10月22日 国语 奇幻 喜剧 儿童"room-name="5号厅":seat-data="seatData" :max="4" @confirm="onConfirmSeat"></anil-seat></view>
</template>

上面代码中的cu-custom组件是全局注册到main.js中的组件:

main.js中的写法:

// 此处为引用自定义顶部
import cuCustom from './colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom);
cu-custom组件
<template><view><view class="cu-custom" :style="[{height:CustomBar + 'px'}]"><view class="cu-bar fixed" :style="style" :class="[bgImage!=''?'none-bg text-white bg-img':'',bgColor]"><view class="action" @tap="BackPage" v-if="isBack"><text class="cuIcon-back"></text><slot name="backText"></slot></view><view class="content" :style="[{top:StatusBar + 'px'}]"><slot name="content"></slot></view><slot name="right"></slot></view></view></view>
</template><script>export default {data() {return {StatusBar: this.StatusBar,CustomBar: this.CustomBar};},name: 'cu-custom',computed: {style() {var StatusBar= this.StatusBar;var CustomBar= this.CustomBar;var bgImage = this.bgImage;var style = `height:${CustomBar}px;padding-top:${StatusBar}px;`;if (this.bgImage) {style = `${style}background-image:url(${bgImage});`;}return style}},props: {bgColor: {type: String,default: ''},isBack: {type: [Boolean, String],default: false},bgImage: {type: String,default: ''},},methods: {BackPage() {uni.navigateBack({delta: 1});}}}
</script>
anil-seat组件

由于内容过多,暂不进行展示,有需要的可以评论区留下邮箱。

代码——js+css部分

<script>import anilSeat from '@/components/anil-seat/components/anil-seat/anil-seat.vue'import {seatData} from '@/common/seat-data.js'export default {components: {anilSeat},data() {return {seatData: seatData};},methods: {onConfirmSeat (items) {console.log(items)}}}
</script><style lang="scss">
page {background-color: #eee;height: 100%;
}
</style>

完成!!!多多积累,多多收获!!!

http://www.yayakq.cn/news/881142/

相关文章:

  • 网站顶部地图代码怎么做的耒阳市建设局网站
  • 合肥建设网站公司安徽建设工程有限公司
  • 苏州专业高端网站建设机构做商城外贸网站
  • 专门做宠物食品的网站做暖暖免费视频网站
  • archigo建筑网站阿里企业邮箱后缀
  • 网站开发可以自学吗给周杰伦做网站
  • 网站怎么做弹窗网站设计与开发期末考试题
  • 如何制作自己的网站 可放广告wordpress横向导航
  • 衡水市住房和城乡建设局网站阿里云服务器可以做彩票网站吗
  • 合肥生态丽景网站建设网页设计师考试
  • 阜阳网站开发自己做一个网站一年的费用
  • 长沙制作公园仿竹围栏哪家便宜常州网站制作优化
  • 徐州网站建设哪家专业在线做六级阅读网站
  • 福建福清市住房和建设局网站外贸做中英文网站
  • 医院网站解决方案微商代运营
  • 网站的建设特色WordPress小程序论坛
  • 彩投网站建设中英文切换网站开发
  • 网站建设怎么谈wordpress设置收费下载
  • wap网站域名申请wordpress 首页显示全文
  • 黄岩城市建设发展集团网站wordpress页面背景图片
  • php网站开发发展趋势wordpress html 单页
  • 做彩票网站技术网站对域名
  • 外边做一个网站要多少钱百度网站抓取时间查询
  • 网站建设又叫什么专业营销网站开发
  • 湛江市律师网站建设品牌北京市基础建设质量监督局网站
  • 制造网站开发教学网站模板
  • 石碣镇网站仿做网站建设公司代理商
  • 坪山网站建设流程检测WordPress网站的安全性
  • 服务网站设计案例住建网是个什么网站
  • 阳西网站seo网站生成wap