Commit 6605b015 authored by 张杰's avatar 张杰

记录-睡觉 页面搭建

parent db4c9cf8
...@@ -16,16 +16,16 @@ ...@@ -16,16 +16,16 @@
<view class="category"> <view class="category">
<view wx:for="{{categorys}}"> <view wx:for="{{categorys}}">
<view class="eat_category_btn {{selectIndex == index ? 'selected' : ''}}" bindtap='tapCategory' data-index='{{index}}'> <view class="eat_category_btn {{selectIndex == index ? 'selected' : ''}}" bindtap='tapCategory' data-index='{{index}}'>
{{item}} {{item}}
</view> </view>
</view> </view>
</view> </view>
<view class='kg-separater'></view> <view class='kg-separater'></view>
<!-- 数量 --> <!-- 数量 -->
<view style='margin:20rpx'> <view style='margin:20rpx'>
<template is='quantity_cell' data="{{type:'input'}}"></template> <template is='quantity_cell' data="{{type:'input',unit:'毫升'}}"></template>
<template is='quantity_cell' data="{{type:'input'}}"></template> <template is='quantity_cell' data="{{type:'input',unit:'毫升'}}"></template>
<template is='quantity_cell' data="{{type:'select'}}"></template> <template is='quantity_cell' data="{{type:'select',unit:'毫升'}}"></template>
</view> </view>
<view class='kg-separater'></view> <view class='kg-separater'></view>
<template is="section_header" data="{{title:'今日拍照'}}"></template> <template is="section_header" data="{{title:'今日拍照'}}"></template>
...@@ -44,6 +44,16 @@ ...@@ -44,6 +44,16 @@
</view> </view>
</scroll-view> </scroll-view>
</view> </view>
<view hidden='{{controlIndex != 1}}'>睡觉</view>
<!-- 睡觉 -->
<view hidden='{{controlIndex != 1}}'></view>
<!-- 滑动区域 -->
<scroll-view style='height:calc(100vh - 50px - 2rpx - 20rpx - 140rpx)' scroll-y='true'>
<view style='margin:20rpx'>
<template is='quantity_cell' data="{{type:'input',unit:'分钟'}}"></template>
<template is='quantity_cell' data="{{type:'input',unit:'分钟'}}"></template>
<template is='quantity_cell' data="{{type:'select',unit:'分钟'}}"></template>
</view>
</scroll-view>
<view hidden='{{controlIndex != 2}}'>WC</view> <view hidden='{{controlIndex != 2}}'>WC</view>
<template is="operate_btn" data="{{title:'保存'}}"></template> <template is="operate_btn" data="{{title:'保存'}}"></template>
\ No newline at end of file
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
<view class='g-text-normal-dark'>张小华</view> <view class='g-text-normal-dark'>张小华</view>
<view class='kg-flex-row' hidden="{{type != 'input'}}"> <view class='kg-flex-row' hidden="{{type != 'input'}}">
<input class='kg-border' style='width:140rpx;margin-right:10rpx;'></input> <input class='kg-border' style='width:140rpx;margin-right:10rpx;'></input>
<view class='kg-text-normal-gray'>毫升</view> <view class='kg-text-normal-gray'>{{unit}}</view>
</view> </view>
<view class='kg-flex-row' hidden="{{type != 'select'}}"> <view class='kg-flex-row' hidden="{{type != 'select'}}">
<view wx:for="{{['少','正常','多']}}"> <view wx:for="{{['少','正常','多']}}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment