Commit 2665ebff by liwk

commit

1 parent 84fcbb76
...@@ -27,6 +27,7 @@ export default { ...@@ -27,6 +27,7 @@ export default {
}, },
methods: { methods: {
onLoad () { onLoad () {
console.log(123)
this.$emit('ReachBottom') this.$emit('ReachBottom')
}, },
} }
......
...@@ -9,13 +9,85 @@ ...@@ -9,13 +9,85 @@
// 按需全局引入 vant组件 // 按需全局引入 vant组件
import { import {
Button, Button,
Dialog,
Search,
List, List,
Cell,
Tabbar,
TabbarItem,
NavBar,
Search,
ActionSheet,
CellGroup,
Image as VanImage,
Tag,
Field,
Stepper,
Divider,
Step,
Steps,
NoticeBar,
RadioGroup,
Radio,
Uploader,
Tab,
Tabs,
DropdownMenu,
DropdownItem,
Grid,
GridItem,
Popup,
Calendar,
Cascader,
Checkbox,
CheckboxGroup,
Notify,
Icon,
Empty,
PullRefresh,
Picker,
Dialog,
ShareSheet,
Overlay,
loading
} from 'vant' } from 'vant'
export const components = [ export const components = [
Button, Button,
Dialog, List,
Cell,
Tabbar,
TabbarItem,
NavBar,
Search, Search,
List ActionSheet,
CellGroup,
VanImage,
Tag,
Field,
Stepper,
Divider,
Step,
Steps,
NoticeBar,
RadioGroup,
Radio,
Uploader,
Tab,
Tabs,
DropdownMenu,
DropdownItem,
Grid,
GridItem,
Popup,
Calendar,
Cascader,
Checkbox,
CheckboxGroup,
Notify,
Icon,
Empty,
PullRefresh,
Picker,
Dialog,
ShareSheet,
Overlay,
loading
] ]
\ No newline at end of file \ No newline at end of file
...@@ -3,32 +3,31 @@ ...@@ -3,32 +3,31 @@
<div class="search sticky"> <div class="search sticky">
<search /> <search />
</div> </div>
<div class="content"> <scroll-view
<scroll-view class="content"
class="list-box" @ReachBottom="onReachBottom"
@ReachBottom="onReachBottom" ref="scrollView"
ref="scrollView" >
> <template v-for="(i,index) in 10">
<template v-for="(i,index) in 10"> <div
<div class="box"
class="box" :key="index"
:key="index" >
> <div class="share">
<div class="share"> <div class="sprite-icon icon-attract-customer-share"></div>
<div class="sprite-icon icon-attract-customer-share"></div>
</div>
<div class="title text-hide">渠道活码名称大概到这个位置…</div>
<div class="name-list">
<div class="label"></div>
<div class="value"></div>
</div>
<div class="remark">
备注:{{i.remark || ''}}
</div>
</div> </div>
</template> <div class="title text-hide">渠道活码名称大概到这个位置…</div>
</scroll-view> <div class="name-list">
</div> <div class="label">使用人员:</div>
<div class="value">张三、C李四、小陈总、飞天小猪、海的小心心、陈五、金七</div>
</div>
<div class="remark">
备注:{{i.remark || '- -'}}
</div>
<div class="img-box"></div>
</div>
</template>
</scroll-view>
</div> </div>
</template> </template>
...@@ -37,12 +36,16 @@ export default { ...@@ -37,12 +36,16 @@ export default {
name: '', name: '',
data () { data () {
return { return {
} }
}, },
mounted () { mounted () {
}, },
methods: { methods: {
onReachBottom () {
this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true
}
} }
} }
</script> </script>
...@@ -56,6 +59,7 @@ export default { ...@@ -56,6 +59,7 @@ export default {
} }
.content { .content {
padding: 16px; padding: 16px;
height: calc(100vh - 50px);
.box { .box {
background: #ffffff; background: #ffffff;
box-shadow: 0px 4px 8px 0px rgba(224, 224, 224, 0.5); box-shadow: 0px 4px 8px 0px rgba(224, 224, 224, 0.5);
...@@ -63,6 +67,7 @@ export default { ...@@ -63,6 +67,7 @@ export default {
padding: 16px 10px; padding: 16px 10px;
margin-bottom: 10px; margin-bottom: 10px;
position: relative; position: relative;
font-size: 12px;
.share { .share {
position: absolute; position: absolute;
right: 0; right: 0;
...@@ -73,6 +78,20 @@ export default { ...@@ -73,6 +78,20 @@ export default {
color: #333333; color: #333333;
font-size: 16px; font-size: 16px;
font-weight: 500; font-weight: 500;
margin-bottom: 8px;
}
.name-list {
display: flex;
margin-bottom: 8px;
.label {
color: #666666;
width: 60px;
flex-shrink: 0;
}
}
.remark,
.name-list {
color: #999999;
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!