新增营销系统、分销系统、会员功能、门店、提现功能
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
export default {
|
||||
props: {
|
||||
// 用于滚动到指定item
|
||||
anchor: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
}
|
||||
}
|
||||
export default {
|
||||
props: {
|
||||
// 用于滚动到指定item
|
||||
anchor: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -1,75 +1,75 @@
|
||||
export default {
|
||||
props: {
|
||||
// 控制是否出现滚动条,仅nvue有效
|
||||
showScrollbar: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 距底部多少时触发scrolltolower事件
|
||||
lowerThreshold: {
|
||||
type: [String, Number],
|
||||
default: 50
|
||||
},
|
||||
// 距顶部多少时触发scrolltoupper事件,非nvue有效
|
||||
upperThreshold: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 设置竖向滚动条位置
|
||||
scrollTop: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 控制 onscroll 事件触发的频率,仅nvue有效
|
||||
offsetAccuracy: {
|
||||
type: [String, Number],
|
||||
default: 10
|
||||
},
|
||||
// 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
|
||||
enableFlex: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 是否按分页模式显示List,默认值false
|
||||
pagingEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 是否允许List滚动
|
||||
scrollable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
// 值应为某子元素id(id不能以数字开头)
|
||||
scrollIntoView: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
// 在设置滚动条位置时使用动画过渡
|
||||
scrollWithAnimation: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
|
||||
enableBackToTop: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 列表的高度
|
||||
height: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 列表宽度
|
||||
width: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
|
||||
preLoadScreen: {
|
||||
type: [String, Number],
|
||||
default: 1
|
||||
},
|
||||
...uni.$uv?.props?.list
|
||||
}
|
||||
export default {
|
||||
props: {
|
||||
// 控制是否出现滚动条,仅nvue有效
|
||||
showScrollbar: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 距底部多少时触发scrolltolower事件
|
||||
lowerThreshold: {
|
||||
type: [String, Number],
|
||||
default: 50
|
||||
},
|
||||
// 距顶部多少时触发scrolltoupper事件,非nvue有效
|
||||
upperThreshold: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 设置竖向滚动条位置
|
||||
scrollTop: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 控制 onscroll 事件触发的频率,仅nvue有效
|
||||
offsetAccuracy: {
|
||||
type: [String, Number],
|
||||
default: 10
|
||||
},
|
||||
// 启用 flexbox 布局。开启后,当前节点声明了display: flex就会成为flex container,并作用于其孩子节点,仅微信小程序有效
|
||||
enableFlex: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 是否按分页模式显示List,默认值false
|
||||
pagingEnabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 是否允许List滚动
|
||||
scrollable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
// 值应为某子元素id(id不能以数字开头)
|
||||
scrollIntoView: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
// 在设置滚动条位置时使用动画过渡
|
||||
scrollWithAnimation: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// iOS点击顶部状态栏、安卓双击标题栏时,滚动条返回顶部,只对微信小程序有效
|
||||
enableBackToTop: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
// 列表的高度
|
||||
height: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 列表宽度
|
||||
width: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 列表前后预渲染的屏数,1代表一个屏幕的高度,1.5代表1个半屏幕高度
|
||||
preLoadScreen: {
|
||||
type: [String, Number],
|
||||
default: 1
|
||||
},
|
||||
...uni.$uv?.props?.list
|
||||
}
|
||||
}
|
@ -1,147 +1,147 @@
|
||||
<template>
|
||||
<!-- #ifndef APP-NVUE -->
|
||||
<view
|
||||
class="uv-list uv-border-top-bottom"
|
||||
:style="[$uv.addStyle(customStyle)]"
|
||||
>
|
||||
<view
|
||||
v-if="border"
|
||||
class="uv-list--border-top"
|
||||
:style="[{ 'background-color': borderColor }]"
|
||||
></view>
|
||||
<slot />
|
||||
<view
|
||||
v-if="border"
|
||||
class="uv-list--border-bottom"
|
||||
:style="[{ 'background-color': borderColor }]"
|
||||
></view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-NVUE -->
|
||||
<list
|
||||
:bounce="true"
|
||||
:scrollable="true"
|
||||
show-scrollbar
|
||||
:render-reverse="false"
|
||||
class="uv-list"
|
||||
:class="{ 'uv-list--border': border }"
|
||||
:style="[
|
||||
{ 'border-top-color': borderColor, 'border-bottom-color':borderColor },
|
||||
$uv.addStyle(customStyle)
|
||||
]"
|
||||
:enableBackToTop="false"
|
||||
:loadmoreoffset="15"
|
||||
@scroll="scroll"
|
||||
@loadmore="loadMore">
|
||||
<slot />
|
||||
</list>
|
||||
<!-- #endif -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mpMixin from '@/uni_modules/uv-ui-tools/libs/mixin/mpMixin.js'
|
||||
import mixin from '@/uni_modules/uv-ui-tools/libs/mixin/mixin.js'
|
||||
/**
|
||||
* List 列表
|
||||
* @description 列表组件
|
||||
* @tutorial https://www.uvui.cn/components/list.html
|
||||
* @property {Boolean} border = [true|false] 是否显示边框
|
||||
* @property {String} borderColor 边框颜色
|
||||
* @property {String} direction 排版方向,默认row,列表里面使用其他组件 最好设置成column
|
||||
*/
|
||||
export default {
|
||||
name: 'uv-list',
|
||||
mixins: [mpMixin, mixin],
|
||||
'mp-weixin': {
|
||||
options: {
|
||||
multipleSlots: false
|
||||
}
|
||||
},
|
||||
props: {
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
borderColor: {
|
||||
type: String,
|
||||
default: '#dadbde'
|
||||
},
|
||||
// 排版方向,默认row,列表里面使用其他组件 最好设置成column
|
||||
direction: {
|
||||
type: String,
|
||||
default: 'row'
|
||||
},
|
||||
// 内边距
|
||||
padding: {
|
||||
type: [String,Number],
|
||||
default: '20rpx 30rpx'
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.firstChildAppend = false;
|
||||
},
|
||||
computed: {
|
||||
parentData() {
|
||||
return [this.direction,this.padding];
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
loadMore(e) {
|
||||
this.$emit('scrolltolower');
|
||||
},
|
||||
scroll(e) {
|
||||
this.$emit('scroll', e);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import '@/uni_modules/uv-ui-tools/libs/css/components.scss';
|
||||
@import '@/uni_modules/uv-ui-tools/libs/css/color.scss';
|
||||
|
||||
.uv-list {
|
||||
position: relative;
|
||||
@include flex(column);
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.uv-list--border {
|
||||
position: relative;
|
||||
/* #ifdef APP-NVUE */
|
||||
border-top-color: $uv-border-color;
|
||||
border-top-style: solid;
|
||||
border-top-width: 0.5px;
|
||||
border-bottom-color: $uv-border-color;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 0.5px;
|
||||
/* #endif */
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
/* #ifndef APP-NVUE */
|
||||
|
||||
.uv-list--border-top {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 1px;
|
||||
-webkit-transform: scaleY(0.5);
|
||||
transform: scaleY(0.5);
|
||||
background-color: $uv-border-color;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.uv-list--border-bottom {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 1px;
|
||||
-webkit-transform: scaleY(0.5);
|
||||
transform: scaleY(0.5);
|
||||
background-color: $uv-border-color;
|
||||
}
|
||||
|
||||
/* #endif */
|
||||
</style>
|
||||
<template>
|
||||
<!-- #ifndef APP-NVUE -->
|
||||
<view
|
||||
class="uv-list uv-border-top-bottom"
|
||||
:style="[$uv.addStyle(customStyle)]"
|
||||
>
|
||||
<view
|
||||
v-if="border"
|
||||
class="uv-list--border-top"
|
||||
:style="[{ 'background-color': borderColor }]"
|
||||
></view>
|
||||
<slot />
|
||||
<view
|
||||
v-if="border"
|
||||
class="uv-list--border-bottom"
|
||||
:style="[{ 'background-color': borderColor }]"
|
||||
></view>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
<!-- #ifdef APP-NVUE -->
|
||||
<list
|
||||
:bounce="true"
|
||||
:scrollable="true"
|
||||
show-scrollbar
|
||||
:render-reverse="false"
|
||||
class="uv-list"
|
||||
:class="{ 'uv-list--border': border }"
|
||||
:style="[
|
||||
{ 'border-top-color': borderColor, 'border-bottom-color':borderColor },
|
||||
$uv.addStyle(customStyle)
|
||||
]"
|
||||
:enableBackToTop="false"
|
||||
:loadmoreoffset="15"
|
||||
@scroll="scroll"
|
||||
@loadmore="loadMore">
|
||||
<slot />
|
||||
</list>
|
||||
<!-- #endif -->
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import mpMixin from '@/uni_modules/uv-ui-tools/libs/mixin/mpMixin.js'
|
||||
import mixin from '@/uni_modules/uv-ui-tools/libs/mixin/mixin.js'
|
||||
/**
|
||||
* List 列表
|
||||
* @description 列表组件
|
||||
* @tutorial https://www.uvui.cn/components/list.html
|
||||
* @property {Boolean} border = [true|false] 是否显示边框
|
||||
* @property {String} borderColor 边框颜色
|
||||
* @property {String} direction 排版方向,默认row,列表里面使用其他组件 最好设置成column
|
||||
*/
|
||||
export default {
|
||||
name: 'uv-list',
|
||||
mixins: [mpMixin, mixin],
|
||||
'mp-weixin': {
|
||||
options: {
|
||||
multipleSlots: false
|
||||
}
|
||||
},
|
||||
props: {
|
||||
border: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
borderColor: {
|
||||
type: String,
|
||||
default: '#dadbde'
|
||||
},
|
||||
// 排版方向,默认row,列表里面使用其他组件 最好设置成column
|
||||
direction: {
|
||||
type: String,
|
||||
default: 'row'
|
||||
},
|
||||
// 内边距
|
||||
padding: {
|
||||
type: [String,Number],
|
||||
default: '20rpx 30rpx'
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.firstChildAppend = false;
|
||||
},
|
||||
computed: {
|
||||
parentData() {
|
||||
return [this.direction,this.padding];
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
loadMore(e) {
|
||||
this.$emit('scrolltolower');
|
||||
},
|
||||
scroll(e) {
|
||||
this.$emit('scroll', e);
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@import '@/uni_modules/uv-ui-tools/libs/css/components.scss';
|
||||
@import '@/uni_modules/uv-ui-tools/libs/css/color.scss';
|
||||
|
||||
.uv-list {
|
||||
position: relative;
|
||||
@include flex(column);
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
.uv-list--border {
|
||||
position: relative;
|
||||
/* #ifdef APP-NVUE */
|
||||
border-top-color: $uv-border-color;
|
||||
border-top-style: solid;
|
||||
border-top-width: 0.5px;
|
||||
border-bottom-color: $uv-border-color;
|
||||
border-bottom-style: solid;
|
||||
border-bottom-width: 0.5px;
|
||||
/* #endif */
|
||||
z-index: -1;
|
||||
}
|
||||
|
||||
/* #ifndef APP-NVUE */
|
||||
|
||||
.uv-list--border-top {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 1px;
|
||||
-webkit-transform: scaleY(0.5);
|
||||
transform: scaleY(0.5);
|
||||
background-color: $uv-border-color;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.uv-list--border-bottom {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
left: 0;
|
||||
height: 1px;
|
||||
-webkit-transform: scaleY(0.5);
|
||||
transform: scaleY(0.5);
|
||||
background-color: $uv-border-color;
|
||||
}
|
||||
|
||||
/* #endif */
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user