会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
小平头~
博客园
首页
新随笔
联系
管理
订阅
2020年8月31日
微信小程序中遮罩层滚动穿透问题(view增加一个属性解决)
摘要: 直奔正题: 遮罩层(蒙层)弹出的时候,不应该让遮罩层底下的内容能滚动,小程序中的最佳解决方案亲测如下: <view class="container" catchtouchmove="ture"></view> .container { background-color: #000000; posi
阅读全文
posted @ 2020-08-31 11:20 小平头~
阅读(818)
评论(0)
推荐(1)
2020年8月28日
点击早中晚 分别进不同的详情
摘要: computed: { _dataList: function() { if (this.type == 1) return this.dataList.breakfast if (this.type == 2) return this.dataList.lunch if (this.type ==
阅读全文
posted @ 2020-08-28 14:37 小平头~
阅读(169)
评论(0)
推荐(0)
2020年8月21日
小程序 轮播(做小圆点轮播功能)
摘要: 轮播 <swiper class="swiper" :style="{height:750*194/375+'rpx !important'}" circular="true" :autoplay="autoplay" :interval="interval" :duration="duration
阅读全文
posted @ 2020-08-21 14:25 小平头~
阅读(350)
评论(0)
推荐(0)
vue 关注已关注按钮切换
摘要: <view class="feature-info"> <view class="feature-list info-row"> <text v-if="isFollow == 1" class="attention" @click="unsubscribe()">已关注</text> <text
阅读全文
posted @ 2020-08-21 10:03 小平头~
阅读(859)
评论(0)
推荐(0)
2020年8月18日
进餐页
摘要: <!-- 进餐 --> <template> <view class="content"> <!-- 导航栏 --> <mynavGeneral mTitle="每日进餐" :immersionShow="immersionShow"></mynavGeneral> <view :style="{'
阅读全文
posted @ 2020-08-18 17:03 小平头~
阅读(163)
评论(0)
推荐(0)
2020年8月17日
用日期获取周几
摘要: <view class="weeks"> <text @click="switchWeek(index)" v-for="(item,index) in ['周天',' 周一','周二','周三','周四','周五','周六']" class="item zk_pressed1" :class="{
阅读全文
posted @ 2020-08-17 16:14 小平头~
阅读(203)
评论(0)
推荐(0)
打卡调数据
摘要: <view class="ctn"> <view class="itm" @click="clockIn(1, breakfast_time, a)">//形参 <text>今日早餐</text> <image src="../../static/icon/icon_punch2.png"></im
阅读全文
posted @ 2020-08-17 12:01 小平头~
阅读(171)
评论(0)
推荐(0)
2020年8月10日
就餐记录
摘要: <!-- 就餐记录 --> <template> <view class="content"> <!-- 导航栏 --> <mynavGeneral mCustomTitle="true" :immersionShow="immersionShow"> <view class="inavTab">
阅读全文
posted @ 2020-08-10 10:28 小平头~
阅读(152)
评论(0)
推荐(0)
2020年8月8日
就餐设置时间 调接口
摘要: <template> <view class="content"> <!-- 导航栏 --> <mynavGeneral mTitle="设置时间" :immersionShow="immersionShow"></mynavGeneral> <view :style="{'margin-top':
阅读全文
posted @ 2020-08-08 11:28 小平头~
阅读(188)
评论(0)
推荐(0)
2020年8月5日
vue 控制某个元素的显示与隐藏之v-if属性
摘要: 2019-01-17阅读 2.2K0 HTML代码: <div title="意向价格" v-if="showPrise"></div> <div title="意向租金" v-if="showRentPrise"></div> JS代码: new Vue({ el: '#app', data: {
阅读全文
posted @ 2020-08-05 19:50 小平头~
阅读(8017)
评论(0)
推荐(0)
下一页
公告