apply-clients 4.1.65-weinan → 4.1.66-weinan

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": "apply-clients",
3
- "version": "4.1.65-weinan",
3
+ "version": "4.1.66-weinan",
4
4
  "description": "报建前端模块",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -236,14 +236,14 @@ export default {
236
236
  this.$dispatch('breakControl')
237
237
  },*/
238
238
  // 获取订单信息
239
- getOrderInformation () {
239
+ async getOrderInformation () {
240
240
  this.state = '开始'
241
241
  // 查询订单信息
242
242
  console.log('查询订单信息!!!')
243
243
  // 查询订单状态
244
244
  try {
245
245
  let http = new HttpResetClass()
246
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {
246
+ await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {
247
247
  data: {
248
248
  tablename: "t_weixinreturnxml",
249
249
  condition: ` f_out_trade_no = '${this.order.f_out_trade_no}' and f_order_state = '已支付' `,
@@ -252,6 +252,7 @@ export default {
252
252
  resolveMsg: null,
253
253
  rejectMsg: '订单查询失败!!!'
254
254
  }).then(res=>{
255
+ this.state = '结束'
255
256
  console.log('8888888888')
256
257
  console.log(this.order.f_out_trade_no)
257
258
  console.log(JSON.stringify(res))
@@ -274,7 +275,6 @@ export default {
274
275
  }catch (e){
275
276
  this.state = '结束'
276
277
  }
277
- this.state = '结束'
278
278
  },
279
279
  checkApplyModel(){
280
280
  console.log(this.charge.payment_terms)
@@ -366,11 +366,11 @@ export default {
366
366
  console.log('下单信息')
367
367
  console.log(JSON.stringify(data))
368
368
  // 下订单
369
- http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/pay/jsApiPay`, data, {
369
+ await http.load('POST', `${this.$androidUtil.getProxyUrl()}/wx/rs/pay/jsApiPay`, data, {
370
370
  resolveMsg: null,
371
371
  rejectMsg: '订单生成失败!!!'
372
372
  }).then(
373
- res=>{
373
+ async res=>{
374
374
  console.log('=================================')
375
375
  console.log("数据测试"+JSON.stringify(res.data))
376
376
  this.order = res.data
@@ -381,10 +381,10 @@ export default {
381
381
  user: Vue.user,
382
382
  f_out_trade_no:this.order.f_out_trade_no
383
383
  }
384
- http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/beforeAddChargeRecord`,{data:info},{
384
+ await http.load('POST',`${this.$androidUtil.getProxyUrl()}/rs/logic/beforeAddChargeRecord`,{data:info},{
385
385
  resolveMsg: null,
386
386
  rejectMsg: null
387
- }).then(ress=>{
387
+ }).then( async ress=>{
388
388
  console.log('ress',ress)
389
389
  if(ress.data.code == '200'){
390
390
  this.f_charge_number = ress.data.f_charge_number
@@ -398,9 +398,9 @@ export default {
398
398
  },1000)
399
399
 
400
400
  // 3秒查询一次订单支付信息
401
- this.orderInterval = setInterval(() => {
401
+ this.orderInterval = setInterval(async() => {
402
402
  if(this.state == '结束'){
403
- this.getOrderInformation()
403
+ await this.getOrderInformation()
404
404
  }
405
405
  },3000)
406
406
  }else{