diff --git a/pages/orderList/orderList.vue b/pages/orderList/orderList.vue index 645604f..72c408c 100644 --- a/pages/orderList/orderList.vue +++ b/pages/orderList/orderList.vue @@ -42,24 +42,19 @@ 评价订单 - - -
11{{imageUrl}}
- - - - 长按扫一扫支付 + + + + 长按识别图中二维码支付
- - @@ -81,7 +76,7 @@ activeKey: 0, pageNum:1, totalPages:0, - imageUrl:null, + imageUrl:'', tabList: [{ id: 0, title: '全部订单' @@ -175,12 +170,8 @@ canvasId: 'myQrcode', text: res.data.code_url }) - }, 60) - setTimeout(()=>{ that.convertToImage() - - }, 500) - + }, 60) }) }, @@ -191,7 +182,9 @@ canvasId: 'myQrcode', success: function(res) { // 在H5平台下,tempFilePath 为 base64 - this.imageUrl = res.tempFilePath.replace(/[\r\n]/g, "") + // this.imageUrl = res.tempFilePath.replace(/[\r\n]/g, "") + document.getElementById("dl-pay-img").setAttribute("src",res.tempFilePath.replace(/[\r\n]/g, "")) + this.$forceUpdate() console.log(this.imageUrl,200); } })