import { LibDataComponents } from '$utils/verification/const';

import format from '$utils/verification/format';

export default function (data) {

    let gameLevelName = format.formatData(data.skill_level_list, {
        label: 'game_level_name',
        value: 'lid'
    });

    let priceName = format.formatData(data.priceList, {
        label: '/小时',
        value: ''
    });

    return {

        left: [
            {
                label: '上传图片（请上传游戏等级或娱乐资质相关图片）',
                key: 'skill_image',
                rules: '请上传图片',
                component: LibDataComponents.upload
            },
            {
                label: '段位选择',
                data: gameLevelName,
                value: gameLevelName[0] && gameLevelName[0].value || '',
                placeholder: '请选择段位',
                key:'skill_level',
                component: LibDataComponents.picker
            }
        ] as unknown as LibDataArray,

        right:[
            {
                label: '价格选择',
                data: priceName,
                key:'price',
                value: priceName[0] && priceName[0].value || '',
                placeholder: '请选择价格',
                component: LibDataComponents.picker
            },
            // {
            //     label: '性别选择',
            //     data: [
            //         {
            //             label:'男',
            //             value:1
            //         },
            //         {
            //             label: '女',
            //             value:0
            //         }
            //     ],
            //     value:0,
            //     placeholder: '请选择性别',
            //     component: LibDataComponents.picker
            // }
        ] as unknown as LibDataArray

    }

}