Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
K
Kindergarten
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张杰
Kindergarten
Commits
6605b015
Commit
6605b015
authored
6 years ago
by
张杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
记录-睡觉 页面搭建
parent
db4c9cf8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
index.wxml
pages/add_record/index.wxml
+15
-5
index.wxml
template/operate_btn/index.wxml
+1
-1
No files found.
pages/add_record/index.wxml
View file @
6605b015
...
@@ -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
This diff is collapsed.
Click to expand it.
template/operate_btn/index.wxml
View file @
6605b015
...
@@ -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="{{['少','正常','多']}}">
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment