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

auto commit

上级 296972c7
...@@ -76,16 +76,10 @@ ...@@ -76,16 +76,10 @@
查看我的检测 查看我的检测
</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) {
...@@ -106,20 +100,10 @@ export default { ...@@ -106,20 +100,10 @@ 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() {
......
...@@ -171,12 +171,17 @@ ...@@ -171,12 +171,17 @@
class="submit-button" class="submit-button"
@click="getJumpToWebapp" @click="getJumpToWebapp"
> >
<pica-guide-app <wx-open-launch-weapp
:open-web-app="true" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"
:open-web-app-config="openWebAppConfig" username="gh_e92f58174364"
:is-need-wx-config="false" 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> </div>
</div> </div>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册