1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456 |
- <?php
- namespace app\model;
- use think\Model;
- class RegisterField extends Model
- {
- protected $connection = 'mysql';
- protected $pk = 'id';
- protected $name = 'register_field';
- public static function getField($ptype)
- {
- return self::where(['weid' => weid(), 'ptype' => $ptype, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
- }
- public static function getsysField($ptype)
- {
- return self::where(['weid' => weid(), 'ptype' => $ptype, 'is_sys' => 1, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
- }
- public static function getsnoysField($ptype)
- {
- return self::where(['weid' => weid(), 'ptype' => $ptype, 'is_sys' => 0, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
- }
- public static function getfrontField($ptype)
- {
- $query = self::where(['weid' => weid(), 'ptype' => $ptype, 'is_front' => 1, 'status' => 1]);
- return $query->order('sort asc,id asc')->select()->toArray();
- }
- public static function getfrontinputField($ptype, $nousername = '')
- {
- $query = self::where(['weid' => weid(), 'ptype' => $ptype, 'is_frontinput' => 1, 'status' => 1]);
- if (empty($query->select()->toArray())) {
- $query = self::where(['weid' => weid(), 'ptype' => $ptype, 'is_front' => 1, 'status' => 1]);
- }
- if (!empty($nousername)) {
- $query->where('fieldsmingcheng', '<>', 'username');
- $query->where('fieldsmingcheng', '<>', 'password');
- }
- return $query->order('sort asc,id asc')->select()->toArray();
- }
- public static function getimportField($ptype)
- {
- $data = self::where(['weid' => weid(), 'ptype' => $ptype, 'is_import' => 1, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
- return $data;
- }
- public static function getlistViewField($ptype)
- {
- $data = self::where(['weid' => weid(), 'is_listView' => 1, 'ptype' => $ptype, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
- foreach ($data as &$vo) {
- if ($vo['is_sys'] == 0) {
- $vo['fieldsmingcheng'] = $vo['inputtype'] . $vo['id'];
- }
- }
- return $data;
- }
- public static function getinputField($ptype)
- {
- return self::where(['weid' => weid(), 'is_input' => 1, 'ptype' => $ptype, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
- }
- public static function conversion($vo)
- {
- $customtextarr = iunserializer($vo['customtext']);
- if (!empty($customtextarr)) {
- foreach ($customtextarr as $k => $v) {
- if (!empty($v)) {
- foreach ($v as $kk => $vv) {
- if ($k == 'lbs') {
- if (!empty($vv)) {
- $tmp = iunserializer($vv);
- if (!empty($tmp)) {
- if (!empty($tmp['region_name'])) {
- $vo[$k . $kk] = '[' . $tmp['region_name'] . ']';
- }
- $vo[$k . $kk] = $vo[$k . $kk] . $tmp['address'];
- }
- }
- } else {
- if (!empty($vv)) {
- $vo[$k . $kk] = $vv;
- }
- }
- }
- }
- }
- }
- return $vo;
- }
- public static function fieldToData($postdata, $terminal = "")
- {
- $registerfield = $postdata['fields'];
- if (!empty($registerfield)) {
- foreach ($registerfield as $vo) {
- if ($vo['fieldsvalue'] == null) {
- $vo['fieldsvalue'] = "";
- }
- if ($vo['inputtype'] == 'date') {
- $vo['fieldsvalue'] = strtotime($vo['fieldsvalue']);
- }
- if ($vo['inputtype'] == 'checkbox') {
- $vo['fieldsvalue'] = implode(',', $vo['fieldsvalue']);
- }
- if ($vo['inputtype'] == 'pics') {
- $picsstr = '';
- if ($vo['fieldsvalue']) {
- if ($terminal == 'pc') {
- foreach ($vo['fieldsvalue'] as $key => $vooo) {
- if ($picsstr) {
- $picsstr = $picsstr . ',' . $vooo['url'];
- } else {
- $picsstr = $vooo['url'];
- }
- }
- } else {
- foreach ($vo['fieldsvalue'] as $vooo) {
- if ($picsstr) {
- $picsstr = $picsstr . ',' . $vooo;
- } else {
- $picsstr = $vooo;
- }
- }
- }
- }
- $vo['fieldsvalue'] = $picsstr;
- }
- if ($vo['inputtype'] == 'lbs') {
- if ($vo['is_sys'] == 1) {
- if ($terminal == 'pc') {
- $fieldsvalue = $vo['fieldsvalue'];
- $data['province_name'] = $fieldsvalue[0];
- $data['city_name'] = $fieldsvalue[1];
- $data['district_name'] = $fieldsvalue[2];
- $vo['fieldsvalue'] = '';
- } else {
- $fieldsvalue = $vo['fieldsvalue'];
- $data['province_name'] = $fieldsvalue['province_name'];
- $data['city_name'] = $fieldsvalue['city_name'];
- $data['district_name'] = $fieldsvalue['district_name'];
- $data['dizhi'] = $fieldsvalue['address'];
- $data['latitude'] = $fieldsvalue['latitude'];
- $data['longitude'] = $fieldsvalue['longitude'];
- $vo['fieldsvalue'] = $fieldsvalue['region_name'];
- }
- } else {
- $vo['fieldsvalue'] = serialize($vo['fieldsvalue']);
- }
- }
- if (!empty($vo['valuerules'])) {
- $rule[$vo['fieldsmingcheng'] . '|' . $vo['viewmingcheng']] = ltrim($vo['valuerules'], "|");
- }
- if ($vo['fieldsmingcheng']) {
- $data[$vo['fieldsmingcheng']] = $vo['fieldsvalue'];
- }
- if ($vo['is_sys'] != 1) {
- if ($vo['inputtype']) {
- $data[$vo['inputtype']][$vo['id']] = $vo['fieldsvalue'];
- }
- $customtext[$vo['inputtype']][$vo['id']] = $vo['fieldsvalue'];
- }
- }
- if ($terminal == 'pc') {
- $dizhi = $data['province_name'];
- if ($data['city_name']) {
- $dizhi = $dizhi . $data['city_name'];
- }
- if ($data['district_name']) {
- $dizhi = $dizhi . $data['district_name'];
- }
- if ($data['house_number']) {
- $dizhi = $dizhi . $data['house_number'];
- }
- $coder = Geocoder::geocoding($dizhi);
- $data['latitude'] = $coder['latitude'];
- $data['longitude'] = $coder['longitude'];
- $data['region_name'] = $dizhi;
- }
- $data['customtext'] = serialize($customtext);
- }
- $result['rule'] = $rule;
- $result['data'] = $data;
- return $result;
- }
- public static function setdata($data, $ptype)
- {
- $weid = weid();
- if (!empty($data)) {
- foreach ($data as &$vo) {
- $vo['weid'] = $weid;
- $vo['ptype'] = $ptype;
- if ($vo['is_sys'] === 0) {
- $vo['is_sys'] = 0;
- } else {
- $vo['is_sys'] = 1;
- }
- $vo['sort'] = 100;
- $vo['status'] = 1;
- }
- }
- return $data;
- }
- public static function createdata($data)
- {
- if (!empty($data)) {
- foreach ($data as $vo) {
- if (empty(self::where(['fieldsmingcheng' => $vo['fieldsmingcheng'], 'ptype' => $vo['ptype'], 'weid' => $vo['weid']])->find())) {
- self::create($vo);
- }
- }
- }
- return $data;
- }
- public static function importData($Mod, $ptype, $data)
- {
- $data = $data;
- $ptype = $ptype;
- $weid = weid();
- $list = [];
- $importField = RegisterField::getimportField($ptype);
- foreach ($data as $k => $v) {
- $info['weid'] = $weid;
- foreach ($importField as $key => $fvo) {
- if ($fvo['inputtype'] == 'text' || $fvo['inputtype'] == 'textarea') {
- if ($fvo['is_sys'] == 1) {
- $info[$fvo['fieldsmingcheng']] = $v[$fvo['viewmingcheng']];
- } else {
- $customtext['text'][$fvo['id']] = $v[$fvo['viewmingcheng']];
- }
- } elseif ($fvo['inputtype'] == 'select') {
- if ($fvo['is_sys'] == 1) {
- $info[$fvo['fieldsmingcheng']] = $v[$fvo['viewmingcheng']];
- } else {
- $customtext['select'][$fvo['id']] = $v[$fvo['viewmingcheng']];
- }
- } elseif ($fvo['inputtype'] == 'radio') {
- if ($fvo['is_sys'] == 1) {
- if ($fvo['fieldsmingcheng'] == "sex") {
- if ($v[$fvo['viewmingcheng']] == '保密') {
- $info[$fvo['fieldsmingcheng']] = 0;
- } elseif ($v[$fvo['viewmingcheng']] == '男') {
- $info[$fvo['fieldsmingcheng']] = 1;
- } elseif ($v[$fvo['viewmingcheng']] == '女') {
- $info[$fvo['fieldsmingcheng']] = 2;
- }
- }
- } else {
- $customtext['radio'][$fvo['id']] = $v[$fvo['viewmingcheng']];
- }
- } elseif ($fvo['inputtype'] == 'radio') {
- if ($fvo['is_sys'] == 1) {
- $info[$fvo['fieldsmingcheng']] = $v[$fvo['viewmingcheng']];
- } else {
- $customtext['radio'][$fvo['id']] = $v[$fvo['viewmingcheng']];
- }
- }
- }
- $info['customtext'] = serialize($customtext);
- $info['regdate'] = time();
- $info['lastdate'] = time();
- $is_repeat = 0;
- if (empty($is_repeat)) {
- $Mod->create($info);
- }
- }
- }
- public static function dumpdata($query, $ptype, $page)
- {
- $limit = config('my.dumpsize') ? config('my.dumpsize') : 1000;
- $count = $query->count();
- $res = $query->order('id desc')
- ->limit(($page - 1) * $limit, $limit)
- ->select()
- ->toArray();
- foreach ($res as $key => $val) {
- $res[$key]['sex'] = getItemVal($val['sex'], '[{"key":"男","val":"1","label_color":""},{"key":"女","val":"2","label_color":""}]');
- $res[$key]['status'] = getItemVal($val['status'], '[{"key":"开启","val":"1"},{"key":"关闭","val":"0"}]');
- }
- $importField = RegisterField::getimportField($ptype);
- $datalist = [];
- if (!empty($res)) {
- foreach ($res as &$voo) {
- if ($ptype == "member") {
- $voo = Member::conversion($voo);
- }
- if ($ptype == "agent") {
- $voo = Agent::conversion($voo);
- }
- if ($ptype == "technical") {
- $voo = Technical::conversion($voo);
- }
- if ($ptype == "store") {
- $voo = Store::conversion($voo);
- }
- if ($ptype == "tuanzhang") {
- $voo = Tuanzhang::conversion($voo);
- }
- }
- foreach ($res as $k => $vo) {
- foreach ($importField as $key => $fvo) {
- if ($fvo['inputtype'] == 'text' || $fvo['inputtype'] == 'textarea') {
- if ($fvo['is_sys'] == 1) {
- $datalist[$k][$key] = $vo[$fvo['fieldsmingcheng']];
- } else {
- $datalist[$k][$key] = iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']];
- }
- } elseif ($fvo['inputtype'] == 'select') {
- if ($fvo['is_sys'] == 1) {
- if ($fvo['fieldsmingcheng'] == 'city_id') {
- $datalist[$k][$key] = Area::get_area_name($vo['city_id']);
- } elseif ($fvo['fieldsmingcheng'] == 'country_id') {
- $datalist[$k][$key] = Area::get_area_name($vo['country_id']);
- } elseif ($fvo['fieldsmingcheng'] == 'province_id') {
- $datalist[$k][$key] = Area::get_area_name($vo['province_id']);
- }
- } else {
- $datalist[$k][$key] = iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']];
- }
- } elseif ($fvo['inputtype'] == 'lbs') {
- if ($fvo['is_sys'] == 1) {
- if ($fvo['fieldsmingcheng'] == 'city_id') {
- $datalist[$k][$key] = Area::get_area_name($vo['city_id']);
- } elseif ($fvo['fieldsmingcheng'] == 'country_id') {
- $datalist[$k][$key] = Area::get_area_name($vo['country_id']);
- } elseif ($fvo['fieldsmingcheng'] == 'province_id') {
- $datalist[$k][$key] = Area::get_area_name($vo['province_id']);
- }
- } else {
- $tmp = iunserializer(iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']]);
- if (!empty($tmp)) {
- if (!empty($tmp['region_name'])) {
- $datalist[$k][$key] = '[' . $tmp['region_name'] . ']';
- }
- $datalist[$k][$key] = $datalist[$k][$key] . $tmp['address'];
- } else {
- $datalist[$k][$key] = '';
- }
- }
- } elseif ($fvo['inputtype'] == 'radio') {
- if ($fvo['is_sys'] == 1) {
- if ($fvo['fieldsmingcheng'] == "sex") {
- if (empty($vo[$fvo['fieldsmingcheng']])) {
- $datalist[$k][$key] = '保密';
- } elseif ($vo[$fvo['fieldsmingcheng']] == '1') {
- $datalist[$k][$key] = '男';
- } elseif ($vo[$fvo['fieldsmingcheng']] == '2') {
- $datalist[$k][$key] = '女';
- }
- } else {
- $datalist[$k][$key] = $vo[$fvo['fieldsmingcheng']];
- }
- } else {
- $datalist[$k][$key] = iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']];
- }
- } elseif ($fvo['inputtype'] == 'checkbox') {
- if ($fvo['is_sys'] == 1) {
- $datalist[$k][$key] = $vo[$fvo['fieldsmingcheng']];
- } else {
- $datalist[$k][$key] = iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']];
- }
- } elseif ($fvo['inputtype'] == 'date') {
- $datalist[$k][$key] = time_format($vo[$fvo['fieldsmingcheng']]);
- }
- if (empty($datalist[$k][$key])) {
- $datalist[$k][$key] = '';
- }
- //$ii = $key;
- }
- }
- }
- foreach ($importField as $key => $vo) {
- $data['header'][$key] = $vo['viewmingcheng'];
- }
- //var_dump($datalist);
- //var_dump($res);
- $data['percentage'] = ceil($page * 100 / ceil($count / $limit));
- $data['filename'] = '数据.' . config('my.dump_extension');
- $data['data'] = $datalist;
- return $data;
- }
- public static function datainitial($ptype)
- {
- $weid = weid();
- $data['member'] = [
- [
- 'fieldsmingcheng' => 'userpic',
- 'viewmingcheng' => '头像',
- 'inputtype' => 'pic',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ],
- [
- 'fieldsmingcheng' => 'nickname',
- 'viewmingcheng' => '昵称',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'password',
- 'viewmingcheng' => '密码',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0,
- ], [
- 'fieldsmingcheng' => 'gid',
- 'viewmingcheng' => '会员等级',
- 'inputtype' => 'select',
- 'is_front' => 0,
- 'is_frontinput' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ],
- [
- 'fieldsmingcheng' => 'pid',
- 'viewmingcheng' => '推荐人',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'telephone',
- 'viewmingcheng' => '手机号',
- 'valuerules' => 'require|mobile',
- 'inputtype' => 'text',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'address',
- 'viewmingcheng' => '地址',
- 'inputtype' => 'text',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1
- ], [
- 'fieldsmingcheng' => 'balance',
- 'viewmingcheng' => '余额',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'points',
- 'viewmingcheng' => '积分',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'regdate',
- 'viewmingcheng' => '注册时间',
- 'inputtype' => 'text',
- 'is_input' => 0,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'lastdate',
- 'viewmingcheng' => '最后登录',
- 'inputtype' => 'text',
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'email',
- 'viewmingcheng' => '邮箱',
- 'inputtype' => 'text',
- 'is_import' => 1,
- 'is_input' => 1
- ], [
- 'fieldsmingcheng' => 'status',
- 'viewmingcheng' => '是否审核',
- 'is_import' => 1,
- 'inputtype' => 'switch',
- 'is_input' => 1
- ]
- ];
- $data['agent'] = [
- [
- 'fieldsmingcheng' => 'title',
- 'viewmingcheng' => '姓名',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'tel',
- 'viewmingcheng' => '手机号',
- 'inputtype' => 'text',
- 'valuerules' => 'require|mobile',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'agent_level',
- 'viewmingcheng' => '分销等级',
- 'inputtype' => 'select',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'touxiang',
- 'viewmingcheng' => '头像',
- 'inputtype' => 'pic',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'pid_code',
- 'viewmingcheng' => '邀请码',
- 'inputtype' => 'text',
- 'is_sys' => 0,
- 'is_front' => 0,
- 'is_input' => 0,
- 'is_import' => 0,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'total_income',
- 'viewmingcheng' => '总收入',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'income',
- 'viewmingcheng' => '收入',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'cash',
- 'viewmingcheng' => '已提现',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'no_cash',
- 'viewmingcheng' => '未提现',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'create_time',
- 'viewmingcheng' => '加入时间',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'email',
- 'viewmingcheng' => '邮箱',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_import' => 1,
- 'is_input' => 1
- ], [
- 'fieldsmingcheng' => 'status',
- 'viewmingcheng' => '是否审核',
- 'inputtype' => 'switch',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1
- ]
- ];
- $data['partner'] = [
- [
- 'fieldsmingcheng' => 'title',
- 'viewmingcheng' => '姓名',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'level',
- 'viewmingcheng' => '等级',
- 'inputtype' => 'select',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'tel',
- 'viewmingcheng' => '手机号',
- 'inputtype' => 'text',
- 'valuerules' => 'require|mobile',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'touxiang',
- 'viewmingcheng' => '头像',
- 'inputtype' => 'pic',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'total_income',
- 'viewmingcheng' => '总收入',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'income',
- 'viewmingcheng' => '收入',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'cash',
- 'viewmingcheng' => '已提现',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'no_cash',
- 'viewmingcheng' => '未提现',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'create_time',
- 'viewmingcheng' => '加入时间',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'email',
- 'viewmingcheng' => '邮箱',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_import' => 1,
- 'is_input' => 1
- ], [
- 'fieldsmingcheng' => 'status',
- 'viewmingcheng' => '是否审核',
- 'inputtype' => 'switch',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1
- ]
- ];
- $data['complete'] = [
- [
- 'fieldsmingcheng' => 'process',
- 'viewmingcheng' => '施工过程',
- 'inputtype' => 'pics',
- 'is_sys' => 0,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 0,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'acceptance',
- 'viewmingcheng' => '验收现场',
- 'inputtype' => 'pics',
- 'is_sys' => 0,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 0,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'customeracceptance',
- 'viewmingcheng' => '顾客验收表',
- 'inputtype' => 'pics',
- 'is_sys' => 0,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 0,
- 'is_listView' => 1
- ]
- ];
- $data['technical'] = [
- [
- 'fieldsmingcheng' => 'username',
- 'viewmingcheng' => '帐号',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'password',
- 'viewmingcheng' => '密码',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 0,
- ], [
- 'fieldsmingcheng' => 'title',
- 'viewmingcheng' => '姓名',
- 'valuerules' => 'require',
- 'inputtype' => 'text',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'level',
- 'viewmingcheng' => '等级',
- 'inputtype' => 'select',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'certificate_ids',
- 'viewmingcheng' => '师傅认证',
- 'inputtype' => 'checkbox',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'tel',
- 'viewmingcheng' => '手机号',
- 'inputtype' => 'text',
- 'valuerules' => 'require|mobile',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'touxiang',
- 'viewmingcheng' => '头像',
- 'inputtype' => 'pic',
- 'is_front' => 0,
- 'is_frontinput' => 0,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'photoalbum',
- 'viewmingcheng' => '相册',
- 'inputtype' => 'pics',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'videourl',
- 'viewmingcheng' => '视频',
- 'inputtype' => 'video',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 0,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'idpic1',
- 'viewmingcheng' => '身份证正面',
- 'inputtype' => 'pic',
- 'is_sys' => 0,
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1
- ], [
- 'fieldsmingcheng' => 'idpic2',
- 'viewmingcheng' => '身份证背面',
- 'inputtype' => 'pic',
- 'is_sys' => 0,
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1
- ], [
- 'fieldsmingcheng' => 'workunits',
- 'viewmingcheng' => '工作单位',
- 'inputtype' => 'text',
- 'is_front' => 0,
- 'is_frontinput' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'region_name',
- 'viewmingcheng' => '地理位置',
- 'inputtype' => 'lbs',
- 'valuerules' => 'require',
- 'is_sys' => 1,
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'house_number',
- 'viewmingcheng' => '详细地址',
- 'inputtype' => 'text',
- 'is_sys' => 1,
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'cate_ids',
- 'viewmingcheng' => '可接的服务',
- 'inputtype' => 'checkbox',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'sid',
- 'viewmingcheng' => '所属店铺',
- 'inputtype' => 'select',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'introduction',
- 'viewmingcheng' => '擅长与简介',
- 'inputtype' => 'textarea',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'total_income',
- 'viewmingcheng' => '总收入',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'income',
- 'viewmingcheng' => '收入',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'points',
- 'viewmingcheng' => '积分',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'service_times_base',
- 'viewmingcheng' => '服务次数基数',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'comment_base',
- 'viewmingcheng' => '评价基数',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'viewed_base',
- 'viewmingcheng' => '人气基数',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'end_time',
- 'viewmingcheng' => '到期时间',
- 'inputtype' => 'date',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'create_time',
- 'viewmingcheng' => '加入时间',
- 'inputtype' => 'text',
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'email',
- 'viewmingcheng' => '邮箱',
- 'inputtype' => 'text',
- 'is_import' => 1,
- 'is_input' => 1
- ], [
- 'fieldsmingcheng' => 'sort',
- 'viewmingcheng' => '排序',
- 'inputtype' => 'text',
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'status',
- 'viewmingcheng' => '是否审核',
- 'inputtype' => 'switch',
- 'is_input' => 1,
- 'is_import' => 1
- ]
- ];
- $data['tuanzhang'] = [
- [
- 'fieldsmingcheng' => 'username',
- 'viewmingcheng' => '帐号',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'password',
- 'viewmingcheng' => '密码',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 0,
- ], [
- 'fieldsmingcheng' => 'community_title',
- 'viewmingcheng' => '社区名称',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'title',
- 'viewmingcheng' => '团长姓名',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'level',
- 'viewmingcheng' => '等级',
- 'inputtype' => 'select',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'tel',
- 'viewmingcheng' => '手机号',
- 'inputtype' => 'text',
- 'valuerules' => 'require|mobile',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'touxiang',
- 'viewmingcheng' => '头像',
- 'inputtype' => 'pic',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'idpic1',
- 'viewmingcheng' => '身份证正面',
- 'inputtype' => 'pic',
- 'is_sys' => 0,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1
- ], [
- 'fieldsmingcheng' => 'idpic2',
- 'viewmingcheng' => '身份证背面',
- 'inputtype' => 'pic',
- 'is_sys' => 0,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1
- ], [
- 'fieldsmingcheng' => 'region_name',
- 'viewmingcheng' => '地理位置',
- 'inputtype' => 'lbs',
- 'valuerules' => 'require',
- 'is_sys' => 1,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'house_number',
- 'viewmingcheng' => '详细地址',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_sys' => 1,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'introduction',
- 'viewmingcheng' => '简介',
- 'inputtype' => 'textarea',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'total_income',
- 'viewmingcheng' => '总收入',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'income',
- 'viewmingcheng' => '收入',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'points',
- 'viewmingcheng' => '积分',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'create_time',
- 'viewmingcheng' => '加入时间',
- 'inputtype' => 'text',
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'email',
- 'viewmingcheng' => '邮箱',
- 'inputtype' => 'text',
- 'is_import' => 1,
- 'is_input' => 1
- ], [
- 'fieldsmingcheng' => 'sort',
- 'viewmingcheng' => '排序',
- 'inputtype' => 'text',
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'status',
- 'viewmingcheng' => '是否审核',
- 'inputtype' => 'switch',
- 'is_input' => 1,
- 'is_import' => 1
- ]
- ];
- $data['operatingcity'] = [
- [
- 'fieldsmingcheng' => 'username',
- 'viewmingcheng' => '帐号',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'password',
- 'viewmingcheng' => '密码',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 0,
- ], [
- 'fieldsmingcheng' => 'title',
- 'viewmingcheng' => '名称',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'level',
- 'viewmingcheng' => '等级',
- 'inputtype' => 'select',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'areatype',
- 'viewmingcheng' => '类型',
- 'inputtype' => 'radio',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'region_name',
- 'viewmingcheng' => '地理位置',
- 'inputtype' => 'lbs',
- 'valuerules' => 'require',
- 'is_sys' => 1,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'house_number',
- 'viewmingcheng' => '详细地址',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_sys' => 1,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ],
- [
- 'fieldsmingcheng' => 'total_income',
- 'viewmingcheng' => '总收入',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'income',
- 'viewmingcheng' => '收入',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'cate_ids',
- 'viewmingcheng' => '经营类目',
- 'inputtype' => 'checkbox',
- 'valuerules' => 'require',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'create_time',
- 'viewmingcheng' => '加入时间',
- 'inputtype' => 'text',
- 'is_input' => 0,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'end_time',
- 'viewmingcheng' => '到期时间',
- 'inputtype' => 'date',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'status',
- 'viewmingcheng' => '是否审核',
- 'inputtype' => 'switch',
- 'is_input' => 1,
- 'is_import' => 1
- ]
- ];
- $data['store'] = [
- [
- 'fieldsmingcheng' => 'username',
- 'viewmingcheng' => '帐号',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'password',
- 'viewmingcheng' => '密码',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 0,
- 'is_frontinput' => 1,
- 'is_input' => 0,
- 'is_import' => 1,
- 'is_listView' => 0,
- ], [
- 'fieldsmingcheng' => 'title',
- 'viewmingcheng' => '店名',
- 'inputtype' => 'text',
- 'valuerules' => 'require',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'stid',
- 'viewmingcheng' => '类型',
- 'inputtype' => 'select',
- 'is_front' => 0,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'store_logo',
- 'viewmingcheng' => '店LOGO',
- 'inputtype' => 'pic',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'license',
- 'viewmingcheng' => '营业执照',
- 'inputtype' => 'pic',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'tel',
- 'viewmingcheng' => '电话',
- 'inputtype' => 'text',
- 'valuerules' => 'require|mobile',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'content',
- 'viewmingcheng' => '店铺简介',
- 'inputtype' => 'textarea',
- 'is_sys' => 1,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ], [
- 'fieldsmingcheng' => 'region_name',
- 'viewmingcheng' => '地理位置',
- 'inputtype' => 'lbs',
- 'valuerules' => 'require',
- 'is_sys' => 1,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'house_number',
- 'viewmingcheng' => '详细地址',
- 'inputtype' => 'text',
- 'is_sys' => 1,
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 0
- ],
- [
- 'fieldsmingcheng' => 'total_income',
- 'viewmingcheng' => '总收入',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'income',
- 'viewmingcheng' => '收入',
- 'inputtype' => 'text',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1,
- ], [
- 'fieldsmingcheng' => 'cate_ids',
- 'viewmingcheng' => '可接的服务',
- 'inputtype' => 'checkbox',
- 'is_front' => 1,
- 'is_frontinput' => 1,
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'create_time',
- 'viewmingcheng' => '加入时间',
- 'inputtype' => 'text',
- 'is_input' => 0,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'end_time',
- 'viewmingcheng' => '到期时间',
- 'inputtype' => 'date',
- 'is_input' => 1,
- 'is_import' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'sort',
- 'viewmingcheng' => '排序',
- 'inputtype' => 'text',
- 'is_import' => 1,
- 'is_input' => 1,
- 'is_listView' => 1
- ], [
- 'fieldsmingcheng' => 'status',
- 'viewmingcheng' => '是否审核',
- 'inputtype' => 'switch',
- 'is_input' => 1,
- 'is_import' => 1
- ]
- ];
- $data = self::setdata($data[$ptype], $ptype);
- self::createdata($data);
- }
- }
|