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

wordpress建站案例营销推广方案

wordpress建站案例,营销推广方案,网站备案号有什么用,苹果浏览器怎么信任网站设置首先声明一点:下面的内容是从一个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.yidumall.com/news/66002.html

相关文章:

  • 网站logo怎么做才清晰网络广告营销策划方案
  • 网页布局结构图邯郸seo优化
  • 政府网站源码下载设计网络推广方案
  • wordpress 文艺小清新网站seo招聘
  • 百度做鸡网站市场推广怎么做
  • 网站制作选哪家公司品牌策略
  • ubuntu做php网站网站推广的常用方法有哪些?
  • ssm网站开发视频百度手机应用商店
  • wordpress 四亩东莞关键词排名seo
  • 西安网站托管企业内训
  • 做阿里巴巴网站有什么用推广引流软件
  • 做网站的哪里好东莞seo优化公司
  • 专题网站建设总要求湖南广告优化
  • wordpress+悬浮+登录惠州seo外包平台
  • 中英文 微信网站 怎么做济南seo外包公司
  • 无锡网站建设如何制作网页链接教程
  • 北京工程信息网官网济南百度seo
  • 网络服务合同范本百度seo公司整站优化
  • 在库言库建筑网站重庆seo排名公司
  • 怎样找到专业做网站人地推十大推广app平台
  • 江门做网站多少钱seo优化托管
  • 中小型企业 公司网站建设成都最新疫情
  • 寻找哈尔滨网站建设芭蕉视频app无限次数
  • 建设网站图用广州seo推广获精准访问量
  • 外贸网站建设推广费用湖南长沙seo
  • 动态效果酷炫的网站成都网络营销
  • 做网站运维的待遇网站推广在哪好
  • 清远专业网站制作公司免费网站建设seo
  • 建行深圳分公司seo网站优化培训厂家报价
  • 福田皇岗社区做网站重庆seo排名优化