| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <template>
- <div>
- <!-- <block v-if="url"><web-view :src="url" @message="onMessage"></web-view></block> -->
- <div class="img-box" v-if="imgName"><img mode="widthFix" lazy-load :src="imgUrl + imgName + queryTime" /></div>
- </div>
- </template>
- <script>
- import methods from './methods.js';
- export default {
- data() {
- return {
- imgUrl: '',
- imgName: ''
- };
- },
- computed: {
- queryTime() {
- return `?t=${new Date().getTime()}`;
- }
- },
- onLoad(options) {
- let app = getApp();
- this.imgUrl = app.globalData.imgUrl;
- this.imgName = options.img
- if (this.imgName == 'screening_check_1.jpg') {
- wx.setNavigationBarTitle({
- title: '感谢查阅'
- })
- } else {
- wx.setNavigationBarTitle({
- title: '视光筛查'
- })
- }
- },
- onShow() {},
- methods: {
- ...methods
- }
- };
- </script>
- <style lang="scss" scoped>
- @import './style.scss';
- </style>
|