@10yun/cv-mobile-ui 0.5.61 → 0.5.63
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/package.json +1 -1
- package/plugins/uni-extend.js +109 -0
- package/ui-cv/components/cv-dialog-bottom/cv-dialog-bottom.vue +71 -47
- package/ui-cv/components/cv-dialog-full/cv-dialog-full.vue +20 -17
- package/ui-cv/components/cv-upload-avatar/cv-upload-avatar.vue +0 -1
- package/ui-cv/components/cv-upload-image/cv-upload-image.vue +0 -1
- package/ui-fireui/components/u-action-sheet/u-action-sheet.vue +46 -16
- package/ui-fireui/components/u-alert/u-alert.vue +11 -5
- package/ui-fireui/components/u-badge/u-badge.vue +52 -69
- package/ui-fireui/components/u-bottom-navigation/u-bottom-navigation.vue +28 -20
- package/ui-fireui/components/u-bottom-popup/u-bottom-popup.vue +40 -11
- package/ui-fireui/components/u-bubble-popup/u-bubble-popup.vue +3 -6
- package/ui-fireui/components/u-button/u-button.vue +262 -259
- package/ui-fireui/components/u-calendar/u-calendar.vue +227 -44
- package/ui-fireui/components/u-calendar/u-calendar2.js +562 -0
- package/ui-fireui/components/u-card/u-card.vue +50 -32
- package/ui-fireui/components/u-cascade-selection/u-cascade-selection.vue +197 -74
- package/ui-fireui/components/u-circular-progress/u-circular-progress.vue +324 -0
- package/ui-fireui/components/u-clipboard2/tui-clipboard.js +53 -0
- package/ui-fireui/components/u-collapse/u-collapse.vue +8 -8
- package/ui-fireui/components/u-config/index.js +129 -0
- package/ui-fireui/components/u-count-down/u-count-down.vue +124 -19
- package/ui-fireui/components/u-datetime/u-datetime.vue +416 -176
- package/ui-fireui/components/u-divider/u-divider.vue +3 -3
- package/ui-fireui/components/u-drawer/u-drawer.vue +55 -12
- package/ui-fireui/components/u-dropdown-list/u-dropdown-list.vue +103 -0
- package/ui-fireui/components/u-fab/u-fab.vue +344 -0
- package/ui-fireui/components/u-footer/u-footer.vue +148 -0
- package/ui-fireui/components/u-grid/u-grid.vue +2 -8
- package/ui-fireui/components/u-grid-item/u-grid-item.vue +22 -5
- package/ui-fireui/components/u-icon/u-icon-new.js +190 -0
- package/ui-fireui/components/u-icon/u-icon-new.vue +100 -0
- package/ui-fireui/components/u-image-cropper/u-image-cropper.vue +1144 -0
- package/ui-fireui/components/u-image-group/u-image-group.vue +164 -0
- package/ui-fireui/components/u-keyboard/u-keyboard.vue +3 -2
- package/ui-fireui/components/u-keyboard-input/u-keyboard-input.vue +1 -1
- package/ui-fireui/components/u-list-cell/u-list-cell.vue +82 -72
- package/ui-fireui/components/u-list-view/u-list-view.vue +33 -8
- package/ui-fireui/components/u-loading/u-loading.vue +107 -27
- package/ui-fireui/components/u-loadmore/u-loadmore.vue +21 -3
- package/ui-fireui/components/u-modal/u-modal.vue +140 -176
- package/ui-fireui/components/u-navigation-bar/u-navigation-bar.vue +121 -28
- package/ui-fireui/components/u-no-data/u-no-data.vue +58 -20
- package/ui-fireui/components/u-nomore/u-nomore.vue +5 -4
- package/ui-fireui/components/u-numberbox/u-numberbox.vue +88 -45
- package/ui-fireui/components/u-picture-cropper/u-picture-cropper.vue +94 -36
- package/ui-fireui/components/u-picture-cropper/u-picture-cropper.wxs +27 -17
- package/ui-fireui/components/u-rate/u-rate.vue +197 -0
- package/ui-fireui/components/u-round-progress/u-round-progress.vue +62 -42
- package/ui-fireui/components/u-scroll-top/u-scroll-top.vue +4 -3
- package/ui-fireui/components/u-section/u-section.vue +149 -0
- package/ui-fireui/components/u-skeleton/u-skeleton.vue +37 -6
- package/ui-fireui/components/u-steps/u-steps.vue +110 -27
- package/ui-fireui/components/u-sticky/u-sticky.vue +35 -21
- package/ui-fireui/components/u-sticky-wxs/u-sticky-wxs.vue +7 -4
- package/ui-fireui/components/u-sticky-wxs/u-sticky.wxs +39 -36
- package/ui-fireui/components/u-swipe-action/u-swipe-action.vue +76 -19
- package/ui-fireui/components/u-tabbar/u-tabbar.vue +71 -38
- package/ui-fireui/components/u-tabs/u-tabs.vue +133 -51
- package/ui-fireui/components/u-tag/u-tag.vue +109 -226
- package/ui-fireui/components/u-time-axis/u-time-axis.vue +1 -1
- package/ui-fireui/components/u-timeaxis-item/u-timeaxis-item.vue +1 -1
- package/ui-fireui/components/u-tips/u-tips.vue +35 -15
- package/ui-fireui/components/u-toast/u-toast.vue +9 -5
- package/ui-fireui/components/u-top-dropdown/u-top-dropdown.vue +8 -6
- package/ui-fireui/components/u-upload/u-upload-old.vue +462 -0
- package/ui-fireui/components/u-upload/u-upload.vue +648 -446
- package/ui-fireui/components/u-white-space/u-white-space.vue +68 -0
- package/ui-fireui/components/u-wing-blank/u-wing-blank.vue +100 -0
- package/uview-plus/changelog-v2.md +77 -6
- package/uview-plus/changelog-wu.md +41 -14
- package/uview-plus/changelog.md +375 -59
- package/uview-plus/libs/ctocode/index.js +1 -0
- package/{plugins/uni-richText.js → uview-plus/libs/ctocode/richText.js} +28 -32
- package/uview-plus/package-wu.json +5 -37
- package/uview-plus/package.json +13 -14
- package/plugins/tui-validation.js +0 -279
- package/plugins/uni-scanCode.js +0 -76
- package/plugins/uni-socket.js +0 -174
- package/plugins/uniMap.js +0 -48
- package/plugins/utils.js +0 -13
- package/uview-plus/changelog-wu-tool.md +0 -21
- package/uview-plus/package-wu-tool.json +0 -84
package/plugins/uni-socket.js
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
import cConfig from '@/utils/ctoui-config.js';
|
|
2
|
-
|
|
3
|
-
const SocketConnectInit = 'JKLINK_IM|connec_init|cucenterTC|' + cConfig.syOpenAppsId + '|';
|
|
4
|
-
const SocketConnectRefresh = 'JKLINK_IM|connec_refresh|cucenterTC|' + cConfig.syOpenAppsId + '|';
|
|
5
|
-
const s_data = {
|
|
6
|
-
beat_duration: 30000, //心跳间隔
|
|
7
|
-
limit_times: 60, //重连限制
|
|
8
|
-
reconnet_times: 0 //当前重连次数
|
|
9
|
-
};
|
|
10
|
-
var socket_status = false; //回话状态(主动)
|
|
11
|
-
var connect_status = false; //连接状态(被动)
|
|
12
|
-
//心跳时间
|
|
13
|
-
// 账户信息存在时执行
|
|
14
|
-
//页面栈,
|
|
15
|
-
var pagelist = [];
|
|
16
|
-
//this = '';
|
|
17
|
-
//pagetype = ''; //msglist , chat
|
|
18
|
-
//chat_id = ''; //when chat
|
|
19
|
-
|
|
20
|
-
const SocketClass = {
|
|
21
|
-
/**
|
|
22
|
-
* 主动关闭,监听端口
|
|
23
|
-
*/
|
|
24
|
-
close_socket: function () {
|
|
25
|
-
socket_status = false;
|
|
26
|
-
uni.closeSocket({
|
|
27
|
-
url: cConfig._URL_WSS_IM1_
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
xintiaoFunc: function () {
|
|
31
|
-
let timer = setInterval(function () {
|
|
32
|
-
if (!socket_status) {
|
|
33
|
-
console.log('已关闭心跳');
|
|
34
|
-
clearInterval(timer);
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
//发送心跳
|
|
38
|
-
if (connect_status)
|
|
39
|
-
uni.sendSocketMessage({
|
|
40
|
-
data: SocketConnectRefresh + this.syAppAccess('ucenter_id'),
|
|
41
|
-
success: function (successRes) {
|
|
42
|
-
s_data.reconnet_times = 0;
|
|
43
|
-
},
|
|
44
|
-
fail: function (failRes) {
|
|
45
|
-
console.log('发送失败', failRes);
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
else {
|
|
49
|
-
console.log('尝试断线重连');
|
|
50
|
-
clearInterval(timer);
|
|
51
|
-
if (s_data.reconnet_times <= s_data.limit_times) {
|
|
52
|
-
SocketClass.close_socket();
|
|
53
|
-
SocketClass.init();
|
|
54
|
-
s_data.reconnet_times++;
|
|
55
|
-
}
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
}, s_data.beat_duration);
|
|
59
|
-
},
|
|
60
|
-
init: function () {
|
|
61
|
-
// // uni.showLoading({s
|
|
62
|
-
// // title: '正在初始化客户端...',
|
|
63
|
-
// // mask: true
|
|
64
|
-
// // })
|
|
65
|
-
|
|
66
|
-
if (!this.syAppAccess('ucenter_id')) {
|
|
67
|
-
console.log('未登录');
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
socket_status = true;
|
|
71
|
-
// 连接端口
|
|
72
|
-
uni.connectSocket({
|
|
73
|
-
url: cConfig._URL_WSS_IM1_
|
|
74
|
-
});
|
|
75
|
-
// 端口++开启
|
|
76
|
-
uni.onSocketOpen(function (res) {
|
|
77
|
-
uni.sendSocketMessage({
|
|
78
|
-
data: SocketConnectInit + this.syAppAccess('ucenter_id'),
|
|
79
|
-
success: function (successRes) {
|
|
80
|
-
connect_status = true;
|
|
81
|
-
s_data.reconnet_times = 0;
|
|
82
|
-
console.log('WebSocket已打开!');
|
|
83
|
-
console.log('connect success', successRes);
|
|
84
|
-
SocketClass.xintiaoFunc();
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
});
|
|
88
|
-
// 接收端口消息
|
|
89
|
-
uni.onSocketMessage(function (res) {
|
|
90
|
-
let data = JSON.parse(res.data);
|
|
91
|
-
if (data.wsdoflag == 'connec_refresh') return;
|
|
92
|
-
console.log('收到服务器内容:', data);
|
|
93
|
-
receive_data(data);
|
|
94
|
-
});
|
|
95
|
-
// 线上端口关闭
|
|
96
|
-
uni.onSocketClose(function (res) {
|
|
97
|
-
connect_status = false;
|
|
98
|
-
console.log('WS连接已断开,推送关闭!');
|
|
99
|
-
});
|
|
100
|
-
//监听socket失败
|
|
101
|
-
uni.onSocketError(function (res) {
|
|
102
|
-
console.log('WebSocket连接打开失败,请检查!');
|
|
103
|
-
setTimeout(function () {
|
|
104
|
-
console.log('监听socket失败 尝试重新连接');
|
|
105
|
-
if (s_data.reconnet_times <= s_data.limit_times) {
|
|
106
|
-
SocketClass.init();
|
|
107
|
-
s_data.reconnet_times++;
|
|
108
|
-
}
|
|
109
|
-
return;
|
|
110
|
-
}, s_data.beat_duration);
|
|
111
|
-
});
|
|
112
|
-
},
|
|
113
|
-
|
|
114
|
-
set_page: function (type, _this, chat_id) {
|
|
115
|
-
//type为空默认关闭
|
|
116
|
-
if (!type) {
|
|
117
|
-
if (pagelist.length > 0) pagelist.pop();
|
|
118
|
-
return;
|
|
119
|
-
}
|
|
120
|
-
if (!connect_status) return;
|
|
121
|
-
//type msglist , chat
|
|
122
|
-
if (type != 'msglist' && type != 'chat') {
|
|
123
|
-
console.log('**set_page****type传参错误*********');
|
|
124
|
-
return;
|
|
125
|
-
}
|
|
126
|
-
if (type == 'chat' && (typeof chat_id != 'number' || !chat_id)) {
|
|
127
|
-
console.log('***set_page***chat_id传参错误*********');
|
|
128
|
-
return;
|
|
129
|
-
}
|
|
130
|
-
if (!_this) {
|
|
131
|
-
console.log('***set_page***this传参错误*********');
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
console.log('page:' + type + '载入完成');
|
|
135
|
-
let item = {
|
|
136
|
-
_this: _this,
|
|
137
|
-
type: type,
|
|
138
|
-
chat_id: chat_id || 0
|
|
139
|
-
};
|
|
140
|
-
if (type == 'msglist') pagelist = [item];
|
|
141
|
-
else pagelist[1] = item;
|
|
142
|
-
},
|
|
143
|
-
get_connect_status: function () {
|
|
144
|
-
return connect_status;
|
|
145
|
-
},
|
|
146
|
-
get_socket_status: function () {
|
|
147
|
-
return socket_status;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
//
|
|
151
|
-
/**
|
|
152
|
-
* 连接,监听端口
|
|
153
|
-
*/
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* 接收数据分发
|
|
158
|
-
*/
|
|
159
|
-
function receive_data(data) {
|
|
160
|
-
if (data.wsdoflag != 'user_creat_connect_customer_service' && data.wsdoflag != 'letter_new_record_insert') return;
|
|
161
|
-
for (let i in pagelist) {
|
|
162
|
-
let _this = pagelist[i]._this;
|
|
163
|
-
if (pagelist[i].type == 'msglist') {
|
|
164
|
-
console.log('set_socket_data msglist');
|
|
165
|
-
typeof _this.set_socket_data == 'function' && _this.set_socket_data(data);
|
|
166
|
-
}
|
|
167
|
-
if (pagelist[i].type == 'chat' && pagelist[i].chat_id == data.data[0].chat_id) {
|
|
168
|
-
console.log('set_socket_data chat');
|
|
169
|
-
typeof _this.set_socket_data == 'function' && _this.set_socket_data(data);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
export default SocketClass;
|
package/plugins/uniMap.js
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* uni-app 自带地图
|
|
3
|
-
*/
|
|
4
|
-
export default class uniMap {
|
|
5
|
-
/**
|
|
6
|
-
* 选择地图
|
|
7
|
-
* @param {Object} keyword 搜索关键字
|
|
8
|
-
* @return {Object}
|
|
9
|
-
*
|
|
10
|
-
* 位置名称:res.name
|
|
11
|
-
* 详细地址: res.address
|
|
12
|
-
* 纬度: res.latitude
|
|
13
|
-
* 经度:res.longitude
|
|
14
|
-
*/
|
|
15
|
-
static chooseLocation(keyword) {
|
|
16
|
-
return new Promise((resolve, reject) => {
|
|
17
|
-
uni.chooseLocation({
|
|
18
|
-
keyword: keyword,
|
|
19
|
-
success(res) {
|
|
20
|
-
resolve(res);
|
|
21
|
-
},
|
|
22
|
-
fail(err) {
|
|
23
|
-
reject(err);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* 打开地图
|
|
31
|
-
* @param {Object} lat 经度
|
|
32
|
-
* @param {Object} lng 纬度
|
|
33
|
-
*/
|
|
34
|
-
static openLocation(lat, lng) {
|
|
35
|
-
return new Promise((resolve, reject) => {
|
|
36
|
-
uni.openLocation({
|
|
37
|
-
latitude: lat,
|
|
38
|
-
longitude: lng,
|
|
39
|
-
success: function () {
|
|
40
|
-
resolve();
|
|
41
|
-
},
|
|
42
|
-
fail(err) {
|
|
43
|
-
reject(err);
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
}
|
|
48
|
-
}
|
package/plugins/utils.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
## 1.1.0(2023-09-13)
|
|
2
|
-
更新版本
|
|
3
|
-
## 1.0.9(2023-09-08)
|
|
4
|
-
修复Color方法引入路径错误
|
|
5
|
-
## 1.0.8(2023-09-05)
|
|
6
|
-
Color不在使用npm包,改为本地方法
|
|
7
|
-
## 1.0.7(2023-09-03)
|
|
8
|
-
修复引入错误
|
|
9
|
-
## 1.0.6(2023-09-03)
|
|
10
|
-
发布1.0.6版本
|
|
11
|
-
## 1.0.5(2023-08-30)
|
|
12
|
-
修复api部分未导入
|
|
13
|
-
## 1.0.4(2023-08-21)
|
|
14
|
-
修复Color API引入错误
|
|
15
|
-
## 1.0.3(2023-08-18)
|
|
16
|
-
新增颜色API,支持任意颜色格式转换,颜色亮度调节、颜色饱和度调节、亮度获取、颜色是否深/亮等
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
## 1.0.2(2023-08-16)
|
|
20
|
-
mixin交互节点信息根边距设置
|
|
21
|
-
mixin更新节点交互信息查询
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "",
|
|
3
|
-
"displayName": " 工具库 全面兼容小程序、nvue、vue2、vue3",
|
|
4
|
-
"version": "1.1.0",
|
|
5
|
-
"description": ",集成工具库,强大的Http请求封装,清晰的文档说明,开箱即用。方便使用,可以全局使用",
|
|
6
|
-
"keywords": [
|
|
7
|
-
"u-ui",
|
|
8
|
-
"工具库",
|
|
9
|
-
"多端全兼容"
|
|
10
|
-
],
|
|
11
|
-
"dependencies": {
|
|
12
|
-
"color": "^4.2.3"
|
|
13
|
-
},
|
|
14
|
-
"repository": "",
|
|
15
|
-
"engines": {},
|
|
16
|
-
"dcloudext": {
|
|
17
|
-
"type": "component-vue",
|
|
18
|
-
"sale": {
|
|
19
|
-
"regular": {
|
|
20
|
-
"price": "0.00"
|
|
21
|
-
},
|
|
22
|
-
"sourcecode": {
|
|
23
|
-
"price": "0.00"
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"contact": {
|
|
27
|
-
"qq": ""
|
|
28
|
-
},
|
|
29
|
-
"declaration": {
|
|
30
|
-
"ads": "无",
|
|
31
|
-
"data": "插件不采集任何数据",
|
|
32
|
-
"permissions": "无"
|
|
33
|
-
},
|
|
34
|
-
"npmurl": ""
|
|
35
|
-
},
|
|
36
|
-
"uni_modules": {
|
|
37
|
-
"dependencies": [],
|
|
38
|
-
"encrypt": [],
|
|
39
|
-
"platforms": {
|
|
40
|
-
"cloud": {
|
|
41
|
-
"tcb": "y",
|
|
42
|
-
"aliyun": "y"
|
|
43
|
-
},
|
|
44
|
-
"client": {
|
|
45
|
-
"Vue": {
|
|
46
|
-
"vue2": "y",
|
|
47
|
-
"vue3": "y"
|
|
48
|
-
},
|
|
49
|
-
"App": {
|
|
50
|
-
"app-vue": "y",
|
|
51
|
-
"app-nvue": "y"
|
|
52
|
-
},
|
|
53
|
-
"H5-mobile": {
|
|
54
|
-
"Safari": "y",
|
|
55
|
-
"Android Browser": "y",
|
|
56
|
-
"微信浏览器(Android)": "y",
|
|
57
|
-
"QQ浏览器(Android)": "y"
|
|
58
|
-
},
|
|
59
|
-
"H5-pc": {
|
|
60
|
-
"Chrome": "y",
|
|
61
|
-
"IE": "y",
|
|
62
|
-
"Edge": "y",
|
|
63
|
-
"Firefox": "y",
|
|
64
|
-
"Safari": "y"
|
|
65
|
-
},
|
|
66
|
-
"小程序": {
|
|
67
|
-
"微信": "y",
|
|
68
|
-
"阿里": "y",
|
|
69
|
-
"百度": "y",
|
|
70
|
-
"字节跳动": "y",
|
|
71
|
-
"QQ": "y",
|
|
72
|
-
"钉钉": "y",
|
|
73
|
-
"快手": "y",
|
|
74
|
-
"飞书": "y",
|
|
75
|
-
"京东": "y"
|
|
76
|
-
},
|
|
77
|
-
"快应用": {
|
|
78
|
-
"华为": "y",
|
|
79
|
-
"联盟": "y"
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|