zhl-methods 1.1.0 → 1.1.1
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/VERSION.md +5 -2
- package/package.json +1 -1
- package/wx/index.js +1 -17
package/VERSION.md
CHANGED
package/package.json
CHANGED
package/wx/index.js
CHANGED
|
@@ -12,28 +12,12 @@ export const getNavBarHeight = () => {
|
|
|
12
12
|
}
|
|
13
13
|
return nav + res.statusBarHeight;
|
|
14
14
|
};
|
|
15
|
-
/**
|
|
16
|
-
* 弹窗二次确认
|
|
17
|
-
* @param {Function} callback
|
|
18
|
-
*/
|
|
19
|
-
export const requestApi = (callback) => {
|
|
20
|
-
thit.showModal({
|
|
21
|
-
title: "确认该操作吗?",
|
|
22
|
-
confirmText: "确认",
|
|
23
|
-
cancelText: "取消",
|
|
24
|
-
async success(res) {
|
|
25
|
-
if (res.confirm) {
|
|
26
|
-
callback();
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
15
|
/**
|
|
32
16
|
* 弹窗二次确认
|
|
33
17
|
* @param {Object} query title 标题 默认值 确认该操作吗? content 内容 可以不填
|
|
34
18
|
* @param {Function} callback
|
|
35
19
|
*/
|
|
36
|
-
export const
|
|
20
|
+
export const confirmModal = (query = {}, callback) => {
|
|
37
21
|
thit.showModal({
|
|
38
22
|
title: query.title ? query.title : "确认该操作吗?",
|
|
39
23
|
content: query.content ? query.content : "",
|