@10yun/cv-mobile-ui 0.5.57 → 0.5.59

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.
@@ -4,6 +4,20 @@ export const openType = defineMixin({
4
4
  props: {
5
5
  openType: String
6
6
  },
7
+ // emits: [
8
+ // 'getphonenumber',
9
+ // 'getuserinfo',
10
+ // 'error',
11
+ // 'opensetting',
12
+ // 'launchapp',
13
+ // 'contact',
14
+ // 'chooseavatar',
15
+ // 'addgroupapp',
16
+ // 'chooseaddress',
17
+ // 'subscribe',
18
+ // 'login',
19
+ // 'im'
20
+ // ],
7
21
  methods: {
8
22
  onGetUserInfo(event) {
9
23
  this.$emit('getuserinfo', event.detail);
@@ -23,5 +37,26 @@ export const openType = defineMixin({
23
37
  onOpenSetting(event) {
24
38
  this.$emit('opensetting', event.detail);
25
39
  }
40
+ // onChooseavatar(event) {
41
+ // this.$emit('chooseavatar', event.detail);
42
+ // },
43
+ // onAgreeprivacyauthorization(event) {
44
+ // this.$emit('agreeprivacyauthorization', event.detail);
45
+ // },
46
+ // onAddgroupapp(event) {
47
+ // this.$emit('addgroupapp', event.detail);
48
+ // },
49
+ // onChooseaddress(event) {
50
+ // this.$emit('chooseaddress', event.detail);
51
+ // },
52
+ // onSubscribe(event) {
53
+ // this.$emit('subscribe', event.detail);
54
+ // },
55
+ // onLogin(event) {
56
+ // this.$emit('login', event.detail);
57
+ // },
58
+ // onIm(event) {
59
+ // this.$emit('im', event.detail);
60
+ // }
26
61
  }
27
62
  });
@@ -1,53 +0,0 @@
1
- /**
2
- * 复制文本 兼容H5
3
- * 来自 ThorUI www.thorui.cn | 文档地址: www.donarui.com
4
- * @author echo.
5
- * @version 1.0.0
6
- **/
7
- // #ifdef H5
8
- import ClipboardJS from '../js-sdk/clipboard.min.js';
9
- // #endif
10
- const thorui = {
11
- /**
12
- * data 需要复制的数据
13
- * callback 回调
14
- * e 当用户点击后需要先请求接口再进行复制时,需要传入此参数,或者将异步请求转为同步 (H5端)
15
- * **/
16
- getClipboardData: function (data, callback, e) {
17
- // #ifdef APP-PLUS || MP
18
- uni.setClipboardData({
19
- data: data,
20
- success(res) {
21
- 'function' == typeof callback && callback(true);
22
- },
23
- fail(res) {
24
- 'function' == typeof callback && callback(false);
25
- }
26
- });
27
- // #endif
28
-
29
- // #ifdef H5
30
- let event = window.event || e || {};
31
- let clipboard = new ClipboardJS('', {
32
- text: () => data
33
- });
34
- clipboard.on('success', (e) => {
35
- 'function' == typeof callback && callback(true);
36
- clipboard.off('success');
37
- clipboard.off('error');
38
- clipboard.destroy();
39
- });
40
- clipboard.on('error', (e) => {
41
- 'function' == typeof callback && callback(false);
42
- clipboard.off('success');
43
- clipboard.off('error');
44
- clipboard.destroy();
45
- });
46
- clipboard.onClick(event);
47
- // #endif
48
- }
49
- };
50
-
51
- export default {
52
- getClipboardData: thorui.getClipboardData
53
- };
@@ -1,139 +0,0 @@
1
- <template>
2
- <view class="uni-popup-share">
3
- <view class="uni-share-title">
4
- <text class="uni-share-title-text">{{ title }}</text>
5
- </view>
6
- <view class="uni-share-content">
7
- <view class="uni-share-content-box">
8
- <view class="uni-share-content-item" v-for="(item, index) in bottomData" :key="index" @click.stop="select(item, index)">
9
- <image class="uni-share-image" :src="item.icon" mode="aspectFill" />
10
- <text class="uni-share-text">{{ item.text }}</text>
11
- </view>
12
- </view>
13
- </view>
14
- <view class="uni-share-button-box">
15
- <button class="uni-share-button" @click="close">取消</button>
16
- </view>
17
- </view>
18
- </template>
19
-
20
- <script>
21
- export default {
22
- data() {
23
- return {
24
- bottomData: [
25
- { text: '微信', icon: 'grid-2.png', name: 'wx' },
26
- { text: '支付宝', icon: 'grid-8.png', name: 'wx' },
27
- { text: 'QQ', icon: 'gird-3.png', name: 'qq' },
28
- { text: '新浪', icon: 'grid-1.png', name: 'sina' },
29
- { text: '百度', icon: 'grid-7.png', name: 'copy' },
30
- { text: '其他', icon: 'grid-5.png', name: 'more' }
31
- ]
32
- };
33
- },
34
- created() {},
35
- methods: {
36
- /**
37
- * 选择内容
38
- */
39
- select(item, index) {
40
- this.$emit(
41
- 'select',
42
- {
43
- item,
44
- index
45
- },
46
- () => {
47
- this.popup.close();
48
- }
49
- );
50
- },
51
- /**
52
- * 关闭窗口
53
- */
54
- close() {
55
- this.popup.close();
56
- }
57
- }
58
- };
59
- </script>
60
- <style scoped>
61
- .uni-popup-share {
62
- background-color: #fff;
63
- }
64
- .uni-share-title {
65
- /* #ifndef APP-NVUE */
66
- display: flex;
67
- /* #endif */
68
- flex-direction: row;
69
- align-items: center;
70
- justify-content: center;
71
- height: 40px;
72
- }
73
- .uni-share-title-text {
74
- font-size: 14px;
75
- color: #666;
76
- }
77
- .uni-share-content {
78
- /* #ifndef APP-NVUE */
79
- display: flex;
80
- /* #endif */
81
- flex-direction: row;
82
- justify-content: center;
83
- padding-top: 10px;
84
- }
85
-
86
- .uni-share-content-box {
87
- /* #ifndef APP-NVUE */
88
- display: flex;
89
- /* #endif */
90
- flex-direction: row;
91
- flex-wrap: wrap;
92
- width: 360px;
93
- }
94
-
95
- .uni-share-content-item {
96
- width: 90px;
97
- /* #ifndef APP-NVUE */
98
- display: flex;
99
- /* #endif */
100
- flex-direction: column;
101
- justify-content: center;
102
- padding: 10px 0;
103
- align-items: center;
104
- }
105
-
106
- .uni-share-content-item:active {
107
- background-color: #f5f5f5;
108
- }
109
-
110
- .uni-share-image {
111
- width: 30px;
112
- height: 30px;
113
- }
114
-
115
- .uni-share-text {
116
- margin-top: 10px;
117
- font-size: 14px;
118
- color: #3b4144;
119
- }
120
-
121
- .uni-share-button-box {
122
- /* #ifndef APP-NVUE */
123
- display: flex;
124
- /* #endif */
125
- flex-direction: row;
126
- padding: 10px 15px;
127
- }
128
-
129
- .uni-share-button {
130
- flex: 1;
131
- border-radius: 50px;
132
- color: #666;
133
- font-size: 16px;
134
- }
135
-
136
- .uni-share-button::after {
137
- border-radius: 50px;
138
- }
139
- </style>
@@ -1,60 +0,0 @@
1
- export default {
2
- props: {
3
- openType: String
4
- },
5
- emits: [
6
- 'getphonenumber',
7
- 'getuserinfo',
8
- 'error',
9
- 'opensetting',
10
- 'launchapp',
11
- 'contact',
12
- 'chooseavatar',
13
- 'addgroupapp',
14
- 'chooseaddress',
15
- 'subscribe',
16
- 'login',
17
- 'im'
18
- ],
19
- methods: {
20
- onGetPhoneNumber(event) {
21
- this.$emit('getphonenumber', event.detail);
22
- },
23
- onGetUserInfo(event) {
24
- this.$emit('getuserinfo', event.detail);
25
- },
26
- onError(event) {
27
- this.$emit('error', event.detail);
28
- },
29
- onOpenSetting(event) {
30
- this.$emit('opensetting', event.detail);
31
- },
32
- onLaunchApp(event) {
33
- this.$emit('launchapp', event.detail);
34
- },
35
- onContact(event) {
36
- this.$emit('contact', event.detail);
37
- },
38
- onChooseavatar(event) {
39
- this.$emit('chooseavatar', event.detail);
40
- },
41
- onAgreeprivacyauthorization(event) {
42
- this.$emit('agreeprivacyauthorization', event.detail);
43
- },
44
- onAddgroupapp(event) {
45
- this.$emit('addgroupapp', event.detail);
46
- },
47
- onChooseaddress(event) {
48
- this.$emit('chooseaddress', event.detail);
49
- },
50
- onSubscribe(event) {
51
- this.$emit('subscribe', event.detail);
52
- },
53
- onLogin(event) {
54
- this.$emit('login', event.detail);
55
- },
56
- onIm(event) {
57
- this.$emit('im', event.detail);
58
- }
59
- }
60
- };