first commit
This commit is contained in:
1
衣莎项目/源码/YiShaXiYi/extend/.pydio
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
a3404621-06f7-4d54-948e-d5f607c33c1b
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/ColorUI/.pydio
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/ColorUI/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
203e3245-b4d2-4bb6-976e-cf7574c6ebf6
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/ColorUI/css/.pydio
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/ColorUI/css/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
b963d095-2c4e-4434-b8d6-4b76d483dbad
|
||||
1226
衣莎项目/源码/YiShaXiYi/extend/ColorUI/css/icon.wxss
Normal file
1226
衣莎项目/源码/YiShaXiYi/extend/ColorUI/css/icon.wxss
Normal file
File diff suppressed because one or more lines are too long
3941
衣莎项目/源码/YiShaXiYi/extend/ColorUI/css/main.wxss
Normal file
3941
衣莎项目/源码/YiShaXiYi/extend/ColorUI/css/main.wxss
Normal file
File diff suppressed because it is too large
Load Diff
1
衣莎项目/源码/YiShaXiYi/extend/iview/.pydio
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
c5fb51e3-6e36-41d5-8d4b-68dee1b87612
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
e7070433-045e-4a3e-a423-7bec01a09cdd
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
5e9b44c2-583d-4463-9edd-33ed2db98f8d
|
||||
29
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/index.js
vendored
Normal file
29
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/index.js
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
Component({
|
||||
externalClasses: ['i-class', 'i-class-alone'],
|
||||
|
||||
properties: {
|
||||
count: {
|
||||
type: Number,
|
||||
value: 0,
|
||||
observer: 'finalCount'
|
||||
},
|
||||
overflowCount: {
|
||||
type: Number,
|
||||
value: 99
|
||||
},
|
||||
dot: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
},
|
||||
data: {
|
||||
finalCount: 0
|
||||
},
|
||||
methods: {
|
||||
finalCount() {
|
||||
this.setData({
|
||||
finalCount: parseInt(this.data.count) >= parseInt(this.data.overflowCount) ? `${this.data.overflowCount}+` : this.data.count
|
||||
});
|
||||
},
|
||||
}
|
||||
});
|
||||
3
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/index.json
vendored
Normal file
3
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/index.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
5
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/index.wxml
vendored
Normal file
5
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/index.wxml
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
<view class="i-class i-badge">
|
||||
<slot></slot>
|
||||
<view class="i-badge-dot" wx:if="{{ dot }}"></view>
|
||||
<view class="i-badge-count i-class-alone" wx:elif="{{ count !== 0 }}">{{ finalCount }}</view>
|
||||
</view>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/badge/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.i-badge{position:relative;display:inline-block;line-height:1;vertical-align:middle}.i-badge-count{position:absolute;transform:translateX(50%);top:-6px;right:0;height:18px;border-radius:9px;min-width:18px;background:#ed3f14;border:1px solid transparent;color:#fff;line-height:18px;text-align:center;padding:0 5px;font-size:12px;white-space:nowrap;transform-origin:-10% center;z-index:10;box-shadow:0 0 0 1px #fff;box-sizing:border-box;text-rendering:optimizeLegibility}.i-badge-count-alone{top:auto;display:block;position:relative;transform:translateX(0)}.i-badge-dot{position:absolute;transform:translateX(-50%);transform-origin:0 center;top:-4px;right:-8px;height:8px;width:8px;border-radius:100%;background:#ed3f14;z-index:10;box-shadow:0 0 0 1px #fff}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/base/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/base/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
f3f73713-c88d-41d9-8403-7aa414a3840c
|
||||
37
衣莎项目/源码/YiShaXiYi/extend/iview/dist/base/index.js
vendored
Normal file
37
衣莎项目/源码/YiShaXiYi/extend/iview/dist/base/index.js
vendored
Normal file
@@ -0,0 +1,37 @@
|
||||
function getCtx (selector) {
|
||||
const pages = getCurrentPages();
|
||||
const ctx = pages[pages.length - 1];
|
||||
|
||||
const componentCtx = ctx.selectComponent(selector);
|
||||
|
||||
if (!componentCtx) {
|
||||
console.error('无法找到对应的组件,请按文档说明使用组件');
|
||||
return null;
|
||||
}
|
||||
return componentCtx;
|
||||
}
|
||||
|
||||
function Toast(options) {
|
||||
const { selector = '#toast' } = options;
|
||||
const ctx = getCtx(selector);
|
||||
|
||||
ctx.handleShow(options);
|
||||
}
|
||||
|
||||
Toast.hide = function (selector = '#toast') {
|
||||
const ctx = getCtx(selector);
|
||||
|
||||
ctx.handleHide();
|
||||
};
|
||||
|
||||
function Message(options) {
|
||||
const { selector = '#message' } = options;
|
||||
const ctx = getCtx(selector);
|
||||
|
||||
ctx.handleShow(options);
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
$Toast: Toast,
|
||||
$Message: Message
|
||||
};
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
7a8dec79-d5ba-48d7-b345-54d95510f1c5
|
||||
22
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/index.js
vendored
Normal file
22
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/index.js
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
Component({
|
||||
externalClasses: ['i-class'],
|
||||
|
||||
properties: {
|
||||
type: {
|
||||
type: String,
|
||||
value: ''
|
||||
},
|
||||
custom: {
|
||||
type: String,
|
||||
value: ''
|
||||
},
|
||||
size: {
|
||||
type: Number,
|
||||
value: 14
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
value: ''
|
||||
}
|
||||
}
|
||||
});
|
||||
3
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/index.json
vendored
Normal file
3
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/index.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/index.wxml
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<view class="i-class i-icon {{ type === '' ? '' : 'i-icon-' + type }} {{ custom }}" style="font-size: {{ size }}px; {{ color ? 'color:' + color : '' }}"></view>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/icon/index.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
329dcedb-f785-4c7d-9146-07ae7ebfc6d8
|
||||
101
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/index.js
vendored
Normal file
101
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/index.js
vendored
Normal file
@@ -0,0 +1,101 @@
|
||||
function addNum (num1, num2) {
|
||||
let sq1, sq2, m;
|
||||
try {
|
||||
sq1 = num1.toString().split('.')[1].length;
|
||||
}
|
||||
catch (e) {
|
||||
sq1 = 0;
|
||||
}
|
||||
try {
|
||||
sq2 = num2.toString().split('.')[1].length;
|
||||
}
|
||||
catch (e) {
|
||||
sq2 = 0;
|
||||
}
|
||||
m = Math.pow(10, Math.max(sq1, sq2));
|
||||
return (Math.round(num1 * m) + Math.round(num2 * m)) / m;
|
||||
}
|
||||
|
||||
Component({
|
||||
externalClasses: ['i-class'],
|
||||
|
||||
properties: {
|
||||
// small || default || large
|
||||
size: String,
|
||||
value: {
|
||||
type: Number,
|
||||
value: 1
|
||||
},
|
||||
min: {
|
||||
type: Number,
|
||||
value: -Infinity
|
||||
},
|
||||
max: {
|
||||
type: Number,
|
||||
value: Infinity
|
||||
},
|
||||
step: {
|
||||
type: Number,
|
||||
value: 1
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
methods: {
|
||||
handleChangeStep(e, type) {
|
||||
const { dataset = {} } = e.currentTarget;
|
||||
const { disabled } = dataset;
|
||||
const { step } = this.data;
|
||||
let { value } = this.data;
|
||||
|
||||
if (disabled) return null;
|
||||
|
||||
if (type === 'minus') {
|
||||
value = addNum(value, -step);
|
||||
} else if (type === 'plus') {
|
||||
value = addNum(value, step);
|
||||
}
|
||||
|
||||
if (value < this.data.min || value > this.data.max) return null;
|
||||
|
||||
this.handleEmit(value, type);
|
||||
},
|
||||
|
||||
handleMinus(e) {
|
||||
this.handleChangeStep(e, 'minus');
|
||||
},
|
||||
|
||||
handlePlus(e) {
|
||||
this.handleChangeStep(e, 'plus');
|
||||
},
|
||||
|
||||
handleBlur(e) {
|
||||
let { value } = e.detail;
|
||||
const { min, max } = this.data;
|
||||
|
||||
if (!value) {
|
||||
setTimeout(() => {
|
||||
this.handleEmit(value);
|
||||
}, 16);
|
||||
return;
|
||||
}
|
||||
|
||||
value = +value;
|
||||
if (value > max) {
|
||||
value = max;
|
||||
} else if (value < min) {
|
||||
value = min;
|
||||
}
|
||||
|
||||
this.handleEmit(value);
|
||||
},
|
||||
handleEmit (value, type) {
|
||||
const data = {
|
||||
value: value
|
||||
};
|
||||
if (type) data.type = type;
|
||||
|
||||
this.triggerEvent('change', data);
|
||||
}
|
||||
}
|
||||
});
|
||||
6
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/index.json
vendored
Normal file
6
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/index.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"wux-icon": "../../../wux/dist/icon/index"
|
||||
}
|
||||
}
|
||||
9
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/index.wxml
vendored
Normal file
9
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/index.wxml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<view class="i-class i-input-number i-input-number-size-{{ size }}">
|
||||
<view class="i-input-number-minus {{ value <= min ? 'i-input-number-disabled' : '' }}" data-disabled="{{ value <= min }}" catchtap="handleMinus">
|
||||
<wux-icon size="18" type="md-remove" />
|
||||
</view>
|
||||
<input disabled class="i-input-number-text {{ min >= max ? 'i-input-number-disabled' : '' }}" type="number" value="{{ value }}" bindblur="handleBlur" />
|
||||
<view class="i-input-number-plus {{ value >= max ? 'i-input-number-disabled' : '' }}" data-disabled="{{ value >= max }}" catchtap="handlePlus">
|
||||
<wux-icon size="18" type="md-add" />
|
||||
</view>
|
||||
</view>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/input-number/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.i-input-number{color:#495060}.i-input-number view{display:inline-block;line-height:20px;padding:5px 0;text-align:center;min-width:40px;box-sizing:border-box;vertical-align:middle;font-size:12px;border:1rpx solid #dddee1}.i-input-number-minus{border-right:none;border-radius:2px 0 0 2px}.i-input-number-plus{border-left:none;border-radius:0 2px 2px 0}.i-input-number-text{border:1rpx solid #dddee1;display:inline-block;text-align:center;vertical-align:middle;height:30px;width:40px;min-height:auto;font-size:12px;line-height:30px}.i-input-number-disabled{border-color:#dddee1;color:#bbbec4;background:#f7f7f7}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
d18574ad-fea5-4631-8d02-df4c37ff7b1a
|
||||
50
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/index.js
vendored
Normal file
50
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/index.js
vendored
Normal file
@@ -0,0 +1,50 @@
|
||||
Component({
|
||||
externalClasses: ['i-class'],
|
||||
|
||||
relations: {
|
||||
'../tabs/index': {
|
||||
type: 'parent'
|
||||
}
|
||||
},
|
||||
|
||||
properties: {
|
||||
key: {
|
||||
type: String,
|
||||
value: ''
|
||||
},
|
||||
title: {
|
||||
type: String,
|
||||
value: ''
|
||||
},
|
||||
dot: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
count: {
|
||||
type: Number,
|
||||
value: 0
|
||||
}
|
||||
},
|
||||
|
||||
data: {
|
||||
current: false,
|
||||
currentColor: '',
|
||||
scroll: false
|
||||
},
|
||||
|
||||
methods: {
|
||||
changeCurrent (current) {
|
||||
this.setData({ current });
|
||||
},
|
||||
changeCurrentColor (currentColor) {
|
||||
this.setData({ currentColor });
|
||||
},
|
||||
changeScroll (scroll) {
|
||||
this.setData({ scroll });
|
||||
},
|
||||
handleClickItem () {
|
||||
const parent = this.getRelationNodes('../tabs/index')[0];
|
||||
parent.emitEvent(this.data.key);
|
||||
}
|
||||
}
|
||||
});
|
||||
7
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/index.json
vendored
Normal file
7
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents":
|
||||
{
|
||||
"i-badge": "../badge/index"
|
||||
}
|
||||
}
|
||||
9
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/index.wxml
vendored
Normal file
9
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/index.wxml
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
<view class="i-class i-tabs-tab {{ scroll ? 'i-tabs-tab-scroll' : '' }} {{ current ? 'i-tabs-tab-current' : '' }}" bindtap="handleClickItem">
|
||||
<i-badge dot="{{ dot }}" count="{{ dot ? 0 : count }}">
|
||||
<view>
|
||||
<view class="i-tabs-tab-title {{ current ? 'i-tabs-tab-title-current' : '' }}" wx:if="{{ current && currentColor }}" style="color: {{ currentColor }}">{{ title }}</view>
|
||||
<view class="i-tabs-tab-title {{ current ? 'i-tabs-tab-title-current' : '' }}" wx:else>{{ title }}</view>
|
||||
</view>
|
||||
</i-badge>
|
||||
<view class="i-tabs-tab-bar" wx:if="{{ current }}" style="background: {{ currentColor }}"></view>
|
||||
</view>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tab/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.i-tabs-tab{flex:1;display:flex;width:100%;-webkit-box-pack:center;justify-content:center;-webkit-box-align:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;flex-direction:column;text-align:center;position:relative}.i-tabs-tab-bar{display:block;width:100%;height:3px;background:0 0;position:absolute;bottom:0;left:0;background:#1dbf45}.i-tabs-tab-title{font-size:14px;text-align:center;box-sizing:border-box;color:#80848f}.i-tabs-tab-title-current{color:#1dbf45;font-weight:500;}.i-tabs-tab-scroll{display:inline-block;}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
30522d48-eaa5-4d6f-aba1-85fbbbed5420
|
||||
56
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/index.js
vendored
Normal file
56
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/index.js
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
Component({
|
||||
externalClasses: ['i-class'],
|
||||
|
||||
relations: {
|
||||
'../tab/index': {
|
||||
type: 'child',
|
||||
linked () {
|
||||
this.changeCurrent();
|
||||
},
|
||||
linkChanged () {
|
||||
this.changeCurrent();
|
||||
},
|
||||
unlinked () {
|
||||
this.changeCurrent();
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
properties: {
|
||||
current: {
|
||||
type: String,
|
||||
value: '',
|
||||
observer: 'changeCurrent'
|
||||
},
|
||||
color: {
|
||||
type: String,
|
||||
value: ''
|
||||
},
|
||||
scroll: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
},
|
||||
fixed: {
|
||||
type: Boolean,
|
||||
value: false
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
changeCurrent (val = this.data.current) {
|
||||
let items = this.getRelationNodes('../tab/index');
|
||||
const len = items.length;
|
||||
|
||||
if (len > 0) {
|
||||
items.forEach(item => {
|
||||
item.changeScroll(this.data.scroll);
|
||||
item.changeCurrent(item.data.key === val);
|
||||
item.changeCurrentColor(this.data.color);
|
||||
});
|
||||
}
|
||||
},
|
||||
emitEvent (key) {
|
||||
this.triggerEvent('change', { key });
|
||||
}
|
||||
}
|
||||
});
|
||||
3
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/index.json
vendored
Normal file
3
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/index.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
2
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/index.wxml
vendored
Normal file
2
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/index.wxml
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
<scroll-view wx:if="{{ scroll }}" scroll-x="true" class="i-class i-tabs i-tabs-scroll {{ fixed ? 'i-tabs-fixed' : '' }}"><slot></slot></scroll-view>
|
||||
<view wx:else class="i-class i-tabs {{ fixed ? 'i-tabs-fixed' : '' }}"><slot></slot></view>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/tabs/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.i-tabs{display:flex;width:100%;height:42px;line-height:42px;box-sizing:border-box;position:relative;justify-content:space-around;align-items:center;-webkit-box-align:center;background:#fff}.i-tabs::after{content:'';position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #e9eaec;border-bottom-width:1px}.i-tabs-scroll{display:block;overflow-x:auto;-webkit-overflow-scrolling: touch;white-space:nowrap}.i-tabs-fixed{position:fixed;top:0;z-index:2}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
53e3281c-0cd2-4342-b252-fae4d4a980a1
|
||||
48
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/index.js
vendored
Normal file
48
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/index.js
vendored
Normal file
@@ -0,0 +1,48 @@
|
||||
const default_data = {
|
||||
visible: false,
|
||||
content: '',
|
||||
icon: '',
|
||||
image: '',
|
||||
duration: 2,
|
||||
mask: true,
|
||||
type: 'default', // default || success || warning || error || loading
|
||||
};
|
||||
|
||||
let timmer = null;
|
||||
|
||||
Component({
|
||||
externalClasses: ['i-class'],
|
||||
|
||||
data: {
|
||||
...default_data
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleShow (options) {
|
||||
const { type = 'default', duration = 2 } = options;
|
||||
|
||||
this.setData({
|
||||
...options,
|
||||
type,
|
||||
duration,
|
||||
visible: true
|
||||
});
|
||||
|
||||
const d = this.data.duration * 1000;
|
||||
|
||||
if (timmer) clearTimeout(timmer);
|
||||
if (d !== 0) {
|
||||
timmer = setTimeout(() => {
|
||||
this.handleHide();
|
||||
timmer = null;
|
||||
}, d);
|
||||
}
|
||||
},
|
||||
|
||||
handleHide () {
|
||||
this.setData({
|
||||
...default_data
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
7
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/index.json
vendored
Normal file
7
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents":
|
||||
{
|
||||
"i-icon": "../icon/index"
|
||||
}
|
||||
}
|
||||
16
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/index.wxml
vendored
Normal file
16
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/index.wxml
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
<view class="i-toast-mask" wx:if="{{ visible && mask }}" bindtap="handleHide"></view>
|
||||
<view class="i-class i-toast {{ type }}" wx:if="{{ visible }}">
|
||||
<block wx:if="{{ type !== 'default' }}">
|
||||
<view class="i-toast-type">
|
||||
<!-- <i-icon i-class="i-toast-icon" type="success" wx:if="{{ type === 'success' }}"></i-icon>
|
||||
<i-icon i-class="i-toast-icon" type="prompt" wx:elif="{{ type === 'warning' }}"></i-icon>
|
||||
<i-icon i-class="i-toast-icon" type="delete" wx:elif="{{ type === 'error' }}"></i-icon>
|
||||
<view class="i-toast-icon i-toast-loading" wx:elif="{{ type === 'loading' }}"></view> -->
|
||||
</view>
|
||||
</block>
|
||||
<block wx:else>
|
||||
<i-icon i-class="i-toast-icon" type="{{ icon }}" wx:if="{{ icon }}"></i-icon>
|
||||
<image class="i-toast-image" src="{{ image }}" wx:if="{{ image }}" mode="aspectFit"></image>
|
||||
</block>
|
||||
<view class="i-toast-content {{ type }}" wx:if="{{ content }}">{{ content }}</view>
|
||||
</view>
|
||||
17
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/index.wxss
vendored
Normal file
17
衣莎项目/源码/YiShaXiYi/extend/iview/dist/toast/index.wxss
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
.i-toast{position:fixed;top:35%;left:50%;transform:translate3d(-50%,-50%,0);background:rgba(0,0,0,.7);color:#fff;font-size:14px;line-height:1.5em;margin:0 auto;box-sizing:border-box;padding:10px 18px;text-align:center;border-radius:4px;z-index:1010}.i-toast-mask{position:fixed;top:0;bottom:0;left:0;right:0;z-index:1010}.i-toast-icon{font-size:38px!important;margin-bottom:6px}.i-toast-image{max-width:100px;max-height:100px}.i-toast-loading{display:inline-block;vertical-align:middle;width:28px;height:28px;background:0 0;border-radius:50%;border:2px solid #fff;border-color:#fff #fff #fff #2d8cf0;animation:btn-spin .8s linear;animation-iteration-count:infinite}@keyframes btn-spin{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}
|
||||
.success {
|
||||
color: #67c23a;
|
||||
background-color: #f0f9eb;
|
||||
border-color: #e1f3d8;
|
||||
}
|
||||
.error{
|
||||
color: #f56c6c;
|
||||
background-color: #fef0f0;
|
||||
border-color: #fde2e2;
|
||||
}
|
||||
|
||||
.warning{
|
||||
color: #e6a23c;
|
||||
background-color: #fdf6ec;
|
||||
border-color: #faecd8;
|
||||
}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/.pydio
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/.pydio
Normal file
@@ -0,0 +1 @@
|
||||
5a4a69b2-522e-494b-9451-0bf66e6ec721
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
2c8c7cbc-f5bb-4920-a3d8-2fe8e8f3ead3
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
17eec174-b9dc-4315-bc63-649707290592
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/index.json
vendored
Normal file
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/index.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/index.wxml
vendored
Normal file
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/index.wxml
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<view class="wux-class {{ wrapCls }} {{ animateCss }}" bindtap="onTap" catchtouchmove="{{ disableScroll ? 'noop' : '' }}" bindtransitionend="onTransitionEnd" bindanimationend="onAnimationEnd" wx:if="{{ animateStatus !== 'unmounted' }}" style="{{ extStyle }}">
|
||||
<slot></slot>
|
||||
</view>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/animation-group/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wux-animate--fadeIn-enter{transition:opacity .3s;opacity:0}.wux-animate--fadeIn-enter-active,.wux-animate--fadeIn-enter-done{opacity:1}.wux-animate--fadeIn-exit{transition:opacity .3s;opacity:1}.wux-animate--fadeIn-exit-active,.wux-animate--fadeIn-exit-done{opacity:0}.wux-animate--fadeInDown-enter{transition:opacity .3s,transform .3s;opacity:0;transform:translate3d(0,-100%,0)}.wux-animate--fadeInDown-enter-active,.wux-animate--fadeInDown-enter-done{opacity:1;transform:none}.wux-animate--fadeInDown-exit{transition:opacity .3s,transform .3s;opacity:1;transform:none}.wux-animate--fadeInDown-exit-active,.wux-animate--fadeInDown-exit-done{opacity:0;transform:translate3d(0,-100%,0)}.wux-animate--fadeInLeft-enter{transition:opacity .3s,transform .3s;opacity:0;transform:translate3d(-100%,0,0)}.wux-animate--fadeInLeft-enter-active,.wux-animate--fadeInLeft-enter-done{opacity:1;transform:none}.wux-animate--fadeInLeft-exit{transition:opacity .3s,transform .3s;opacity:1;transform:none}.wux-animate--fadeInLeft-exit-active,.wux-animate--fadeInLeft-exit-done{opacity:0;transform:translate3d(-100%,0,0)}.wux-animate--fadeInRight-enter{transition:opacity .3s,transform .3s;opacity:0;transform:translate3d(100%,0,0)}.wux-animate--fadeInRight-enter-active,.wux-animate--fadeInRight-enter-done{opacity:1;transform:none}.wux-animate--fadeInRight-exit{transition:opacity .3s,transform .3s;opacity:1;transform:none}.wux-animate--fadeInRight-exit-active,.wux-animate--fadeInRight-exit-done{opacity:0;transform:translate3d(100%,0,0)}.wux-animate--fadeInUp-enter{transition:opacity .3s,transform .3s;opacity:0;transform:translate3d(0,100%,0)}.wux-animate--fadeInUp-enter-active,.wux-animate--fadeInUp-enter-done{opacity:1;transform:none}.wux-animate--fadeInUp-exit{transition:opacity .3s,transform .3s;opacity:1;transform:none}.wux-animate--fadeInUp-exit-active,.wux-animate--fadeInUp-exit-done{opacity:0;transform:translate3d(0,100%,0)}.wux-animate--slideInUp-enter{transition:transform .3s;transform:translate3d(0,100%,0);visibility:visible}.wux-animate--slideInUp-enter-active,.wux-animate--slideInUp-enter-done{transform:translateZ(0)}.wux-animate--slideInUp-exit{transition:transform .3s;transform:translateZ(0)}.wux-animate--slideInUp-exit-active,.wux-animate--slideInUp-exit-done{transform:translate3d(0,100%,0);visibility:visible}.wux-animate--slideInDown-enter{transition:transform .3s;transform:translate3d(0,-100%,0);visibility:visible}.wux-animate--slideInDown-enter-active,.wux-animate--slideInDown-enter-done{transform:translateZ(0)}.wux-animate--slideInDown-exit{transition:transform .3s;transform:translateZ(0)}.wux-animate--slideInDown-exit-active,.wux-animate--slideInDown-exit-done{transform:translate3d(0,-100%,0);visibility:visible}.wux-animate--slideInLeft-enter{transition:transform .3s;transform:translate3d(-100%,0,0);visibility:visible}.wux-animate--slideInLeft-enter-active,.wux-animate--slideInLeft-enter-done{transform:translateZ(0)}.wux-animate--slideInLeft-exit{transition:transform .3s;transform:translateZ(0)}.wux-animate--slideInLeft-exit-active,.wux-animate--slideInLeft-exit-done{transform:translate3d(-100%,0,0);visibility:visible}.wux-animate--slideInRight-enter{transition:transform .3s;transform:translate3d(100%,0,0);visibility:visible}.wux-animate--slideInRight-enter-active,.wux-animate--slideInRight-enter-done{transform:none}.wux-animate--slideInRight-exit{transition:transform .3s;transform:none}.wux-animate--slideInRight-exit-active,.wux-animate--slideInRight-exit-done{transform:translate3d(100%,0,0);visibility:visible}.wux-animate--zoom-enter{transition:all .3s cubic-bezier(.215,.61,.355,1);opacity:.01;transform:scale(.75)}.wux-animate--zoom-enter-active,.wux-animate--zoom-enter-done{opacity:1;transform:none}.wux-animate--zoom-exit{transition:all .25s linear;transform:none}.wux-animate--zoom-exit-active,.wux-animate--zoom-exit-done{opacity:.01;transform:scale(.75)}.wux-animate--punch-enter{transition:all .3s cubic-bezier(.215,.61,.355,1);opacity:.01;transform:scale(1.35)}.wux-animate--punch-enter-active,.wux-animate--punch-enter-done{opacity:1;transform:none}.wux-animate--punch-exit{transition:all .25s linear;transform:none}.wux-animate--punch-exit-active,.wux-animate--punch-exit-done{opacity:.01;transform:scale(1.35)}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
f9e3c0ce-1597-4fea-ac93-c6345a9dce13
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,_baseComponent.default)({properties:{prefixCls:{type:String,value:"wux-backdrop"},transparent:{type:Boolean,value:!1},zIndex:{type:Number,value:1e3},classNames:{type:null,value:"wux-animate--fadeIn"}},computed:{classes:["prefixCls, transparent",function(e,t){return{wrap:t?"".concat(e,"--transparent"):e}}]},methods:{retain:function(){"number"==typeof this.backdropHolds&&this.backdropHolds||(this.backdropHolds=0),this.backdropHolds=this.backdropHolds+1,1===this.backdropHolds&&this.setData({in:!0})},release:function(){1===this.backdropHolds&&this.setData({in:!1}),this.backdropHolds=Math.max(0,this.backdropHolds-1)},onClick:function(){this.triggerEvent("click")}}});
|
||||
6
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/index.json
vendored
Normal file
6
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/index.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"wux-animation-group": "../animation-group/index"
|
||||
}
|
||||
}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/index.wxml
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/index.wxml
vendored
Normal file
@@ -0,0 +1 @@
|
||||
<wux-animation-group wux-class="{{ classes.wrap }}" in="{{ in }}" classNames="{{ classNames }}" bind:click="onClick" wrapStyle="{{ { zIndex } }}" disableScroll />
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/backdrop/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wux-backdrop{background:rgba(0,0,0,.4)}.wux-backdrop,.wux-backdrop--transparent{position:fixed;z-index:1000;top:0;right:0;left:0;bottom:0}.wux-backdrop--transparent{background:0 0}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
6d36e860-b392-49d7-8cf9-02a673b48f90
|
||||
141
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/index.js
vendored
Normal file
141
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/index.js
vendored
Normal file
@@ -0,0 +1,141 @@
|
||||
import baseComponent from '../helpers/baseComponent'
|
||||
import classNames from '../helpers/classNames'
|
||||
|
||||
baseComponent({
|
||||
properties: {
|
||||
prefixCls: {
|
||||
type: String,
|
||||
value: 'wux-button',
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
value: 'stable',
|
||||
},
|
||||
clear: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
block: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
full: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
outline: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
bordered: {
|
||||
type: Boolean,
|
||||
value: true,
|
||||
},
|
||||
size: {
|
||||
type: String,
|
||||
value: 'default',
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
loading: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
formType: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
openType: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
hoverClass: {
|
||||
type: String,
|
||||
value: 'default',
|
||||
},
|
||||
hoverStopPropagation: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
hoverStartTime: {
|
||||
type: Number,
|
||||
value: 20,
|
||||
},
|
||||
hoverStayTime: {
|
||||
type: Number,
|
||||
value: 70,
|
||||
},
|
||||
lang: {
|
||||
type: String,
|
||||
value: 'en',
|
||||
},
|
||||
sessionFrom: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
sendMessageTitle: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
sendMessagePath: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
sendMessageImg: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
showMessageCard: {
|
||||
type: Boolean,
|
||||
value: false,
|
||||
},
|
||||
appParameter: {
|
||||
type: String,
|
||||
value: '',
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
classes: ['prefixCls, hoverClass, type, size, block, full, clear, outline, bordered, disabled', function(prefixCls, hoverClass, type, size, block, full, clear, outline, bordered, disabled) {
|
||||
const wrap = classNames(prefixCls, {
|
||||
[`${prefixCls}--${type}`]: type,
|
||||
[`${prefixCls}--${size}`]: size,
|
||||
[`${prefixCls}--block`]: block,
|
||||
[`${prefixCls}--full`]: full,
|
||||
[`${prefixCls}--clear`]: clear,
|
||||
[`${prefixCls}--outline`]: outline,
|
||||
[`${prefixCls}--bordered`]: bordered,
|
||||
[`${prefixCls}--disabled`]: disabled,
|
||||
})
|
||||
const hover = hoverClass && hoverClass !== 'default' ? hoverClass : `${prefixCls}--hover`
|
||||
|
||||
return {
|
||||
wrap,
|
||||
hover,
|
||||
}
|
||||
}],
|
||||
},
|
||||
methods: {
|
||||
onTap() {
|
||||
if (!this.data.disabled && !this.data.loading) {
|
||||
this.triggerEvent('click')
|
||||
}
|
||||
},
|
||||
bindgetuserinfo(e) {
|
||||
this.triggerEvent('getuserinfo', e.detail)
|
||||
},
|
||||
bindcontact(e) {
|
||||
this.triggerEvent('contact', e.detail)
|
||||
},
|
||||
bindgetphonenumber(e) {
|
||||
this.triggerEvent('getphonenumber', e.detail)
|
||||
},
|
||||
bindopensetting(e) {
|
||||
this.triggerEvent('opensetting', e.detail)
|
||||
},
|
||||
onError(e) {
|
||||
this.triggerEvent('error', e.detail)
|
||||
},
|
||||
},
|
||||
})
|
||||
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/index.json
vendored
Normal file
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/index.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
26
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/index.wxml
vendored
Normal file
26
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/index.wxml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<button
|
||||
class="wux-class {{ classes.wrap }}"
|
||||
disabled="{{ disabled }}"
|
||||
loading="{{ loading }}"
|
||||
form-type="{{ formType }}"
|
||||
open-type="{{ openType }}"
|
||||
hover-class="wux-hover-class {{ !disabled ? classes.hover : 'none' }}"
|
||||
hover-stop-propagation="{{ hoverStopPropagation }}"
|
||||
hover-start-time="{{ hoverStartTime }}"
|
||||
hover-stay-time="{{ hoverStayTime }}"
|
||||
lang="{{ lang }}"
|
||||
bindgetuserinfo="bindgetuserinfo"
|
||||
session-from="{{ sessionFrom }}"
|
||||
send-message-title="{{ sendMessageTitle }}"
|
||||
send-message-path="{{ sendMessagePath }}"
|
||||
send-message-img="{{ sendMessageImg }}"
|
||||
show-message-card="{{ showMessageCard }}"
|
||||
bindcontact="bindcontact"
|
||||
bindgetphonenumber="bindgetphonenumber"
|
||||
app-parameter="{{ appParameter }}"
|
||||
binderror="onError"
|
||||
bindopensetting="bindopensetting"
|
||||
bindtap="onTap"
|
||||
>
|
||||
<slot></slot>
|
||||
</button>
|
||||
371
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/index.wxss
vendored
Normal file
371
衣莎项目/源码/YiShaXiYi/extend/wux/dist/button/index.wxss
vendored
Normal file
@@ -0,0 +1,371 @@
|
||||
.wux-button {
|
||||
padding: 0;
|
||||
border-radius: 0;
|
||||
color: inherit!important;
|
||||
background: 0 0!important;
|
||||
font-size: inherit;
|
||||
font-weight: 400;
|
||||
line-height: inherit;
|
||||
text-align: inherit;
|
||||
text-decoration: none;
|
||||
overflow: visible;
|
||||
min-height: 0!important;
|
||||
width: auto!important;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
box-sizing: border-box;
|
||||
margin: 0;
|
||||
padding: 0 24rpx;
|
||||
min-width: 104rpx;
|
||||
min-height: 88rpx!important;
|
||||
border: none;
|
||||
border-radius: 8rpx;
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
text-overflow: ellipsis;
|
||||
font-size: 32rpx;
|
||||
line-height: 84rpx;
|
||||
cursor: pointer
|
||||
}
|
||||
.wux-button::after {
|
||||
display: block;
|
||||
position: static;
|
||||
top: auto;
|
||||
left: auto;
|
||||
width: auto;
|
||||
height: auto;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
transform: none;
|
||||
transform-origin: 0 0
|
||||
}
|
||||
.wux-button::after {
|
||||
content: " ";
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: -12rpx;
|
||||
right: -12rpx;
|
||||
bottom: -12rpx;
|
||||
left: -12rpx;
|
||||
border: none;
|
||||
transform: none;
|
||||
transform-origin: 0 0;
|
||||
box-sizing: border-box;
|
||||
border-radius: 0
|
||||
}
|
||||
.wux-button--bordered {
|
||||
border: 2rpx solid transparent
|
||||
}
|
||||
.wux-button--disabled {
|
||||
opacity: .4!important
|
||||
}
|
||||
.wux-button--small {
|
||||
padding: 4rpx 8rpx 2rpx;
|
||||
min-width: 56rpx;
|
||||
min-height: 60rpx!important;
|
||||
font-size: 24rpx;
|
||||
line-height: 52rpx
|
||||
}
|
||||
.wux-button--large {
|
||||
padding: 0 32rpx;
|
||||
min-width: 136rpx;
|
||||
min-height: 118rpx!important;
|
||||
font-size: 40rpx;
|
||||
line-height: 106rpx
|
||||
}
|
||||
.wux-button--block,
|
||||
.wux-button--full {
|
||||
width: 100%!important;
|
||||
margin-top: 20rpx;
|
||||
margin-bottom: 20rpx
|
||||
}
|
||||
.wux-button--block {
|
||||
display: block;
|
||||
clear: both
|
||||
}
|
||||
.wux-button--block::after {
|
||||
clear: both
|
||||
}
|
||||
.wux-button--full {
|
||||
display: block;
|
||||
margin-right: 0!important;
|
||||
margin-left: 0!important;
|
||||
border-right-width: 0;
|
||||
border-left-width: 0;
|
||||
border-radius: 0
|
||||
}
|
||||
.wux-button--outline.wux-button--hover {
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--light,
|
||||
.wux-button--light--disabled {
|
||||
border-color: transparent!important;
|
||||
background-color: #fff!important;
|
||||
color: #444!important
|
||||
}
|
||||
.wux-button--light.wux-button--hover {
|
||||
background-color: #e6e6e6!important;
|
||||
color: #444!important
|
||||
}
|
||||
.wux-button--light.wux-button--outline,
|
||||
.wux-button--light.wux-button--outline.wux-button--disabled {
|
||||
border-color: #fff!important;
|
||||
background-color: transparent!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--light.wux-button--outline.wux-button--hover {
|
||||
background-color: #fff!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--light.wux-button--clear,
|
||||
.wux-button--light.wux-button--clear.wux-button--disabled {
|
||||
background-color: transparent!important;
|
||||
color: #e6e6e6!important
|
||||
}
|
||||
.wux-button--light.wux-button--clear.wux-button--hover {
|
||||
opacity: .3!important
|
||||
}
|
||||
.wux-button--stable,
|
||||
.wux-button--stable--disabled {
|
||||
border-color: transparent!important;
|
||||
background-color: #f8f8f8!important;
|
||||
color: #444!important
|
||||
}
|
||||
.wux-button--stable.wux-button--hover {
|
||||
background-color: #dfdfdf!important;
|
||||
color: #444!important
|
||||
}
|
||||
.wux-button--stable.wux-button--outline,
|
||||
.wux-button--stable.wux-button--outline.wux-button--disabled {
|
||||
border-color: #f8f8f8!important;
|
||||
background-color: transparent!important;
|
||||
color: #f8f8f8!important
|
||||
}
|
||||
.wux-button--stable.wux-button--outline.wux-button--hover {
|
||||
background-color: #f8f8f8!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--stable.wux-button--clear,
|
||||
.wux-button--stable.wux-button--clear.wux-button--disabled {
|
||||
background-color: transparent!important;
|
||||
color: #dfdfdf!important
|
||||
}
|
||||
.wux-button--stable.wux-button--clear.wux-button--hover {
|
||||
opacity: .3!important
|
||||
}
|
||||
.wux-button--positive,
|
||||
.wux-button--positive--disabled {
|
||||
border-color: transparent!important;
|
||||
background-color: #387ef5!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--positive.wux-button--hover {
|
||||
background-color: #0c60ee!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--positive.wux-button--outline,
|
||||
.wux-button--positive.wux-button--outline.wux-button--disabled {
|
||||
border-color: #387ef5!important;
|
||||
background-color: transparent!important;
|
||||
color: #387ef5!important
|
||||
}
|
||||
.wux-button--positive.wux-button--outline.wux-button--hover {
|
||||
background-color: #387ef5!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--positive.wux-button--clear,
|
||||
.wux-button--positive.wux-button--clear.wux-button--disabled {
|
||||
background-color: transparent!important;
|
||||
color: #0c60ee!important
|
||||
}
|
||||
.wux-button--positive.wux-button--clear.wux-button--hover {
|
||||
opacity: .3!important
|
||||
}
|
||||
.wux-button--calm,
|
||||
.wux-button--calm--disabled {
|
||||
border-color: transparent!important;
|
||||
background-color: #11c1f3!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--calm.wux-button--hover {
|
||||
background-color: #0a9dc7!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--calm.wux-button--outline,
|
||||
.wux-button--calm.wux-button--outline.wux-button--disabled {
|
||||
border-color: #11c1f3!important;
|
||||
background-color: transparent!important;
|
||||
color: #11c1f3!important
|
||||
}
|
||||
.wux-button--calm.wux-button--outline.wux-button--hover {
|
||||
background-color: #11c1f3!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--calm.wux-button--clear,
|
||||
.wux-button--calm.wux-button--clear.wux-button--disabled {
|
||||
background-color: transparent!important;
|
||||
color: #0a9dc7!important
|
||||
}
|
||||
.wux-button--calm.wux-button--clear.wux-button--hover {
|
||||
opacity: .3!important
|
||||
}
|
||||
.wux-button--assertive,
|
||||
.wux-button--assertive--disabled {
|
||||
border-color: transparent!important;
|
||||
background-color: #ef473a!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--assertive.wux-button--hover {
|
||||
background-color: #e42112!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--assertive.wux-button--outline,
|
||||
.wux-button--assertive.wux-button--outline.wux-button--disabled {
|
||||
border-color: #ef473a!important;
|
||||
background-color: transparent!important;
|
||||
color: #ef473a!important
|
||||
}
|
||||
.wux-button--assertive.wux-button--outline.wux-button--hover {
|
||||
background-color: #ef473a!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--assertive.wux-button--clear,
|
||||
.wux-button--assertive.wux-button--clear.wux-button--disabled {
|
||||
background-color: transparent!important;
|
||||
color: #e42112!important
|
||||
}
|
||||
.wux-button--assertive.wux-button--clear.wux-button--hover {
|
||||
opacity: .3!important
|
||||
}
|
||||
.wux-button--balanced,
|
||||
.wux-button--balanced--disabled {
|
||||
border-color: transparent!important;
|
||||
background-color: #33cd5f!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--balanced.wux-button--hover {
|
||||
background-color: #28a54c!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--balanced.wux-button--outline,
|
||||
.wux-button--balanced.wux-button--outline.wux-button--disabled {
|
||||
border-color: #33cd5f!important;
|
||||
background-color: transparent!important;
|
||||
color: #33cd5f!important
|
||||
}
|
||||
.wux-button--balanced.wux-button--outline.wux-button--hover {
|
||||
background-color: #33cd5f!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--balanced.wux-button--clear,
|
||||
.wux-button--balanced.wux-button--clear.wux-button--disabled {
|
||||
background-color: transparent!important;
|
||||
color: #28a54c!important
|
||||
}
|
||||
.wux-button--balanced.wux-button--clear.wux-button--hover {
|
||||
opacity: .3!important
|
||||
}
|
||||
.wux-button--energized,
|
||||
.wux-button--energized--disabled {
|
||||
border-color: transparent!important;
|
||||
background-color: #ffc900!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--energized.wux-button--hover {
|
||||
background-color: #cca100!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--energized.wux-button--outline,
|
||||
.wux-button--energized.wux-button--outline.wux-button--disabled {
|
||||
border-color: #ffc900!important;
|
||||
background-color: transparent!important;
|
||||
color: #ffc900!important
|
||||
}
|
||||
.wux-button--energized.wux-button--outline.wux-button--hover {
|
||||
background-color: #ffc900!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--energized.wux-button--clear,
|
||||
.wux-button--energized.wux-button--clear.wux-button--disabled {
|
||||
background-color: transparent!important;
|
||||
color: #cca100!important
|
||||
}
|
||||
.wux-button--energized.wux-button--clear.wux-button--hover {
|
||||
opacity: .3!important
|
||||
}
|
||||
.wux-button--royal,
|
||||
.wux-button--royal--disabled {
|
||||
border-color: transparent!important;
|
||||
background-color: #886aea!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--royal.wux-button--hover {
|
||||
background-color: #643de4!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--royal.wux-button--outline,
|
||||
.wux-button--royal.wux-button--outline.wux-button--disabled {
|
||||
border-color: #886aea!important;
|
||||
background-color: transparent!important;
|
||||
color: #886aea!important
|
||||
}
|
||||
.wux-button--royal.wux-button--outline.wux-button--hover {
|
||||
background-color: #886aea!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--royal.wux-button--clear,
|
||||
.wux-button--royal.wux-button--clear.wux-button--disabled {
|
||||
background-color: transparent!important;
|
||||
color: #643de4!important
|
||||
}
|
||||
.wux-button--royal.wux-button--clear.wux-button--hover {
|
||||
opacity: .3!important
|
||||
}
|
||||
.wux-button--dark,
|
||||
.wux-button--dark--disabled {
|
||||
border-color: transparent!important;
|
||||
background-color: #444!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--dark.wux-button--hover {
|
||||
background-color: #2b2b2b!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--dark.wux-button--outline,
|
||||
.wux-button--dark.wux-button--outline.wux-button--disabled {
|
||||
border-color: #444!important;
|
||||
background-color: transparent!important;
|
||||
color: #444!important
|
||||
}
|
||||
.wux-button--dark.wux-button--outline.wux-button--hover {
|
||||
background-color: #444!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--dark.wux-button--clear,
|
||||
.wux-button--dark.wux-button--clear.wux-button--disabled {
|
||||
background-color: transparent!important;
|
||||
color: #2b2b2b!important
|
||||
}
|
||||
.wux-button--dark.wux-button--clear.wux-button--hover {
|
||||
opacity: .3!important
|
||||
}
|
||||
.wux-button--light.wux-button--outline {
|
||||
border-color: #ddd!important;
|
||||
background-color: transparent!important;
|
||||
color: #ddd!important
|
||||
}
|
||||
.wux-button--light.wux-button--outline.wux-button--hover {
|
||||
background-color: #ddd!important;
|
||||
color: #fff!important
|
||||
}
|
||||
.wux-button--stable.wux-button--outline {
|
||||
border-color: #b2b2b2!important;
|
||||
background-color: transparent!important;
|
||||
color: #b2b2b2!important
|
||||
}
|
||||
.wux-button--stable.wux-button--outline.wux-button--hover {
|
||||
background-color: #b2b2b2!important;
|
||||
color: #fff!important
|
||||
}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
2ac9cf98-5596-4a25-ae06-ad3a1fa66c37
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
6
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/index.json
vendored
Normal file
6
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/index.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"wux-popup": "../popup/index"
|
||||
}
|
||||
}
|
||||
67
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/index.wxml
vendored
Normal file
67
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/index.wxml
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
<wux-popup position="bottom" visible="{{ in }}" zIndex="1010" safeArea="bottom" bind:close="close">
|
||||
<view class="wux-class {{ classes.wrap }}">
|
||||
<view class="{{ classes.content }}">
|
||||
<view class="{{ classes.hd }}" wx:if="{{ toolbar }}">
|
||||
<view class="{{ classes.toolbar }}">
|
||||
<view class="{{ classes.picker }}">
|
||||
<view class="{{ classes.link }}" bindtap="prevMonth">
|
||||
<view class="{{ classes.prev }}"></view>
|
||||
</view>
|
||||
<view class="{{ classes.value }}">{{ currentMonthName }}</view>
|
||||
<view class="{{ classes.link }}" bindtap="nextMonth">
|
||||
<view class="{{ classes.next }}"></view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="{{ classes.picker }}">
|
||||
<view class="{{ classes.link }}" bindtap="prevYear">
|
||||
<view class="{{ classes.prev }}"></view>
|
||||
</view>
|
||||
<text class="{{ classes.value }}">{{ currentYear }}</text>
|
||||
<view class="{{ classes.link }}" bindtap="nextYear">
|
||||
<view class="{{ classes.next }}"></view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="{{ classes.bd }}">
|
||||
<view class="{{ classes.weekdays }}" wx:if="{{ weekHeader }}">
|
||||
<block wx:for="{{ weeks }}" wx:key="">
|
||||
<view class="{{ classes.weekday }} {{ item.weekend ? prefixCls + '__weekday--weekend' : '' }}">
|
||||
{{ item.dayName }}
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<view class="{{ classes.months }}">
|
||||
<view class="{{ classes.monthsContent }}" bindtouchstart="onTouchStart" catchtouchmove="{{ swiping ? 'noop' : '' }}" capture-bind:touchmove="onTouchMove" bindtouchend="onTouchEnd" style="{{ wrapperTranslate }}">
|
||||
<block wx:for="{{ months }}" wx:for-item="month" wx:key="">
|
||||
<view
|
||||
data-year="{{ month.year }}"
|
||||
data-month="{{ month.month }}"
|
||||
class="{{ classes.month }} {{ index === 0 ? (prefixCls + '__month--prev') : index === 1 ? (prefixCls + '__month--current') : (prefixCls + '__month--next') }}"
|
||||
style="{{ monthsTranslate[index] }}"
|
||||
>
|
||||
<block wx:for="{{ month.items }}" wx:for-item="row" wx:key="">
|
||||
<view class="{{ classes.days }}">
|
||||
<block wx:for="{{ row }}" wx:for-item="col" wx:key="">
|
||||
<view
|
||||
data-year="{{ col.year }}"
|
||||
data-month="{{ col.month }}"
|
||||
data-day="{{ col.day }}"
|
||||
data-date="{{ col.date }}"
|
||||
data-type="{{ col.type }}"
|
||||
class="{{ classes.day }} {{ col.type.prev ? prefixCls + '__day--prev' : '' }} {{ col.type.next ? prefixCls + '__day--next' : '' }} {{ col.type.today ? prefixCls + '__day--today' : '' }} {{ col.type.selected ? prefixCls + '__day--selected' : '' }} {{ col.type.weekend ? prefixCls + '__day--weekend' : '' }} {{ col.type.disabled ? prefixCls + '__day--disabled' : '' }}"
|
||||
bindtap="onDayClick"
|
||||
>
|
||||
<text class="{{ classes.text }}">{{ col.day }}</text>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</wux-popup>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/calendar/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wux-calendar{position:relative;background:#fff;height:600rpx;width:100%;overflow:hidden}.wux-calendar__content{position:relative;width:100%;height:100%;transition:transform .3s}.wux-calendar__bd{height:100%;position:relative;overflow:hidden}.wux-calendar__hd{position:relative;width:100%}.wux-calendar__hd:before{content:" ";position:absolute;left:0;top:0;right:0;height:2rpx;border-top:2rpx solid #d9d9d9;color:#d9d9d9;transform-origin:0 0;transform:scaleY(.5)}.wux-calendar__hd+.wux-calendar__bd{height:calc(97.8%)}.wux-calendar__toolbar{height:2.2rem;display:-ms-flexbox;display:flex;text-align:center}.wux-calendar__picker{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:50%;max-width:400rpx;-ms-flex-negative:10;flex-shrink:10;display:block;line-height:2.2rem}.wux-calendar__link{float:left;width:25%;height:2.2rem;line-height:2rem;min-width:72rpx}.wux-calendar__icon{display:inline-block;vertical-align:middle;background-size:100% auto;background-position:center}.wux-calendar__icon--next,.wux-calendar__icon--prev{width:.75rem;height:.75rem}.wux-calendar__icon--next{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2015%2015'%3E%3Cg%3E%3Cpath%20fill%3D'%23007aff'%20d%3D'M1%2C1.6l11.8%2C5.8L1%2C13.4V1.6%20M0%2C0v15l15-7.6L0%2C0L0%2C0z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.wux-calendar__icon--prev{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2015%2015'%3E%3Cg%3E%3Cpath%20fill%3D'%23007aff'%20d%3D'M14%2C1.6v11.8L2.2%2C7.6L14%2C1.6%20M15%2C0L0%2C7.6L15%2C15V0L15%2C0z'%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E")}.wux-calendar__value{-ms-flex-negative:1;flex-shrink:1;position:relative;overflow:hidden;text-overflow:ellipsis;float:left;width:50%;height:2.2rem}.wux-calendar__weekdays{height:36rpx;background:#f7f7f8;display:-ms-flexbox;display:flex;font-size:22rpx;box-sizing:border-box;position:relative}.wux-calendar__weekdays:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:2rpx;border-bottom:2rpx solid #d9d9d9;color:#d9d9d9;transform-origin:0 100%;transform:scaleY(.5)}.wux-calendar__weekdays+.wux-calendar__months{height:calc(82%)}.wux-calendar__weekday{-ms-flex-negative:1;flex-shrink:1;width:14.28571429%;width:calc(14.28571429%);line-height:34rpx;text-align:center}.wux-calendar__months{width:100%;height:100%;overflow:hidden;position:relative}.wux-calendar__months-content{width:100%;height:100%;display:-ms-flexbox;display:flex;position:relative;-webkit-backface-visibility:hidden;transform:translate3d(0,0,0)}.wux-calendar__month{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;width:100%;height:100%;position:absolute;left:0;top:0}.wux-calendar__days{height:16.66666667%;height:calc(16.66666667%);display:-ms-flexbox;display:flex;-ms-flex-negative:1;flex-shrink:1;width:100%;position:relative}.wux-calendar__days:after{content:" ";position:absolute;left:0;bottom:0;right:0;height:2rpx;border-bottom:2rpx solid #d9d9d9;color:#d9d9d9;transform-origin:0 100%;transform:scaleY(.5)}.wux-calendar__days:last-child:after{display:none}.wux-calendar__day{-ms-flex-negative:1;flex-shrink:1;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;box-sizing:border-box;width:14.28571429%;width:calc(14.28571429%);text-align:center;color:#3d4145;font-size:30rpx;cursor:pointer}.wux-calendar__day--next,.wux-calendar__day--prev{color:#ccc}.wux-calendar__day--disabled{color:#d4d4d4;cursor:auto}.wux-calendar__day--today .wux-calendar__text{background:#e3e3e3}.wux-calendar__day--selected .wux-calendar__text{background:#0894ec;color:#fff}.wux-calendar__text{display:inline-block;border-radius:100%;width:60rpx;height:60rpx;line-height:60rpx}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
4a0c8b6e-02d6-435c-97a7-38a7a3fd3138
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames=_interopRequireDefault(require("../helpers/classNames"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,_baseComponent.default)({options:{multipleSlots:!1},relations:{"../cell/index":{type:"descendant",observer:function(){this.debounce(this.updateIsLastElement)}}},properties:{prefixCls:{type:String,value:"wux-cell-group"},title:{type:String,value:""},label:{type:String,value:""}},computed:{classes:["prefixCls",function(e){return{wrap:(0,_classNames.default)(e),hd:"".concat(e,"__hd"),bd:"".concat(e,"__bd"),ft:"".concat(e,"__ft")}}]},methods:{updateIsLastElement:function(){var e=this.getRelationNodes("../cell/index");if(0<e.length){var n=e.length-1;e.forEach(function(e,t){e.updateIsLastElement(t===n)})}},getBoundingClientRect:function(t){var n=this,e=".".concat(this.data.prefixCls);wx.createSelectorQuery().in(this).select(e).boundingClientRect(function(e){e&&t.call(n,e.height)}).exec()}}});
|
||||
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/index.json
vendored
Normal file
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/index.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
7
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/index.wxml
vendored
Normal file
7
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/index.wxml
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
<view class="wux-class {{ classes.wrap }}">
|
||||
<view class="{{ classes.hd }}" wx:if="{{ title }}">{{ title }}</view>
|
||||
<view class="{{ classes.bd }}">
|
||||
<slot></slot>
|
||||
</view>
|
||||
<view class="{{ classes.ft }}" wx:if="{{ label }}">{{ label }}</view>
|
||||
</view>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell-group/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wux-cell-group__hd{padding:30rpx 30rpx 18rpx;font-size:28rpx;color:#888;width:100%;box-sizing:border-box}.wux-cell-group__bd{position:relative;background-color:#fff}.wux-cell-group__bd:after{content:" ";position:absolute;top:0;left:0;width:200%;height:200%;transform:scale(.5);transform-origin:0 0;pointer-events:none;box-sizing:border-box;border:0 solid #d9d9d9;}.wux-cell-group__ft{padding:18rpx 30rpx 30rpx;font-size:28rpx;color:#888}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
8fe713fa-3fa6-49df-af32-c1c1ee1d1a20
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames2=_interopRequireDefault(require("../helpers/classNames")),_eventsMixin=_interopRequireDefault(require("../helpers/eventsMixin"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var defaultEvents={onClick:function(){},onError:function(){}};(0,_baseComponent.default)({behaviors:[(0,_eventsMixin.default)({defaultEvents:defaultEvents})],relations:{"../cell-group/index":{type:"ancestor"},"../picker/index":{type:"parent"},"../date-picker/index":{type:"parent"},"../popup-select/index":{type:"parent"}},properties:{prefixCls:{type:String,value:"wux-cell"},disabled:{type:Boolean,value:!1},hoverClass:{type:String,value:"default"},hoverStopPropagation:{type:Boolean,value:!1},hoverStartTime:{type:Number,value:20},rightUrl:{type:String,value:""},hoverStayTime:{type:Number,value:70},lang:{type:String,value:"en"},right:{type:String,value:""},sessionFrom:{type:String,value:""},sendMessageTitle:{type:String,value:""},sendMessagePath:{type:String,value:""},sendMessageImg:{type:String,value:""},showMessageCard:{type:Boolean,value:!1},appParameter:{type:String,value:""},thumb:{type:String,value:""},title:{type:String,value:""},label:{type:String,value:""},extra:{type:String,value:""},isLink:{type:Boolean,value:!1},openType:{type:String,value:"navigateTo"},url:{type:String,value:""},delta:{type:Number,value:1}},data:{isLast:!1},computed:{classes:["prefixCls, hoverClass, isLast, isLink, disabled",function(e,t,n,a,i){var r;return{wrap:(0,_classNames2.default)(e,(_defineProperty(r={},"".concat(e,"--last"),n),_defineProperty(r,"".concat(e,"--access"),a),_defineProperty(r,"".concat(e,"--disabled"),i),r)),hd:"".concat(e,"__hd"),thumb:"".concat(e,"__thumb"),bd:"".concat(e,"__bd"),text:"".concat(e,"__text"),desc:"".concat(e,"__desc"),ft:"".concat(e,"__ft"),hover:t&&"default"!==t?t:"".concat(e,"--hover")}}]},methods:{onTap:function(){this.data.disabled||(this.triggerEvent("click"),this.linkTo())},bindgetuserinfo:function(e){this.triggerEvent("getuserinfo",e.detail)},bindcontact:function(e){this.triggerEvent("contact",e.detail)},bindgetphonenumber:function(e){this.triggerEvent("getphonenumber",e.detail)},bindopensetting:function(e){this.triggerEvent("opensetting",e.detail)},onError:function(e){this.triggerEvent("error",e.detail)},linkTo:function(){var e=this.data,t=e.url,n=e.isLink,a=e.openType,i=e.delta;return!!(n&&t&&["navigateTo","redirectTo","switchTab","navigateBack","reLaunch"].includes(a))&&("navigateBack"===a?wx[a].call(wx,{delta:i}):wx[a].call(wx,{url:t}))},updateIsLastElement:function(e){this.setData({isLast:e})}}});
|
||||
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/index.json
vendored
Normal file
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/index.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
44
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/index.wxml
vendored
Normal file
44
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/index.wxml
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
<button
|
||||
class="wux-class {{ classes.wrap }}"
|
||||
disabled="{{ disabled }}"
|
||||
open-type="{{ openType }}"
|
||||
hover-class="{{ !disabled ? classes.hover : 'none' }}"
|
||||
hover-stop-propagation="{{ hoverStopPropagation }}"
|
||||
hover-start-time="{{ hoverStartTime }}"
|
||||
hover-stay-time="{{ hoverStayTime }}"
|
||||
lang="{{ lang }}"
|
||||
bindgetuserinfo="bindgetuserinfo"
|
||||
session-from="{{ sessionFrom }}"
|
||||
send-message-title="{{ sendMessageTitle }}"
|
||||
send-message-path="{{ sendMessagePath }}"
|
||||
send-message-img="{{ sendMessageImg }}"
|
||||
show-message-card="{{ showMessageCard }}"
|
||||
bindcontact="bindcontact"
|
||||
bindgetphonenumber="bindgetphonenumber"
|
||||
app-parameter="{{ appParameter }}"
|
||||
binderror="onError"
|
||||
bindopensetting="bindopensetting"
|
||||
bindtap="onTap"
|
||||
>
|
||||
<view class="{{ classes.hd }}">
|
||||
<block wx:if="{{ thumb }}">
|
||||
<image mode="widthFix" class="{{ classes.thumb }}" src="{{ thumb }}" />
|
||||
</block>
|
||||
<block wx:else>
|
||||
<slot name="header"></slot>
|
||||
</block>
|
||||
</view>
|
||||
<view class="{{ classes.bd }}">
|
||||
<view wx:if="{{ title }}" class="{{ classes.text }}">{{ title }}<slot></slot></view>
|
||||
<view wx:if="{{ label }}" class="{{ classes.desc }}">{{ label }}</view>
|
||||
</view>
|
||||
<view class="{{ classes.ft }} {{ right }}">
|
||||
<block wx:if="{{ extra }}">{{ extra }}</block>
|
||||
<block wx:if="{{ rightUrl }}">
|
||||
<image class="{{ classes.thumb }} wux-cell__rightImg" src="{{ rightUrl }}" />
|
||||
</block>
|
||||
<block wx:else>
|
||||
<slot name="footer"></slot>
|
||||
</block>
|
||||
</view>
|
||||
</button>
|
||||
2
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/index.wxss
vendored
Normal file
2
衣莎项目/源码/YiShaXiYi/extend/wux/dist/cell/index.wxss
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
.wux-cell{padding:0;margin:0;border-radius:0;color:inherit!important;background:0 0!important;font-size:inherit;line-height:inherit;text-align:inherit;text-decoration:inherit;overflow:inherit;padding:25rpx 34rpx;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background:#fff}.wux-cell:after{position:static;top:auto;left:auto;width:auto;height:auto;border:none;border-radius:0;transform:none;transform-origin:0 0}.wux-cell:after{content: " ";position: absolute;left: 30rpx;bottom: 0;right: 0;height: 2rpx;border-bottom: 2rpx solid #d9d9d9;color: #d9d9d9;
|
||||
transform-origin: 0 100%;transform: scaleY(.5);left: 30rpx;background: #ebebeb;width: 92%;}.wux-cell--last:after{display:none}.wux-cell--hover{background-color:#ececec!important}.wux-cell--disabled{opacity:.3}.wux-cell__thumb{display:block;width:41rpx;margin-right:10rpx}.wux-cell__rightImg{display:block;width:30rpx;height:30rpx;margin-right:0rpx;margin-left: 10rpx;}.wux-cell__bd{-ms-flex:1;flex:1}.wux-cell__text{text-align:left}.wux-cell__desc{text-align:left;line-height:1.2;font-size:24rpx;color:grey}.wux-cell__ft{text-align:right;color:grey}.wux-cell--access .wux-cell__ft{padding-right:26rpx;position:relative}.wux-cell--access .wux-cell__ft:after{content:" ";display:inline-block;height:12rpx;width:12rpx;border-width:4rpx 4rpx 0 0;border-color:#c8c8cd;border-style:solid;transform:matrix(.71,.71,-.71,.71,0,0);position:relative;top:-4rpx;position:absolute;top:50%;margin-top:-8rpx;right:4rpx}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
a6d21a67-b4c2-461a-82a3-d9be744ac6df
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_eventsMixin=_interopRequireDefault(require("../helpers/eventsMixin"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function _objectSpread(t){for(var e=1;e<arguments.length;e++)if(e%2){var n=null!=arguments[e]?arguments[e]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(e){_defineProperty(t,e,n[e])})}else Object.defineProperties(t,Object.getOwnPropertyDescriptors(arguments[e]));return t}function _defineProperty(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function getOptions(){return(0<arguments.length&&void 0!==arguments[0]?arguments[0]:[]).map(function(e,t){return"string"==typeof e?{title:e,value:e,index:t}:_objectSpread({},e,{index:t})})}function getCheckedValues(t){var e=_toConsumableArray(1<arguments.length&&void 0!==arguments[1]?arguments[1]:[]);return e=-1!==e.indexOf(t)?e.filter(function(e){return e!==t}):[].concat(_toConsumableArray(e),[t])}(0,_baseComponent.default)({useField:!0,behaviors:[(0,_eventsMixin.default)()],relations:{"../field/index":{type:"ancestor"},"../checkbox/index":{type:"descendant",observer:function(){this.debounce(this.changeValue)}}},properties:{prefixCls:{type:String,value:"wux-checkbox-group"},cellGroupPrefixCls:{type:String,value:"wux-cell-group"},value:{type:Array,value:[]},title:{type:String,value:""},label:{type:String,value:""},options:{type:Array,value:[]}},data:{inputValue:[],keys:[]},observers:{value:function(e){this.hasFieldDecorator||(this.updated(e),this.changeValue(e))},inputValue:function(e){this.hasFieldDecorator&&this.changeValue(e)},options:function(e){this.changeValue(this.data.inputValue,e)}},methods:{updated:function(e){this.data.inputValue!==e&&this.setData({inputValue:e})},changeValue:function(e,t){var n=0<arguments.length&&void 0!==e?e:this.data.inputValue,r=getOptions(1<arguments.length&&void 0!==t?t:this.data.options),a=this.getRelationNodes("../checkbox/index"),i=0<r.length?r:a?a.map(function(e){return e.data}):[];!r.length&&a&&0<a.length&&a.forEach(function(e,t){e.changeValue(Array.isArray(n)&&n.includes(e.data.value),t)}),this.data.keys!==i&&this.setData({keys:i})},onChange:function(e){var t=getCheckedValues(e.value,this.data.inputValue);this.hasFieldDecorator&&(e.value=t),this.triggerEvent("change",_objectSpread({},this.getValue(t),{},e,{name:this.data.name,value:e.value}))},onCheckboxChange:function(e){var t=e.currentTarget.dataset.index;this.onChange(_objectSpread({},e.detail,{index:t}))},getValue:function(e,t){var n=0<arguments.length&&void 0!==e?e:this.data.inputValue,r=1<arguments.length&&void 0!==t?t:this.data.keys,a=r.filter(function(e){return n.includes(e.value)}).map(function(e){return e.title})||[],i=r.map(function(e){return e.value}),o=n.map(function(e){return i.indexOf(e)});return{value:n,displayValue:a,selectedIndex:o,selectedValue:n,cols:r}},getBoundingClientRect:function(e){return this.cellGroup=this.cellGroup||this.selectComponent("#wux-cell-group"),this.cellGroup&&this.cellGroup.getBoundingClientRect(e)}}});
|
||||
7
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/index.json
vendored
Normal file
7
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"wux-cell-group": "../cell-group/index",
|
||||
"wux-checkbox": "../checkbox/index"
|
||||
}
|
||||
}
|
||||
26
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/index.wxml
vendored
Normal file
26
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/index.wxml
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
<wux-cell-group id="wux-cell-group" wux-class="{{ prefixCls }}" prefixCls="{{ cellGroupPrefixCls }}" title="{{ title }}" label="{{ label }}">
|
||||
<block wx:for="{{ common.getOptions(options) }}" wx:for-item="option" wx:key="" wx:if="{{ options.length > 0 }}">
|
||||
<wux-checkbox
|
||||
prefixCls="{{ option.prefixCls || 'wux-checkbox' }}"
|
||||
cellPrefixCls="{{ option.cellPrefixCls || 'wux-cell' }}"
|
||||
selectablePrefixCls="{{ option.selectablePrefixCls || 'wux-selectable' }}"
|
||||
title="{{ option.title }}"
|
||||
label="{{ option.label }}"
|
||||
extra="{{ option.extra }}"
|
||||
value="{{ option.value }}"
|
||||
checked="{{ common.getChecked(inputValue, option) }}"
|
||||
disabled="{{ option.disabled }}"
|
||||
color="{{ option.color || 'balanced' }}"
|
||||
data-index="{{ index }}"
|
||||
bind:change="onCheckboxChange"
|
||||
/>
|
||||
</block>
|
||||
<block wx:if="{{ options.length === 0 }}">
|
||||
<slot></slot>
|
||||
</block>
|
||||
</wux-cell-group>
|
||||
|
||||
<wxs module="common">
|
||||
module.exports.getOptions = function(options) { return options.map(function(option) { if (option.constructor === 'String') { return { title: option, value: option } } return option }) }
|
||||
module.exports.getChecked = function(values, option) { return values.indexOf(option.value) !== -1 }
|
||||
</wxs>
|
||||
0
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/index.wxss
vendored
Normal file
0
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox-group/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
acfafca9-edc0-40d5-bda1-4b2a7fe6ee1b
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";var _baseComponent=_interopRequireDefault(require("../helpers/baseComponent")),_classNames=_interopRequireDefault(require("../helpers/classNames"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}(0,_baseComponent.default)({relations:{"../checkbox-group/index":{type:"ancestor"}},properties:{prefixCls:{type:String,value:"wux-checkbox"},cellPrefixCls:{type:String,value:"wux-cell"},selectablePrefixCls:{type:String,value:"wux-selectable"},title:{type:String,value:""},label:{type:String,value:""},extra:{type:String,value:""},value:{type:String,value:""},checked:{type:Boolean,value:!1,observer:function(e){this.setData({inputChecked:e})}},disabled:{type:Boolean,value:!1},color:{type:String,value:"balanced"}},data:{index:0,inputChecked:!1},computed:{classes:["prefixCls",function(e){return{cell:(0,_classNames.default)(e),selectable:"".concat(e,"__selectable")}}]},methods:{checkboxChange:function(e){var t=this.data,a=t.value,l=t.index,n=t.disabled,i=this.getRelationNodes("../checkbox-group/index")[0],r={checked:e.detail.checked,value:a,index:l};n||(i?i.onChange(r):this.triggerEvent("change",r))},changeValue:function(e,t){var a=0<arguments.length&&void 0!==e&&e,l=1<arguments.length&&void 0!==t?t:0;this.setData({inputChecked:a,index:l})}}});
|
||||
7
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/index.json
vendored
Normal file
7
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/index.json
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"wux-cell": "../cell/index",
|
||||
"wux-selectable": "../selectable/index"
|
||||
}
|
||||
}
|
||||
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/index.wxml
vendored
Normal file
3
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/index.wxml
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
<wux-cell wux-class="{{ classes.cell }}" prefixCls="{{ cellPrefixCls }}" title="{{ title }}" label="{{ label }}" extra="{{ extra }}">
|
||||
<wux-selectable slot="header" wux-class="{{ classes.selectable }}" prefixCls="{{ selectablePrefixCls }}" value="{{ value }}" checked="{{ inputChecked }}" color="{{ color }}" disabled="{{ disabled }}" controlled bind:change="checkboxChange" />
|
||||
</wux-cell>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/checkbox/index.wxss
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.wux-checkbox__selectable{position:static!important}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/countdown/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/countdown/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
31e7af9b-9b80-4c9f-8a31-4f190ad9a24d
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/countdown/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/countdown/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";function _classCallCheck(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function _createClass(t,e,n){return e&&_defineProperties(t.prototype,e),n&&_defineProperties(t,n),t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var Countdown=function(){function n(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:getCurrentPages()[getCurrentPages().length-1];_classCallCheck(this,n),Object.assign(this,{page:e,options:t}),this.__init()}return _createClass(n,[{key:"__init",value:function(){this.setData=this.page.setData.bind(this.page),this.restart(this.options)}},{key:"setDefaults",value:function(){return{date:"June 7, 2087 15:03:25",refresh:1e3,offset:0,onEnd:function(){},render:function(t){}}}},{key:"mergeOptions",value:function(t){var e=this.setDefaults();for(var n in e)e.hasOwnProperty(n)&&(this.options[n]=void 0!==t[n]?t[n]:e[n],"date"===n&&"object"!=typeof this.options.date&&(this.options.date=new Date(this.options.date)),"function"==typeof this.options[n]&&(this.options[n]=this.options[n].bind(this)));"object"!=typeof this.options.date&&(this.options.date=new Date(this.options.date))}},{key:"getDiffDate",value:function(){var t=(this.options.date.getTime()-Date.now()+this.options.offset)/1e3,e={years:0,days:0,hours:0,min:0,sec:0,millisec:0};return t<=0?this.interval&&(this.stop(),this.options.onEnd()):(31557600<=t&&(e.years=Math.floor(t/31557600),t-=365.25*e.years*86400),86400<=t&&(e.days=Math.floor(t/86400),t-=86400*e.days),3600<=t&&(e.hours=Math.floor(t/3600),t-=3600*e.hours),60<=t&&(e.min=Math.floor(t/60),t-=60*e.min),e.sec=Math.round(t),e.millisec=t%1*1e3),e}},{key:"leadingZeros",value:function(t,e){var n=1<arguments.length&&void 0!==e?e:2;return(t=String(t)).length>n?t:(Array(n+1).join("0")+t).substr(-n)}},{key:"update",value:function(t){return this.options.date="object"!=typeof t?new Date(t):t,this.render(),this}},{key:"stop",value:function(){return this.interval&&(clearInterval(this.interval),this.interval=!1),this}},{key:"render",value:function(){return this.options.render(this.getDiffDate()),this}},{key:"start",value:function(){var t=this;return!this.interval&&(this.render(),this.options.refresh&&(this.interval=setInterval(function(){t.render()},this.options.refresh)),this)}},{key:"updateOffset",value:function(t){return this.options.offset=t,this}},{key:"restart",value:function(t){var e=0<arguments.length&&void 0!==t?t:{};return this.mergeOptions(e),this.interval=!1,this.start(),this}}]),n}(),_default=Countdown;exports.default=_default;
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/countup/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/countup/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
dd2dfabd-3c28-42b4-94e8-47c47beb9f63
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/countup/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/countup/index.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";function _classCallCheck(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function _defineProperties(t,i){for(var s=0;s<i.length;s++){var a=i[s];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}function _createClass(t,i,s){return i&&_defineProperties(t.prototype,i),s&&_defineProperties(t,s),t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var CountUp=function(){function r(t,i,s,a){var e=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{},n=5<arguments.length&&void 0!==arguments[5]?arguments[5]:getCurrentPages()[getCurrentPages().length-1];_classCallCheck(this,r),Object.assign(this,{page:n,startVal:t,endVal:i,decimals:s,duration:a,options:e}),this.__init()}return _createClass(r,[{key:"__init",value:function(){this.setData=this.page.setData.bind(this.page),this.lastTime=0,this.mergeOptions(this.options),this.startVal=Number(this.startVal),this.cacheVal=this.startVal,this.endVal=Number(this.endVal),this.countDown=this.startVal>this.endVal,this.frameVal=this.startVal,this.decimals=Math.max(0,this.decimals||0),this.dec=Math.pow(10,this.decimals),this.duration=1e3*Number(this.duration)||2e3,this.printValue(this.formattingFn(this.startVal))}},{key:"setDefaultOptions",value:function(){return{useEasing:!0,useGrouping:!0,separator:",",decimal:".",easingFn:null,formattingFn:null,printValue:function(t){}}}},{key:"mergeOptions",value:function(t){var i=this.setDefaultOptions();for(var s in i)i.hasOwnProperty(s)&&(this.options[s]=void 0!==t[s]?t[s]:i[s],"function"==typeof this.options[s]&&(this.options[s]=this.options[s].bind(this)));""===this.options.separator&&(this.options.useGrouping=!1),this.options.prefix||(this.options.prefix=""),this.options.suffix||(this.options.suffix=""),this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.printValue=this.options.printValue?this.options.printValue:function(){}}},{key:"requestAnimationFrame",value:function(t){var i=this,s=(new Date).getTime(),a=Math.max(0,16-(s-this.lastTime)),e=setTimeout(function(){t.bind(i)(s+a)},a);return this.lastTime=s+a,e}},{key:"cancelAnimationFrame",value:function(t){clearTimeout(t)}},{key:"formatNumber",value:function(t){var i,s,a,e;if(t=t.toFixed(this.decimals),s=(i=(t+="").split("."))[0],a=1<i.length?this.options.decimal+i[1]:"",e=/(\d+)(\d{3})/,this.options.useGrouping)for(;e.test(s);)s=s.replace(e,"$1"+this.options.separator+"$2");return this.options.prefix+s+a+this.options.suffix}},{key:"easeOutExpo",value:function(t,i,s,a){return s*(1-Math.pow(2,-10*t/a))*1024/1023+i}},{key:"count",value:function(t){this.startTime||(this.startTime=t);var i=(this.timestamp=t)-this.startTime;this.remaining=this.duration-i,this.options.useEasing?this.countDown?this.frameVal=this.startVal-this.easingFn(i,0,this.startVal-this.endVal,this.duration):this.frameVal=this.easingFn(i,this.startVal,this.endVal-this.startVal,this.duration):this.countDown?this.frameVal=this.startVal-(this.startVal-this.endVal)*(i/this.duration):this.frameVal=this.startVal+(this.endVal-this.startVal)*(i/this.duration),this.countDown?this.frameVal=this.frameVal<this.endVal?this.endVal:this.frameVal:this.frameVal=this.frameVal>this.endVal?this.endVal:this.frameVal,this.frameVal=Math.round(this.frameVal*this.dec)/this.dec,this.printValue(this.formattingFn(this.frameVal)),i<this.duration?this.rAF=this.requestAnimationFrame(this.count):this.callback&&this.callback()}},{key:"start",value:function(t){return this.callback=t,this.rAF=this.requestAnimationFrame(this.count),!1}},{key:"pauseResume",value:function(){this.paused?(this.paused=!1,delete this.startTime,this.duration=this.remaining,this.startVal=this.frameVal,this.requestAnimationFrame(this.count)):(this.paused=!0,this.cancelAnimationFrame(this.rAF))}},{key:"reset",value:function(){this.paused=!1,delete this.startTime,this.startVal=this.cacheVal,this.cancelAnimationFrame(this.rAF),this.printValue(this.formattingFn(this.startVal))}},{key:"update",value:function(t){this.cancelAnimationFrame(this.rAF),this.paused=!1,delete this.startTime,this.startVal=this.frameVal,this.endVal=Number(t),this.countDown=this.startVal>this.endVal,this.rAF=this.requestAnimationFrame(this.count)}}]),r}(),_default=CountUp;exports.default=_default;
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
9ffe2403-d8d9-48f3-b76b-c0a42716afa6
|
||||
262
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/index.js
vendored
Normal file
262
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/index.js
vendored
Normal file
@@ -0,0 +1,262 @@
|
||||
import baseComponent from '../helpers/baseComponent'
|
||||
import classNames from '../helpers/classNames'
|
||||
|
||||
const defaults = {
|
||||
prefixCls: 'wux-dialog',
|
||||
title: '',
|
||||
content: '',
|
||||
buttons: [],
|
||||
verticalButtons: !1,
|
||||
resetOnClose: false,
|
||||
closable: false,
|
||||
mask: true,
|
||||
maskClosable: true,
|
||||
zIndex: 1000,
|
||||
}
|
||||
|
||||
const defaultOptions = {
|
||||
onCancel() {},
|
||||
cancelText: '取消',
|
||||
cancelType: 'default',
|
||||
onConfirm() {},
|
||||
confirmText: '确定',
|
||||
confirmType: 'primary',
|
||||
}
|
||||
|
||||
baseComponent({
|
||||
useFunc: true,
|
||||
data: defaults,
|
||||
computed: {
|
||||
classes: ['prefixCls, buttons, verticalButtons', function(prefixCls, btns, verticalButtons) {
|
||||
const prompt = `${prefixCls}__prompt`
|
||||
const input = `${prefixCls}__input`
|
||||
const buttons = classNames(`${prefixCls}__buttons`, {
|
||||
[`${prefixCls}__buttons--${verticalButtons ? 'vertical' : 'horizontal'}`]: true,
|
||||
})
|
||||
const button = btns.map((button) => {
|
||||
const wrap = classNames(`${prefixCls}__button`, {
|
||||
[`${prefixCls}__button--${button.type || 'default'}`]: button.type || 'default',
|
||||
[`${prefixCls}__button--bold`]: button.bold,
|
||||
[`${prefixCls}__button--disabled`]: button.disabled,
|
||||
[`${button.className}`]: button.className,
|
||||
})
|
||||
const hover = button.hoverClass && button.hoverClass !== 'default' ? button.hoverClass : `${prefixCls}__button--hover`
|
||||
|
||||
return {
|
||||
wrap,
|
||||
hover,
|
||||
}
|
||||
})
|
||||
|
||||
return {
|
||||
prompt,
|
||||
input,
|
||||
buttons,
|
||||
button,
|
||||
}
|
||||
}],
|
||||
},
|
||||
methods: {
|
||||
/**
|
||||
* 组件关闭时重置其内部数据
|
||||
*/
|
||||
onClosed() {
|
||||
if (this.data.resetOnClose) {
|
||||
const params = {
|
||||
...this.$$mergeOptionsToData(defaults),
|
||||
prompt: null,
|
||||
}
|
||||
|
||||
this.$$setData(params)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 点击 x 或 mask 回调
|
||||
*/
|
||||
onClose() {
|
||||
this.hide()
|
||||
},
|
||||
/**
|
||||
* 隐藏
|
||||
*/
|
||||
hide(cb) {
|
||||
this.$$setData({ in: false })
|
||||
if (typeof cb === 'function') {
|
||||
cb.call(this)
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 显示
|
||||
*/
|
||||
show(opts = {}) {
|
||||
const options = this.$$mergeOptionsAndBindMethods(Object.assign({}, defaults, opts))
|
||||
this.$$setData({ in: true, ...options })
|
||||
this.originalButtons = options.buttons
|
||||
return this.hide.bind(this)
|
||||
},
|
||||
/**
|
||||
* 触发事件
|
||||
*/
|
||||
runCallbacks(e, method) {
|
||||
const { index } = e.currentTarget.dataset
|
||||
const button = this.originalButtons[index]
|
||||
|
||||
if (!button.disabled) {
|
||||
this.hide(() => typeof button[method] === 'function' && button[method](e))
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 按钮点击事件
|
||||
*/
|
||||
buttonTapped(e) {
|
||||
this.runCallbacks(e, 'onTap')
|
||||
},
|
||||
/**
|
||||
* 用户点击该按钮时,会返回获取到的用户信息,回调的detail数据与wx.getUserInfo返回的一致,open-type="getUserInfo"时有效
|
||||
*/
|
||||
bindgetuserinfo(e) {
|
||||
this.runCallbacks(e, 'onGetUserInfo')
|
||||
},
|
||||
/**
|
||||
* 客服消息回调,open-type="contact"时有效
|
||||
*/
|
||||
bindcontact(e) {
|
||||
this.runCallbacks(e, 'onContact')
|
||||
},
|
||||
/**
|
||||
* 获取用户手机号回调,open-type=getPhoneNumber时有效
|
||||
*/
|
||||
bindgetphonenumber(e) {
|
||||
this.runCallbacks(e, 'onGotPhoneNumber')
|
||||
},
|
||||
/**
|
||||
* 在打开授权设置页后回调,open-type=openSetting时有效
|
||||
*/
|
||||
bindopensetting(e) {
|
||||
this.runCallbacks(e, 'onOpenSetting')
|
||||
},
|
||||
/**
|
||||
* 当使用开放能力时,发生错误的回调,open-type=launchApp时有效
|
||||
*/
|
||||
onError(e) {
|
||||
this.runCallbacks(e, 'onError')
|
||||
},
|
||||
/**
|
||||
* 当键盘输入时,触发 input 事件
|
||||
*/
|
||||
bindinput(e) {
|
||||
this.$$setData({
|
||||
'prompt.response': e.detail.value,
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 显示dialog组件
|
||||
* @param {Object} opts 配置项
|
||||
* @param {String} opts.title 提示标题
|
||||
* @param {String} opts.content 提示文本
|
||||
* @param {Boolean} opts.verticalButtons 是否显示垂直按钮布局
|
||||
* @param {Array} opts.buttons 按钮
|
||||
* @param {String} opts.buttons.text 按钮的文字
|
||||
* @param {String} opts.buttons.type 按钮的类型
|
||||
* @param {Boolean} opts.buttons.bold 是否加粗按钮的文字
|
||||
* @param {Function} opts.buttons.onTap 按钮的点击事件
|
||||
*/
|
||||
open(opts = {}) {
|
||||
return this.show(opts)
|
||||
},
|
||||
/**
|
||||
* 显示dialog组件
|
||||
* @param {Object} opts 配置项
|
||||
* @param {String} opts.title 提示标题
|
||||
* @param {String} opts.content 提示文本
|
||||
* @param {String} opts.confirmText 确定按钮的文字,默认为"确定"
|
||||
* @param {String} opts.confirmType 确定按钮的类型
|
||||
* @param {Function} opts.onConfirm 确定按钮的点击事件
|
||||
*/
|
||||
alert(opts = {}) {
|
||||
return this.open(Object.assign({
|
||||
buttons: [{
|
||||
text: opts.confirmText || defaultOptions.confirmText,
|
||||
type: opts.confirmType || defaultOptions.confirmType,
|
||||
onTap: (e) => {
|
||||
typeof opts.onConfirm === 'function' && opts.onConfirm(e)
|
||||
},
|
||||
} ],
|
||||
}, opts))
|
||||
},
|
||||
/**
|
||||
* 显示dialog组件
|
||||
* @param {Object} opts 配置项
|
||||
* @param {String} opts.title 提示标题
|
||||
* @param {String} opts.content 提示文本
|
||||
* @param {String} opts.confirmText 确定按钮的文字,默认为"确定"
|
||||
* @param {String} opts.confirmType 确定按钮的类型
|
||||
* @param {Function} opts.onConfirm 确定按钮的点击事件
|
||||
* @param {String} opts.cancelText 取消按钮的文字,默认为"取消"
|
||||
* @param {String} opts.cancelType 取消按钮的类型
|
||||
* @param {Function} opts.onCancel 取消按钮的点击事件
|
||||
*/
|
||||
confirm(opts = {}) {
|
||||
return this.open(Object.assign({
|
||||
buttons: [{
|
||||
text: opts.cancelText || defaultOptions.cancelText,
|
||||
type: opts.cancelType || defaultOptions.cancelType,
|
||||
onTap: (e) => {
|
||||
typeof opts.onCancel === 'function' && opts.onCancel(e)
|
||||
},
|
||||
},
|
||||
{
|
||||
text: opts.confirmText || defaultOptions.confirmText,
|
||||
type: opts.confirmType || defaultOptions.confirmType,
|
||||
onTap: (e) => {
|
||||
typeof opts.onConfirm === 'function' && opts.onConfirm(e)
|
||||
},
|
||||
}],
|
||||
}, opts))
|
||||
},
|
||||
/**
|
||||
* 显示dialog组件
|
||||
* @param {Object} opts 配置项
|
||||
* @param {String} opts.title 提示标题
|
||||
* @param {String} opts.content 提示文本
|
||||
* @param {String} opts.fieldtype input 的类型,有效值:text, number, idcard, digit
|
||||
* @param {Boolean} opts.password 是否是密码类型
|
||||
* @param {String} opts.defaultText 默认值
|
||||
* @param {String} opts.placeholder 输入框为空时占位符
|
||||
* @param {Number} opts.maxlength 最大输入长度,设置为 -1 的时候不限制最大长度
|
||||
* @param {String} opts.confirmText 确定按钮的文字,默认为"确定"
|
||||
* @param {String} opts.confirmType 确定按钮的类型
|
||||
* @param {Function} opts.onConfirm 确定按钮的点击事件
|
||||
* @param {String} opts.cancelText 取消按钮的文字,默认为"取消"
|
||||
* @param {String} opts.cancelType 取消按钮的类型
|
||||
* @param {Function} opts.onCancel 取消按钮的点击事件
|
||||
*/
|
||||
prompt(opts = {}) {
|
||||
const prompt = {
|
||||
fieldtype: opts.fieldtype ? opts.fieldtype : 'text',
|
||||
password: !!opts.password,
|
||||
response: opts.defaultText ? opts.defaultText : '',
|
||||
placeholder: opts.placeholder ? opts.placeholder : '',
|
||||
maxlength: opts.maxlength ? parseInt(opts.maxlength) : '',
|
||||
}
|
||||
|
||||
return this.open(Object.assign({
|
||||
prompt: prompt,
|
||||
buttons: [{
|
||||
text: opts.cancelText || defaultOptions.cancelText,
|
||||
type: opts.cancelType || defaultOptions.cancelType,
|
||||
onTap: (e) => {
|
||||
typeof opts.onCancel === 'function' && opts.onCancel(e)
|
||||
},
|
||||
},
|
||||
{
|
||||
text: opts.confirmText || defaultOptions.confirmText,
|
||||
type: opts.confirmType || defaultOptions.confirmType,
|
||||
onTap: (e) => {
|
||||
typeof opts.onConfirm === 'function' && opts.onConfirm(e, this.data.prompt.response)
|
||||
},
|
||||
}],
|
||||
}, opts))
|
||||
},
|
||||
},
|
||||
})
|
||||
6
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/index.json
vendored
Normal file
6
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/index.json
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"wux-popup": "../popup/index"
|
||||
}
|
||||
}
|
||||
56
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/index.wxml
vendored
Normal file
56
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/index.wxml
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
<wux-popup
|
||||
visible="{{ in }}"
|
||||
z-index="{{ zIndex }}"
|
||||
closable="{{ closable }}"
|
||||
mask="{{ mask }}"
|
||||
mask-closable="{{ maskClosable }}"
|
||||
bind:close="onClose"
|
||||
bind:closed="onClosed"
|
||||
>
|
||||
<view slot="header">{{ title }}</view>
|
||||
<view wx:if="{{ content || prompt }}">
|
||||
<text>{{ content }}</text>
|
||||
<view class="{{ classes.prompt }}" wx:if="{{ prompt }}">
|
||||
<label>
|
||||
<input
|
||||
type="{{ prompt.fieldtype }}"
|
||||
class="{{ classes.input }}"
|
||||
value="{{ prompt.response }}"
|
||||
password="{{ prompt.password }}"
|
||||
placeholder="{{ prompt.placeholder }}"
|
||||
maxlength="{{ maxlength }}"
|
||||
bindinput="bindinput"
|
||||
/>
|
||||
</label>
|
||||
</view>
|
||||
</view>
|
||||
<view slot="footer" class="{{ classes.buttons }}">
|
||||
<block wx:for="{{ buttons }}" wx:for-item="button" wx:key="">
|
||||
<button
|
||||
class="{{ classes.button[index].wrap }}"
|
||||
disabled="{{ button.disabled }}"
|
||||
open-type="{{ button.openType }}"
|
||||
hover-class="{{ !button.disabled ? classes.button[index].hover : 'none' }}"
|
||||
hover-stop-propagation="{{ button.hoverStopPropagation }}"
|
||||
hover-start-time="{{ button.hoverStartTime || 20 }}"
|
||||
hover-stay-time="{{ button.hoverStayTime || 70 }}"
|
||||
lang="{{ button.lang || 'en' }}"
|
||||
bindgetuserinfo="bindgetuserinfo"
|
||||
session-from="{{ button.sessionFrom }}"
|
||||
send-message-title="{{ button.sendMessageTitle }}"
|
||||
send-message-path="{{ button.sendMessagePath }}"
|
||||
send-message-img="{{ button.sendMessageImg }}"
|
||||
show-message-card="{{ button.showMessageCard }}"
|
||||
bindcontact="bindcontact"
|
||||
bindgetphonenumber="bindgetphonenumber"
|
||||
app-parameter="{{ button.appParameter }}"
|
||||
binderror="onError"
|
||||
bindopensetting="bindopensetting"
|
||||
data-index="{{ index }}"
|
||||
bindtap="buttonTapped"
|
||||
>
|
||||
{{ button.text }}
|
||||
</button>
|
||||
</block>
|
||||
</view>
|
||||
</wux-popup>
|
||||
116
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/index.wxss
vendored
Normal file
116
衣莎项目/源码/YiShaXiYi/extend/wux/dist/dialog/index.wxss
vendored
Normal file
@@ -0,0 +1,116 @@
|
||||
.wux-dialog__button {
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
border-radius: 0;
|
||||
color: inherit!important;
|
||||
background: 0 0!important;
|
||||
font-size: inherit;
|
||||
font-weight: 400;
|
||||
line-height: inherit;
|
||||
text-align: inherit;
|
||||
text-decoration: none;
|
||||
overflow: visible;
|
||||
min-height: 0!important;
|
||||
width: auto!important;
|
||||
box-sizing: border-box;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
display: block;
|
||||
-ms-flex: 1;
|
||||
flex: 1;
|
||||
color: #33cd5f!important;
|
||||
position: relative
|
||||
}
|
||||
.wux-dialog__button::after {
|
||||
display: block;
|
||||
position: static;
|
||||
top: auto;
|
||||
left: auto;
|
||||
width: auto;
|
||||
height: auto;
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
transform: none;
|
||||
transform-origin: 0 0
|
||||
}
|
||||
.wux-dialog__button--default {
|
||||
color: #444!important
|
||||
}
|
||||
.wux-dialog__button--primary {
|
||||
color: #33cd5f!important
|
||||
}
|
||||
.wux-dialog__button--bold {
|
||||
font-weight: 500!important
|
||||
}
|
||||
.wux-dialog__button--hover {
|
||||
background-color: #ececec!important
|
||||
}
|
||||
.wux-dialog__button--disabled {
|
||||
opacity: .3
|
||||
}
|
||||
.wux-dialog__prompt {
|
||||
position: relative;
|
||||
margin-top: 20rpx
|
||||
}
|
||||
.wux-dialog__prompt::after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 200%;
|
||||
height: 200%;
|
||||
transform: scale(.5);
|
||||
transform-origin: 0 0;
|
||||
pointer-events: none;
|
||||
box-sizing: border-box;
|
||||
border: 0 solid #d9d9d9;
|
||||
border-top-width: 1PX;
|
||||
border-right-width: 1PX;
|
||||
border-bottom-width: 1PX;
|
||||
border-left-width: 1PX;
|
||||
border-radius: 12rpx
|
||||
}
|
||||
.wux-dialog__input {
|
||||
padding: 8rpx 12rpx;
|
||||
height: 72rpx;
|
||||
line-height: 1;
|
||||
width: 100%;
|
||||
text-align: left;
|
||||
box-sizing: border-box
|
||||
}
|
||||
.wux-dialog__buttons {
|
||||
display: -ms-flexbox;
|
||||
display: flex;
|
||||
-ms-flex: 1;
|
||||
flex: 1
|
||||
}
|
||||
.wux-dialog__buttons--horizontal .wux-dialog__button::after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 1PX;
|
||||
bottom: 0;
|
||||
border-left: 1PX solid #d9d9d9;
|
||||
color: #d9d9d9;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleX(.5)
|
||||
}
|
||||
.wux-dialog__buttons--horizontal .wux-dialog__button:first-child::after {
|
||||
display: none
|
||||
}
|
||||
.wux-dialog__buttons--vertical {
|
||||
display: block;
|
||||
height: auto
|
||||
}
|
||||
.wux-dialog__buttons--vertical .wux-dialog__button::after {
|
||||
content: " ";
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
right: 0;
|
||||
height: 1PX;
|
||||
border-top: 1PX solid #d9d9d9;
|
||||
color: #d9d9d9;
|
||||
transform-origin: 0 0;
|
||||
transform: scaleY(.5)
|
||||
}
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
a1ab7e42-6ba8-403a-9463-f5a9855a396a
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/index.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/index.js
vendored
Normal file
File diff suppressed because one or more lines are too long
11
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/index.json
vendored
Normal file
11
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/index.json
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"wux-animation-group": "../animation-group/index",
|
||||
"wux-backdrop": "../backdrop/index",
|
||||
"wux-radio-group": "../radio-group/index",
|
||||
"wux-radio": "../radio/index",
|
||||
"wux-checkbox-group": "../checkbox-group/index",
|
||||
"wux-checkbox": "../checkbox/index"
|
||||
}
|
||||
}
|
||||
134
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/index.wxml
vendored
Normal file
134
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/index.wxml
vendored
Normal file
@@ -0,0 +1,134 @@
|
||||
<view class="wux-class {{ classes.wrap }}">
|
||||
<wux-backdrop id="wux-backdrop" data-index="{{ index }}" bind:click="onClose" />
|
||||
<view class="{{ classes.bd }}">
|
||||
<block wx:for="{{ options }}" wx:key="">
|
||||
<view class="{{ classes.item }} {{ common.getItemCls(prefixCls, item) }}" bindtap="onClick" data-index="{{ index }}">
|
||||
<view class="{{ classes.text }}">
|
||||
{{ item.type !== 'filter' ? displayValues[index] : item.label }}
|
||||
<view class="{{ classes.icon }} {{ common.getIconCls(prefixCls, item) }}" wx:if="{{ item.type !== 'text' }}"></view>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
<block wx:for="{{ options }}" wx:key="">
|
||||
<wux-animation-group wux-class="{{ classes.pop }}" in="{{ item.visible }}" class-names="wux-animate--slideInRight" bind:enter="onEnter" bind:exit="onExit" wx:if="{{ item.type === 'filter' }}">
|
||||
<scroll-view class="{{ classes.scrollView }}" scroll-y bindscroll="onScroll">
|
||||
<block wx:for="{{ item.children }}" wx:for-item="p" wx:for-index="pIndex" wx:key="">
|
||||
<view class="{{ classes.panel }}">
|
||||
<view class="{{ classes.panelHd }}">
|
||||
<div class="{{ classes.panelTitle }}">{{ p.label }}</div>
|
||||
<div class="{{ classes.panelSelected }}">{{ displayValues[index] && displayValues[index][pIndex] }}</div>
|
||||
</view>
|
||||
<view class="{{ classes.panelBd }}">
|
||||
<radio-group bindchange="onPopupSelectChange" data-parent-index="{{ index }}" data-index="{{ pIndex }}" wx:if="{{ p.type === 'radio' }}">
|
||||
<view class="{{ classes.groups }}">
|
||||
<block wx:for="{{ p.children }}" wx:for-item="g" wx:for-index="cIndex" wx:key="">
|
||||
<view class="{{ classes.group }}">
|
||||
<radio
|
||||
class="{{ classes.radio }}"
|
||||
value="{{ g.value }}"
|
||||
checked="{{ common.getChecked(values[index] && values[index][pIndex], g.value) }}"
|
||||
/>
|
||||
<view class="{{ classes.btn }} {{ common.getChecked(values[index] && values[index][pIndex], g.value) ? prefixCls + '__btn--checked' : '' }}">{{ g.label }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</radio-group>
|
||||
<checkbox-group bindchange="onPopupSelectChange" data-parent-index="{{ index }}" data-index="{{ pIndex }}" wx:else="{{ p.type === 'checkbox' }}">
|
||||
<view class="{{ classes.groups }}">
|
||||
<block wx:for="{{ p.children }}" wx:for-item="g" wx:for-index="cIndex" wx:key="">
|
||||
<view class="{{ classes.group }}">
|
||||
<checkbox
|
||||
class="{{ classes.check }}"
|
||||
value="{{ g.value }}"
|
||||
checked="{{ common.getChecked(values[index] && values[index][pIndex], g.value) }}"
|
||||
/>
|
||||
<view class="{{ classes.btn }} {{ common.getChecked(values[index] && values[index][pIndex], g.value) ? prefixCls + '__btn--checked' : '' }}">{{ g.label }}</view>
|
||||
</view>
|
||||
</block>
|
||||
</view>
|
||||
</checkbox-group>
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
</scroll-view>
|
||||
<div class="{{ classes.btns }}">
|
||||
<view class="{{ classes.btn }}" data-index="{{ index }}" bindtap="onSelectReset">{{ cancelText }}</view>
|
||||
<view class="{{ classes.btn }} {{ prefixCls + '__btn--danger' }}" data-index="{{ index }}" bindtap="onSelectConfirm">{{ confirmText }}</view>
|
||||
</div>
|
||||
</wux-animation-group>
|
||||
<wux-animation-group wux-class="{{ classes.select }}" in="{{ item.visible }}" class-names="wux-animate--fadeIn" bind:enter="onEnter" bind:exit="onExit" wx:if="{{ item.type === 'radio' }}">
|
||||
<scroll-view class="{{ classes.scrollView }}" scroll-y>
|
||||
<wux-radio-group
|
||||
value="{{ values[index] }}"
|
||||
options="{{ common.getOptions(item.children) }}"
|
||||
bind:change="onSelectChange"
|
||||
data-index="{{ index }}"
|
||||
data-type="{{ item.type }}"
|
||||
/>
|
||||
</scroll-view>
|
||||
</wux-animation-group>
|
||||
<wux-animation-group wux-class="{{ classes.select }}" in="{{ item.visible }}" class-names="wux-animate--fadeIn" bind:enter="onEnter" bind:exit="onExit" wx:if="{{ item.type === 'checkbox' }}">
|
||||
<scroll-view class="{{ classes.scrollView }}" scroll-y>
|
||||
<wux-checkbox-group
|
||||
value="{{ values[index] }}"
|
||||
options="{{ common.getOptions(item.children) }}"
|
||||
bind:change="onSelectChange"
|
||||
data-index="{{ index }}"
|
||||
data-type="{{ item.type }}"
|
||||
/>
|
||||
<div class="{{ classes.btns }}">
|
||||
<view class="{{ classes.btn }}" data-index="{{ index }}" bindtap="onSelectReset">{{ cancelText }}</view>
|
||||
<view class="{{ classes.btn }} {{ prefixCls + '__btn--danger' }}" data-index="{{ index }}" bindtap="onSelectConfirm">{{ confirmText }}</view>
|
||||
</div>
|
||||
</scroll-view>
|
||||
</wux-animation-group>
|
||||
</block>
|
||||
</view>
|
||||
|
||||
<wxs module="common">
|
||||
module.exports = {
|
||||
getOptions: function(options) {
|
||||
return options.map(function(option) {
|
||||
if (option.constructor === 'String') {
|
||||
return {
|
||||
title: option,
|
||||
value: option
|
||||
}
|
||||
}
|
||||
return {
|
||||
title: option.label,
|
||||
value: option.value
|
||||
}
|
||||
})
|
||||
},
|
||||
getChecked: function(values, value) {
|
||||
if (!values || !values.length) return false
|
||||
if (values.constructor === 'Array') {
|
||||
return values.indexOf(value) !== -1
|
||||
}
|
||||
return values === value
|
||||
},
|
||||
getItemCls: function(prefixCls, item) {
|
||||
var itemCls = []
|
||||
if (item.type !== 'text') {
|
||||
itemCls.push(prefixCls + '__item--has-icon')
|
||||
}
|
||||
if (item.checked) {
|
||||
itemCls.push(prefixCls + '__item--checked')
|
||||
}
|
||||
return itemCls.join(' ')
|
||||
},
|
||||
getIconCls: function(prefixCls, icon) {
|
||||
var iconCls = [prefixCls + '__icon--' + icon.type]
|
||||
if (icon.type === 'sort') {
|
||||
if (icon.sort === 1) {
|
||||
iconCls.push(prefixCls + '__icon--sort-asc')
|
||||
} else if (icon.sort === -1) {
|
||||
iconCls.push(prefixCls + '__icon--sort-desc')
|
||||
}
|
||||
}
|
||||
return iconCls.join(' ')
|
||||
},
|
||||
}
|
||||
</wxs>
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/index.wxss
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/filterbar/index.wxss
vendored
Normal file
File diff suppressed because one or more lines are too long
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/.pydio
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/.pydio
vendored
Normal file
@@ -0,0 +1 @@
|
||||
1d6c4d8f-9dd3-464b-95f4-12c887be83a2
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/arrayTreeFilter.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/arrayTreeFilter.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";function arrayTreeFilter(e,r,t){(t=t||{}).childrenKeyName=t.childrenKeyName||"children";var a=e||[],l=[],i=0;do{var d=a.filter(function(e){return r(e,i)})[0];if(!d)break;l.push(d),a=d[t.childrenKeyName]||[],i+=1}while(0<a.length);return l}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _default=arrayTreeFilter;exports.default=_default;
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/baseComponent.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/baseComponent.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _computedBehavior=_interopRequireDefault(require("./computedBehavior")),_relationsBehavior=_interopRequireDefault(require("./relationsBehavior")),_safeAreaBehavior=_interopRequireDefault(require("./safeAreaBehavior")),_safeSetDataBehavior=_interopRequireDefault(require("./safeSetDataBehavior")),_funcBehavior=_interopRequireDefault(require("./funcBehavior")),_compareVersion=_interopRequireDefault(require("./compareVersion"));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _objectSpread(r){for(var e=1;e<arguments.length;e++)if(e%2){var t=null!=arguments[e]?arguments[e]:{},o=Object.keys(t);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(t).filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.forEach(function(e){_defineProperty(r,e,t[e])})}else Object.defineProperties(r,Object.getOwnPropertyDescriptors(arguments[e]));return r}function _defineProperty(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}var _wx$getSystemInfoSync=wx.getSystemInfoSync(),platform=_wx$getSystemInfoSync.platform,SDKVersion=_wx$getSystemInfoSync.SDKVersion,libVersion="2.6.6";"devtools"===platform&&(0,_compareVersion.default)(SDKVersion,libVersion)<0&&wx&&wx.showModal&&wx.showModal({title:"提示",content:"当前基础库版本(".concat(SDKVersion,")过低,无法使用 Wux Weapp 组件库,请更新基础库版本 >=").concat(libVersion," 后重试。")});var baseComponent=function(e){var r=0<arguments.length&&void 0!==e?e:{};return r.externalClasses=["wux-class","wux-hover-class"].concat(_toConsumableArray(r.externalClasses=r.externalClasses||[])),r.behaviors=[_relationsBehavior.default,_safeSetDataBehavior.default].concat(_toConsumableArray(r.behaviors=r.behaviors||[]),[_computedBehavior.default]),r.useSafeArea&&(r.behaviors=[].concat(_toConsumableArray(r.behaviors),[_safeAreaBehavior.default]),delete r.useSafeArea),r.useFunc&&(r.behaviors=[].concat(_toConsumableArray(r.behaviors),[_funcBehavior.default]),delete r.useFunc),r.useField&&(r.behaviors=[].concat(_toConsumableArray(r.behaviors),["wx://form-field"]),delete r.useField),r.useExport&&(r.behaviors=[].concat(_toConsumableArray(r.behaviors),["wx://component-export"]),r.methods=_objectSpread({export:function(){return this}},r.methods),delete r.useExport),r.options=_objectSpread({multipleSlots:!0,addGlobalClass:!0},r.options),Component(r)},_default=baseComponent;exports.default=_default;
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/checkIPhoneX.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/checkIPhoneX.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.checkIPhoneX=exports.safeAreaInset=exports.getSystemInfo=void 0;var systemInfo=null,getSystemInfo=function(e){if(!systemInfo||e)try{systemInfo=wx.getSystemInfoSync()}catch(e){}return systemInfo};exports.getSystemInfo=getSystemInfo;var safeAreaInset={top:88,left:0,right:0,bottom:34};exports.safeAreaInset=safeAreaInset;var isIPhoneX=function(e){var t=e.model,s=e.platform;e.screenHeight;return/iPhone X/.test(t)&&"ios"===s},checkIPhoneX=function(e){return isIPhoneX(getSystemInfo(e))};exports.checkIPhoneX=checkIPhoneX;
|
||||
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/classNames.js
vendored
Normal file
1
衣莎项目/源码/YiShaXiYi/extend/wux/dist/helpers/classNames.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var hasOwn={}.hasOwnProperty;function classNames(){for(var e=[],t=0;t<arguments.length;t++){var o=arguments[t];if(o){var r=_typeof(o);if("string"===r||"number"===r)e.push(o);else if(Array.isArray(o)&&o.length){var n=classNames.apply(null,o);n&&e.push(n)}else if("object"===r)for(var s in o)hasOwn.call(o,s)&&o[s]&&e.push(s)}}return e.join(" ")}var _default=classNames;exports.default=_default;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user