mali-applet-ui 0.1.13 → 0.1.15

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/utils/applet.js +3 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "components",
package/utils/applet.js CHANGED
@@ -5,7 +5,7 @@ export function getAppId () {
5
5
  let appId = null
6
6
 
7
7
  // #ifdef MP-WEIXIN
8
- appId = uni.getAccountInfoSync().miniProgram.appId
8
+ appId = wx.getAccountInfoSync().miniProgram.appId
9
9
  // #endif
10
10
 
11
11
  // #ifdef MP-ALIPAY
@@ -22,8 +22,8 @@ export function getAppVersion () {
22
22
  let version = ''
23
23
 
24
24
  // #ifdef MP-WEIXIN
25
- version.getAccountInfoSync().miniProgram.version
26
-
25
+ version = wx.getAccountInfoSync().miniProgram.version
27
26
  // #endif
27
+
28
28
  return version
29
29
  }