| | |
| | | * @Author: 小明丶 |
| | | * @Date: 2020-05-20 20:29:47 |
| | | * @LastEditors: zxq |
| | | * @LastEditTime: 2022-08-04 14:55:01 |
| | | * @LastEditTime: 2022-08-05 15:19:44 |
| | | * @Description: |
| | | --> |
| | | <template> |
| | |
| | | if (window.android && window.android.fetchQrCode) { |
| | | window.android.fetchQrCode(); |
| | | } else { |
| | | console.log(wx) |
| | | wx.scanQRCode({ |
| | | needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, |
| | | scanType: ["qrCode", "barCode"], // 可以指定扫二维码还是一维码,默认二者都有 |
| | | success: function(res) { |
| | | var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果 |
| | | console.log(result); |
| | | _this.str = res.resultStr; |
| | | _this.$router.push({ |
| | | path: "/order-handling", |
| | |
| | | width: 100%; |
| | | height: 100vh; |
| | | background: url('../../../static/img/homeBack.png'); |
| | | background-size: cover; |
| | | background-size: 100% 100%; |
| | | position: relative; |
| | | } |
| | | .btn-box{ |