dingyantao 7 months ago
parent
commit
b1a504d5c9

+ 3
- 3
colorui/main.css View File

@@ -135,7 +135,7 @@ switch.checked::before {
135 135
 }
136 136
 
137 137
 
138
-/* #ifndef MP-ALIPAY */
138
+/* #ifndef MP-WEIXIN */
139 139
 
140 140
 radio::before,
141 141
 checkbox::before {
@@ -1877,7 +1877,7 @@ button.cuIcon.lg {
1877 1877
 }
1878 1878
 
1879 1879
 
1880
-/* #ifdef MP-ALIPAY */
1880
+/* #ifdef MP-WEIXIN */
1881 1881
 
1882 1882
 .cu-custom .cu-bar .action .cuIcon-back {
1883 1883
     opacity: 0;
@@ -1896,7 +1896,7 @@ button.cuIcon.lg {
1896 1896
     /* #ifdef MP-WEIXIN */
1897 1897
     padding-right: 220upx;
1898 1898
     /* #endif */
1899
-    /* #ifdef MP-ALIPAY */
1899
+    /* #ifdef MP-WEIXIN */
1900 1900
     padding-right: 150upx;
1901 1901
     /* #endif */
1902 1902
     box-shadow: 0upx 0upx 0upx;

+ 6
- 3
pages/index/index.vue View File

@@ -557,8 +557,8 @@
557 557
 				this.marker.forEach((el, inx) => {
558 558
 					if (inx != total - 1) {
559 559
 						if (inx == index) {
560
-							// console.log("inx----index", inx, index)
561
-							// console.log("el--", el)
560
+							console.log("inx----index", inx, index)
561
+							console.log("el--", el)
562 562
 							this.latitude = el.a_latitude ? el.a_latitude : el.latitude
563 563
 							this.longitude = el.a_longitude ? el.a_longitude : el.longitude
564 564
 							this.changeIcon(el, 2)
@@ -585,7 +585,10 @@
585 585
 					} else {
586 586
 						el.label.display = "ALWAYS"
587 587
 					}
588
-				})
588
+				});
589
+				
590
+				console.log("this.latitude---", this.latitude);
591
+				console.log("this.longitude---", this.longitude);
589 592
 			},
590 593
 
591 594
 			// 改变图标

+ 1
- 1
uni_modules/lime-file-utils/utssdk/index.uts View File

@@ -57,7 +57,7 @@ function getPlatform():Uni {
57 57
 	// #ifdef MP-BAIDU
58 58
 	return swan
59 59
 	// #endif
60
-	// #ifdef MP-ALIPAY
60
+	// #ifdef MP-WEIXIN
61 61
 	return my
62 62
 	// #endif
63 63
 	// #ifdef MP-JD

+ 4
- 4
uni_modules/lime-shared/canIUseCanvas2d/index.ts View File

@@ -2,7 +2,7 @@
2 2
 
3 3
 // #ifndef UNI-APP-X && APP
4 4
 
5
-// #ifdef MP-ALIPAY
5
+// #ifdef MP-WEIXIN
6 6
 interface My {
7 7
 	SDKVersion: string
8 8
 }
@@ -38,7 +38,7 @@ function compareVersion(v1:string, v2:string) {
38 38
 
39 39
 function gte(version: string) {
40 40
 	let {SDKVersion} = uni.getSystemInfoSync();
41
-	// #ifdef MP-ALIPAY
41
+	// #ifdef MP-WEIXIN
42 42
 	SDKVersion = wx.SDKVersion
43 43
 	// #endif
44 44
 	return compareVersion(SDKVersion, version) >= 0;
@@ -51,13 +51,13 @@ export function canIUseCanvas2d(): boolean {
51 51
 	// #ifdef MP-WEIXIN
52 52
 	return gte('2.9.0');
53 53
 	// #endif
54
-	// #ifdef MP-ALIPAY
54
+	// #ifdef MP-WEIXIN
55 55
 	return gte('2.7.0');
56 56
 	// #endif
57 57
 	// #ifdef MP-TOUTIAO
58 58
 	return gte('1.78.0');
59 59
 	// #endif
60
-	// #ifndef MP-WEIXIN || MP-ALIPAY || MP-TOUTIAO
60
+	// #ifndef MP-WEIXIN || MP-WEIXIN || MP-TOUTIAO
61 61
 	return false
62 62
 	// #endif
63 63
 	

+ 1
- 1
uni_modules/lime-shared/platform/index.ts View File

@@ -6,7 +6,7 @@ export function getPlatform():Uni {
6 6
 	// #ifdef MP-BAIDU
7 7
 	return swan
8 8
 	// #endif
9
-	// #ifdef MP-ALIPAY
9
+	// #ifdef MP-WEIXIN
10 10
 	return my
11 11
 	// #endif
12 12
 	// #ifdef MP-JD

+ 1
- 1
uni_modules/uview-ui/components/u-checkbox/u-checkbox.vue View File

@@ -141,7 +141,7 @@
141 141
 					classes.push('u-checkbox__icon-wrap--disabled--checked')
142 142
 				}
143 143
 				// 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
144
-				// #ifdef MP-ALIPAY || MP-TOUTIAO
144
+				// #ifdef MP-WEIXIN || MP-TOUTIAO
145 145
 				classes = classes.join(' ')
146 146
 				// #endif
147 147
 				return classes

+ 1
- 1
uni_modules/uview-ui/components/u-grid-item/u-grid-item.vue View File

@@ -147,7 +147,7 @@
147 147
 						}
148 148
 					})
149 149
 					// 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
150
-					// #ifdef MP-ALIPAY || MP-TOUTIAO
150
+					// #ifdef MP-WEIXIN || MP-TOUTIAO
151 151
 					classes = classes.join(' ')
152 152
 					// #endif
153 153
 					this.classes = classes

+ 1
- 1
uni_modules/uview-ui/components/u-icon/u-icon.vue View File

@@ -99,7 +99,7 @@
99 99
 				if (this.color && uni.$u.config.type.includes(this.color)) classes.push('u-icon__icon--' + this.color)
100 100
 				// 阿里,头条,百度小程序通过数组绑定类名时,无法直接使用[a, b, c]的形式,否则无法识别
101 101
 				// 故需将其拆成一个字符串的形式,通过空格隔开各个类名
102
-				//#ifdef MP-ALIPAY || MP-TOUTIAO || MP-BAIDU
102
+				//#ifdef MP-WEIXIN || MP-TOUTIAO || MP-BAIDU
103 103
 				classes = classes.join(' ')
104 104
 				//#endif
105 105
 				return classes

+ 776
- 763
uni_modules/uview-ui/components/u-parse/parser.js
File diff suppressed because it is too large
View File


+ 2
- 2
uni_modules/uview-ui/components/u-parse/u-parse.vue View File

@@ -130,7 +130,7 @@ export default {
130 130
         deep = '>>>'
131 131
         // #endif
132 132
         const selector = uni.createSelectorQuery()
133
-          // #ifndef MP-ALIPAY
133
+          // #ifndef MP-WEIXIN
134 134
           .in(this._in ? this._in.page : this)
135 135
           // #endif
136 136
           .select((this._in ? this._in.selector : '._root') + (id ? `${deep}#${id}` : '')).boundingClientRect()
@@ -196,7 +196,7 @@ export default {
196 196
     getRect() {
197 197
       return new Promise((resolve, reject) => {
198 198
         uni.createSelectorQuery()
199
-          // #ifndef MP-ALIPAY
199
+          // #ifndef MP-WEIXIN
200 200
           .in(this)
201 201
           // #endif
202 202
           .select('#_root').boundingClientRect().exec(res => res[0] ? resolve(res[0]) : reject('Root label not found'))

+ 1
- 1
uni_modules/uview-ui/components/u-radio/u-radio.vue View File

@@ -145,7 +145,7 @@
145 145
 					classes.push('u-radio__icon-wrap--disabled--checked')
146 146
 				}
147 147
 				// 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
148
-				// #ifdef MP-ALIPAY || MP-TOUTIAO
148
+				// #ifdef MP-WEIXIN || MP-TOUTIAO
149 149
 				classes = classes.join(' ')
150 150
 				// #endif
151 151
 				return classes

+ 18
- 18
uni_modules/uview-ui/libs/function/platform.js View File

@@ -10,66 +10,66 @@ let platform = 'none'
10 10
 
11 11
 // #ifdef VUE3
12 12
 platform = 'vue3'
13
-// #endif
13
+    // #endif
14 14
 
15 15
 // #ifdef VUE2
16 16
 platform = 'vue2'
17
-// #endif
17
+    // #endif
18 18
 
19 19
 // #ifdef APP-PLUS
20 20
 platform = 'plus'
21
-// #endif
21
+    // #endif
22 22
 
23 23
 // #ifdef APP-NVUE
24 24
 platform = 'nvue'
25
-// #endif
25
+    // #endif
26 26
 
27 27
 // #ifdef H5
28 28
 platform = 'h5'
29
-// #endif
29
+    // #endif
30 30
 
31 31
 // #ifdef MP-WEIXIN
32 32
 platform = 'weixin'
33
-// #endif
33
+    // #endif
34 34
 
35
-// #ifdef MP-ALIPAY
35
+// #ifdef MP-WEIXIN
36 36
 platform = 'alipay'
37
-// #endif
37
+    // #endif
38 38
 
39 39
 // #ifdef MP-BAIDU
40 40
 platform = 'baidu'
41
-// #endif
41
+    // #endif
42 42
 
43 43
 // #ifdef MP-TOUTIAO
44 44
 platform = 'toutiao'
45
-// #endif
45
+    // #endif
46 46
 
47 47
 // #ifdef MP-QQ
48 48
 platform = 'qq'
49
-// #endif
49
+    // #endif
50 50
 
51 51
 // #ifdef MP-KUAISHOU
52 52
 platform = 'kuaishou'
53
-// #endif
53
+    // #endif
54 54
 
55 55
 // #ifdef MP-360
56 56
 platform = '360'
57
-// #endif
57
+    // #endif
58 58
 
59 59
 // #ifdef MP
60 60
 platform = 'mp'
61
-// #endif
61
+    // #endif
62 62
 
63 63
 // #ifdef QUICKAPP-WEBVIEW
64 64
 platform = 'quickapp-webview'
65
-// #endif
65
+    // #endif
66 66
 
67 67
 // #ifdef QUICKAPP-WEBVIEW-HUAWEI
68 68
 platform = 'quickapp-webview-huawei'
69
-// #endif
69
+    // #endif
70 70
 
71 71
 // #ifdef QUICKAPP-WEBVIEW-UNION
72 72
 platform = 'quckapp-webview-union'
73
-// #endif
73
+    // #endif
74 74
 
75
-export default platform
75
+export default platform

+ 9
- 10
uni_modules/uview-ui/libs/luch-request/adapters/index.js View File

@@ -32,8 +32,7 @@ export default (config) => new Promise((resolve, reject) => {
32 32
                     response.data = JSON.parse(response.data)
33 33
                 }
34 34
                 // eslint-disable-next-line no-empty
35
-            } catch (e) {
36
-            }
35
+            } catch (e) {}
37 36
             settle(resolve, reject, response)
38 37
         }
39 38
     }
@@ -42,14 +41,14 @@ export default (config) => new Promise((resolve, reject) => {
42 41
         delete _config.header['content-type']
43 42
         delete _config.header['Content-Type']
44 43
         const otherConfig = {
45
-        // #ifdef MP-ALIPAY
44
+            // #ifdef MP-WEIXIN
46 45
             fileType: config.fileType,
47 46
             // #endif
48 47
             filePath: config.filePath,
49 48
             name: config.name
50 49
         }
51 50
         const optionalKeys = [
52
-        // #ifdef APP-PLUS || H5
51
+            // #ifdef APP-PLUS || H5
53 52
             'files',
54 53
             // #endif
55 54
             // #ifdef H5
@@ -60,7 +59,7 @@ export default (config) => new Promise((resolve, reject) => {
60 59
             // #endif
61 60
             'formData'
62 61
         ]
63
-        requestTask = uni.uploadFile({ ..._config, ...otherConfig, ...mergeKeys(optionalKeys, config) })
62
+        requestTask = uni.uploadFile({..._config, ...otherConfig, ...mergeKeys(optionalKeys, config) })
64 63
     } else if (config.method === 'DOWNLOAD') {
65 64
         // #ifdef H5 || APP-PLUS
66 65
         if (!isUndefined(config.timeout)) {
@@ -72,11 +71,11 @@ export default (config) => new Promise((resolve, reject) => {
72 71
         const optionalKeys = [
73 72
             'data',
74 73
             'method',
75
-            // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN
74
+            // #ifdef H5 || APP-PLUS || MP-WEIXIN || MP-WEIXIN
76 75
             'timeout',
77 76
             // #endif
78 77
             'dataType',
79
-            // #ifndef MP-ALIPAY
78
+            // #ifndef MP-WEIXIN
80 79
             'responseType',
81 80
             // #endif
82 81
             // #ifdef APP-PLUS
@@ -87,11 +86,11 @@ export default (config) => new Promise((resolve, reject) => {
87 86
             // #endif
88 87
             // #ifdef APP-PLUS
89 88
             'firstIpv4'
90
-        // #endif
89
+            // #endif
91 90
         ]
92
-        requestTask = uni.request({ ..._config, ...mergeKeys(optionalKeys, config) })
91
+        requestTask = uni.request({..._config, ...mergeKeys(optionalKeys, config) })
93 92
     }
94 93
     if (config.getTask) {
95 94
         config.getTask(requestTask, config)
96 95
     }
97
-})
96
+})

+ 29
- 29
uni_modules/uview-ui/libs/luch-request/core/Request.js View File

@@ -20,25 +20,25 @@ import clone from '../utils/clone'
20 20
 
21 21
 export default class Request {
22 22
     /**
23
-   * @param {Object} arg - 全局配置
24
-   * @param {String} arg.baseURL - 全局根路径
25
-   * @param {Object} arg.header - 全局header
26
-   * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
27
-   * @param {String} arg.dataType = [json] - 全局默认的dataType
28
-   * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
29
-   * @param {Object} arg.custom - 全局默认的自定义参数
30
-   * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
31
-   * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
32
-   * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
33
-   * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
34
-   * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
35
-   */
23
+     * @param {Object} arg - 全局配置
24
+     * @param {String} arg.baseURL - 全局根路径
25
+     * @param {Object} arg.header - 全局header
26
+     * @param {String} arg.method = [GET|POST|PUT|DELETE|CONNECT|HEAD|OPTIONS|TRACE] - 全局默认请求方式
27
+     * @param {String} arg.dataType = [json] - 全局默认的dataType
28
+     * @param {String} arg.responseType = [text|arraybuffer] - 全局默认的responseType。支付宝小程序不支持
29
+     * @param {Object} arg.custom - 全局默认的自定义参数
30
+     * @param {Number} arg.timeout - 全局默认的超时时间,单位 ms。默认60000。H5(HBuilderX 2.9.9+)、APP(HBuilderX 2.9.9+)、微信小程序(2.10.0)、支付宝小程序
31
+     * @param {Boolean} arg.sslVerify - 全局默认的是否验证 ssl 证书。默认true.仅App安卓端支持(HBuilderX 2.3.3+)
32
+     * @param {Boolean} arg.withCredentials - 全局默认的跨域请求时是否携带凭证(cookies)。默认false。仅H5支持(HBuilderX 2.6.15+)
33
+     * @param {Boolean} arg.firstIpv4 - 全DNS解析时优先使用ipv4。默认false。仅 App-Android 支持 (HBuilderX 2.8.0+)
34
+     * @param {Function(statusCode):Boolean} arg.validateStatus - 全局默认的自定义验证器。默认statusCode >= 200 && statusCode < 300
35
+     */
36 36
     constructor(arg = {}) {
37 37
         if (!isPlainObject(arg)) {
38 38
             arg = {}
39 39
             console.warn('设置全局参数必须接收一个Object')
40 40
         }
41
-        this.config = clone({ ...defaults, ...arg })
41
+        this.config = clone({...defaults, ...arg })
42 42
         this.interceptors = {
43 43
             request: new InterceptorManager(),
44 44
             response: new InterceptorManager()
@@ -46,9 +46,9 @@ export default class Request {
46 46
     }
47 47
 
48 48
     /**
49
-   * @Function
50
-   * @param {Request~setConfigCallback} f - 设置全局默认配置
51
-   */
49
+     * @Function
50
+     * @param {Request~setConfigCallback} f - 设置全局默认配置
51
+     */
52 52
     setConfig(f) {
53 53
         this.config = f(this.config)
54 54
     }
@@ -74,16 +74,16 @@ export default class Request {
74 74
     }
75 75
 
76 76
     /**
77
-   * @Function
78
-   * @param {Object} config - 请求配置项
79
-   * @prop {String} options.url - 请求路径
80
-   * @prop {Object} options.data - 请求参数
81
-   * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
82
-   * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
83
-   * @prop {Object} [options.header = config.header] - 请求header
84
-   * @prop {Object} [options.method = config.method] - 请求方法
85
-   * @returns {Promise<unknown>}
86
-   */
77
+     * @Function
78
+     * @param {Object} config - 请求配置项
79
+     * @prop {String} options.url - 请求路径
80
+     * @prop {Object} options.data - 请求参数
81
+     * @prop {Object} [options.responseType = config.responseType] [text|arraybuffer] - 响应的数据类型
82
+     * @prop {Object} [options.dataType = config.dataType] - 如果设为 json,会尝试对返回的数据做一次 JSON.parse
83
+     * @prop {Object} [options.header = config.header] - 请求header
84
+     * @prop {Object} [options.method = config.method] - 请求方法
85
+     * @returns {Promise<unknown>}
86
+     */
87 87
     request(config = {}) {
88 88
         return this.middleware(config)
89 89
     }
@@ -105,7 +105,7 @@ export default class Request {
105 105
         })
106 106
     }
107 107
 
108
-    // #ifndef MP-ALIPAY
108
+    // #ifndef MP-WEIXIN
109 109
     put(url, data, options = {}) {
110 110
         return this.middleware({
111 111
             url,
@@ -195,4 +195,4 @@ export default class Request {
195 195
  * @return {Object} - 返回操作后的config
196 196
  * @callback Request~setConfigCallback
197 197
  * @param {Object} config - 全局默认config
198
- */
198
+ */

+ 3
- 3
uni_modules/uview-ui/libs/luch-request/core/defaults.js View File

@@ -7,11 +7,11 @@ export default {
7 7
     header: {},
8 8
     method: 'GET',
9 9
     dataType: 'json',
10
-    // #ifndef MP-ALIPAY
10
+    // #ifndef MP-WEIXIN
11 11
     responseType: 'text',
12 12
     // #endif
13 13
     custom: {},
14
-    // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN
14
+    // #ifdef H5 || APP-PLUS || MP-WEIXIN || MP-WEIXIN
15 15
     timeout: 60000,
16 16
     // #endif
17 17
     // #ifdef APP-PLUS
@@ -26,4 +26,4 @@ export default {
26 26
     validateStatus: function validateStatus(status) {
27 27
         return status >= 200 && status < 300
28 28
     }
29
-}
29
+}

+ 31
- 31
uni_modules/uview-ui/libs/luch-request/core/mergeConfig.js View File

@@ -8,22 +8,22 @@ import { deepMerge, isUndefined } from '../utils'
8 8
  * @return {{}}
9 9
  */
10 10
 const mergeKeys = (keys, globalsConfig, config2) => {
11
-    const config = {}
12
-    keys.forEach((prop) => {
13
-        if (!isUndefined(config2[prop])) {
14
-            config[prop] = config2[prop]
15
-        } else if (!isUndefined(globalsConfig[prop])) {
16
-            config[prop] = globalsConfig[prop]
17
-        }
18
-    })
19
-    return config
20
-}
21
-/**
22
- *
23
- * @param globalsConfig - 当前实例的全局配置
24
- * @param config2 - 当前的局部配置
25
- * @return - 合并后的配置
26
- */
11
+        const config = {}
12
+        keys.forEach((prop) => {
13
+            if (!isUndefined(config2[prop])) {
14
+                config[prop] = config2[prop]
15
+            } else if (!isUndefined(globalsConfig[prop])) {
16
+                config[prop] = globalsConfig[prop]
17
+            }
18
+        })
19
+        return config
20
+    }
21
+    /**
22
+     *
23
+     * @param globalsConfig - 当前实例的全局配置
24
+     * @param config2 - 当前的局部配置
25
+     * @return - 合并后的配置
26
+     */
27 27
 export default (globalsConfig, config2 = {}) => {
28 28
     const method = config2.method || globalsConfig.method || 'GET'
29 29
     let config = {
@@ -31,21 +31,21 @@ export default (globalsConfig, config2 = {}) => {
31 31
         method,
32 32
         url: config2.url || '',
33 33
         params: config2.params || {},
34
-        custom: { ...(globalsConfig.custom || {}), ...(config2.custom || {}) },
34
+        custom: {...(globalsConfig.custom || {}), ...(config2.custom || {}) },
35 35
         header: deepMerge(globalsConfig.header || {}, config2.header || {})
36 36
     }
37 37
     const defaultToConfig2Keys = ['getTask', 'validateStatus']
38
-    config = { ...config, ...mergeKeys(defaultToConfig2Keys, globalsConfig, config2) }
38
+    config = {...config, ...mergeKeys(defaultToConfig2Keys, globalsConfig, config2) }
39 39
 
40 40
     // eslint-disable-next-line no-empty
41 41
     if (method === 'DOWNLOAD') {
42
-    // #ifdef H5 || APP-PLUS
42
+        // #ifdef H5 || APP-PLUS
43 43
         if (!isUndefined(config2.timeout)) {
44 44
             config.timeout = config2.timeout
45 45
         } else if (!isUndefined(globalsConfig.timeout)) {
46 46
             config.timeout = globalsConfig.timeout
47 47
         }
48
-    // #endif
48
+        // #endif
49 49
     } else if (method === 'UPLOAD') {
50 50
         delete config.header['content-type']
51 51
         delete config.header['Content-Type']
@@ -53,7 +53,7 @@ export default (globalsConfig, config2 = {}) => {
53 53
             // #ifdef APP-PLUS || H5
54 54
             'files',
55 55
             // #endif
56
-            // #ifdef MP-ALIPAY
56
+            // #ifdef MP-WEIXIN
57 57
             'fileType',
58 58
             // #endif
59 59
             // #ifdef H5
@@ -67,23 +67,23 @@ export default (globalsConfig, config2 = {}) => {
67 67
             'formData'
68 68
         ]
69 69
         uploadKeys.forEach((prop) => {
70
-            if (!isUndefined(config2[prop])) {
71
-                config[prop] = config2[prop]
72
-            }
73
-        })
74
-        // #ifdef H5 || APP-PLUS
70
+                if (!isUndefined(config2[prop])) {
71
+                    config[prop] = config2[prop]
72
+                }
73
+            })
74
+            // #ifdef H5 || APP-PLUS
75 75
         if (isUndefined(config.timeout) && !isUndefined(globalsConfig.timeout)) {
76 76
             config.timeout = globalsConfig.timeout
77 77
         }
78
-    // #endif
78
+        // #endif
79 79
     } else {
80 80
         const defaultsKeys = [
81 81
             'data',
82
-            // #ifdef H5 || APP-PLUS || MP-ALIPAY || MP-WEIXIN
82
+            // #ifdef H5 || APP-PLUS || MP-WEIXIN || MP-WEIXIN
83 83
             'timeout',
84 84
             // #endif
85 85
             'dataType',
86
-            // #ifndef MP-ALIPAY
86
+            // #ifndef MP-WEIXIN
87 87
             'responseType',
88 88
             // #endif
89 89
             // #ifdef APP-PLUS
@@ -96,8 +96,8 @@ export default (globalsConfig, config2 = {}) => {
96 96
             'firstIpv4'
97 97
             // #endif
98 98
         ]
99
-        config = { ...config, ...mergeKeys(defaultsKeys, globalsConfig, config2) }
99
+        config = {...config, ...mergeKeys(defaultsKeys, globalsConfig, config2) }
100 100
     }
101 101
 
102 102
     return config
103
-}
103
+}

+ 15
- 15
uni_modules/uview-ui/libs/mixin/mixin.js View File

@@ -40,14 +40,14 @@ module.exports = {
40 40
             // #ifndef APP-NVUE
41 41
             // 在非nvue端,移除props,http,mixin等对象,避免在小程序setData时数据过大影响性能
42 42
             return uni.$u.deepMerge(uni.$u, {
43
-                props: undefined,
44
-                http: undefined,
45
-                mixin: undefined
46
-            })
47
-            // #endif
48
-            // #ifdef APP-NVUE
43
+                    props: undefined,
44
+                    http: undefined,
45
+                    mixin: undefined
46
+                })
47
+                // #endif
48
+                // #ifdef APP-NVUE
49 49
             return uni.$u
50
-            // #endif
50
+                // #endif
51 51
         },
52 52
         /**
53 53
          * 生成bem规则类名
@@ -59,7 +59,7 @@ module.exports = {
59 59
          * @returns {Array|string}
60 60
          */
61 61
         bem() {
62
-            return function (name, fixed, change) {
62
+            return function(name, fixed, change) {
63 63
                 // 类名前缀
64 64
                 const prefix = `u-${name}--`
65 65
                 const classes = {}
@@ -77,7 +77,7 @@ module.exports = {
77 77
                 }
78 78
                 return Object.keys(classes)
79 79
                     // 支付宝,头条小程序无法动态绑定一个数组类名,否则解析出来的结果会带有",",而导致失效
80
-                    // #ifdef MP-ALIPAY || MP-TOUTIAO || MP-LARK
80
+                    // #ifdef MP-WEIXIN || MP-TOUTIAO || MP-LARK
81 81
                     .join(' ')
82 82
                     // #endif
83 83
             }
@@ -115,10 +115,10 @@ module.exports = {
115 115
         getParentData(parentName = '') {
116 116
             // 避免在created中去定义parent变量
117 117
             if (!this.parent) this.parent = {}
118
-            // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
119
-            // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
120
-            // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
121
-            // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
118
+                // 这里的本质原理是,通过获取父组件实例(也即类似u-radio的父组件u-radio-group的this)
119
+                // 将父组件this中对应的参数,赋值给本组件(u-radio的this)的parentData对象中对应的属性
120
+                // 之所以需要这么做,是因为所有端中,头条小程序不支持通过this.parent.xxx去监听父组件参数的变化
121
+                // 此处并不会自动更新子组件的数据,而是依赖父组件u-radio-group去监听data的变化,手动调用更新子组件的方法去重新获取
122 122
             this.parent = uni.$u.$parent.call(this, parentName)
123 123
             if (this.parent.children) {
124 124
                 // 如果父组件的children不存在本组件的实例,才将本实例添加到父组件的children中
@@ -133,7 +133,7 @@ module.exports = {
133 133
         },
134 134
         // 阻止事件冒泡
135 135
         preventEvent(e) {
136
-            e && typeof (e.stopPropagation) === 'function' && e.stopPropagation()
136
+            e && typeof(e.stopPropagation) === 'function' && e.stopPropagation()
137 137
         },
138 138
         // 空操作
139 139
         noop(e) {
@@ -157,4 +157,4 @@ module.exports = {
157 157
             })
158 158
         }
159 159
     }
160
-}
160
+}

+ 2
- 2
uni_modules/ww-bottom-drawer/components/ww-bottom-drawerapp/ww-bottom-drawerapp.vue View File

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
 	<view>
3
-		<!-- #ifdef MP-ALIPAY -->
3
+		<!-- #ifdef MP-WEIXIN -->
4 4
 		<view class="drawer-content"  :data-top="dragTop" :style="transition + 'bottom:' + (dragTop + 'px')">
5 5
 			<view id="drag-content" class="drag-content" ref="drag-content">
6 6
 				<!-- @touchend.stop="drag_end" -->
@@ -19,7 +19,7 @@
19 19
 			</view>
20 20
 		</view>
21 21
 		<!-- #endif -->
22
-		<!-- #ifndef MP-ALIPAY -->
22
+		<!-- #ifndef MP-WEIXIN -->
23 23
 		<view class="drawer-content" :data-top="dragTop"
24 24
 			:style="transition + 'bottom:' + (dragTop + 'px;') + styleCss()">
25 25
 			<view id="drag-content" class="drag-content" ref="drag-content">

Loading…
Cancel
Save