Commit 2665ebff by liwk

commit

1 parent 84fcbb76
......@@ -27,6 +27,7 @@ export default {
},
methods: {
onLoad () {
console.log(123)
this.$emit('ReachBottom')
},
}
......
......@@ -9,13 +9,85 @@
// 按需全局引入 vant组件
import {
Button,
Dialog,
Search,
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'
export const components = [
Button,
Dialog,
List,
Cell,
Tabbar,
TabbarItem,
NavBar,
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
......@@ -3,32 +3,31 @@
<div class="search sticky">
<search />
</div>
<div class="content">
<scroll-view
class="list-box"
@ReachBottom="onReachBottom"
ref="scrollView"
>
<template v-for="(i,index) in 10">
<div
class="box"
:key="index"
>
<div class="share">
<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>
<scroll-view
class="content"
@ReachBottom="onReachBottom"
ref="scrollView"
>
<template v-for="(i,index) in 10">
<div
class="box"
:key="index"
>
<div class="share">
<div class="sprite-icon icon-attract-customer-share"></div>
</div>
</template>
</scroll-view>
</div>
<div class="title text-hide">渠道活码名称大概到这个位置…</div>
<div class="name-list">
<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>
</template>
......@@ -37,12 +36,16 @@ export default {
name: '',
data () {
return {
}
},
mounted () {
},
methods: {
onReachBottom () {
this.$refs.scrollView.loading = false
this.$refs.scrollView.finished = true
}
}
}
</script>
......@@ -56,6 +59,7 @@ export default {
}
.content {
padding: 16px;
height: calc(100vh - 50px);
.box {
background: #ffffff;
box-shadow: 0px 4px 8px 0px rgba(224, 224, 224, 0.5);
......@@ -63,6 +67,7 @@ export default {
padding: 16px 10px;
margin-bottom: 10px;
position: relative;
font-size: 12px;
.share {
position: absolute;
right: 0;
......@@ -73,6 +78,20 @@ export default {
color: #333333;
font-size: 16px;
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!