Browse Source

手机调用摄像头好了

dev
蟑螂恶霸 2 months ago
parent
commit
0dd4c4b072
  1. 8
      zdxt-modules/zdxt-enforcement-code-common/pom.xml
  2. 6
      zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/scanEntQRCode.vue

8
zdxt-modules/zdxt-enforcement-code-common/pom.xml

@ -6,7 +6,7 @@
<parent>
<groupId>org.dromara</groupId>
<artifactId>zdxt-modules</artifactId>
<version>5.6.0</version>
<version>${revision}</version>
</parent>
<artifactId>zdxt-enforcement-code-common</artifactId>
@ -140,11 +140,5 @@
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
</dependencies>
</project>

6
zdxt-web-client/zdxt-efcode-enforcement-app/src/views/enforcement/scanEntQRCode.vue

@ -210,10 +210,8 @@ const onFileSelected = async (event) => {
const openWxScan = () => {
let fullUrl = window.location.href;
// let code = fullUrl.substring(fullUrl.indexOf('code=') + 5, fullUrl.indexOf('&state='));
let code = "http";
// let paramUrl = window.location.href.split("#")[0];
let paramUrl = "http://jdm.szssfj.cn/enforce/scanQrCode";
let code = fullUrl.substring(fullUrl.indexOf('code=') + 5, fullUrl.indexOf('&state='));
let paramUrl = window.location.href.split("#")[0];
let param = {code: code, url: paramUrl};
szyptGetToken(param, success => {
let resMsg = success.data;

Loading…
Cancel
Save