lite-pos-wx-plugin-mate 1.3.0 → 1.3.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 +6 -12
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ npm install lite-pos-wx-plugin-mate
|
|
|
47
47
|
"lite-pos-plugin": {
|
|
48
48
|
"version": "x.x.x",
|
|
49
49
|
"provider": "xxxxxx",
|
|
50
|
-
"export": "miniprogram_npm/lite-pos-plugin-mate/utils.js"
|
|
50
|
+
"export": "miniprogram_npm/lite-pos-wx-plugin-mate/utils.js"
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
}
|
|
@@ -71,7 +71,7 @@ npm install lite-pos-wx-plugin-mate
|
|
|
71
71
|
"lite-pos-plugin": {
|
|
72
72
|
"version": "x.x.x",
|
|
73
73
|
"provider": "xxxxxx",
|
|
74
|
-
"export": "miniprogram_npm/lite-pos-plugin-mate/utils.js"
|
|
74
|
+
"export": "miniprogram_npm/lite-pos-wx-plugin-mate/utils.js"
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
}
|
|
@@ -85,29 +85,23 @@ npm install lite-pos-wx-plugin-mate
|
|
|
85
85
|
```json
|
|
86
86
|
{
|
|
87
87
|
"usingComponents": {
|
|
88
|
-
"wxb2b-authBridge": "/miniprogram_npm/wx-
|
|
88
|
+
"wxb2b-authBridge": "/miniprogram_npm/lite-pos-wx-plugin-mate/components/wx-b2b-auth-bridge/index"
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
3. 页面 WXML 中使用组件:
|
|
94
94
|
```html
|
|
95
|
-
<wxb2b-authBridge
|
|
95
|
+
<wxb2b-authBridge></wxb2b-authBridge>
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
##### 组件参数说明
|
|
99
|
-
|
|
100
|
-
| 参数名 | 必填 | 默认值 | 说明 |
|
|
101
|
-
|--------|------|--------|------|
|
|
102
|
-
| wxpluginName | 否 | wx-auth-plugin | 在 2.2 中的 app.json 中配置的微信认证插件的 name |
|
|
103
|
-
|
|
104
98
|
#### 2.4 跳转收银台需新增参数
|
|
105
99
|
|
|
106
|
-
|
|
100
|
+
在跳转到收银台时,需要新增 wxauth_url参数、b2b_pay_key参数:
|
|
107
101
|
|
|
108
102
|
```javascript
|
|
109
103
|
wx.navigateTo({
|
|
110
|
-
url: `plugin://lite-pos-plugin/cashierV2?token=${token}&appid=${appid}&openid=${openid}&wxauth_url
|
|
104
|
+
url: `plugin://lite-pos-plugin/cashierV2?token=${token}&appid=${appid}&openid=${openid}&wxauth_url=${encodeURIComponent("/pages/wxAuth/wxAuth")}&b2b_pay_key=${b2bPayKey}`
|
|
111
105
|
})
|
|
112
106
|
```
|
|
113
107
|
|