@10yun/cv-mobile-ui 0.5.9 → 0.5.10
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/extend/permission.js +1 -2
- package/package.json +1 -1
- package/plugins/uni-richText.js +1 -1
- package/plugins/uni-socket.js +6 -8
- package/ui-cv/cv-geo-local/cv-geo-local.vue +0 -1
- package/ui-cv/cv-layout-topbar/cv-layout-topbar.vue +238 -0
- package/ui-cv/cv-markdown-show/lib/highlight/uni-highlight.min.js +9001 -5133
- package/ui-sdks/sdk-app-update/img/logo.png +0 -0
- package/ui-sdks/sdk-app-update/img/update_bg.png +0 -0
- package/ui-sdks/sdk-app-update/img/update_bg_top.png +0 -0
- package/{ui-cv/cv-update-app/cv-update-app.vue → ui-sdks/sdk-app-update/sdk-app-update.vue} +2 -2
- package/ui-sdks/sdk-app-update/xxxx +62 -0
- package/ui-sdks/sdk-privacy-policy/sdk-privacy-policy.vue +113 -0
- package/ui-sdks/sdk-u-charts/app-echarts.min.js +23 -0
- package/ui-sdks/sdk-u-charts/config-echarts.js +420 -0
- package/ui-sdks/sdk-u-charts/config-ucharts.js +630 -0
- package/ui-sdks/sdk-u-charts/h5-echarts.min.js +23 -0
- package/ui-sdks/sdk-u-charts/u-charts.js +7398 -0
- package/ui-sdks/sdk-u-charts/u-charts.min.js +1 -0
- package/ui-sdks/sdk-webview-main/WebViewMain.vue +1 -0
- package/ui-sdks/sdk-webview-main/main.js +0 -0
- package/ui-sdks/sdk-webview-main/mixin.js +0 -0
- package/ui-uni/uParse/src/components/wxParseAudio.vue +26 -0
- package/ui-uni/uParse/src/components/wxParseImg.vue +94 -0
- package/ui-uni/uParse/src/components/wxParseTable.vue +55 -0
- package/ui-uni/uParse/src/components/wxParseTemplate0.vue +103 -0
- package/ui-uni/uParse/src/components/wxParseTemplate1.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate10.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate11.vue +86 -0
- package/ui-uni/uParse/src/components/wxParseTemplate2.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate3.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate4.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate5.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate6.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate7.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate8.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseTemplate9.vue +88 -0
- package/ui-uni/uParse/src/components/wxParseVideo.vue +15 -0
- package/ui-uni/uParse/src/editor.css +495 -0
- package/ui-uni/uParse/src/libs/html2json.js +261 -0
- package/ui-uni/uParse/src/libs/htmlparser.js +156 -0
- package/ui-uni/uParse/src/libs/wxDiscode.js +195 -0
- package/ui-uni/uParse/src/wxParse.css +270 -0
- package/ui-uni/uParse/src/wxParse.vue +206 -0
package/extend/permission.js
CHANGED
package/package.json
CHANGED
package/plugins/uni-richText.js
CHANGED
package/plugins/uni-socket.js
CHANGED
|
@@ -17,7 +17,7 @@ var pagelist = [];
|
|
|
17
17
|
//pagetype = ''; //msglist , chat
|
|
18
18
|
//chat_id = ''; //when chat
|
|
19
19
|
|
|
20
|
-
const
|
|
20
|
+
const SocketClass = {
|
|
21
21
|
/**
|
|
22
22
|
* 主动关闭,监听端口
|
|
23
23
|
*/
|
|
@@ -49,8 +49,8 @@ const ctoSocketClass = {
|
|
|
49
49
|
console.log('尝试断线重连');
|
|
50
50
|
clearInterval(timer);
|
|
51
51
|
if (s_data.reconnet_times <= s_data.limit_times) {
|
|
52
|
-
|
|
53
|
-
|
|
52
|
+
SocketClass.close_socket();
|
|
53
|
+
SocketClass.init();
|
|
54
54
|
s_data.reconnet_times++;
|
|
55
55
|
}
|
|
56
56
|
return;
|
|
@@ -81,7 +81,7 @@ const ctoSocketClass = {
|
|
|
81
81
|
s_data.reconnet_times = 0;
|
|
82
82
|
console.log('WebSocket已打开!');
|
|
83
83
|
console.log('connect success', successRes);
|
|
84
|
-
|
|
84
|
+
SocketClass.xintiaoFunc();
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
});
|
|
@@ -103,7 +103,7 @@ const ctoSocketClass = {
|
|
|
103
103
|
setTimeout(function () {
|
|
104
104
|
console.log('监听socket失败 尝试重新连接');
|
|
105
105
|
if (s_data.reconnet_times <= s_data.limit_times) {
|
|
106
|
-
|
|
106
|
+
SocketClass.init();
|
|
107
107
|
s_data.reconnet_times++;
|
|
108
108
|
}
|
|
109
109
|
return;
|
|
@@ -171,6 +171,4 @@ function receive_data(data) {
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
|
|
174
|
-
|
|
175
|
-
ctoSocketClass: ctoSocketClass
|
|
176
|
-
};
|
|
174
|
+
export default SocketClass;
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view>
|
|
3
|
+
<view class="cv-topbar-wrap">
|
|
4
|
+
<text class="cv-topbar-bg"></text>
|
|
5
|
+
<view class="cv-topbar-main">
|
|
6
|
+
<view class="cv-topbar-lt" @tap="bindLeftFunc">
|
|
7
|
+
<text v-if="leftText">{{ leftText }}</text>
|
|
8
|
+
<cv-icons v-if="leftIcon" :type="leftIcon" size="18" color="#fff" />
|
|
9
|
+
</view>
|
|
10
|
+
<view class="cv-topbar-center">
|
|
11
|
+
<view class="cv-topbar-title">{{ centerText }}</view>
|
|
12
|
+
</view>
|
|
13
|
+
<view class="cv-topbar-rt" @tap="bindRightFunc">
|
|
14
|
+
<cv-icons v-if="rightIcon" :type="rightIcon" size="18" color="#fff" />
|
|
15
|
+
<text v-if="rightText">{{ rightText }}</text>
|
|
16
|
+
</view>
|
|
17
|
+
</view>
|
|
18
|
+
</view>
|
|
19
|
+
<view class="cv-topbar-fixhold">
|
|
20
|
+
<view></view>
|
|
21
|
+
<view></view>
|
|
22
|
+
</view>
|
|
23
|
+
</view>
|
|
24
|
+
</template>
|
|
25
|
+
<script>
|
|
26
|
+
export default {
|
|
27
|
+
// emits: {
|
|
28
|
+
// leftFunc: (value) => {
|
|
29
|
+
// if (typeof value === 'string') {
|
|
30
|
+
// return true;
|
|
31
|
+
// } else {
|
|
32
|
+
// return false;
|
|
33
|
+
// }
|
|
34
|
+
// },
|
|
35
|
+
// rightFunc: (value) => {
|
|
36
|
+
// console.log('value---', value);
|
|
37
|
+
// if (typeof value === 'string') {
|
|
38
|
+
// return true;
|
|
39
|
+
// } else {
|
|
40
|
+
// return false;
|
|
41
|
+
// }
|
|
42
|
+
// }
|
|
43
|
+
// },
|
|
44
|
+
emits: ['leftFunc', 'rightFunc'],
|
|
45
|
+
props: {
|
|
46
|
+
leftText: '',
|
|
47
|
+
leftIcon: '',
|
|
48
|
+
centerText: '',
|
|
49
|
+
rightText: '',
|
|
50
|
+
rightIcon: ''
|
|
51
|
+
// rightFunc: {
|
|
52
|
+
// type: Function,
|
|
53
|
+
// default: () => {}
|
|
54
|
+
// }
|
|
55
|
+
},
|
|
56
|
+
data() {
|
|
57
|
+
return {};
|
|
58
|
+
},
|
|
59
|
+
created() {
|
|
60
|
+
console.log('----onRightFunc----', this.$attrs.onRightFunc);
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
bindLeftFunc() {
|
|
64
|
+
const result = this.$emit('leftFunc');
|
|
65
|
+
// if (!result) {
|
|
66
|
+
// uni.navigateBack({
|
|
67
|
+
// // 返回
|
|
68
|
+
// delta: 1
|
|
69
|
+
// });
|
|
70
|
+
// }
|
|
71
|
+
},
|
|
72
|
+
bindRightFunc() {
|
|
73
|
+
try {
|
|
74
|
+
this.$emit('rightFunc');
|
|
75
|
+
} catch (e) {
|
|
76
|
+
console.log('--222--');
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
</script>
|
|
82
|
+
<style>
|
|
83
|
+
.cv-topbar-wrap {
|
|
84
|
+
width: 100%;
|
|
85
|
+
top: -1px;
|
|
86
|
+
right: 0px;
|
|
87
|
+
display: flex;
|
|
88
|
+
flex-direction: column;
|
|
89
|
+
position: fixed;
|
|
90
|
+
height: auto;
|
|
91
|
+
z-index: 20;
|
|
92
|
+
/* #ifdef H5 */
|
|
93
|
+
margin-top: 44px;
|
|
94
|
+
/* #endif */
|
|
95
|
+
margin-top: 0 !important;
|
|
96
|
+
}
|
|
97
|
+
.cv-topbar-bg {
|
|
98
|
+
display: block;
|
|
99
|
+
width: 100%;
|
|
100
|
+
height: var(--status-bar-height);
|
|
101
|
+
background: #409eff;
|
|
102
|
+
}
|
|
103
|
+
.cv-topbar-main {
|
|
104
|
+
box-sizing: border-box;
|
|
105
|
+
width: 100%;
|
|
106
|
+
height: 44px;
|
|
107
|
+
padding-right: 16rpx;
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
background: #409eff;
|
|
111
|
+
}
|
|
112
|
+
.cv-topbar-main > image {
|
|
113
|
+
width: 25px;
|
|
114
|
+
height: 25px;
|
|
115
|
+
margin-left: 16rpx;
|
|
116
|
+
}
|
|
117
|
+
.cv-topbar-main > text {
|
|
118
|
+
width: 35px;
|
|
119
|
+
height: 35px;
|
|
120
|
+
margin-left: 16rpx;
|
|
121
|
+
color: #f6f6f6;
|
|
122
|
+
font-size: 56rpx;
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: center;
|
|
125
|
+
justify-content: center;
|
|
126
|
+
}
|
|
127
|
+
.cv-topbar-main > view.item {
|
|
128
|
+
margin: 0;
|
|
129
|
+
margin-left: 16rpx;
|
|
130
|
+
height: 35px;
|
|
131
|
+
width: 35px;
|
|
132
|
+
display: flex;
|
|
133
|
+
flex-direction: column;
|
|
134
|
+
align-items: center;
|
|
135
|
+
justify-content: center;
|
|
136
|
+
color: #f1f1f1;
|
|
137
|
+
}
|
|
138
|
+
.cv-topbar-main > view.item > text {
|
|
139
|
+
display: block;
|
|
140
|
+
font-size: 12px;
|
|
141
|
+
line-height: 100%;
|
|
142
|
+
color: #ececec;
|
|
143
|
+
}
|
|
144
|
+
.cv-topbar-main > view.search-input {
|
|
145
|
+
height: 30px;
|
|
146
|
+
flex: 1;
|
|
147
|
+
background-color: rgba(255, 255, 255, 0.5);
|
|
148
|
+
border-radius: 12rpx;
|
|
149
|
+
font-size: 28rpx;
|
|
150
|
+
margin: 0;
|
|
151
|
+
margin-left: 16rpx;
|
|
152
|
+
padding-right: 16rpx;
|
|
153
|
+
padding-left: 16rpx;
|
|
154
|
+
display: flex;
|
|
155
|
+
flex-direction: row;
|
|
156
|
+
align-items: center;
|
|
157
|
+
}
|
|
158
|
+
.cv-topbar-main > view.search-input > input {
|
|
159
|
+
flex: 1;
|
|
160
|
+
border: none;
|
|
161
|
+
min-height: auto;
|
|
162
|
+
display: inline-block;
|
|
163
|
+
color: #fff;
|
|
164
|
+
font-size: 15px;
|
|
165
|
+
}
|
|
166
|
+
.cv-topbar-main > view.search-input > image {
|
|
167
|
+
width: 16px;
|
|
168
|
+
height: 16px;
|
|
169
|
+
margin-right: 5px;
|
|
170
|
+
}
|
|
171
|
+
.cv-topbar-main > view.item > image {
|
|
172
|
+
width: 25px;
|
|
173
|
+
height: 25px;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/* 占位 */
|
|
177
|
+
.cv-topbar-fixhold {
|
|
178
|
+
width: 100%;
|
|
179
|
+
display: flex;
|
|
180
|
+
flex-direction: column;
|
|
181
|
+
}
|
|
182
|
+
.cv-topbar-fixhold > view:nth-of-type(1) {
|
|
183
|
+
width: 100%;
|
|
184
|
+
height: var(--status-bar-height);
|
|
185
|
+
}
|
|
186
|
+
.cv-topbar-fixhold > view:nth-of-type(2) {
|
|
187
|
+
width: 100%;
|
|
188
|
+
height: 44px;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.cv-topbar-center {
|
|
192
|
+
color: #fff;
|
|
193
|
+
font-weight: 700;
|
|
194
|
+
font-size: 16px;
|
|
195
|
+
text-align: center;
|
|
196
|
+
height: 20px;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
.cv-topbar-title {
|
|
200
|
+
position: absolute;
|
|
201
|
+
left: 70px;
|
|
202
|
+
right: 70px;
|
|
203
|
+
min-width: 0;
|
|
204
|
+
user-select: auto;
|
|
205
|
+
}
|
|
206
|
+
.cv-topbar-lt {
|
|
207
|
+
position: absolute;
|
|
208
|
+
left: 10px;
|
|
209
|
+
flex-direction: row-reverse;
|
|
210
|
+
font-size: 28rpx;
|
|
211
|
+
color: #fff;
|
|
212
|
+
font-weight: normal;
|
|
213
|
+
display: flex;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.cv-topbar-lt text {
|
|
217
|
+
flex: 1;
|
|
218
|
+
font-size: 15px;
|
|
219
|
+
text-align: center;
|
|
220
|
+
height: 20px;
|
|
221
|
+
}
|
|
222
|
+
.cv-topbar-rt {
|
|
223
|
+
position: absolute;
|
|
224
|
+
right: 10px;
|
|
225
|
+
flex-direction: row-reverse;
|
|
226
|
+
font-size: 28rpx;
|
|
227
|
+
color: #fff;
|
|
228
|
+
font-weight: normal;
|
|
229
|
+
display: flex;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.cv-topbar-rt text {
|
|
233
|
+
flex: 1;
|
|
234
|
+
font-size: 15px;
|
|
235
|
+
text-align: center;
|
|
236
|
+
height: 20px;
|
|
237
|
+
}
|
|
238
|
+
</style>
|