youzan-minishopify 1.0.0 → 1.0.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.
Files changed (2) hide show
  1. package/README.md +6 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -157,9 +157,9 @@ const yzMiniShopify = require("youzan-minishopify");
157
157
  | 参数 | 描述 | 类型 | 是否必填 | 默认值 | 示例值 |
158
158
  | :---------: | :------------------------: | :----: | :------: | :----: | :----------------: |
159
159
  | envVersion | 要打开的小程序版本。仅在当前小程序为开发版或体验版时此参数有效。如果当前小程序是正式版,则打开的小程序必定是正式版。可选值为 "develop" 或 "trial" 或 "release" | string | 否 | release | 无 |
160
- | appId | 半屏打开小程序的 AppId | string | 是 | 无 | wxf11c5910cb729a82 |
160
+ | appId | 半屏打开小程序的 AppId | string | 是 | 无 | wxf11c5910db439b82 |
161
161
  | countryCode | 当前用户授权手机号的国家码 | string | 是 | 无 | +86 |
162
- | mobile | 当前用户授权手机号。如未传递手机号,新的有赞用户半屏进入有赞商城小程序后需再次获取手机号并授权。 | string | | 无 | 15968813987 |
162
+ | mobile | 当前用户授权手机号。 | string | | 无 | 15912349999 |
163
163
  | route | 打开页面路径别名 | string | 是 | 无 | **见下表** |
164
164
  | query | 打开页面参数 | object | 否 | 无 | **见下表** |
165
165
  | allowFullScreen | 允许全屏 | boolean | 否 | false | true false |
@@ -193,8 +193,9 @@ const yzMiniShopify = require("youzan-minishopify");
193
193
 
194
194
 
195
195
  ## 5、常见问题
196
- 半屏无法唤起/控制台报错“openEmbeddedMiniProgram will fallback to navigateToMiniProgram. (reason: not triggered by tap)
197
- 原因和解决方式:自研中唤起半屏时候,采用了异步写法。改成同步即可。
198
- 请自查是否满足要求:
196
+ **半屏无法唤起/控制台报错openEmbeddedMiniProgram will fallback to navigateToMiniProgram. (reason: not triggered by tap)**
199
197
 
200
198
  <img src="https://img01.yzcdn.cn/upload_files/2025/06/30/FgQWaAiZxooI3Mlh2hP6s7HpPAXB.png" width="80%">
199
+
200
+ 在自研中半屏唤起有赞小程序时,代码实现采用了异步写法导致。
201
+ 请参考3.3中提供的demo改为同步写法。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "youzan-minishopify",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "有赞小程序开店",
5
5
  "main": "miniprogram_dist/index.js",
6
6
  "scripts": {