<template>
    <!-- pages/oneselfCenter/page/feedbackSuc/feedbackSuc.wxml -->
    <view class="suc-wrapper">
        <image class="thanks" src="https://chis.e24health.com/images/icon/doctor/thanks.png"></image>
        <view class="tips0">已收到您的反馈</view>
        <view class="tips1">非常感谢您提出的宝贵建议和问题，我们将仔细评估解决</view>
        <view class="bottombtn">
            <button class="multiBtn-right" @tap="backHome">返回首页</button>
        </view>
    </view>
</template>

<script>
import Cache from '../../../../utils/cache';
// pages/oneselfCenter/page/feedbackSuc/feedbackSuc.js
export default {
    data() {
        return {};
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {},
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {},
    methods: {
        backHome: function () {
            let userData = Cache.get('userData');
            if (userData) {
                uni.switchTab({
                    url: '/pages/tabBar/home/home'
                });
            } else {
                uni.switchTab({
                    url: '/pages/tabBar/login/login'
                });
            }
        }
    }
};
</script>
<style>
/* @import '../help/help.css'; */
page {
    height: 100%;
}
.suc-wrapper {
    height: 100%;
    background-color: #fff;
    /* padding: 30rpx; */
    text-align: center;
}

.thanks {
    height: 500rpx;
    width: 500rpx;
    margin-left: auto;
    margin-right: auto;
    padding-top: 23rpx;
}

.tips0 {
    height: 100rpx;
    line-height: 100rpx;
    font-size: 36rpx;
    font-family: PingFang SC;
    font-weight: bold;
    color: rgba(51, 51, 51, 1);
    width: 100%;
    text-align: center;
}

.tips1 {
    width: calc(100% - 160rpx);
    margin-left: 80rpx;
    text-align: center;
    line-height: 80rpx;
    font-size: 32rpx;
    font-family: PingFang SC;
    font-weight: bold;
    color: rgba(102, 102, 102, 1);
}

.bottombtn {
    width: 240rpx;
    height: 100rpx;
    background: rgba(24, 144, 255, 1);
    border-radius: 4px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
}
</style>
