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

Merge branch 'feature/zl2' into 'develop'

auto commit

See merge request !23
......@@ -76,16 +76,10 @@
查看我的检测
</div>
</div>
<pica-guide-app
:open-web-app="true"
:open-web-app-config="openWebAppConfig"
:is-need-wx-config="false"
/>
</div>
</template>
<script>
import { getDetectionDetail } from '@/api/detection';
const { VUE_APP_ENV } = process.env;
export default {
filters: {
sexFilter(val) {
......@@ -106,20 +100,10 @@ export default {
},
id: '',
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() {
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();
},
mounted() {
......
......@@ -171,12 +171,17 @@
class="submit-button"
@click="getJumpToWebapp"
>
<pica-guide-app
:open-web-app="true"
:open-web-app-config="openWebAppConfig"
:is-need-wx-config="false"
/>
报告解读
<wx-open-launch-weapp
style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"
username="gh_e92f58174364"
path="pages/health/detection-detail/index"
:env-version="VUE_APP_ENV != 'testing' ? 'release' : 'trial'"
:extra-data="{id: 113}"
>
<script type="text/wxtag-template">
<style>.btn {position:absolute; top: 0; left: 0; width:100%; height: 100%;}</style> <div class="btn">报告解读{{dataDetail.status}}</div>
</script>
</wx-open-launch-weapp>
</div>
</div>
</div>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册