@10yun/cv-mobile-ui 0.5.19 → 0.5.20

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.
Files changed (69) hide show
  1. package/other/mpvue-picker/mpvuePicker.vue +402 -0
  2. package/{uni-ui/lib → other}/mpvue-picker/style.css +0 -1
  3. package/{uni-ui/lib → other}/tab-nvue/style.css +0 -1
  4. package/other/uParse/components/style.css +1 -0
  5. package/other/uParse/components/wxParseAudio.vue +1 -0
  6. package/other/uParse/components/wxParseImg.vue +86 -0
  7. package/other/uParse/components/wxParseTable.vue +54 -0
  8. package/other/uParse/components/wxParseTemplate0.vue +98 -0
  9. package/other/uParse/components/wxParseTemplate1.vue +81 -0
  10. package/other/uParse/components/wxParseTemplate10.vue +81 -0
  11. package/other/uParse/components/wxParseTemplate11.vue +79 -0
  12. package/other/uParse/components/wxParseTemplate2.vue +81 -0
  13. package/other/uParse/components/wxParseTemplate3.vue +81 -0
  14. package/other/uParse/components/wxParseTemplate4.vue +81 -0
  15. package/other/uParse/components/wxParseTemplate5.vue +81 -0
  16. package/other/uParse/components/wxParseTemplate6.vue +81 -0
  17. package/other/uParse/components/wxParseTemplate7.vue +81 -0
  18. package/other/uParse/components/wxParseTemplate8.vue +81 -0
  19. package/other/uParse/components/wxParseTemplate9.vue +81 -0
  20. package/other/uParse/components/wxParseVideo.vue +14 -0
  21. package/other/uParse/editor.css +495 -0
  22. package/{uni-ui/lib/uParse/src → other/uParse}/libs/html2json.js +19 -22
  23. package/{uni-ui/lib/uParse/src → other/uParse}/libs/htmlparser.js +12 -5
  24. package/{uni-ui/lib/uParse/src → other/uParse}/libs/wxDiscode.js +2 -2
  25. package/other/uParse/wxParse.vue +196 -0
  26. package/package.json +1 -1
  27. package/plugins/map/amqp-wx.js +173 -0
  28. package/{uni-ui/lib/mpvueGestureLock/index.vue → ui-cv/components/cv-draw-gesture-lock/cv-draw-gesture-lock.vue} +4 -1
  29. package/ui-cv/components/cv-draw-gesture-lock/gestureLock.js +169 -0
  30. package/{uni-ui/lib/mpvueGestureLock → ui-cv/components/cv-draw-gesture-lock}/style.css +0 -1
  31. package/{uni-ui/lib/mpvue-citypicker → ui-cv/components/cv-geo-region}/style.css +0 -1
  32. package/uni-ui/lib/amap-wx/js/util.js +0 -181
  33. package/uni-ui/lib/marked/index.js +0 -1
  34. package/uni-ui/lib/mpvue-citypicker/city-data/area.js +0 -12542
  35. package/uni-ui/lib/mpvue-citypicker/city-data/city.js +0 -1503
  36. package/uni-ui/lib/mpvue-citypicker/city-data/province.js +0 -139
  37. package/uni-ui/lib/mpvue-picker/mpvuePicker.vue +0 -3
  38. package/uni-ui/lib/mpvueGestureLock/gestureLock.js +0 -175
  39. package/uni-ui/lib/uParse/src/components/style.css +0 -2
  40. package/uni-ui/lib/uParse/src/components/wxParseAudio.vue +0 -1
  41. package/uni-ui/lib/uParse/src/components/wxParseImg.vue +0 -1
  42. package/uni-ui/lib/uParse/src/components/wxParseTable.vue +0 -3
  43. package/uni-ui/lib/uParse/src/components/wxParseTemplate0.vue +0 -1
  44. package/uni-ui/lib/uParse/src/components/wxParseTemplate1.vue +0 -1
  45. package/uni-ui/lib/uParse/src/components/wxParseTemplate10.vue +0 -1
  46. package/uni-ui/lib/uParse/src/components/wxParseTemplate11.vue +0 -1
  47. package/uni-ui/lib/uParse/src/components/wxParseTemplate2.vue +0 -1
  48. package/uni-ui/lib/uParse/src/components/wxParseTemplate3.vue +0 -1
  49. package/uni-ui/lib/uParse/src/components/wxParseTemplate4.vue +0 -1
  50. package/uni-ui/lib/uParse/src/components/wxParseTemplate5.vue +0 -1
  51. package/uni-ui/lib/uParse/src/components/wxParseTemplate6.vue +0 -1
  52. package/uni-ui/lib/uParse/src/components/wxParseTemplate7.vue +0 -1
  53. package/uni-ui/lib/uParse/src/components/wxParseTemplate8.vue +0 -1
  54. package/uni-ui/lib/uParse/src/components/wxParseTemplate9.vue +0 -1
  55. package/uni-ui/lib/uParse/src/components/wxParseVideo.vue +0 -1
  56. package/uni-ui/lib/uParse/src/editor.css +0 -495
  57. package/uni-ui/lib/uParse/src/wxParse.vue +0 -1
  58. /package/{uni-ui/lib → other}/api-set-tabbar.nvue +0 -0
  59. /package/{uni-ui/lib → other}/mpvue-echarts/src/echarts.vue +0 -0
  60. /package/{uni-ui/lib → other}/mpvue-echarts/src/style.css +0 -0
  61. /package/{uni-ui/lib → other}/mpvue-echarts/src/wx-canvas.js +0 -0
  62. /package/{uni-ui/lib → other}/product.vue +0 -0
  63. /package/{uni-ui/lib → other}/style.css +0 -0
  64. /package/{uni-ui/lib → other}/tab-nvue/mediaList.vue +0 -0
  65. /package/{uni-ui/lib → other}/u-charts/u-charts.js +0 -0
  66. /package/{uni-ui/lib/uParse/src → other/uParse}/wxParse.css +0 -0
  67. /package/{uni-ui/lib/amap-wx → plugins/map}/lib/amap-wx.js +0 -0
  68. /package/{uni-ui/lib/mpvue-citypicker → ui-cv/components/cv-geo-region}/mpvueCityPicker.vue +0 -0
  69. /package/{uni-ui/lib/marked → ui-cv/components/cv-markdown-show}/lib/marked.js +0 -0
@@ -1,175 +0,0 @@
1
- class GestureLock {
2
-
3
- constructor(containerWidth, cycleRadius) {
4
- this.containerWidth = containerWidth; // 容器宽度
5
- this.cycleRadius = cycleRadius; // 圆的半径
6
-
7
- this.circleArray = []; // 全部圆的对象数组
8
- this.checkPoints = []; // 选中的圆的对象数组
9
- this.lineArray = []; // 已激活锁之间的线段数组
10
- this.lastCheckPoint = 0; // 最后一个激活的锁
11
- this.offsetX = 0; // 容器的 X 偏移
12
- this.offsetY = 0; // 容器的 Y 偏移
13
- this.activeLine = {}; // 最后一个激活的锁与当前位置之间的线段
14
-
15
- this.windowWidth = wx.getSystemInfoSync().windowWidth; // 窗口大小(用于rpx 和 px 转换)
16
-
17
- this.initCircleArray();
18
- }
19
-
20
- // 初始化 画布上的 9个圆
21
- initCircleArray() {
22
- const cycleMargin = (this.containerWidth - 6 * this.cycleRadius) / 6;
23
- let count = 0;
24
- for (let i = 0; i < 3; i++) {
25
- for (let j = 0; j < 3; j++) {
26
- count++;
27
- this.circleArray.push({
28
- count: count,
29
- x: this.rpxTopx((cycleMargin + this.cycleRadius) * (j * 2 + 1)),
30
- y: this.rpxTopx((cycleMargin + this.cycleRadius) * (i * 2 + 1)),
31
- radius: this.rpxTopx(this.cycleRadius),
32
- check: false,
33
- style: {
34
- left: (cycleMargin + this.cycleRadius) * (j * 2 + 1) - this.cycleRadius + 'rpx',
35
- top: (cycleMargin + this.cycleRadius) * (i * 2 + 1) - this.cycleRadius + 'rpx',
36
- width: this.cycleRadius * 2 + 'rpx',
37
- }
38
- });
39
- }
40
- }
41
- }
42
-
43
- onTouchStart(e) {
44
- this.setOffset(e);
45
- this.checkTouch({
46
- x: e.touches[0].pageX - this.offsetX,
47
- y: e.touches[0].pageY - this.offsetY
48
- });
49
- }
50
-
51
- onTouchMove(e) {
52
- this.moveDraw(e)
53
- }
54
-
55
- onTouchEnd(e) {
56
- const checkPoints = this.checkPoints;
57
- this.reset();
58
- return checkPoints;
59
- }
60
-
61
- // 初始化 偏移量
62
- setOffset(e) {
63
- this.offsetX = e.currentTarget.offsetLeft;
64
- this.offsetY = e.currentTarget.offsetTop;
65
- }
66
-
67
- // 检测当时 触摸位置是否位于 锁上
68
- checkTouch({
69
- x,
70
- y
71
- }) {
72
- for (let i = 0; i < this.circleArray.length; i++) {
73
- let point = this.circleArray[i];
74
- if (this.isPointInCycle(x, y, point.x, point.y, point.radius)) {
75
- if (!point.check) {
76
- this.checkPoints.push(point.count);
77
- if (this.lastCheckPoint != 0) {
78
- // 已激活锁之间的线段
79
- const line = this.drawLine(this.lastCheckPoint, point);
80
- this.lineArray.push(line);
81
- }
82
- this.lastCheckPoint = point;
83
- }
84
- point.check = true;
85
- return;
86
- }
87
- }
88
- }
89
-
90
- // 画线 - 返回 样式 对象
91
- drawLine(start, end) {
92
- const width = this.getPointDis(start.x, start.y, end.x, end.y);
93
- const rotate = this.getAngle(start, end);
94
-
95
- return {
96
- activeLeft: start.x + 'px',
97
- activeTop: start.y + 'px',
98
- activeWidth: width + 'px',
99
- activeRotate: rotate + 'deg'
100
- }
101
-
102
- }
103
-
104
- // 获取 画线的 角度
105
- getAngle(start, end) {
106
- var diff_x = end.x - start.x,
107
- diff_y = end.y - start.y;
108
- if (diff_x >= 0) {
109
- return 360 * Math.atan(diff_y / diff_x) / (2 * Math.PI);
110
- } else {
111
- return 180 + 360 * Math.atan(diff_y / diff_x) / (2 * Math.PI);
112
- }
113
- }
114
-
115
- // 判断 当前点是否位于 锁内
116
- isPointInCycle(x, y, circleX, circleY, radius) {
117
- return (this.getPointDis(x, y, circleX, circleY) < radius) ? true : false;
118
- }
119
-
120
- // 获取两点之间距离
121
- getPointDis(ax, ay, bx, by) {
122
- return Math.sqrt(Math.pow(ax - bx, 2) + Math.pow(ay - by, 2));
123
- }
124
-
125
- // 移动 绘制
126
- moveDraw(e) {
127
- // 画经过的圆
128
- const x = e.touches[0].pageX - this.offsetX;
129
- const y = e.touches[0].pageY - this.offsetY;
130
- this.checkTouch({
131
- x,
132
- y
133
- });
134
-
135
- // 画 最后一个激活的锁与当前位置之间的线段
136
- this.activeLine = this.drawLine(this.lastCheckPoint, {
137
- x,
138
- y
139
- });
140
- }
141
-
142
- // 使 画布 恢复初始状态
143
- reset() {
144
- this.circleArray.forEach((item) => {
145
- item.check = false;
146
- });
147
- this.checkPoints = [];
148
- this.lineArray = [];
149
- this.activeLine = {};
150
- this.lastCheckPoint = 0;
151
- }
152
-
153
-
154
- // 获取 最后一个激活的锁与当前位置之间的线段
155
- getActiveLine() {
156
- return this.activeLine;
157
- }
158
-
159
- // 获取 圆对象数组
160
- getCycleArray() {
161
- return this.circleArray;
162
- }
163
-
164
- // 获取 已激活锁之间的线段
165
- getLineArray() {
166
- return this.lineArray;
167
- }
168
-
169
- // 将 RPX 转换成 PX
170
- rpxTopx(rpx) {
171
- return rpx / 750 * this.windowWidth;
172
- }
173
- }
174
-
175
- export default GestureLock;
@@ -1,2 +0,0 @@
1
-
2
- @import url("../wxParse.css");
@@ -1 +0,0 @@
1
- <template>
2
  <audio
3
1
  :id="node.attr.id"
4
2
  :class="node.classStr"
5
3
  :style="node.styleStr"
6
4
  :src="node.attr.src"
7
5
  :loop="node.attr.loop"
8
6
  :poster="node.attr.poster"
9
7
  :name="node.attr.name"
10
8
  :author="node.attr.author"
11
9
  controls></audio>
12
10
  name: 'wxParseAudio',
13
11
  props: {
14
12
  node: {
15
13
  type: Object,
16
14
  default() {
17
15
  return {};
18
16
  },
19
17
  },
20
18
  },
@@ -1 +0,0 @@
1
- <template>
@@ -1,3 +0,0 @@
1
- <template>
2
- @import './style.css';
3
- </style>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
@@ -1 +0,0 @@
1
- <template>
2
  <!--增加video标签支持,并循环添加-->
3
1
  <view :class="node.classStr" :style="node.styleStr">
4
2
  <video :class="node.classStr" :style="node.styleStr" class="video-video" :src="node.attr.src"></video>
5
3
  </view>
6
4
  name: 'wxParseVideo',
7
5
  props: {
8
6
  node: {},
9
7
  },