<template>
    <view>
        <navigator
            :url="item.url"
            class="nav"
            v-for="(item, index) in [
                { title: '开具发票', url: '/pages/user/invoice/my_invoice/my_invoice' },
                { title: '开票历史', url: '/pages/user/invoice/invoice_history/invoice_history' },
                { title: '发票抬头信息', url: '/pages/user/invoice/invoice_edit/invoice_edit' }
            ]"
            :key="index"
        >
            {{ item.title }}

            <image src="/static/images/ui/right1.png" />
        </navigator>
    </view>
</template>

<script>
// pages/user/invoice/invoice_index/invoice_index.js
import { login_check } from '../../../../utils/util';
export default {
    data() {
        return {};
    }
    /**
     * 生命周期函数--监听页面加载
     */,
    onLoad: function (options) {
        login_check(1);
    },
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady: function () {},
    /**
     * 生命周期函数--监听页面显示
     */
    onShow: function () {},
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide: function () {},
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload: function () {},
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh: function () {},
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom: function () {},
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage: function () {},
    methods: {}
};
</script>
<style>
.nav {
    display: flex;
    justify-content: space-between;
    border-bottom: 2rpx solid #dddddd;
    align-items: center;
    padding: 30rpx 0;
    margin: 0 30rpx;
    font-size: 28rpx;
}
.nav image {
    width: 26rpx;
    height: 26rpx;
    margin-right: 12rpx;
}
</style>
