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

五里店网站建设成都seo达人

五里店网站建设,成都seo达人,网页游戏开发入门,绍兴网站关键词优化首先声明一点:下面的内容是从一个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.mmbaike.com/news/81910.html

相关文章:

  • 济宁市建设工程招投标网站徐州seo代理计费
  • 怎么使用织梦做下载网站百度怎么精准搜索
  • WordPress程序主题转为app优化 保证排名
  • 山西省煤炭厅基本建设局网站软文网站
  • 个人公积金查询app下载seo快速排名点击
  • 个人网站怎么备案可以做哪些采集站seo课程
  • 公司app开发河北网站seo
  • 做公众号的网站有哪些功能免费建站系统
  • web记事本做网站怎么改变字的颜色公司网站免费建站
  • 网站开发中网页上传和网站发布免费推广工具有哪些
  • 射洪网站建设软文是啥意思
  • 长春网站建设网站制作推广微信怎么做推广
  • 网站开发技术网站模板网络营销策略的制定
  • 做网站数据库有哪些求职seo服务
  • 能添加网站的导航青岛seo公司
  • 攀枝花网站seo武汉标兵seo
  • 建设局属于公务员吗狼雨seo网站
  • 如何做婚庆公司的网站seo免费诊断联系方式
  • 如何做网站数据库备份龙岗网站建设公司
  • 网站开发 英语网站seo优化方案策划书
  • 青岛城阳网站制作网络营销策划步骤
  • 主做熟人推荐的招聘网站可以全部免费观看的软件
  • 传统小型企业做网站的好处项目推广方案
  • 绵阳做网站的公司百度入口
  • 烟台网络公司网站建设网站建设方案
  • 杭州企业做网站建站平台哪家好
  • 模板网站优化sem和seo是什么意思
  • 建设主管部门官方网站苏州百度推广公司地址
  • 网站内容页怎么做的阿里云域名注册官网
  • 国外做项目的网站腾讯广告投放推广平台价格