Commit b7996252 authored by JingChao's avatar JingChao

content

parent 9d4b0361
...@@ -11,7 +11,8 @@ ...@@ -11,7 +11,8 @@
} }
.has-header { .has-header {
padding-bottom: 1.28rem; top: 1.28rem;
//padding-bottom: 1.28rem;
} }
.header-top { .header-top {
margin-top: 1.26rem; margin-top: 1.26rem;
......
...@@ -4,9 +4,11 @@ ...@@ -4,9 +4,11 @@
*/ */
<template> <template>
<section :class="cusClass" class="content"> <div
:class="cusClass" class="content" @touchstart="start"
@touchend="end">
<slot/> <slot/>
</section> </div>
</template> </template>
<script> <script>
...@@ -90,6 +92,12 @@ export default { ...@@ -90,6 +92,12 @@ export default {
let content = vm.$el let content = vm.$el
content.style.height = (window.innerHeight - nextHeight - headerHeight) + 'px' content.style.height = (window.innerHeight - nextHeight - headerHeight) + 'px'
}, },
start (event) {
},
end (event) {
debugger
},
}, },
} }
</script> </script>
......
...@@ -57,6 +57,9 @@ export default { ...@@ -57,6 +57,9 @@ export default {
color: #4A4A4A; color: #4A4A4A;
box-sizing: content-box; box-sizing: content-box;
overflow: hidden; overflow: hidden;
position: relative;
z-index: 20;
width: 100%;
.h-header-center { .h-header-center {
flex: 1; flex: 1;
......
...@@ -10,22 +10,53 @@ ...@@ -10,22 +10,53 @@
<tab-item>Vue</tab-item> <tab-item>Vue</tab-item>
<tab-item>APP</tab-item> <tab-item>APP</tab-item>
</s-tab> </s-tab>
<div style="height: 60px"/> <s-tab>
<tab-item>Vue</tab-item>
<tab-item>APP</tab-item>
</s-tab>
<h-content id="home-content"> <h-content id="home-content">
<div v-for="item in message" class="message"> <list-item>
<p v-show="false" class="message-time" v-text="item.time"/> <item>
<div v-show="!item.isFromeMe" class="message-wrap"> <section slot="name">姓名</section>
<img src="../assets/image/robot/robot.png" class="head-pic"> <input slot="content" type="text">
<span class="triangle-left"/> </item>
<p class="message" @click="showImg($event)" v-html="item.content"/> <item>
</div> <section slot="name">年龄</section>
<div v-show="item.isFromeMe" class="message-wrap"> <input slot="content" type="text">
<img v-show="userImg" :src="userImg" class="head-pic-right"> </item>
<img v-show="!userImg" src="@/assets/image/robot/user7.png" class="head-pic-right"> <item>
<span class="triangle-right"/> <section slot="name">性别</section>
<p class="message-right" v-text="item.content"/> <input slot="content" type="text">
</div> </item>
</div> <item>
<section slot="name">出生日前</section>
<input slot="content" type="text">
</item>
<item>
<section slot="name">体重</section>
<input slot="content" type="text">
</item>
<item>
<section slot="name">身高</section>
<input slot="content" type="text">
</item>
<item>
<section slot="name">血型</section>
<input slot="content" type="text" >
</item>
<item>
<section slot="name">胸围</section>
<input slot="content" type="text">
</item>
<item>
<section slot="name">腰围</section>
<input slot="content" type="text">
</item>
<item>
<section slot="name">tun</section>
<input slot="content" type="text">
</item>
</list-item>
</h-content> </h-content>
<s-tab> <s-tab>
<tab-item>Vue</tab-item> <tab-item>Vue</tab-item>
......
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