Skip to content

Commit 87b74b7

Browse files
authored
Merge pull request #1157 from hj-mb/master
补救
2 parents adb7843 + 98175b5 commit 87b74b7

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

resources/views/payment/detail.blade.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
</tr>
3838
<tr>
3939
<td colspan="2" align="center">
40-
<img src="{{$payment->qr_local_url}}" width=75%/>
40+
<img id="qr" src="{{$payment->qr_local_url}}"/>
4141
</td>
4242
</tr>
4343
</table>
@@ -74,5 +74,13 @@ function getStatus () {
7474
}
7575
});
7676
}
77+
78+
//qr自适应
79+
var w=window.innerWidth;
80+
var h=window.innerHeight;
81+
x=document.getElementById("qr");
82+
if (w<=h)
83+
x.setAttribute("width""75%");
84+
else x.setAttribute("height""75%");
7785
</script>
7886
@endsection

0 commit comments

Comments
 (0)