提交 0eff5d78 编写于 作者: 张磊's avatar 张磊

auto commit

上级 410408ac
...@@ -3,6 +3,7 @@ import * as dd from 'dingtalk-jsapi'; ...@@ -3,6 +3,7 @@ import * as dd from 'dingtalk-jsapi';
import '@/router'; import '@/router';
console.log('router, store, vueApp: ', router, store, vueApp); console.log('router, store, vueApp: ', router, store, vueApp);
import '@/assets/js/flexible'; import '@/assets/js/flexible';
import {isWeixin } from './utils/index';
import {PicaArea} from 'pica-area'; import {PicaArea} from 'pica-area';
console.log('PicaArea', PicaArea); console.log('PicaArea', PicaArea);
// 禁用双指放大 // 禁用双指放大
...@@ -37,12 +38,17 @@ document.documentElement.addEventListener( ...@@ -37,12 +38,17 @@ document.documentElement.addEventListener(
vueApp.$rocNative.appInit(); vueApp.$rocNative.appInit();
vueApp.$rocNative.on('wx_ready', function () { vueApp.$rocNative.on('wx_ready', function () {
console.log('-wx_ready-'); console.log('-wx_ready-', window._picaWechat);
window._picaWechat = 'wechat';
}); });
if(dd.env.platform) { console.log('---', isWeixin());
if(isWeixin()) {
window._picaWechat = 'wechat';
}
if(dd.env.version) {
window._picaWechat = 'dingtalk'; window._picaWechat = 'dingtalk';
} }
sessionStorage.setItem('headerHeight', 0);
window.Vue.use(PicaArea); window.Vue.use(PicaArea);
console.log('router, store, vueApp: ', router, store, vueApp); console.log('router, store, vueApp: ', router, store, vueApp);
console.log('window :>> ', window); console.log('window :>> ', window);
...@@ -32,8 +32,12 @@ export const formatDay = (datetime) => { ...@@ -32,8 +32,12 @@ export const formatDay = (datetime) => {
// 判断是否是微信 // 判断是否是微信
export function isWeixin() { export function isWeixin() {
const ua = navigator.userAgent.toLowerCase(); const ua = window.navigator.userAgent.toLowerCase();
return ua.match(/MicroMessenger/i) === 'micromessenger'; if(ua.match(/MicroMessenger/i) == 'micromessenger' || ua.match(/_SQ_/i) == '_sq_') {
return true;
} else{
return false;
}
} }
// 时间戳 格式化为 时分秒(00: 00: 00) // 时间戳 格式化为 时分秒(00: 00: 00)
...@@ -105,3 +109,4 @@ export function getBirthdayAndSex(idCard) { ...@@ -105,3 +109,4 @@ export function getBirthdayAndSex(idCard) {
info.sex = (order % 2 === 0 ? 0 : 1); info.sex = (order % 2 === 0 ? 0 : 1);
return info; return info;
} }
<template> <template>
<div class="insurance-binding-code-container"> <div class="insurance-binding-code-container">
<page-model <page-model
v-if="picaWechat != 'wechat'"
ref="PageModel" ref="PageModel"
:header-info="headerInfo" :header-info="headerInfo"
/> />
...@@ -59,6 +60,7 @@ ...@@ -59,6 +60,7 @@
> >
</div> </div>
<div <div
v-if="picaWechat == 'wechat'"
class="scan-qr-img-container-code" class="scan-qr-img-container-code"
@click="scanCode()" @click="scanCode()"
> >
...@@ -81,9 +83,7 @@ ...@@ -81,9 +83,7 @@
</div> </div>
</div> </div>
<div <div class="notification">
class="notification"
>
<div class="sign-detection"> <div class="sign-detection">
<img <img
v-if="isCheck" v-if="isCheck"
...@@ -196,14 +196,15 @@ import { signDetection, getProtocolContent, getProtocolName, sampleCodeValidate, ...@@ -196,14 +196,15 @@ import { signDetection, getProtocolContent, getProtocolName, sampleCodeValidate,
export default { export default {
data() { data() {
return { return {
picaWechat:window._picaWechat,
headerInfo: { headerInfo: {
title: '绑定条码', title: '绑定条码',
isBlack: true, isBlack: true,
backMethod: 'web', backMethod: 'web',
style: 'backgroundColor:#ffffff;zIndex:100;', style: 'backgroundColor:#ffffff;zIndex:100;paddingTop:8px;',
background: '', background: '',
}, },
showBindingInfo: true, showBindingInfo: false,
showEditModal: false, showEditModal: false,
isCheck: false, isCheck: false,
barCode: '020987654321', barCode: '020987654321',
...@@ -228,6 +229,7 @@ export default { ...@@ -228,6 +229,7 @@ export default {
computed: { computed: {
}, },
created() { created() {
console.log('--window._picaWechat', window._picaWechat);
// 11073 // 11073
const mock = { const mock = {
checkName: '博厚检测2', checkName: '博厚检测2',
...@@ -270,13 +272,20 @@ export default { ...@@ -270,13 +272,20 @@ export default {
this.barCode = ''; this.barCode = '';
}, },
scanCode() { scanCode() {
window.wx && window.wx.scanQRCode({ const that = this;
needResult: 0, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果, console.log('--$rocNative', this.$rocNative);
scanType: ['qrCode', 'barCode'], // 可以指定扫二维码还是一维码,默认二者都有 const p = {
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,
scanType: ['barCode'], // 可以指定扫二维码还是一维码,默认二者都有
success: function (res) { success: function (res) {
console.log('---res', res); console.log('---res', res);
// var result = res.resultStr; // 当needResult 为 1 时,扫码返回的结果 const s = res.resultStr;
that.barCode = s && s.spilt(',')[1];
} }
};
this.$rocNative && this.$rocNative.scanQRCode(p, (res) => {
console.log('====', res);
}); });
}, },
toggleBindingInfo() { toggleBindingInfo() {
...@@ -536,13 +545,11 @@ export default { ...@@ -536,13 +545,11 @@ export default {
} }
.submit-button-top{ .submit-button-top{
position: absolute;
bottom: 0;
display: flex; display: flex;
width: 100%; width: 100%;
font-size: 16px; font-size: 16px;
font-weight: 700; font-weight: 700;
margin-bottom: 210px; margin-top: 90px;
.submit-button{ .submit-button{
width: 90%; width: 90%;
height: 40px; height: 40px;
...@@ -560,13 +567,12 @@ export default { ...@@ -560,13 +567,12 @@ export default {
} }
} }
.notification{ .notification{
margin-top: 16px; margin: 0 auto;
width: 100%;
margin-top: 60px;
position: absolute; position: absolute;
bottom: 260px;
left:0;right:0;
font-size: 16px; font-size: 16px;
font-weight: 700; font-weight: 700;
.sign-detection{ .sign-detection{
margin:0 auto; margin:0 auto;
height: auto; height: auto;
...@@ -616,9 +622,14 @@ export default { ...@@ -616,9 +622,14 @@ export default {
} }
.protocol-text{ .protocol-text{
height: 400PX; height: 400PX;
overflow: scroll; overflow-y: scroll;
-webkit-overflow-scrolling: touch;
line-height: 2; line-height: 2;
padding: 0px 4px; padding: 0 4px;
&>p{
-webkit-overflow-scrolling: touch;
min-height: 1000px;
}
} }
.btn{ .btn{
background-color: #00BDA5; background-color: #00BDA5;
......
<template> <template>
<div class="insurance-bindCode-success"> <div class="insurance-bindCode-success">
<page-model <page-model
v-if="picaWechat != 'wechat'"
ref="PageModel" ref="PageModel"
:header-info="headerInfo" :header-info="headerInfo"
/> />
...@@ -61,7 +62,6 @@ ...@@ -61,7 +62,6 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
</div> </div>
...@@ -89,6 +89,7 @@ export default { ...@@ -89,6 +89,7 @@ export default {
}, },
data() { data() {
return { return {
picaWechat:window._picaWechat,
status: '', status: '',
headerInfo: { headerInfo: {
title: '检测服务', title: '检测服务',
......
<template> <template>
<div class="d-box"> <div class="d-box">
<page-model <page-model
v-if="picaWechat != 'wechat'"
ref="PageModel" ref="PageModel"
:header-info="headerInfo" :header-info="headerInfo"
/> />
...@@ -76,7 +77,10 @@ ...@@ -76,7 +77,10 @@
src="https://files.yunqueyi.com/image/png/common/2022081612011851.png" src="https://files.yunqueyi.com/image/png/common/2022081612011851.png"
> >
</div> </div>
<div v-else class="express-step-icon"></div> <div
v-else
class="express-step-icon"
/>
<div <div
class="express-step-msg" class="express-step-msg"
> >
...@@ -84,7 +88,12 @@ ...@@ -84,7 +88,12 @@
<p> <p>
{{ item.nodeName }} {{ item.nodeName }}
</p> </p>
<p v-if="dataDetail.status == 6" class="tips">温馨提示:可联系医生重新采样</p> <p
v-if="dataDetail.status == 6"
class="tips"
>
温馨提示:可联系医生重新采样
</p>
</div> </div>
<div <div
class="step-time" class="step-time"
...@@ -228,6 +237,7 @@ export default { ...@@ -228,6 +237,7 @@ export default {
}, },
data() { data() {
return { return {
picaWechat:window._picaWechat,
status: '', status: '',
headerInfo: { headerInfo: {
title: '检测详情', title: '检测详情',
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册