<template>
  <view class="container">
    <web-view id="web-view" :src="path" />
  </view>
</template>

<script>
export default {
  data () {
    return {
      path: "",
      title: ""
    }
  },
  onLoad (opt) {
    this.path = opt.path
    this.title = opt.title
    uni.setNavigationBarTitle({
      title: this.title
    });
  },
}
</script>

<style lang='scss' scoped>
::v-deep .u-navbar__content,
::v-deep .u-status-bar {
  background-color: #c90700 !important;
}
</style>