<template>
    <view>
        <navigator :url="'/pages/payPassword/setup?passType=' + passType" class="label">
            <view class="label-name">
                支付密码
            </view>
            <view class="label-more">
                {{ passType ? '已设置' : '未设置' }}<image src="/static/icon/rightsArrow.png"></image>
            </view>
        </navigator>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                passType : '',   // 是否是首次设置密码
            }
        },
        // 生命周期函数--监听页面加载
        onLoad(options) {
            const Paypass = uni.getStorageSync("hasPaypass")
            this.passType = Paypass
        },
    
        // 生命周期函数--监听页面显示
        onShow() {},
        methods: {}
    }
</script>
<style lang="scss" scoped>
    .label {
        background-color: #fff;
        display: flex;
        padding: 0 20rpx;
        box-sizing: border-box;
        height: 90rpx;
        line-height: 90rpx;
        .label-name {
            flex: 1;
        }
        .label-more {
            display: flex;
            color: #999;
            image {
                width: 40rpx;
                height: 40rpx;
                margin: 28rpx 0 0 10rpx;
            }
        }
    }
</style>
