<!--
 * @Author: PoJun
 * @Date: 2023-10-30 17:14:30
 * @LastEditors: PoJun
 * @LastEditTime: 2024-01-08 17:01:44
 * @Message: Nothing
-->
<template>
    <view class="webview-box">
        <web-view v-if="type == 'service'" src="/static/htmls/service.html"></web-view>
        <web-view v-else src="/static/htmls/privacy.html"></web-view>
    </view>
</template>

<script>
export default {
    data() {
        return {
            type: "service",
        };
    },
    methods: {},
    onLoad(e) {
        uni.setNavigationBarTitle({
            title: e.type == "service" ? "服务协议" : "隐私协议",
        });
        this.type = e.type;
    },
};
</script>

<style lang="scss">
.agreement {
    padding: 0 26rpx;
    font-size: 14px;
    .item {
        margin-bottom: 16rpx;
    }
    .tip {
        color: $uv-content-color;
        font-size: 13px;
    }
}
</style>
