<template>
   
  <view class="container">
    <!-- 公共组件-每个页面必须引入 -->
    <public-module></public-module>
    <z-nav-bar title="说明" bgColor="#3AB3AE" fontColor="#fff"></z-nav-bar>
    <!-- <view
      class="contentBox"
      v-if="prescriptDetail.content && prescriptDetail.type == 0"
    >
      <view class="content">
         <view class="item title-center">
          {{ prescriptDetail.title }}
        </view>
         <view class="item" v-html="prescriptDetail.content"> </view>
     
      </view>
    </view> -->
    <view class="fullscreen-webview">
      <web-view :src="urlPath"> </web-view>
    </view>
  </view>
</template>

<script>
export default {
  data() {
    return {
      playData: {},
      urlPath: "",
      title: "",
      id: null,
      indicatorDots: true,
      autoplay: true,
      interval: 5000,
      duration: 500,
    };
  },
  onLoad(options) {
    if (options.type == 1) {
      this.urlPath = "https://zmzm.taihumed.com/agreement.html";
      this.title = "用户协议";
    } else if (options.type == 2) {
      this.urlPath = "https://zmzm.taihumed.com/privacy.html";
      this.title = "隐私策略";
    }
  },
  onShow() {},
  methods: {
    // 放大图片
    previewImage(url) {
      console.log(url);
      uni.previewImage({
        urls: [url],
        longPressActions: {
          itemList: ["很抱歉，暂不支持保存图片到本地"],
          success: function (res) {
            // console.log(res,'+++++')
          },
        },
      });
    },
    // 方剂详情
  },
};
</script>

<style lang="scss" scoped>
.contentBox {
  padding-bottom: 20rpx;
}

.contentBoxwebwiew {
  height: 100%;
  // .webwiew{
  // 	height: 100%;
  // }
}

.fullscreen-webview {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.mb-10 {
  margin-bottom: 10px;
}

.content {
  font-size: 28rpx;
}

.swiper-item {
  image {
    margin: 0 auto;
    height: 250rpx;
  }
}

.uni-margin-wrap {
  margin-bottom: 20rpx;
  padding-top: 20rpx;
  background-color: #fff;
}

.container {
  padding: 10rpx;

  // background-color: #fff;
  .item {
    // color: #666;
    padding: 10rpx 20rpx;
    padding-bottom: 20rpx;
    line-height: 46rpx;
  }

  .title-center {
    text-align: center;
    font-size: 32rpx;
    font-weight: 700 !important;
  }
}

.flexbox {
  display: flex;
}

::v-deep .uni-section-header__decoration.line {
  background-color: #18bc37;
}
</style>
