dpzvc-ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +46 -0
- package/build-style.js +42 -0
- package/dist/dpzvc.js +17605 -0
- package/dist/styles/dpzvc.css +1 -0
- package/dist-prod/index.html +26 -0
- package/dist-prod/main.js +1 -0
- package/dist-prod/vendor.bundle.js +1 -0
- package/package.json +88 -0
- package/src/components/Indicator/Indicator.vue +77 -0
- package/src/components/Indicator/index.js +153 -0
- package/src/components/Text/Number.vue +201 -0
- package/src/components/Text/index.js +7 -0
- package/src/components/Text/textBar.vue +142 -0
- package/src/components/action-sheet/actionSheet.vue +91 -0
- package/src/components/action-sheet/index.js +5 -0
- package/src/components/app.vue +66 -0
- package/src/components/badge/badge.vue +77 -0
- package/src/components/badge/index.js +5 -0
- package/src/components/button/button.vue +122 -0
- package/src/components/button/index.js +5 -0
- package/src/components/card/card.vue +59 -0
- package/src/components/card/index.js +5 -0
- package/src/components/cell/cell.vue +103 -0
- package/src/components/cell/index.js +5 -0
- package/src/components/cell-swipe/cell-swipe.vue +148 -0
- package/src/components/cell-swipe/index.js +5 -0
- package/src/components/checkBox/checkbox-group.vue +76 -0
- package/src/components/checkBox/checkbox.vue +107 -0
- package/src/components/checkBox/index.js +8 -0
- package/src/components/header/header.vue +82 -0
- package/src/components/header/index.js +5 -0
- package/src/components/loadMore/index.js +5 -0
- package/src/components/loadMore/loadmore.vue +293 -0
- package/src/components/message/confirm.js +52 -0
- package/src/components/message/index.js +132 -0
- package/src/components/message/message.vue +135 -0
- package/src/components/message/messageGroup.vue +74 -0
- package/src/components/modal/confirm.js +161 -0
- package/src/components/modal/index.js +63 -0
- package/src/components/modal/modal.vue +144 -0
- package/src/components/picker/area-picker/area-picker.vue +223 -0
- package/src/components/picker/area-picker/props.js +17 -0
- package/src/components/picker/date-picker/date-picker.vue +291 -0
- package/src/components/picker/date-picker/props.js +24 -0
- package/src/components/picker/index.js +5 -0
- package/src/components/picker/normal-picker/normal-picker.vue +107 -0
- package/src/components/picker/normal-picker/props.js +20 -0
- package/src/components/picker/picker-slot.vue +206 -0
- package/src/components/picker/picker.vue +111 -0
- package/src/components/popup/index.js +5 -0
- package/src/components/popup/popup.vue +117 -0
- package/src/components/progress/index.js +5 -0
- package/src/components/progress/progress.vue +77 -0
- package/src/components/prompt/confirm.js +174 -0
- package/src/components/prompt/index.js +50 -0
- package/src/components/prompt/prompt.vue +166 -0
- package/src/components/radioBox/index.js +8 -0
- package/src/components/radioBox/radiobox-group.vue +74 -0
- package/src/components/radioBox/radiobox.vue +117 -0
- package/src/components/rater/index.js +5 -0
- package/src/components/rater/rater.vue +164 -0
- package/src/components/slideBar/index.js +6 -0
- package/src/components/slideBar/slideBar.vue +269 -0
- package/src/components/spinner/behavior/blade.vue +22 -0
- package/src/components/spinner/behavior/double-bounce.vue +22 -0
- package/src/components/spinner/behavior/fading-circle.vue +37 -0
- package/src/components/spinner/behavior/snake.vue +32 -0
- package/src/components/spinner/behavior/triple-bounce.vue +41 -0
- package/src/components/spinner/index.js +5 -0
- package/src/components/spinner/props.js +25 -0
- package/src/components/spinner/spinner.vue +74 -0
- package/src/components/swipe/index.js +5 -0
- package/src/components/swipe/swipe.vue +399 -0
- package/src/components/switchbar/index.js +5 -0
- package/src/components/switchbar/switchbar.vue +83 -0
- package/src/components/tab/index.js +6 -0
- package/src/components/tab/tab.vue +95 -0
- package/src/components/toTop/index.js +5 -0
- package/src/components/toTop/topTop.vue +76 -0
- package/src/components/upload/index.js +5 -0
- package/src/components/upload/upload.vue +200 -0
- package/src/config/config.js +17 -0
- package/src/directives/clickoutside.js +32 -0
- package/src/directives/tranferDom.js +65 -0
- package/src/index.js +83 -0
- package/src/lib/MegaPixImage.js +253 -0
- package/src/lib/exif.js +808 -0
- package/src/main.js +76 -0
- package/src/mixin/emitter.js +41 -0
- package/src/mixin/input.js +41 -0
- package/src/router.js +229 -0
- package/src/styles/base/font.less +99 -0
- package/src/styles/base/reset.less +69 -0
- package/src/styles/base/variable.less +108 -0
- package/src/styles/components/actionSheet.less +43 -0
- package/src/styles/components/badge.less +79 -0
- package/src/styles/components/button.less +123 -0
- package/src/styles/components/card.less +31 -0
- package/src/styles/components/cell-swipe.less +20 -0
- package/src/styles/components/cell.less +71 -0
- package/src/styles/components/checkBox.less +111 -0
- package/src/styles/components/editor.less +3 -0
- package/src/styles/components/header.less +70 -0
- package/src/styles/components/indicator.less +37 -0
- package/src/styles/components/loadmore.less +48 -0
- package/src/styles/components/message.less +57 -0
- package/src/styles/components/modal.less +82 -0
- package/src/styles/components/number.less +58 -0
- package/src/styles/components/picker.less +150 -0
- package/src/styles/components/popup.less +46 -0
- package/src/styles/components/progress.less +50 -0
- package/src/styles/components/prompt.less +37 -0
- package/src/styles/components/radioBox.less +136 -0
- package/src/styles/components/slide-Bar.less +147 -0
- package/src/styles/components/spinner.less +328 -0
- package/src/styles/components/swipe.less +125 -0
- package/src/styles/components/switchBar.less +88 -0
- package/src/styles/components/tab.less +69 -0
- package/src/styles/components/text.less +80 -0
- package/src/styles/components/toTop.less +26 -0
- package/src/styles/components/upload.less +23 -0
- package/src/styles/index.less +38 -0
- package/src/styles/utils/1px.less +204 -0
- package/src/styles/utils/animation.less +131 -0
- package/src/styles/utils/nowrap.less +19 -0
- package/src/template/index.ejs +26 -0
- package/src/utils/util.js +203 -0
- package/src/vconsole-resources.min.js +6 -0
- package/src/vconsole-sources.min.js +6 -0
- package/src/vconsole.min.js +7 -0
- package/src/views/ActionSheet.vue +33 -0
- package/src/views/Badge.vue +40 -0
- package/src/views/Button.vue +40 -0
- package/src/views/Card.vue +52 -0
- package/src/views/Cell.vue +21 -0
- package/src/views/CellSwipe.vue +85 -0
- package/src/views/CheckBox.vue +53 -0
- package/src/views/Header.vue +47 -0
- package/src/views/Indicator.vue +69 -0
- package/src/views/LoadMore.vue +54 -0
- package/src/views/Message.vue +42 -0
- package/src/views/Modal.vue +32 -0
- package/src/views/Picker.vue +50 -0
- package/src/views/Popup.vue +87 -0
- package/src/views/Progress.vue +32 -0
- package/src/views/Prompt.vue +31 -0
- package/src/views/RadioBox.vue +55 -0
- package/src/views/Rater.vue +39 -0
- package/src/views/SlideBar.vue +47 -0
- package/src/views/Spinner.vue +15 -0
- package/src/views/Swipe.vue +34 -0
- package/src/views/SwitchBar.vue +36 -0
- package/src/views/Tab.vue +41 -0
- package/src/views/Text.vue +64 -0
- package/src/views/ToTop.vue +17 -0
- package/src/views/Upload.vue +44 -0
- package/src/views/guide.vue +159 -0
- package/src/views/index.vue +435 -0
- package/webpack.base.config.js +74 -0
- package/webpack.dev.config.js +67 -0
- package/webpack.dist.dev.config.js +44 -0
- package/webpack.dist.prod.config.js +50 -0
- package/webpack.prod.config.js +72 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="guide">
|
|
3
|
+
<Cell :title="v.title" :label="v.label" :link="v.link" v-for="v in componentList" has-mask :key="v.title">
|
|
4
|
+
|
|
5
|
+
</Cell>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script>
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
name: "guide",
|
|
13
|
+
data(){
|
|
14
|
+
return {
|
|
15
|
+
componentList:[
|
|
16
|
+
{
|
|
17
|
+
title:'ActionSheet',
|
|
18
|
+
label:'操作列表',
|
|
19
|
+
link:'/ActionSheet'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title:'Badge',
|
|
23
|
+
label:'消息气泡',
|
|
24
|
+
link:'/Badge'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
title:'Button',
|
|
28
|
+
label:'按钮',
|
|
29
|
+
link:'/Button'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title:'Card',
|
|
33
|
+
label:'卡片',
|
|
34
|
+
link:'/Card'
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
title:'Cell',
|
|
38
|
+
label:'单元格',
|
|
39
|
+
link:'/Cell'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title:'CellSwipe',
|
|
43
|
+
label:'滑动单元格',
|
|
44
|
+
link:'/CellSwipe'
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
title:'CheckBox',
|
|
48
|
+
label:'多选',
|
|
49
|
+
link:'/CheckBox'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
title:'Header',
|
|
53
|
+
label:'导航栏',
|
|
54
|
+
link:'/Header'
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title:'Indicator',
|
|
58
|
+
label:'加载框',
|
|
59
|
+
link:'/Indicator'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
title:'LoadMore',
|
|
63
|
+
label:'上拉加载/下拉刷新',
|
|
64
|
+
link:'/LoadMore'
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title:'Message',
|
|
68
|
+
label:'消息弹出框',
|
|
69
|
+
link:'/Message'
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
title:'Modal',
|
|
73
|
+
label:'弹窗',
|
|
74
|
+
link:'/Modal'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
title:'Picker',
|
|
78
|
+
label:'选择器',
|
|
79
|
+
link:'/Picker'
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
title:'Popup',
|
|
83
|
+
label:'拉起列表',
|
|
84
|
+
link:'/Popup'
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
title:'Progress',
|
|
88
|
+
label:'进度条',
|
|
89
|
+
link:'/Progress'
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
title:'Prompt',
|
|
93
|
+
label:'交互式弹窗',
|
|
94
|
+
link:'/Prompt'
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
title:'RadioBox',
|
|
98
|
+
label:'单选按钮',
|
|
99
|
+
link:'/RadioBox'
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
title:'Rater',
|
|
103
|
+
label:'评分',
|
|
104
|
+
link:'/Rater'
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
title:'SlideBar',
|
|
108
|
+
label:'选项卡',
|
|
109
|
+
link:'/SlideBar'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
title:'Spinner',
|
|
113
|
+
label:'加载动画',
|
|
114
|
+
link:'/Spinner'
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title:'Swipe',
|
|
118
|
+
label:'轮播',
|
|
119
|
+
link:'/Swipe'
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
title:'SwitchBar',
|
|
123
|
+
label:'开关',
|
|
124
|
+
link:'/SwitchBar'
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
title:'Tab',
|
|
128
|
+
label:'菜单栏',
|
|
129
|
+
link:'/Tab'
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
title:'Text',
|
|
133
|
+
label:'输入框',
|
|
134
|
+
link:'/Text'
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
title:'ToTop',
|
|
138
|
+
label:'回到顶部',
|
|
139
|
+
link:'/ToTop'
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
title:'Upload',
|
|
143
|
+
label:'图片上传',
|
|
144
|
+
link:'/Upload'
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
]
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
|
|
151
|
+
}
|
|
152
|
+
</script>
|
|
153
|
+
|
|
154
|
+
<style lang="less" scoped>
|
|
155
|
+
.guide {
|
|
156
|
+
width: 100%;
|
|
157
|
+
position: relative;
|
|
158
|
+
}
|
|
159
|
+
</style>
|
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div style="position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: #fff;">
|
|
3
|
+
|
|
4
|
+
<!--<dpzvc-header title="asdasdsssssssssssssssssssssssssssssssssssssssssssssssss"></dpzvc-header>-->
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
<Header title="aaaa"></Header>
|
|
8
|
+
<div style="height: 50px;"></div>
|
|
9
|
+
<div style="min-height: 50px; background: pink; padding: 0 10px;">
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
<div><i class="dpzvc-icono-back"></i></div>
|
|
13
|
+
|
|
14
|
+
</div>
|
|
15
|
+
<Picker type="AreaPicker" @normal-change="normalChange" v-model="visible" @sure="pickerSure" @cancle="pickerCancle" ></Picker>
|
|
16
|
+
<v-button :loading="disable" @on-click="popup = true">确定</v-button>
|
|
17
|
+
<h1>111111111111</h1>
|
|
18
|
+
<!--<tab></tab>-->
|
|
19
|
+
<p>{{address}}</p>
|
|
20
|
+
<v-button @click.native="showMessage">asdasssssdaaaaaasdadd</v-button>
|
|
21
|
+
<CheckBox-group v-model="data" :vertical="visible">
|
|
22
|
+
<CheckBox label="aaa" :disable="visible"></CheckBox>
|
|
23
|
+
<CheckBox label="bbb"></CheckBox>
|
|
24
|
+
<CheckBox label="ccc"></CheckBox>
|
|
25
|
+
</CheckBox-group>
|
|
26
|
+
<CheckBox label="ddd" v-model="checked"></CheckBox>
|
|
27
|
+
<Radio label="1111" v-model="checked"></Radio>
|
|
28
|
+
<Radio-group v-model="radio" :vertical="visible">
|
|
29
|
+
<Radio :disable="visible" label="1111"></Radio>
|
|
30
|
+
<Radio label="222"></Radio>
|
|
31
|
+
<Radio label="333"></Radio>
|
|
32
|
+
</Radio-group>
|
|
33
|
+
<span>{{data}}</span>
|
|
34
|
+
<span>{{radio}}</span>
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
<Slide-bar :list="items" :flex="false" index="1" :can-drag="false" height="100%" scroll-height='50px'
|
|
38
|
+
:is-fixed-header="true">
|
|
39
|
+
|
|
40
|
+
<div slot="slot-item-0" style="height:100%;flex: 1;background:red;overflow: scroll">
|
|
41
|
+
<div style="height: 40px;width: 100%;background-color: blue;"></div>
|
|
42
|
+
<div style="height: 40px;width: 100%;background-color: blue;"></div>
|
|
43
|
+
<div style="height: 40px;width: 100%;background-color: blue;"></div>
|
|
44
|
+
<div style="height: 40px;width: 100%;background-color: blue;"></div>
|
|
45
|
+
<div style="height: 40px;width: 100%;background-color: blue;"></div>
|
|
46
|
+
</div>
|
|
47
|
+
<div slot="slot-item-1" style="height:100%;flex: 1;background:yellow">
|
|
48
|
+
<Load-more :refresh="topMethod" height="100%" ref="more" :load-more="topMethod" :has-more="hasMore"
|
|
49
|
+
@on-change-up-status="getStatus">
|
|
50
|
+
<div style="width: 100%;height: 50px;" v-for="item in loadmore">{{item}}</div>
|
|
51
|
+
</Load-more>
|
|
52
|
+
</div>
|
|
53
|
+
<div slot="slot-item-2" style="height:100%;flex: 1;background:black"></div>
|
|
54
|
+
</Slide-bar>
|
|
55
|
+
<!--<Tab :items="items" v-model="maskCloseble"></Tab>-->
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
<Swipe :multiple="false" :list="files">
|
|
59
|
+
<template scope="props">
|
|
60
|
+
|
|
61
|
+
<div>
|
|
62
|
+
<span>{{props.item.id}}</span>
|
|
63
|
+
<img :src="props.item.image"/>
|
|
64
|
+
<span v-text="props.index"></span>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
</template>
|
|
68
|
+
</Swipe>
|
|
69
|
+
|
|
70
|
+
<TextBar v-model="texts" type="textarea" :maxlength="9"></TextBar>
|
|
71
|
+
<span>{{texts}}</span>
|
|
72
|
+
<Number v-model="number" :min="1" :max="10" :focus="true"></Number>
|
|
73
|
+
<span>{{number}}</span>
|
|
74
|
+
<Upload :multiple="true" @on-change-file="onChangeFile" ref="upload"></Upload>
|
|
75
|
+
<img :src="item.base64" v-for="item in files"/>
|
|
76
|
+
<SwitchBar v-model="check" size="large"></SwitchBar>
|
|
77
|
+
<span>{{check}}</span>
|
|
78
|
+
<SwitchBar size="large"></SwitchBar>
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
<v-button :inline="true" width="40%" type="warning" :loading="loading" @click.native="load"></v-button>
|
|
82
|
+
<v-button :inline="true" disabled width="40%" type="success" :loading="loading" @click.native="load"></v-button>
|
|
83
|
+
<Rater v-model="rate" disabled></Rater>
|
|
84
|
+
{{rate}}
|
|
85
|
+
|
|
86
|
+
<Spinner type="blade" size="60"></Spinner>
|
|
87
|
+
<Action-sheet :items="actionSheet" v-model="popup">
|
|
88
|
+
|
|
89
|
+
</Action-sheet>
|
|
90
|
+
<Progress v-model="progress"></Progress>
|
|
91
|
+
<ToTop></ToTop>
|
|
92
|
+
<Cell title="标题" label="小标题" value="说明文字" has-mask></Cell>
|
|
93
|
+
<CellSwipe :right="right" title="标题" has-mask ></CellSwipe>
|
|
94
|
+
<CellSwipe :left="left" :right="right" title="标题" has-mask ></CellSwipe>
|
|
95
|
+
<CellSwipe :left="left" :right="right" title="标题" has-mask ></CellSwipe>
|
|
96
|
+
<CellSwipe :left="left" :right="right" title="标题" has-mask ></CellSwipe>
|
|
97
|
+
<CellSwipe :left="left" :right="right" title="标题" has-mask ></CellSwipe>
|
|
98
|
+
<CellSwipe :left="left" :right="right" title="标题" has-mask ></CellSwipe>
|
|
99
|
+
<Badge number="10" max="99" :dot="false">
|
|
100
|
+
<div style="width: 45px;height: 45px;background-color: red"></div>
|
|
101
|
+
</Badge>
|
|
102
|
+
<Card></Card>
|
|
103
|
+
</div>
|
|
104
|
+
</template>
|
|
105
|
+
|
|
106
|
+
<script>
|
|
107
|
+
|
|
108
|
+
export default {
|
|
109
|
+
filters: {},
|
|
110
|
+
directives: {},
|
|
111
|
+
components: {},
|
|
112
|
+
data () {
|
|
113
|
+
return {
|
|
114
|
+
left:[
|
|
115
|
+
{
|
|
116
|
+
content:'btn1',
|
|
117
|
+
style:{
|
|
118
|
+
backgroundColor:'#eee',
|
|
119
|
+
color:'#fff'
|
|
120
|
+
},
|
|
121
|
+
handleClick:function(){
|
|
122
|
+
console.log('btn1')
|
|
123
|
+
}
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
content:'btn2',
|
|
127
|
+
style:{
|
|
128
|
+
backgroundColor:'red',
|
|
129
|
+
color:'#fff'
|
|
130
|
+
},
|
|
131
|
+
handleClick:function(){
|
|
132
|
+
console.log('btn2')
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
right:[
|
|
137
|
+
{
|
|
138
|
+
content:'btn1',
|
|
139
|
+
style:{
|
|
140
|
+
backgroundColor:'#eee',
|
|
141
|
+
color:'#fff'
|
|
142
|
+
},
|
|
143
|
+
handleClick:function(){
|
|
144
|
+
console.log('btn1')
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
content:'btn2',
|
|
149
|
+
style:{
|
|
150
|
+
backgroundColor:'red',
|
|
151
|
+
color:'#fff'
|
|
152
|
+
},
|
|
153
|
+
handleClick:function(){
|
|
154
|
+
console.log('btn2')
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
],
|
|
158
|
+
badge:true,
|
|
159
|
+
progress:40,
|
|
160
|
+
loadmore: [1, 1, 1],
|
|
161
|
+
popup: false,
|
|
162
|
+
inita: [9, 1, 1],
|
|
163
|
+
listss: [
|
|
164
|
+
{
|
|
165
|
+
target: 'a',
|
|
166
|
+
list: [{value: 'w', code: 1}, {value: 2, code: 2}, {value: 3, code: 3}, {
|
|
167
|
+
value: 4,
|
|
168
|
+
code: 4
|
|
169
|
+
}, {value: 5, code: 5}, {value: 6, code: 6}, {value: 7, code: 7}, {
|
|
170
|
+
value: 8,
|
|
171
|
+
code: 8
|
|
172
|
+
}, {value: 'c', code: 9}, {value: 0, code: 0}]
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
target: 'b',
|
|
176
|
+
list: [{value: 'e', code: 1}, {value: 2, code: 2}, {value: 3, code: 3}, {
|
|
177
|
+
value: 4,
|
|
178
|
+
code: 4
|
|
179
|
+
}, {value: 5, code: 5}, {value: 6, code: 6}, {value: 7, code: 7}, {
|
|
180
|
+
value: 8,
|
|
181
|
+
code: 8
|
|
182
|
+
}, {value: 9, code: 9}, {value: 0, code: 0}]
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
target: 'c',
|
|
186
|
+
list: [{value: 'r', code: 1}, {value: 2, code: 2}, {value: 3, code: 3}, {
|
|
187
|
+
value: 4,
|
|
188
|
+
code: 4
|
|
189
|
+
}, {value: 5, code: 5}, {value: 6, code: 6}, {value: 7, code: 7}, {
|
|
190
|
+
value: 8,
|
|
191
|
+
code: 8
|
|
192
|
+
}, {value: 9, code: 9}, {value: 0, code: 0}]
|
|
193
|
+
}
|
|
194
|
+
],
|
|
195
|
+
|
|
196
|
+
loading: false,
|
|
197
|
+
rate: 4.0,
|
|
198
|
+
check: false,
|
|
199
|
+
files: [],
|
|
200
|
+
number: 1,
|
|
201
|
+
msgTip: '',
|
|
202
|
+
texts: 1,
|
|
203
|
+
list: [
|
|
204
|
+
|
|
205
|
+
{
|
|
206
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
207
|
+
spec: '1111',
|
|
208
|
+
onClick: function (item, index) {
|
|
209
|
+
console.log(item)
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
214
|
+
spec: '2222'
|
|
215
|
+
},
|
|
216
|
+
|
|
217
|
+
{
|
|
218
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
219
|
+
spec: '3333'
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
223
|
+
spec: '5555'
|
|
224
|
+
},
|
|
225
|
+
|
|
226
|
+
{
|
|
227
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
228
|
+
spec: '121231'
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
image: 'https://vuefe.cn/images/logo.png',
|
|
232
|
+
spec: '0000'
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
],
|
|
237
|
+
|
|
238
|
+
pcd:'河北省/唐山市/路南区',
|
|
239
|
+
dates:'2017/07/08',
|
|
240
|
+
showAddressPicker: false,
|
|
241
|
+
items: [],
|
|
242
|
+
|
|
243
|
+
lists: [
|
|
244
|
+
{
|
|
245
|
+
text: 'aaa',
|
|
246
|
+
onClick: this.callback
|
|
247
|
+
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
text: 'bbb',
|
|
251
|
+
onClick: function () {
|
|
252
|
+
console.log('bbb')
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
],
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
visible: true,
|
|
259
|
+
indicator: true,
|
|
260
|
+
maskCloseble: true,
|
|
261
|
+
address: '',
|
|
262
|
+
data: [],
|
|
263
|
+
checked: true,
|
|
264
|
+
radio: '1111',
|
|
265
|
+
theme: 'twilight',
|
|
266
|
+
mode: 'javascript',
|
|
267
|
+
text: 'test',
|
|
268
|
+
disable: false,
|
|
269
|
+
actionSheet: [
|
|
270
|
+
{text: 'aaa'},
|
|
271
|
+
{text: 'bbb'},
|
|
272
|
+
{text: 'ccc'},
|
|
273
|
+
],
|
|
274
|
+
hasMore: true
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
mounted () {
|
|
278
|
+
// this.$Message.loading({showLeft:false,text:'加载中...',duration:0,position:'center'})
|
|
279
|
+
this.$Modal.info({showHead:false,body:'加中...',title:'a'})
|
|
280
|
+
setTimeout(()=>{
|
|
281
|
+
this.files = [{"id":521,"ad_id":10,"name":"\u73a9\u8f6c\u5927\u6570\u636e\u5206\u6790\uff01Spark2.X+Python \u7cbe\u534e\u5b9e\u6218\u8bfe\u7a0b","image":"https:\/\/o74ly5e8r.qnssl.com\/9MhSVW1gJD.png","background":{"color":""},"link":"https:\/\/edu.hellobi.com\/course\/222","sort":0,"meta":"","created_at":"2017-12-21 09:48:29","updated_at":"2017-12-21 09:48:29","deleted_at":null},{"id":506,"ad_id":10,"name":"\u6570\u636e\u5206\u6790\u62a5\u544a\u5236\u4f5c\u79d8\u7c4d\u5347\u7ea7\u7248","image":"https:\/\/o74ly5e8r.qnssl.com\/EAbxDnBMcX.png","background":{"color":""},"link":"https:\/\/edu.hellobi.com\/course\/132","sort":1,"meta":"","created_at":"2017-10-31 09:43:15","updated_at":"2017-12-21 09:46:16","deleted_at":null},{"id":504,"ad_id":10,"name":"\u72ec\u4e00\u65e0\u4e8c\u7684\u6570\u636e\u4ed3\u5e93\u5efa\u6a21\u6307\u5357\u7cfb\u5217\u6559\u7a0b\u5347\u7ea7\u7248 \uff08\u8fde\u8f7d\u4e2d\uff09","image":"https:\/\/o74ly5e8r.qnssl.com\/dmJqsjtLNS.png","background":{"color":""},"link":"https:\/\/edu.hellobi.com\/course\/102","sort":2,"meta":"","created_at":"2017-10-18 09:35:05","updated_at":"2017-12-21 09:50:03","deleted_at":null}]
|
|
282
|
+
},2000)
|
|
283
|
+
|
|
284
|
+
setInterval(()=>{
|
|
285
|
+
this.progress += 8
|
|
286
|
+
},1000)
|
|
287
|
+
setTimeout(()=>{
|
|
288
|
+
this.items = [
|
|
289
|
+
{
|
|
290
|
+
|
|
291
|
+
name: "首页",
|
|
292
|
+
icon: "",
|
|
293
|
+
iconCur: "",
|
|
294
|
+
path: "/index"
|
|
295
|
+
}, {
|
|
296
|
+
name: "商品",
|
|
297
|
+
icon: "",
|
|
298
|
+
|
|
299
|
+
iconCur: "",
|
|
300
|
+
path: "/list"
|
|
301
|
+
}, {
|
|
302
|
+
name: "晒单",
|
|
303
|
+
icon: "",
|
|
304
|
+
iconCur: "",
|
|
305
|
+
path: "/shareOrder"
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
},1000);
|
|
309
|
+
|
|
310
|
+
|
|
311
|
+
|
|
312
|
+
},
|
|
313
|
+
beforeDestroy () {
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
},
|
|
317
|
+
methods: {
|
|
318
|
+
|
|
319
|
+
normalChange(val){
|
|
320
|
+
console.log(val)
|
|
321
|
+
},
|
|
322
|
+
async a(a){
|
|
323
|
+
await setTimeout(() => {
|
|
324
|
+
console.log(a.c)
|
|
325
|
+
console.log(a.b)
|
|
326
|
+
})
|
|
327
|
+
},
|
|
328
|
+
|
|
329
|
+
load(){
|
|
330
|
+
this.loading = !this.loading
|
|
331
|
+
},
|
|
332
|
+
onChangeFile(val){
|
|
333
|
+
this.files = val
|
|
334
|
+
},
|
|
335
|
+
onLoad(val){
|
|
336
|
+
|
|
337
|
+
},
|
|
338
|
+
valida(val){
|
|
339
|
+
if (val != 'a') {
|
|
340
|
+
return false;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
return true;
|
|
344
|
+
},
|
|
345
|
+
getConfirm(val){
|
|
346
|
+
|
|
347
|
+
val ? this.msgTip = '成功' : this.msgTip = "失败"
|
|
348
|
+
},
|
|
349
|
+
getVal(val){
|
|
350
|
+
console.log(val)
|
|
351
|
+
},
|
|
352
|
+
topMethod(){
|
|
353
|
+
this.loadmore.push(...[2, 2]);
|
|
354
|
+
this.$refs.more.onLoadOff();
|
|
355
|
+
// this.hasMore = true;
|
|
356
|
+
},
|
|
357
|
+
pickerSure(value){
|
|
358
|
+
// this.address = `${province} ${city} ${district}`
|
|
359
|
+
console.log(value)
|
|
360
|
+
},
|
|
361
|
+
pickerCancle(){
|
|
362
|
+
console.log('您取消了选择')
|
|
363
|
+
this.disable = true
|
|
364
|
+
},
|
|
365
|
+
ok(){
|
|
366
|
+
console.log(this.radio)
|
|
367
|
+
},
|
|
368
|
+
close(){
|
|
369
|
+
console.log('asdasdasd')
|
|
370
|
+
},
|
|
371
|
+
newTip(){
|
|
372
|
+
//this.$Notice.open({desc: 'asdasd', onClose: this.close, duration: 4, styles: {right: '0'}})
|
|
373
|
+
},
|
|
374
|
+
callback(item, index){
|
|
375
|
+
console.log('asdasdasd')
|
|
376
|
+
},
|
|
377
|
+
callback2(item, index){
|
|
378
|
+
console.log(item.text)
|
|
379
|
+
},
|
|
380
|
+
getStatus(val){
|
|
381
|
+
console.log(val)
|
|
382
|
+
},
|
|
383
|
+
showMessage(){
|
|
384
|
+
console.log('a')
|
|
385
|
+
this.$Message.show({text: 'asdasdasdasd',duration:0});
|
|
386
|
+
this.$Message.show({text: 'ascx',duration:0});
|
|
387
|
+
|
|
388
|
+
setTimeout(()=>{
|
|
389
|
+
this.$Message.destroy()
|
|
390
|
+
},2000)
|
|
391
|
+
},
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
</script>
|
|
397
|
+
|
|
398
|
+
<style>
|
|
399
|
+
html, body {
|
|
400
|
+
height: 100%
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.dpzvc-slideBar {
|
|
404
|
+
height: 100%;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
@font-face {
|
|
408
|
+
font-family: "ifont";
|
|
409
|
+
/*src: url('font/iconfont.eot'); !* IE9*!*/
|
|
410
|
+
/*src: url('font/iconfont.eot?#iefix') format('embedded-opentype'), !* IE6-IE8 *!*/
|
|
411
|
+
/*url('font/iconfont.woff') format('woff'), !* chrome、firefox *!*/
|
|
412
|
+
/*url('font/iconfont.ttf') format('truetype'), !* chrome、firefox、opera、Safari, Android, iOS 4.2+*!*/
|
|
413
|
+
/*url('font/iconfont.svg#iconfont') format('svg'); !* iOS 4.1- *!*/
|
|
414
|
+
/*src: url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.eot');*/
|
|
415
|
+
/*src: url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.eot?#iefix') format('embedded-opentype'),*/
|
|
416
|
+
/*url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.woff') format('woff'),*/
|
|
417
|
+
/*url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.ttf') format('truetype'),*/
|
|
418
|
+
/*url('//at.alicdn.com/t/font_gm9v3xai12z6ko6r.svg#iconfont') format('svg');*/
|
|
419
|
+
src: url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.eot');
|
|
420
|
+
src: url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.eot?#iefix') format('embedded-opentype'),
|
|
421
|
+
url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.woff') format('woff'),
|
|
422
|
+
url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.ttf') format('truetype'),
|
|
423
|
+
url('//at.alicdn.com/t/font_mrhpq9yw1ssxxbt9.svg#iconfont') format('svg');
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
.ifont {
|
|
427
|
+
margin: 0 3px;
|
|
428
|
+
font-family: "ifont" !important;
|
|
429
|
+
font-size: 16px;
|
|
430
|
+
font-style: normal;
|
|
431
|
+
-webkit-font-smoothing: antialiased;
|
|
432
|
+
-webkit-text-stroke-width: 0.2px;
|
|
433
|
+
-moz-osx-font-smoothing: grayscale;
|
|
434
|
+
}
|
|
435
|
+
</style>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 公共配置
|
|
3
|
+
*/
|
|
4
|
+
var path = require('path');
|
|
5
|
+
function resolve (dir) {
|
|
6
|
+
return path.join(__dirname, '.', dir)
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
module.exports = {
|
|
10
|
+
// 加载器
|
|
11
|
+
module: {
|
|
12
|
+
// https://doc.webpack-china.org/guides/migrating/#module-loaders-module-rules
|
|
13
|
+
rules: [
|
|
14
|
+
{
|
|
15
|
+
// https://vue-loader.vuejs.org/en/configurations/extract-css.html
|
|
16
|
+
test: /\.vue$/,
|
|
17
|
+
loader: 'vue-loader',
|
|
18
|
+
options: {
|
|
19
|
+
loaders: {
|
|
20
|
+
css: 'vue-style-loader!css-loader',
|
|
21
|
+
less: 'vue-style-loader!css-loader!less-loader'
|
|
22
|
+
},
|
|
23
|
+
postLoaders: {
|
|
24
|
+
html: 'babel-loader'
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
test: /\.js$/,
|
|
30
|
+
query:{
|
|
31
|
+
presets: ['es2015','stage-0']
|
|
32
|
+
},
|
|
33
|
+
loader: 'babel-loader',
|
|
34
|
+
exclude: /node_modules/
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
test: /\.css$/,
|
|
38
|
+
use: [
|
|
39
|
+
'style-loader',
|
|
40
|
+
'css-loader',
|
|
41
|
+
'autoprefixer-loader'
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
test: /\.less$/,
|
|
46
|
+
use: [
|
|
47
|
+
'style-loader',
|
|
48
|
+
'css-loader',
|
|
49
|
+
'less-loader'
|
|
50
|
+
]
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
test: /\.scss$/,
|
|
54
|
+
use: [
|
|
55
|
+
'style-loader',
|
|
56
|
+
'css-loader',
|
|
57
|
+
'sass-loader?sourceMap'
|
|
58
|
+
]
|
|
59
|
+
},
|
|
60
|
+
{ test: /\.(gif|jpg|png|woff|svg|eot|ttf)\??.*$/, loader: 'url-loader?limit=8192'},
|
|
61
|
+
{ test: /\.(html|tpl)$/, loader: 'html-loader' }
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
resolve: {
|
|
68
|
+
extensions: ['.js', '.vue'],
|
|
69
|
+
alias: {
|
|
70
|
+
'vue': 'vue/dist/vue.esm.js',
|
|
71
|
+
'@': resolve('src/components')
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
};
|