已支付订单列表:where.payStatus = 1;
This commit is contained in:
+34
@@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
var _a, _b;
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const props = {
|
||||
props: {
|
||||
// 轮播的长度
|
||||
length: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 当前处于活动状态的轮播的索引
|
||||
current: {
|
||||
type: [String, Number],
|
||||
default: 0
|
||||
},
|
||||
// 指示器非激活颜色
|
||||
indicatorActiveColor: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
// 指示器的激活颜色
|
||||
indicatorInactiveColor: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
// 指示器模式,line-线型,dot-点型
|
||||
indicatorMode: {
|
||||
type: String,
|
||||
default: ""
|
||||
},
|
||||
...(_b = (_a = common_vendor.index.$uv) == null ? void 0 : _a.props) == null ? void 0 : _b.swiperIndicator
|
||||
}
|
||||
};
|
||||
exports.props = props;
|
||||
Vendored
+54
@@ -0,0 +1,54 @@
|
||||
"use strict";
|
||||
const uni_modules_uvUiTools_libs_mixin_mpMixin = require("../../../uv-ui-tools/libs/mixin/mpMixin.js");
|
||||
const uni_modules_uvUiTools_libs_mixin_mixin = require("../../../uv-ui-tools/libs/mixin/mixin.js");
|
||||
const uni_modules_uvSwiper_components_uvSwiperIndicator_props = require("./props.js");
|
||||
const common_vendor = require("../../../../common/vendor.js");
|
||||
const _sfc_main = {
|
||||
name: "uv-swiper-indicator",
|
||||
mixins: [uni_modules_uvUiTools_libs_mixin_mpMixin.mpMixin, uni_modules_uvUiTools_libs_mixin_mixin.mixin, uni_modules_uvSwiper_components_uvSwiperIndicator_props.props],
|
||||
data() {
|
||||
return {
|
||||
lineWidth: 22
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
// 指示器为线型的样式
|
||||
lineStyle() {
|
||||
let style = {};
|
||||
style.width = this.$uv.addUnit(this.lineWidth);
|
||||
style.transform = `translateX(${this.$uv.addUnit(this.current * this.lineWidth)})`;
|
||||
style.backgroundColor = this.indicatorActiveColor;
|
||||
return style;
|
||||
},
|
||||
// 指示器为点型的样式
|
||||
dotStyle() {
|
||||
return (index) => {
|
||||
let style = {};
|
||||
style.backgroundColor = index === this.current ? this.indicatorActiveColor : this.indicatorInactiveColor;
|
||||
return style;
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
||||
return common_vendor.e({
|
||||
a: _ctx.indicatorMode === "line"
|
||||
}, _ctx.indicatorMode === "line" ? {
|
||||
b: common_vendor.s($options.lineStyle),
|
||||
c: common_vendor.n(`uv-swiper-indicator__wrapper--${_ctx.indicatorMode}`),
|
||||
d: _ctx.$uv.addUnit($data.lineWidth * _ctx.length),
|
||||
e: _ctx.indicatorInactiveColor
|
||||
} : {}, {
|
||||
f: _ctx.indicatorMode === "dot"
|
||||
}, _ctx.indicatorMode === "dot" ? {
|
||||
g: common_vendor.f(_ctx.length, (item, index, i0) => {
|
||||
return {
|
||||
a: index,
|
||||
b: common_vendor.n(index === _ctx.current && "uv-swiper-indicator__wrapper__dot--active"),
|
||||
c: common_vendor.s($options.dotStyle(index))
|
||||
};
|
||||
})
|
||||
} : {});
|
||||
}
|
||||
const Component = /* @__PURE__ */ common_vendor._export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1dcca93c"], ["__file", "/Users/gxwebsoft/APP/gxtyzx-uniapp-cli/src/uni_modules/uv-swiper/components/uv-swiper-indicator/uv-swiper-indicator.vue"]]);
|
||||
wx.createComponent(Component);
|
||||
Vendored
+4
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
<view class="uv-swiper-indicator data-v-1dcca93c"><view wx:if="{{a}}" class="{{['uv-swiper-indicator__wrapper', 'data-v-1dcca93c', c]}}" style="{{'width:' + d + ';' + ('background-color:' + e)}}"><view class="uv-swiper-indicator__wrapper--line__bar data-v-1dcca93c" style="{{b}}"></view></view><view wx:if="{{f}}" class="uv-swiper-indicator__wrapper data-v-1dcca93c"><view wx:for="{{g}}" wx:for-item="item" wx:key="a" class="{{['uv-swiper-indicator__wrapper__dot', 'data-v-1dcca93c', item.b]}}" style="{{item.c}}"></view></view></view>
|
||||
Vendored
+58
@@ -0,0 +1,58 @@
|
||||
/**
|
||||
* 这里是uni-app内置的常用样式变量
|
||||
*
|
||||
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
|
||||
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
|
||||
*
|
||||
*/
|
||||
/**
|
||||
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
|
||||
*
|
||||
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
|
||||
*/
|
||||
/* 颜色变量 */
|
||||
/* 行为相关颜色 */
|
||||
/* 文字基本颜色 */
|
||||
/* 背景颜色 */
|
||||
/* 边框颜色 */
|
||||
/* 尺寸变量 */
|
||||
/* 文字尺寸 */
|
||||
/* 图片尺寸 */
|
||||
/* Border Radius */
|
||||
/* 水平间距 */
|
||||
/* 垂直间距 */
|
||||
/* 透明度 */
|
||||
/* 文章场景相关 */
|
||||
view.data-v-1dcca93c, scroll-view.data-v-1dcca93c, swiper-item.data-v-1dcca93c {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
flex-shrink: 0;
|
||||
flex-grow: 0;
|
||||
flex-basis: auto;
|
||||
align-items: stretch;
|
||||
align-content: flex-start;
|
||||
}
|
||||
.uv-swiper-indicator__wrapper.data-v-1dcca93c {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
}
|
||||
.uv-swiper-indicator__wrapper--line.data-v-1dcca93c {
|
||||
border-radius: 100px;
|
||||
height: 4px;
|
||||
}
|
||||
.uv-swiper-indicator__wrapper--line__bar.data-v-1dcca93c {
|
||||
width: 22px;
|
||||
height: 4px;
|
||||
border-radius: 100px;
|
||||
background-color: #FFFFFF;
|
||||
transition: transform 0.3s;
|
||||
}
|
||||
.uv-swiper-indicator__wrapper__dot.data-v-1dcca93c {
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
border-radius: 100px;
|
||||
margin: 0 4px;
|
||||
}
|
||||
.uv-swiper-indicator__wrapper__dot--active.data-v-1dcca93c {
|
||||
width: 12px;
|
||||
}
|
||||
Reference in New Issue
Block a user