Browse Source

手机调用摄像头好了

dev-V1.10.2-temp
蟑螂恶霸 4 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> <parent>
<groupId>org.dromara</groupId> <groupId>org.dromara</groupId>
<artifactId>zdxt-modules</artifactId> <artifactId>zdxt-modules</artifactId>
<version>5.6.0</version> <version>${revision}</version>
</parent> </parent>
<artifactId>zdxt-enforcement-code-common</artifactId> <artifactId>zdxt-enforcement-code-common</artifactId>
@ -140,11 +140,5 @@
<groupId>org.springframework</groupId> <groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId> <artifactId>spring-test</artifactId>
</dependency> </dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>

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

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

Loading…
Cancel
Save