Commit bd35f55a authored by gengchunlei's avatar gengchunlei

楚雄小程序 隐藏地图

parent 2b2f83f2
......@@ -31,7 +31,7 @@
<script type="text/javascript">document.write(unescape("%3Cspan id='cnzz_stat_icon_1280549113'%3E%3C/span%3E%3Cscript src='https://v1.cnzz.com/z_stat.php%3Fid%3D1280549113%26show%3Dpic1' type='text/javascript'%3E%3C/script%3E"));</script>
</body>
<script>
/*var vConsole =new VConsole();
/* var vConsole =new VConsole();
console.log('Hello world');*/
</script>
</html>
......@@ -68,7 +68,7 @@
<script>
import {addMedicalRecord, getStockInfo} from "../utils/api";
import {callMobile} from "../utils/common";
import {callMobile, showNav} from "../utils/common";
import { Toast } from 'mint-ui';
import {receiveWay} from "../utils/dictionaries";
import { Indicator } from 'mint-ui';
......@@ -92,7 +92,9 @@
}
},
created() {
if (!this.showNav()) {
document.title = '选择药具'
}
},
methods:{
getStockListInfo(callBack) {
......
<template>
<div>
<van-popup v-model="show" position="right" :style="{ height: '100%',width: '100%' }" >
<van-popup v-model="show" position="right" :style="{ height: '100%',width: '100%' }">
<div class="all">
<video style="display: none" ref="video"></video>
<canvas style="width: 100vw; margin-top: 13vw" id="canvas"></canvas>
<canvas style="width: 90vw; margin-top: 20vh;height: 40vh" id="canvas"></canvas>
<canvas style="display: none" id="2d"></canvas>
</div>
</van-popup>
</div>
</template>
<script>
import "@/utils/jsQR.js";
import {jsQR} from "../../utils/jsQR"; // 添加关闭摄像头的函数
import jsQR from "../../utils/jsQR";
export default {
name: 'analyzeQRCode',
......@@ -37,20 +38,18 @@ export default {
// this.streams.getTracks().forEach((track) => track.stop());
// }
// video.srcObject = null;
let that = this
var video = document.createElement("video");
var canvasElement = document.getElementById("canvas");
var canvas = canvasElement.getContext("2d");
console.log(navigator.mediaDevices);
// 尝试打开手机上安装后置摄像头
navigator.mediaDevices
.getUserMedia({
video: {facingMode: "environment"},
})
.then(function (stream) {
debugger
this.streams.value = stream;
.then((stream) => {
this.streams = stream;
video.srcObject = stream;
// 阻止IOS视频全屏
video.setAttribute("playsinline", true);
......@@ -85,6 +84,8 @@ export default {
if (code) {
console.log(code.data);
alert(code.data);
//输出解析后的二维码
this.$emit("getQRCode", code.data)
}
}
requestAnimationFrame(tick);
......@@ -94,4 +95,13 @@ export default {
}
</script>
\ No newline at end of file
</script>
<style lang="less" scoped>
.all {
background: black;
height: 100vh;
display: flex;
justify-content: space-around;
}
</style>
\ No newline at end of file
......@@ -46,7 +46,7 @@
<script>
import {Toast} from 'mint-ui'
import {getQueryVariable, idCardV, validateIdCard} from "../../utils/common";
import {getQueryVariable, idCardV, showNav, validateIdCard} from "../../utils/common";
import {getCheckShortMessage, getShortMessage, getUserInfoByIdCard} from "../../utils/api";
import NoData from "../component/noData";
export default {
......@@ -70,7 +70,9 @@
}
},
created() {
if (!this.showNav()) {
document.title = '人工发放'
}
this.urltext()
let initPeople = JSON.parse(window.localStorage.getItem('initPeople'))
if (initPeople) {
......
......@@ -139,7 +139,7 @@
import NoData from '../component/noData';
import { Toast,Indicator } from 'mint-ui';
import {receiveWay} from "../../utils/dictionaries";
import {idCardValidator} from '../../utils/common'
import {idCardValidator, showNav} from '../../utils/common'
export default {
components: {NoData},
......@@ -186,7 +186,9 @@
})
},
created() {
if (!this.showNav()) {
document.title = '人工网点申领'
}
this.routerDetail = this.$route.query
if (this.routerDetail.resource == 1) {
this.showForm = true
......
......@@ -53,6 +53,7 @@
import {getUserCollectRecordByNo} from "../../utils/api";
import NoData from '../component/noData';
import { Toast,Indicator } from 'mint-ui';
import {showNav} from "../../utils/common";
export default {
components: {NoData},
......@@ -72,7 +73,9 @@
}
},
created() {
if (!this.showNav()) {
document.title = '申领结果'
}
this.routerDetail = this.$route.query
this.getRecordInfo()
},
......
......@@ -29,7 +29,7 @@
<label>返回首页</label>
</div>
</div>
<!-- <analyze-q-r-code :show="showPop" v-if="showPop"></analyze-q-r-code>-->
<analyze-q-r-code :show="showPop" v-if="showPop"></analyze-q-r-code>
</div>
</template>
......@@ -41,14 +41,14 @@
import presonImg from '../assets/img/preson.png';
import sharpImg from '../assets/img/sharp.png';
import {getNetworkInfo} from '../utils/api';
import {callMobile, getQueryVariable} from "../utils/common";
import {callMobile, getQueryVariable, showNav} from "../utils/common";
import {Toast} from 'mint-ui';
import {GPS} from "../utils/mapCalculation";
import AnalyzeQRCode from "./component/analyzeQRCode";
export default {
name: "myMap",
// components: {AnalyzeQRCode},
components: {AnalyzeQRCode},
inject: ['showNav'],
data() {
return {
......@@ -62,7 +62,9 @@
}
},
created() {
if (!this.showNav()) {
document.title = '药具领取'
}
this.urltext()
},
mounted() {
......@@ -105,6 +107,7 @@
// })
// this.subscanQRCallBack(111)
//微信环境下 打开js扫码 (暂时关闭)
// if (isWeiXin()){
// this.showPop = true
// } else {
......
......@@ -18,7 +18,7 @@
</template>
<script>
import {callMobile} from "../utils/common";
import {callMobile, showNav} from "../utils/common";
export default {
name: "receiveSuccess",
......@@ -27,7 +27,9 @@
return {}
},
created() {
if (!this.showNav()) {
document.title = '领取成功'
}
},
methods:{
goBack() {
......
......@@ -53,6 +53,7 @@
import {addVisitRecord} from "../utils/api";
import { Toast } from 'mint-ui';
import { Indicator } from 'mint-ui';
import {showNav} from "../utils/common";
export default {
name: "returnVisit",
......@@ -81,7 +82,9 @@
}
},
created() {
if (!this.showNav()) {
document.title = '填写随访'
}
},
methods:{
changeAgree() {
......
......@@ -117,7 +117,9 @@
})
},
created() {
if (!this.showNav()) {
document.title = '网点详情'
}
/*发请求通过this.$route.query.id*/
this.siteDetail = JSON.parse(this.$route.query.info)
this.relationId = this.siteDetail.id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment