@conecli/cone-render 0.8.15-alpha.5 → 0.8.15-alpha.7
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
2
1
|
if(global){
|
|
3
2
|
if(global.miniAppLogInstance){
|
|
4
3
|
}else{
|
|
5
4
|
console.log('global.miniAppLogInstance为空!')
|
|
6
5
|
}
|
|
7
6
|
}else{
|
|
8
7
|
console.log('global为空!')
|
|
9
8
|
}
|
|
9
|
+
import Taro from '@tarojs/taro'
|
|
10
10
|
console.log('京购商详页跳转:', this.jumpMiniPath.detail)
|
|
11
11
|
if(global){
|
|
12
12
|
if(global.miniAppLogInstance){
|
|
13
13
|
}else{
|
|
14
14
|
console.log('global.miniAppLogInstance为空!')
|
|
15
15
|
}
|
|
16
16
|
}else{
|
|
17
17
|
console.log('global为空!')
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { domain } from '../../api'
|
|
1
|
+
import { domain } from '../../api'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import global from '../common'
|
|
2
1
|
console.log('window.shopGlobalSwitch:', JSON.stringify(window.shopGlobalSwitch))
|
|
3
2
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if')
|
|
4
3
|
console.log('Promise 立即执行了')
|
|
5
4
|
setTimeout(resolve, 3000)
|
|
6
5
|
wx?.miniProgram?.getEnv((res) => {
|
|
7
6
|
console.log(' 小程序环境检查结果', res)
|
|
8
7
|
if (res && res?.miniprogram) {
|
|
9
8
|
this.jingGouMiniState = true
|
|
10
9
|
window.isJingGouMiniViewState = true
|
|
11
10
|
console.log('进入了 iwx?.miniProgram then ')
|
|
12
11
|
global.info.isJingGouMiniViewState = true
|
|
13
12
|
if (location.pathname == '/shop/home') {
|
|
14
13
|
const getQueryData = parseQueryUrlString(
|
|
15
14
|
location.search,
|
|
16
15
|
)
|
|
17
16
|
this.jdJumpToShopHome({
|
|
18
17
|
...getQueryData,
|
|
19
18
|
type: 'redirectTo',
|
|
20
19
|
})
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
resolve(true)
|
|
24
23
|
})
|
|
25
24
|
})
|
|
26
25
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle')
|
|
27
26
|
}
|
|
27
|
+
import global from '../common'
|
|
28
28
|
console.log('window.shopGlobalSwitch:', JSON.stringify(window.shopGlobalSwitch))
|
|
29
29
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的if')
|
|
30
30
|
this.jingGouMiniState = true
|
|
31
31
|
window.isJingGouMiniViewState = true
|
|
32
32
|
console.log('进入了 iwx?.miniProgram then ')
|
|
33
33
|
global.info.isJingGouMiniViewState = true
|
|
34
34
|
if (location.pathname == '/shop/home') {
|
|
35
35
|
const getQueryData = parseQueryUrlString(
|
|
36
36
|
location.search,
|
|
37
37
|
)
|
|
38
38
|
this.jdJumpToShopHome({
|
|
39
39
|
...getQueryData,
|
|
40
40
|
type: 'redirectTo',
|
|
41
41
|
})
|
|
42
42
|
}
|
|
43
43
|
console.log('进入了 isH5AndJingGouMini && this.isH5OpenToWxapp 的esle')
|
|
44
44
|
}
|