apply-clients 4.1.57-weinan → 4.1.58-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
|
@@ -206,7 +206,8 @@ export default {
|
|
|
206
206
|
},
|
|
207
207
|
title1:'',
|
|
208
208
|
// 收费编号
|
|
209
|
-
f_charge_number:''
|
|
209
|
+
f_charge_number:'',
|
|
210
|
+
state:'结束'
|
|
210
211
|
}
|
|
211
212
|
},
|
|
212
213
|
ready () {
|
|
@@ -235,40 +236,41 @@ export default {
|
|
|
235
236
|
},*/
|
|
236
237
|
// 获取订单信息
|
|
237
238
|
async getOrderInformation () {
|
|
239
|
+
this.state = '开始'
|
|
238
240
|
// 查询订单信息
|
|
239
241
|
console.log('查询订单信息!!!')
|
|
240
|
-
// let data = {
|
|
241
|
-
// out_trade_no: this.order.out_trade_no,
|
|
242
|
-
// filiale: this.config[Vue.user.number]
|
|
243
|
-
// }
|
|
244
242
|
// 查询订单状态
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
243
|
+
try {
|
|
244
|
+
let http = new HttpResetClass()
|
|
245
|
+
let res = await http.load('POST', `${this.$androidUtil.getProxyUrl()}/rs/sql/apply_singleTable`, {
|
|
246
|
+
data: {
|
|
247
|
+
tablename: "t_weixinreturnxml",
|
|
248
|
+
condition: ` f_out_trade_no = '${this.order.f_out_trade_no}' and f_order_state = '已支付' `,
|
|
249
|
+
}
|
|
250
|
+
}, {
|
|
251
|
+
resolveMsg: null,
|
|
252
|
+
rejectMsg: '订单查询失败!!!'
|
|
253
|
+
})
|
|
254
|
+
console.log('8888888888')
|
|
255
|
+
console.log(this.order.f_out_trade_no)
|
|
256
|
+
console.log(JSON.stringify(res))
|
|
257
|
+
// 支付成功
|
|
258
|
+
if (res.data.length > 0) {
|
|
259
|
+
this.$showMessage('支付成功!!!')
|
|
260
|
+
clearTimeout(this.paymentInterval)
|
|
261
|
+
clearTimeout(this.orderInterval)
|
|
262
|
+
this.timeLeft = 300
|
|
263
|
+
// 修改支付状态
|
|
264
|
+
this.updatestate('支付成功','有效')
|
|
265
|
+
this.saveother()
|
|
266
|
+
// 清除二维码
|
|
267
|
+
this.clearQrCode()
|
|
268
|
+
this.showQrCode = false
|
|
251
269
|
}
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
rejectMsg: '订单查询失败!!!'
|
|
255
|
-
})
|
|
256
|
-
console.log('8888888888')
|
|
257
|
-
console.log(this.order.f_out_trade_no)
|
|
258
|
-
console.log(JSON.stringify(res))
|
|
259
|
-
// 支付成功
|
|
260
|
-
if (res.data.length > 0) {
|
|
261
|
-
this.$showMessage('支付成功!!!')
|
|
262
|
-
clearTimeout(this.paymentInterval)
|
|
263
|
-
clearTimeout(this.orderInterval)
|
|
264
|
-
this.timeLeft = 300
|
|
265
|
-
// 修改支付状态
|
|
266
|
-
this.updatestate('支付成功','有效')
|
|
267
|
-
this.saveother()
|
|
268
|
-
// 清除二维码
|
|
269
|
-
this.clearQrCode()
|
|
270
|
-
this.showQrCode = false
|
|
270
|
+
}catch (e){
|
|
271
|
+
this.state = '结束'
|
|
271
272
|
}
|
|
273
|
+
this.state = '结束'
|
|
272
274
|
},
|
|
273
275
|
checkApplyModel(){
|
|
274
276
|
console.log(this.charge.payment_terms)
|
|
@@ -395,7 +397,9 @@ export default {
|
|
|
395
397
|
|
|
396
398
|
// 3秒查询一次订单支付信息
|
|
397
399
|
this.orderInterval = setInterval(() => {
|
|
398
|
-
this.
|
|
400
|
+
if(this.state == '结束'){
|
|
401
|
+
this.getOrderInformation()
|
|
402
|
+
}
|
|
399
403
|
},3000)
|
|
400
404
|
}else{
|
|
401
405
|
this.$showMessage('订单生成失败')
|