mazey-wechat-launch-app 2.1.1 → 2.1.2

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/README.md CHANGED
@@ -20,7 +20,7 @@ npm install mazey-wechat-launch-app --save
20
20
 
21
21
  ## Usage
22
22
 
23
- ### NPM
23
+ ### 1. NPM
24
24
 
25
25
  ```
26
26
  import LAUNCH_APP from 'mazey-wechat-launch-app';
@@ -68,20 +68,20 @@ npm install js-sha1 jquery mazey --save
68
68
  ```
69
69
  import sha1 from 'js-sha1';
70
70
  import $ from 'jquery';
71
- import mazey from 'mazey';
71
+ import * as mazey from 'mazey';
72
72
 
73
73
  window.sha1 = sha1;
74
74
  window.$ = $;
75
75
  window.mazey = mazey;
76
76
  ```
77
77
 
78
- ### CDN
78
+ ### 2. CDN
79
79
 
80
80
  ```
81
81
  <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
82
82
  <script type="text/javascript" src="//i.mazey.net/lib/jquery/2.1.1/jquery.min.js"></script>
83
83
  <script type="text/javascript" src="//i.mazey.net/lib/encode/js-sha1/0.6.0/sha1.min.js"></script>
84
- <script type="text/javascript" src="//i.mazey.net/lib/mazey/3.6.6/mazey.min.js"></script>
84
+ <script type="text/javascript" src="//i.mazey.net/lib/mazey/3.9.5/mazey.min.js"></script>
85
85
  <script type="text/javascript" src="//i.mazey.net/lib/mazey-wechat-launch-app/1.1.2/launch-app.min.js"></script>
86
86
  <script>
87
87
  var options = {
@@ -126,14 +126,14 @@ window.mazey = mazey;
126
126
 
127
127
  **2\. 如何修改按钮样式?**
128
128
 
129
- 方法一:
129
+ 方法一(推荐):
130
130
 
131
- 通过 `launchBtnStyle` 参数添加内联样式,通过 `launchBtnText` 参数修改按钮文字。
131
+ 如官方所说,模版的样式是和页面隔离的,建议将此处透明的开放标签覆盖在原按钮上,这样就可以保留原按钮的样式,同时又可以实现点击跳转。
132
132
 
133
+ 方法二:
133
134
 
134
- 方法二(推荐):
135
+ 通过 `launchBtnStyle` 参数添加内联样式,通过 `launchBtnText` 参数修改按钮文字。
135
136
 
136
- 如官方所说,模版的样式是和页面隔离的,建议将此处透明的开放标签覆盖在原按钮上,这样就可以保留原按钮的样式,同时又可以实现点击跳转。
137
137
 
138
138
  **3\. 如何确保满足唤起的所有前置条件?**
139
139
 
package/lib/index.cjs.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * mazey-wechat-launch-app v2.1.1 https://www.npmjs.com/package/mazey-wechat-launch-app
2
+ * mazey-wechat-launch-app v2.1.2 https://www.npmjs.com/package/mazey-wechat-launch-app
3
3
  * (c) 2018-2023 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
package/lib/index.esm.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * mazey-wechat-launch-app v2.1.1 https://www.npmjs.com/package/mazey-wechat-launch-app
2
+ * mazey-wechat-launch-app v2.1.2 https://www.npmjs.com/package/mazey-wechat-launch-app
3
3
  * (c) 2018-2023 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * mazey-wechat-launch-app v2.1.1 https://www.npmjs.com/package/mazey-wechat-launch-app
2
+ * mazey-wechat-launch-app v2.1.2 https://www.npmjs.com/package/mazey-wechat-launch-app
3
3
  * (c) 2018-2023 Mazey Chu
4
4
  * Released under the MIT License.
5
5
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mazey-wechat-launch-app",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "Launch App in WeChat/Weixin",
5
5
  "main": "lib/index.cjs.js",
6
6
  "module": "lib/index.esm.js",