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

Merge branch 'feature/zl2' into 'develop'

auto commit

See merge request !20
...@@ -115,6 +115,7 @@ ...@@ -115,6 +115,7 @@
</div> </div>
<van-overlay <van-overlay
z-index="11" z-index="11"
lock-scroll="false"
:show="showProtocol" :show="showProtocol"
@click="showProtocol = false" @click="showProtocol = false"
> >
...@@ -198,7 +199,7 @@ export default { ...@@ -198,7 +199,7 @@ export default {
return { return {
picaWechat:window._picaWechat, picaWechat:window._picaWechat,
headerInfo: { headerInfo: {
title: '绑定条码', title: '绑定条码22',
isBlack: true, isBlack: true,
backMethod: 'web', backMethod: 'web',
style: 'backgroundColor:#ffffff;zIndex:100;paddingTop:8px;', style: 'backgroundColor:#ffffff;zIndex:100;paddingTop:8px;',
......
...@@ -76,10 +76,16 @@ ...@@ -76,10 +76,16 @@
查看我的检测 查看我的检测
</div> </div>
</div> </div>
<pica-guide-app
:open-web-app="true"
:open-web-app-config="openWebAppConfig"
:is-need-wx-config="false"
/>
</div> </div>
</template> </template>
<script> <script>
import { getDetectionDetail } from '@/api/detection'; import { getDetectionDetail } from '@/api/detection';
const { VUE_APP_ENV } = process.env;
export default { export default {
filters: { filters: {
sexFilter(val) { sexFilter(val) {
...@@ -100,10 +106,20 @@ export default { ...@@ -100,10 +106,20 @@ export default {
}, },
id: '', id: '',
dataDetail: {}, dataDetail: {},
openWebAppConfig:{
content:'<script' + ' type=text/wxtag-template><style>.btn {position:absolute; top: 0; left: 0; width:100%; height: 100%;}</style> <div class="btn"></div></' + 'script>', // 标签内容
username:'gh_e92f58174364', // 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
path:'', // 打开页面
envVersion: VUE_APP_ENV != 'testing' ? 'release' : 'trial', // release 生产
extraData:''
},
}; };
}, },
created() { created() {
this.id = this.$route.query.id || 11073; this.id = this.$route.query.id || 11073;
this.openWebAppConfig.path = 'pages/health/detection-detail/index';
this.openWebAppConfig.extraData = JSON.stringify({test:'123'});
console.log('openWebAppConfig', this.openWebAppConfig);
this.init(); this.init();
}, },
mounted() { mounted() {
......
...@@ -172,7 +172,6 @@ ...@@ -172,7 +172,6 @@
@click="getJumpToWebapp" @click="getJumpToWebapp"
> >
<pica-guide-app <pica-guide-app
v-if="picaWechat == 'wechat'"
:open-web-app="true" :open-web-app="true"
:open-web-app-config="openWebAppConfig" :open-web-app-config="openWebAppConfig"
:is-need-wx-config="false" :is-need-wx-config="false"
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册