|
@@ -17,15 +17,17 @@ const QRCodePage = (props) => {
|
17
|
17
|
queryStr = `?${queryStr}`
|
18
|
18
|
}
|
19
|
19
|
|
|
20
|
+ // 默认调首页
|
|
21
|
+ let url = '/pages/index/index';
|
20
|
22
|
switch (type) {
|
21
|
|
- case 'carddetail':
|
22
|
|
- const url = `/pages/dogCardDetail/index${queryStr}`
|
23
|
|
- Taro.reLaunch({ url })
|
|
23
|
+ case 'cardinfo':
|
|
24
|
+ url = `/pages/dogCardDetail/index${queryStr}`
|
24
|
25
|
break;
|
25
|
26
|
default:
|
26
|
|
- Taro.reLaunch({ url: '/pages/index/index' })
|
|
27
|
+ break
|
27
|
28
|
}
|
28
|
29
|
|
|
30
|
+ Taro.reLaunch({ url })
|
29
|
31
|
}
|
30
|
32
|
}, [scene])
|
31
|
33
|
|