|
@@ -11,7 +11,7 @@ const QRCodePage = (props) => {
|
11
|
11
|
|
12
|
12
|
useEffect(() => {
|
13
|
13
|
if (scene) {
|
14
|
|
- const { type, ...queryParams } = getQueryParam(scene);
|
|
14
|
+ const { page, ...queryParams } = getQueryParam(decodeURIComponent(scene));
|
15
|
15
|
let queryStr = getQueryString(queryParams) || ''
|
16
|
16
|
if (queryStr) {
|
17
|
17
|
queryStr = `?${queryStr}`
|
|
@@ -19,7 +19,7 @@ const QRCodePage = (props) => {
|
19
|
19
|
|
20
|
20
|
// 默认调首页
|
21
|
21
|
let url = '/pages/index/index';
|
22
|
|
- switch (type) {
|
|
22
|
+ switch (page) {
|
23
|
23
|
case 'cardinfo':
|
24
|
24
|
url = `/pages/dogCardDetail/index${queryStr}`
|
25
|
25
|
break;
|