<template>
  <view class="content">
    <uni-nav-bar left-icon="back" @clickLeft="back" statusBar fixed :title="title"></uni-nav-bar>
    <image :show-menu-by-longpress="true" :src="url" class="img" mode="widthFix"></image>
  </view>
</template>

<script>
  import { go2, back } from '@/utils/hook.js'
  export default {
    data() {
      return {
        title: '',
        url: ''
      }
    },
    onLoad(options) {
      this.title = options.title
      this.url = options.url
    },
    methods: {
      go2,
      back
    }
  }
</script>

<style lang="scss" scoped>
  .content {
    width: 750rpx;
  }
  .img {
    width: 750rpx;
  }
</style>
