@qywh/package 0.0.3-beta07 → 0.0.3-beta08

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qywh/package",
3
- "version": "0.0.3-beta07",
3
+ "version": "0.0.3-beta08",
4
4
  "description": "钦煜文化低代码可视化组件库",
5
5
  "main": "index.ts",
6
6
  "typings": "typings/index.d.ts",
@@ -28,7 +28,8 @@
28
28
 
29
29
  <script lang="ts">
30
30
  import { Component, Vue, Prop } from 'vue-property-decorator'
31
- import { service } from '../../../lib/request'
31
+ import request from '../../../lib/request'
32
+ import { getUrlParams } from '../../../lib/methods/jump'
32
33
 
33
34
  @Component
34
35
  export default class QyOutSuccessWechatDiversion extends Vue {
@@ -47,14 +48,10 @@ export default class QyOutSuccessWechatDiversion extends Vue {
47
48
  }
48
49
  }
49
50
 
50
- get pageQuery () {
51
- return (this as any).$utils ? (this as any).$utils.getUrlParams() : {}
52
- }
53
-
54
51
  async fetchQrCode () {
55
52
  if (this.isEdit) return
56
53
 
57
- const { orderId, userId } = this.pageQuery
54
+ const { orderId, userId } = getUrlParams()
58
55
  if (!orderId || !userId) {
59
56
  this.error = '缺少订单参数'
60
57
  return
@@ -63,11 +60,9 @@ export default class QyOutSuccessWechatDiversion extends Vue {
63
60
  for (let i = 0; i < 5; i++) {
64
61
  try {
65
62
  this.error = ''
66
- const res: any = await service.get('/common/api/getOrderQrCode', {
67
- params: { orderId, userId }
68
- })
69
- if (res && res.data && res.data.qrCode) {
70
- this.qrcode = res.data.qrCode
63
+ const res: any = await request.get('/common/api/getOrderQrCode', { orderId, userId })
64
+ if (res && res.qrCode) {
65
+ this.qrcode = res.qrCode
71
66
  return
72
67
  }
73
68
  } catch (e) {