@qywh/package 0.0.3-beta05 → 0.0.3-beta07
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/allComponent.ts +0 -2
- package/lib/methods/actions-fn.ts +15 -1
- package/package.json +1 -1
- package/serverRender.ts +0 -2
package/allComponent.ts
CHANGED
|
@@ -23,7 +23,6 @@ import QyOutWxAuthButton from './packages/qy-out-wx-auth-button/components/index
|
|
|
23
23
|
import QyPage from './packages/qy-page/components/index.vue'
|
|
24
24
|
import QyPicture from './packages/qy-picture/components/index.vue'
|
|
25
25
|
import QyRect from './packages/qy-rect/components/index.vue'
|
|
26
|
-
import QySeckill from './packages/qy-seckill/components/index.vue'
|
|
27
26
|
import QyText from './packages/qy-text/components/index.vue'
|
|
28
27
|
|
|
29
28
|
Vue.component('QyAnchor', QyAnchor)
|
|
@@ -49,5 +48,4 @@ Vue.component('QyOutWxAuthButton', QyOutWxAuthButton)
|
|
|
49
48
|
Vue.component('QyPage', QyPage)
|
|
50
49
|
Vue.component('QyPicture', QyPicture)
|
|
51
50
|
Vue.component('QyRect', QyRect)
|
|
52
|
-
Vue.component('QySeckill', QySeckill)
|
|
53
51
|
Vue.component('QyText', QyText)
|
|
@@ -6,6 +6,8 @@ import {
|
|
|
6
6
|
import logParamHandle from '../utils/logParamHandle'
|
|
7
7
|
import { offset } from '../utils'
|
|
8
8
|
|
|
9
|
+
let jumpXcxToQuestionRunning = false
|
|
10
|
+
|
|
9
11
|
/**
|
|
10
12
|
* link
|
|
11
13
|
*/
|
|
@@ -80,6 +82,10 @@ export function goodsBuy (this: any, params: any) {
|
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
export async function jumpXcxToQuestion (this: any, params: any) {
|
|
85
|
+
if (jumpXcxToQuestionRunning) {
|
|
86
|
+
return
|
|
87
|
+
}
|
|
88
|
+
jumpXcxToQuestionRunning = true
|
|
83
89
|
const pageData = (window as any).__PAGE_DATA__ || {}
|
|
84
90
|
const actId = (pageData.actInfo && pageData.actInfo.actId) || ''
|
|
85
91
|
|
|
@@ -104,10 +110,14 @@ export async function jumpXcxToQuestion (this: any, params: any) {
|
|
|
104
110
|
qId: params.qId || '',
|
|
105
111
|
}
|
|
106
112
|
try {
|
|
113
|
+
const pvidValue = JSON.stringify({
|
|
114
|
+
successInfo,
|
|
115
|
+
tf_ext_data: tfExtData
|
|
116
|
+
})
|
|
107
117
|
const pvRes = await fetch('/common/pvid', {
|
|
108
118
|
method: 'POST',
|
|
109
119
|
headers: { 'Content-Type': 'application/json' },
|
|
110
|
-
body: JSON.stringify({
|
|
120
|
+
body: JSON.stringify({ value: pvidValue })
|
|
111
121
|
}).then(res => res.json())
|
|
112
122
|
const pvId = pvRes?.data?.pvId
|
|
113
123
|
if (pvId) {
|
|
@@ -141,6 +151,10 @@ export async function jumpXcxToQuestion (this: any, params: any) {
|
|
|
141
151
|
}
|
|
142
152
|
} catch (err) {
|
|
143
153
|
console.error('[jumpXcxToQuestion] 生成scheme失败:', err)
|
|
154
|
+
} finally {
|
|
155
|
+
window.setTimeout(() => {
|
|
156
|
+
jumpXcxToQuestionRunning = false
|
|
157
|
+
}, 1000)
|
|
144
158
|
}
|
|
145
159
|
}
|
|
146
160
|
|
package/package.json
CHANGED
package/serverRender.ts
CHANGED
|
@@ -18,7 +18,6 @@ import QyOutWxAuthButton from './packages/qy-out-wx-auth-button/components/index
|
|
|
18
18
|
import QyPage from './packages/qy-page/components/index.vue'
|
|
19
19
|
import QyPicture from './packages/qy-picture/components/index.vue'
|
|
20
20
|
import QyRect from './packages/qy-rect/components/index.vue'
|
|
21
|
-
import QySeckill from './packages/qy-seckill/components/index.vue'
|
|
22
21
|
import QyText from './packages/qy-text/components/index.vue'
|
|
23
22
|
|
|
24
23
|
Vue.component('QyAnchor', QyAnchor)
|
|
@@ -39,5 +38,4 @@ Vue.component('QyOutWxAuthButton', QyOutWxAuthButton)
|
|
|
39
38
|
Vue.component('QyPage', QyPage)
|
|
40
39
|
Vue.component('QyPicture', QyPicture)
|
|
41
40
|
Vue.component('QyRect', QyRect)
|
|
42
|
-
Vue.component('QySeckill', QySeckill)
|
|
43
41
|
Vue.component('QyText', QyText)
|