RegisterField.php 53 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456
  1. <?php
  2. namespace app\model;
  3. use think\Model;
  4. class RegisterField extends Model
  5. {
  6. protected $connection = 'mysql';
  7. protected $pk = 'id';
  8. protected $name = 'register_field';
  9. public static function getField($ptype)
  10. {
  11. return self::where(['weid' => weid(), 'ptype' => $ptype, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
  12. }
  13. public static function getsysField($ptype)
  14. {
  15. return self::where(['weid' => weid(), 'ptype' => $ptype, 'is_sys' => 1, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
  16. }
  17. public static function getsnoysField($ptype)
  18. {
  19. return self::where(['weid' => weid(), 'ptype' => $ptype, 'is_sys' => 0, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
  20. }
  21. public static function getfrontField($ptype)
  22. {
  23. $query = self::where(['weid' => weid(), 'ptype' => $ptype, 'is_front' => 1, 'status' => 1]);
  24. return $query->order('sort asc,id asc')->select()->toArray();
  25. }
  26. public static function getfrontinputField($ptype, $nousername = '')
  27. {
  28. $query = self::where(['weid' => weid(), 'ptype' => $ptype, 'is_frontinput' => 1, 'status' => 1]);
  29. if (empty($query->select()->toArray())) {
  30. $query = self::where(['weid' => weid(), 'ptype' => $ptype, 'is_front' => 1, 'status' => 1]);
  31. }
  32. if (!empty($nousername)) {
  33. $query->where('fieldsmingcheng', '<>', 'username');
  34. $query->where('fieldsmingcheng', '<>', 'password');
  35. }
  36. return $query->order('sort asc,id asc')->select()->toArray();
  37. }
  38. public static function getimportField($ptype)
  39. {
  40. $data = self::where(['weid' => weid(), 'ptype' => $ptype, 'is_import' => 1, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
  41. return $data;
  42. }
  43. public static function getlistViewField($ptype)
  44. {
  45. $data = self::where(['weid' => weid(), 'is_listView' => 1, 'ptype' => $ptype, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
  46. foreach ($data as &$vo) {
  47. if ($vo['is_sys'] == 0) {
  48. $vo['fieldsmingcheng'] = $vo['inputtype'] . $vo['id'];
  49. }
  50. }
  51. return $data;
  52. }
  53. public static function getinputField($ptype)
  54. {
  55. return self::where(['weid' => weid(), 'is_input' => 1, 'ptype' => $ptype, 'status' => 1])->order('sort asc,id asc')->select()->toArray();
  56. }
  57. public static function conversion($vo)
  58. {
  59. $customtextarr = iunserializer($vo['customtext']);
  60. if (!empty($customtextarr)) {
  61. foreach ($customtextarr as $k => $v) {
  62. if (!empty($v)) {
  63. foreach ($v as $kk => $vv) {
  64. if ($k == 'lbs') {
  65. if (!empty($vv)) {
  66. $tmp = iunserializer($vv);
  67. if (!empty($tmp)) {
  68. if (!empty($tmp['region_name'])) {
  69. $vo[$k . $kk] = '[' . $tmp['region_name'] . ']';
  70. }
  71. $vo[$k . $kk] = $vo[$k . $kk] . $tmp['address'];
  72. }
  73. }
  74. } else {
  75. if (!empty($vv)) {
  76. $vo[$k . $kk] = $vv;
  77. }
  78. }
  79. }
  80. }
  81. }
  82. }
  83. return $vo;
  84. }
  85. public static function fieldToData($postdata, $terminal = "")
  86. {
  87. $registerfield = $postdata['fields'];
  88. if (!empty($registerfield)) {
  89. foreach ($registerfield as $vo) {
  90. if ($vo['fieldsvalue'] == null) {
  91. $vo['fieldsvalue'] = "";
  92. }
  93. if ($vo['inputtype'] == 'date') {
  94. $vo['fieldsvalue'] = strtotime($vo['fieldsvalue']);
  95. }
  96. if ($vo['inputtype'] == 'checkbox') {
  97. $vo['fieldsvalue'] = implode(',', $vo['fieldsvalue']);
  98. }
  99. if ($vo['inputtype'] == 'pics') {
  100. $picsstr = '';
  101. if ($vo['fieldsvalue']) {
  102. if ($terminal == 'pc') {
  103. foreach ($vo['fieldsvalue'] as $key => $vooo) {
  104. if ($picsstr) {
  105. $picsstr = $picsstr . ',' . $vooo['url'];
  106. } else {
  107. $picsstr = $vooo['url'];
  108. }
  109. }
  110. } else {
  111. foreach ($vo['fieldsvalue'] as $vooo) {
  112. if ($picsstr) {
  113. $picsstr = $picsstr . ',' . $vooo;
  114. } else {
  115. $picsstr = $vooo;
  116. }
  117. }
  118. }
  119. }
  120. $vo['fieldsvalue'] = $picsstr;
  121. }
  122. if ($vo['inputtype'] == 'lbs') {
  123. if ($vo['is_sys'] == 1) {
  124. if ($terminal == 'pc') {
  125. $fieldsvalue = $vo['fieldsvalue'];
  126. $data['province_name'] = $fieldsvalue[0];
  127. $data['city_name'] = $fieldsvalue[1];
  128. $data['district_name'] = $fieldsvalue[2];
  129. $vo['fieldsvalue'] = '';
  130. } else {
  131. $fieldsvalue = $vo['fieldsvalue'];
  132. $data['province_name'] = $fieldsvalue['province_name'];
  133. $data['city_name'] = $fieldsvalue['city_name'];
  134. $data['district_name'] = $fieldsvalue['district_name'];
  135. $data['dizhi'] = $fieldsvalue['address'];
  136. $data['latitude'] = $fieldsvalue['latitude'];
  137. $data['longitude'] = $fieldsvalue['longitude'];
  138. $vo['fieldsvalue'] = $fieldsvalue['region_name'];
  139. }
  140. } else {
  141. $vo['fieldsvalue'] = serialize($vo['fieldsvalue']);
  142. }
  143. }
  144. if (!empty($vo['valuerules'])) {
  145. $rule[$vo['fieldsmingcheng'] . '|' . $vo['viewmingcheng']] = ltrim($vo['valuerules'], "|");
  146. }
  147. if ($vo['fieldsmingcheng']) {
  148. $data[$vo['fieldsmingcheng']] = $vo['fieldsvalue'];
  149. }
  150. if ($vo['is_sys'] != 1) {
  151. if ($vo['inputtype']) {
  152. $data[$vo['inputtype']][$vo['id']] = $vo['fieldsvalue'];
  153. }
  154. $customtext[$vo['inputtype']][$vo['id']] = $vo['fieldsvalue'];
  155. }
  156. }
  157. if ($terminal == 'pc') {
  158. $dizhi = $data['province_name'];
  159. if ($data['city_name']) {
  160. $dizhi = $dizhi . $data['city_name'];
  161. }
  162. if ($data['district_name']) {
  163. $dizhi = $dizhi . $data['district_name'];
  164. }
  165. if ($data['house_number']) {
  166. $dizhi = $dizhi . $data['house_number'];
  167. }
  168. $coder = Geocoder::geocoding($dizhi);
  169. $data['latitude'] = $coder['latitude'];
  170. $data['longitude'] = $coder['longitude'];
  171. $data['region_name'] = $dizhi;
  172. }
  173. $data['customtext'] = serialize($customtext);
  174. }
  175. $result['rule'] = $rule;
  176. $result['data'] = $data;
  177. return $result;
  178. }
  179. public static function setdata($data, $ptype)
  180. {
  181. $weid = weid();
  182. if (!empty($data)) {
  183. foreach ($data as &$vo) {
  184. $vo['weid'] = $weid;
  185. $vo['ptype'] = $ptype;
  186. if ($vo['is_sys'] === 0) {
  187. $vo['is_sys'] = 0;
  188. } else {
  189. $vo['is_sys'] = 1;
  190. }
  191. $vo['sort'] = 100;
  192. $vo['status'] = 1;
  193. }
  194. }
  195. return $data;
  196. }
  197. public static function createdata($data)
  198. {
  199. if (!empty($data)) {
  200. foreach ($data as $vo) {
  201. if (empty(self::where(['fieldsmingcheng' => $vo['fieldsmingcheng'], 'ptype' => $vo['ptype'], 'weid' => $vo['weid']])->find())) {
  202. self::create($vo);
  203. }
  204. }
  205. }
  206. return $data;
  207. }
  208. public static function importData($Mod, $ptype, $data)
  209. {
  210. $data = $data;
  211. $ptype = $ptype;
  212. $weid = weid();
  213. $list = [];
  214. $importField = RegisterField::getimportField($ptype);
  215. foreach ($data as $k => $v) {
  216. $info['weid'] = $weid;
  217. foreach ($importField as $key => $fvo) {
  218. if ($fvo['inputtype'] == 'text' || $fvo['inputtype'] == 'textarea') {
  219. if ($fvo['is_sys'] == 1) {
  220. $info[$fvo['fieldsmingcheng']] = $v[$fvo['viewmingcheng']];
  221. } else {
  222. $customtext['text'][$fvo['id']] = $v[$fvo['viewmingcheng']];
  223. }
  224. } elseif ($fvo['inputtype'] == 'select') {
  225. if ($fvo['is_sys'] == 1) {
  226. $info[$fvo['fieldsmingcheng']] = $v[$fvo['viewmingcheng']];
  227. } else {
  228. $customtext['select'][$fvo['id']] = $v[$fvo['viewmingcheng']];
  229. }
  230. } elseif ($fvo['inputtype'] == 'radio') {
  231. if ($fvo['is_sys'] == 1) {
  232. if ($fvo['fieldsmingcheng'] == "sex") {
  233. if ($v[$fvo['viewmingcheng']] == '保密') {
  234. $info[$fvo['fieldsmingcheng']] = 0;
  235. } elseif ($v[$fvo['viewmingcheng']] == '男') {
  236. $info[$fvo['fieldsmingcheng']] = 1;
  237. } elseif ($v[$fvo['viewmingcheng']] == '女') {
  238. $info[$fvo['fieldsmingcheng']] = 2;
  239. }
  240. }
  241. } else {
  242. $customtext['radio'][$fvo['id']] = $v[$fvo['viewmingcheng']];
  243. }
  244. } elseif ($fvo['inputtype'] == 'radio') {
  245. if ($fvo['is_sys'] == 1) {
  246. $info[$fvo['fieldsmingcheng']] = $v[$fvo['viewmingcheng']];
  247. } else {
  248. $customtext['radio'][$fvo['id']] = $v[$fvo['viewmingcheng']];
  249. }
  250. }
  251. }
  252. $info['customtext'] = serialize($customtext);
  253. $info['regdate'] = time();
  254. $info['lastdate'] = time();
  255. $is_repeat = 0;
  256. if (empty($is_repeat)) {
  257. $Mod->create($info);
  258. }
  259. }
  260. }
  261. public static function dumpdata($query, $ptype, $page)
  262. {
  263. $limit = config('my.dumpsize') ? config('my.dumpsize') : 1000;
  264. $count = $query->count();
  265. $res = $query->order('id desc')
  266. ->limit(($page - 1) * $limit, $limit)
  267. ->select()
  268. ->toArray();
  269. foreach ($res as $key => $val) {
  270. $res[$key]['sex'] = getItemVal($val['sex'], '[{"key":"男","val":"1","label_color":""},{"key":"女","val":"2","label_color":""}]');
  271. $res[$key]['status'] = getItemVal($val['status'], '[{"key":"开启","val":"1"},{"key":"关闭","val":"0"}]');
  272. }
  273. $importField = RegisterField::getimportField($ptype);
  274. $datalist = [];
  275. if (!empty($res)) {
  276. foreach ($res as &$voo) {
  277. if ($ptype == "member") {
  278. $voo = Member::conversion($voo);
  279. }
  280. if ($ptype == "agent") {
  281. $voo = Agent::conversion($voo);
  282. }
  283. if ($ptype == "technical") {
  284. $voo = Technical::conversion($voo);
  285. }
  286. if ($ptype == "store") {
  287. $voo = Store::conversion($voo);
  288. }
  289. if ($ptype == "tuanzhang") {
  290. $voo = Tuanzhang::conversion($voo);
  291. }
  292. }
  293. foreach ($res as $k => $vo) {
  294. foreach ($importField as $key => $fvo) {
  295. if ($fvo['inputtype'] == 'text' || $fvo['inputtype'] == 'textarea') {
  296. if ($fvo['is_sys'] == 1) {
  297. $datalist[$k][$key] = $vo[$fvo['fieldsmingcheng']];
  298. } else {
  299. $datalist[$k][$key] = iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']];
  300. }
  301. } elseif ($fvo['inputtype'] == 'select') {
  302. if ($fvo['is_sys'] == 1) {
  303. if ($fvo['fieldsmingcheng'] == 'city_id') {
  304. $datalist[$k][$key] = Area::get_area_name($vo['city_id']);
  305. } elseif ($fvo['fieldsmingcheng'] == 'country_id') {
  306. $datalist[$k][$key] = Area::get_area_name($vo['country_id']);
  307. } elseif ($fvo['fieldsmingcheng'] == 'province_id') {
  308. $datalist[$k][$key] = Area::get_area_name($vo['province_id']);
  309. }
  310. } else {
  311. $datalist[$k][$key] = iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']];
  312. }
  313. } elseif ($fvo['inputtype'] == 'lbs') {
  314. if ($fvo['is_sys'] == 1) {
  315. if ($fvo['fieldsmingcheng'] == 'city_id') {
  316. $datalist[$k][$key] = Area::get_area_name($vo['city_id']);
  317. } elseif ($fvo['fieldsmingcheng'] == 'country_id') {
  318. $datalist[$k][$key] = Area::get_area_name($vo['country_id']);
  319. } elseif ($fvo['fieldsmingcheng'] == 'province_id') {
  320. $datalist[$k][$key] = Area::get_area_name($vo['province_id']);
  321. }
  322. } else {
  323. $tmp = iunserializer(iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']]);
  324. if (!empty($tmp)) {
  325. if (!empty($tmp['region_name'])) {
  326. $datalist[$k][$key] = '[' . $tmp['region_name'] . ']';
  327. }
  328. $datalist[$k][$key] = $datalist[$k][$key] . $tmp['address'];
  329. } else {
  330. $datalist[$k][$key] = '';
  331. }
  332. }
  333. } elseif ($fvo['inputtype'] == 'radio') {
  334. if ($fvo['is_sys'] == 1) {
  335. if ($fvo['fieldsmingcheng'] == "sex") {
  336. if (empty($vo[$fvo['fieldsmingcheng']])) {
  337. $datalist[$k][$key] = '保密';
  338. } elseif ($vo[$fvo['fieldsmingcheng']] == '1') {
  339. $datalist[$k][$key] = '男';
  340. } elseif ($vo[$fvo['fieldsmingcheng']] == '2') {
  341. $datalist[$k][$key] = '女';
  342. }
  343. } else {
  344. $datalist[$k][$key] = $vo[$fvo['fieldsmingcheng']];
  345. }
  346. } else {
  347. $datalist[$k][$key] = iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']];
  348. }
  349. } elseif ($fvo['inputtype'] == 'checkbox') {
  350. if ($fvo['is_sys'] == 1) {
  351. $datalist[$k][$key] = $vo[$fvo['fieldsmingcheng']];
  352. } else {
  353. $datalist[$k][$key] = iunserializer($vo['customtext'])[$fvo['inputtype']][$fvo['id']];
  354. }
  355. } elseif ($fvo['inputtype'] == 'date') {
  356. $datalist[$k][$key] = time_format($vo[$fvo['fieldsmingcheng']]);
  357. }
  358. if (empty($datalist[$k][$key])) {
  359. $datalist[$k][$key] = '';
  360. }
  361. //$ii = $key;
  362. }
  363. }
  364. }
  365. foreach ($importField as $key => $vo) {
  366. $data['header'][$key] = $vo['viewmingcheng'];
  367. }
  368. //var_dump($datalist);
  369. //var_dump($res);
  370. $data['percentage'] = ceil($page * 100 / ceil($count / $limit));
  371. $data['filename'] = '数据.' . config('my.dump_extension');
  372. $data['data'] = $datalist;
  373. return $data;
  374. }
  375. public static function datainitial($ptype)
  376. {
  377. $weid = weid();
  378. $data['member'] = [
  379. [
  380. 'fieldsmingcheng' => 'userpic',
  381. 'viewmingcheng' => '头像',
  382. 'inputtype' => 'pic',
  383. 'is_front' => 1,
  384. 'is_frontinput' => 1,
  385. 'is_input' => 1,
  386. 'is_import' => 1,
  387. 'is_listView' => 1
  388. ],
  389. [
  390. 'fieldsmingcheng' => 'nickname',
  391. 'viewmingcheng' => '昵称',
  392. 'inputtype' => 'text',
  393. 'valuerules' => 'require',
  394. 'is_front' => 1,
  395. 'is_frontinput' => 1,
  396. 'is_input' => 1,
  397. 'is_import' => 1,
  398. 'is_listView' => 1,
  399. ], [
  400. 'fieldsmingcheng' => 'password',
  401. 'viewmingcheng' => '密码',
  402. 'inputtype' => 'text',
  403. 'valuerules' => 'require',
  404. 'is_front' => 0,
  405. 'is_frontinput' => 1,
  406. 'is_input' => 1,
  407. 'is_import' => 1,
  408. 'is_listView' => 0,
  409. ], [
  410. 'fieldsmingcheng' => 'gid',
  411. 'viewmingcheng' => '会员等级',
  412. 'inputtype' => 'select',
  413. 'is_front' => 0,
  414. 'is_frontinput' => 0,
  415. 'is_input' => 1,
  416. 'is_import' => 1,
  417. 'is_listView' => 1
  418. ],
  419. [
  420. 'fieldsmingcheng' => 'pid',
  421. 'viewmingcheng' => '推荐人',
  422. 'inputtype' => 'text',
  423. 'is_front' => 0,
  424. 'is_input' => 0,
  425. 'is_import' => 1,
  426. 'is_listView' => 1
  427. ], [
  428. 'fieldsmingcheng' => 'telephone',
  429. 'viewmingcheng' => '手机号',
  430. 'valuerules' => 'require|mobile',
  431. 'inputtype' => 'text',
  432. 'is_front' => 1,
  433. 'is_frontinput' => 1,
  434. 'is_input' => 1,
  435. 'is_import' => 1,
  436. 'is_listView' => 1
  437. ], [
  438. 'fieldsmingcheng' => 'address',
  439. 'viewmingcheng' => '地址',
  440. 'inputtype' => 'text',
  441. 'is_front' => 1,
  442. 'is_frontinput' => 1,
  443. 'is_input' => 1,
  444. 'is_import' => 1
  445. ], [
  446. 'fieldsmingcheng' => 'balance',
  447. 'viewmingcheng' => '余额',
  448. 'inputtype' => 'text',
  449. 'is_input' => 1,
  450. 'is_listView' => 1
  451. ], [
  452. 'fieldsmingcheng' => 'points',
  453. 'viewmingcheng' => '积分',
  454. 'inputtype' => 'text',
  455. 'is_input' => 1,
  456. 'is_import' => 1,
  457. 'is_listView' => 1,
  458. ], [
  459. 'fieldsmingcheng' => 'regdate',
  460. 'viewmingcheng' => '注册时间',
  461. 'inputtype' => 'text',
  462. 'is_input' => 0,
  463. 'is_listView' => 1
  464. ], [
  465. 'fieldsmingcheng' => 'lastdate',
  466. 'viewmingcheng' => '最后登录',
  467. 'inputtype' => 'text',
  468. 'is_input' => 0,
  469. 'is_import' => 1,
  470. 'is_listView' => 1
  471. ], [
  472. 'fieldsmingcheng' => 'email',
  473. 'viewmingcheng' => '邮箱',
  474. 'inputtype' => 'text',
  475. 'is_import' => 1,
  476. 'is_input' => 1
  477. ], [
  478. 'fieldsmingcheng' => 'status',
  479. 'viewmingcheng' => '是否审核',
  480. 'is_import' => 1,
  481. 'inputtype' => 'switch',
  482. 'is_input' => 1
  483. ]
  484. ];
  485. $data['agent'] = [
  486. [
  487. 'fieldsmingcheng' => 'title',
  488. 'viewmingcheng' => '姓名',
  489. 'inputtype' => 'text',
  490. 'valuerules' => 'require',
  491. 'is_front' => 1,
  492. 'is_frontinput' => 1,
  493. 'is_input' => 1,
  494. 'is_import' => 1,
  495. 'is_listView' => 1,
  496. ], [
  497. 'fieldsmingcheng' => 'tel',
  498. 'viewmingcheng' => '手机号',
  499. 'inputtype' => 'text',
  500. 'valuerules' => 'require|mobile',
  501. 'is_front' => 1,
  502. 'is_frontinput' => 1,
  503. 'is_input' => 1,
  504. 'is_import' => 1,
  505. 'is_listView' => 1
  506. ], [
  507. 'fieldsmingcheng' => 'agent_level',
  508. 'viewmingcheng' => '分销等级',
  509. 'inputtype' => 'select',
  510. 'is_front' => 0,
  511. 'is_input' => 1,
  512. 'is_import' => 1,
  513. 'is_listView' => 1
  514. ], [
  515. 'fieldsmingcheng' => 'touxiang',
  516. 'viewmingcheng' => '头像',
  517. 'inputtype' => 'pic',
  518. 'is_front' => 1,
  519. 'is_frontinput' => 1,
  520. 'is_input' => 1,
  521. 'is_import' => 1,
  522. 'is_listView' => 1
  523. ], [
  524. 'fieldsmingcheng' => 'pid_code',
  525. 'viewmingcheng' => '邀请码',
  526. 'inputtype' => 'text',
  527. 'is_sys' => 0,
  528. 'is_front' => 0,
  529. 'is_input' => 0,
  530. 'is_import' => 0,
  531. 'is_listView' => 0
  532. ], [
  533. 'fieldsmingcheng' => 'total_income',
  534. 'viewmingcheng' => '总收入',
  535. 'inputtype' => 'text',
  536. 'is_front' => 0,
  537. 'is_input' => 1,
  538. 'is_import' => 1,
  539. 'is_listView' => 1
  540. ], [
  541. 'fieldsmingcheng' => 'income',
  542. 'viewmingcheng' => '收入',
  543. 'inputtype' => 'text',
  544. 'is_front' => 0,
  545. 'is_input' => 1,
  546. 'is_import' => 1,
  547. 'is_listView' => 1,
  548. ], [
  549. 'fieldsmingcheng' => 'cash',
  550. 'viewmingcheng' => '已提现',
  551. 'inputtype' => 'text',
  552. 'is_front' => 0,
  553. 'is_input' => 1,
  554. 'is_import' => 1,
  555. 'is_listView' => 1,
  556. ], [
  557. 'fieldsmingcheng' => 'no_cash',
  558. 'viewmingcheng' => '未提现',
  559. 'inputtype' => 'text',
  560. 'is_front' => 0,
  561. 'is_input' => 1,
  562. 'is_import' => 1,
  563. 'is_listView' => 1
  564. ], [
  565. 'fieldsmingcheng' => 'create_time',
  566. 'viewmingcheng' => '加入时间',
  567. 'inputtype' => 'text',
  568. 'is_front' => 0,
  569. 'is_input' => 0,
  570. 'is_import' => 1,
  571. 'is_listView' => 1
  572. ], [
  573. 'fieldsmingcheng' => 'email',
  574. 'viewmingcheng' => '邮箱',
  575. 'inputtype' => 'text',
  576. 'is_front' => 0,
  577. 'is_import' => 1,
  578. 'is_input' => 1
  579. ], [
  580. 'fieldsmingcheng' => 'status',
  581. 'viewmingcheng' => '是否审核',
  582. 'inputtype' => 'switch',
  583. 'is_front' => 0,
  584. 'is_input' => 1,
  585. 'is_import' => 1
  586. ]
  587. ];
  588. $data['partner'] = [
  589. [
  590. 'fieldsmingcheng' => 'title',
  591. 'viewmingcheng' => '姓名',
  592. 'inputtype' => 'text',
  593. 'valuerules' => 'require',
  594. 'is_front' => 1,
  595. 'is_frontinput' => 1,
  596. 'is_input' => 1,
  597. 'is_import' => 1,
  598. 'is_listView' => 1,
  599. ], [
  600. 'fieldsmingcheng' => 'level',
  601. 'viewmingcheng' => '等级',
  602. 'inputtype' => 'select',
  603. 'is_front' => 0,
  604. 'is_input' => 1,
  605. 'is_import' => 1,
  606. 'is_listView' => 1
  607. ], [
  608. 'fieldsmingcheng' => 'tel',
  609. 'viewmingcheng' => '手机号',
  610. 'inputtype' => 'text',
  611. 'valuerules' => 'require|mobile',
  612. 'is_front' => 1,
  613. 'is_frontinput' => 1,
  614. 'is_input' => 1,
  615. 'is_import' => 1,
  616. 'is_listView' => 1
  617. ], [
  618. 'fieldsmingcheng' => 'touxiang',
  619. 'viewmingcheng' => '头像',
  620. 'inputtype' => 'pic',
  621. 'is_front' => 1,
  622. 'is_frontinput' => 1,
  623. 'is_input' => 1,
  624. 'is_import' => 1,
  625. 'is_listView' => 1
  626. ], [
  627. 'fieldsmingcheng' => 'total_income',
  628. 'viewmingcheng' => '总收入',
  629. 'inputtype' => 'text',
  630. 'is_front' => 0,
  631. 'is_input' => 1,
  632. 'is_import' => 1,
  633. 'is_listView' => 1
  634. ], [
  635. 'fieldsmingcheng' => 'income',
  636. 'viewmingcheng' => '收入',
  637. 'inputtype' => 'text',
  638. 'is_front' => 0,
  639. 'is_input' => 1,
  640. 'is_import' => 1,
  641. 'is_listView' => 1,
  642. ], [
  643. 'fieldsmingcheng' => 'cash',
  644. 'viewmingcheng' => '已提现',
  645. 'inputtype' => 'text',
  646. 'is_front' => 0,
  647. 'is_input' => 1,
  648. 'is_import' => 1,
  649. 'is_listView' => 1,
  650. ], [
  651. 'fieldsmingcheng' => 'no_cash',
  652. 'viewmingcheng' => '未提现',
  653. 'inputtype' => 'text',
  654. 'is_front' => 0,
  655. 'is_input' => 1,
  656. 'is_import' => 1,
  657. 'is_listView' => 1
  658. ], [
  659. 'fieldsmingcheng' => 'create_time',
  660. 'viewmingcheng' => '加入时间',
  661. 'inputtype' => 'text',
  662. 'is_front' => 0,
  663. 'is_input' => 0,
  664. 'is_import' => 1,
  665. 'is_listView' => 1
  666. ], [
  667. 'fieldsmingcheng' => 'email',
  668. 'viewmingcheng' => '邮箱',
  669. 'inputtype' => 'text',
  670. 'is_front' => 0,
  671. 'is_import' => 1,
  672. 'is_input' => 1
  673. ], [
  674. 'fieldsmingcheng' => 'status',
  675. 'viewmingcheng' => '是否审核',
  676. 'inputtype' => 'switch',
  677. 'is_front' => 0,
  678. 'is_input' => 1,
  679. 'is_import' => 1
  680. ]
  681. ];
  682. $data['complete'] = [
  683. [
  684. 'fieldsmingcheng' => 'process',
  685. 'viewmingcheng' => '施工过程',
  686. 'inputtype' => 'pics',
  687. 'is_sys' => 0,
  688. 'is_front' => 1,
  689. 'is_frontinput' => 1,
  690. 'is_input' => 1,
  691. 'is_import' => 0,
  692. 'is_listView' => 1
  693. ], [
  694. 'fieldsmingcheng' => 'acceptance',
  695. 'viewmingcheng' => '验收现场',
  696. 'inputtype' => 'pics',
  697. 'is_sys' => 0,
  698. 'is_front' => 1,
  699. 'is_frontinput' => 1,
  700. 'is_input' => 1,
  701. 'is_import' => 0,
  702. 'is_listView' => 1
  703. ], [
  704. 'fieldsmingcheng' => 'customeracceptance',
  705. 'viewmingcheng' => '顾客验收表',
  706. 'inputtype' => 'pics',
  707. 'is_sys' => 0,
  708. 'is_front' => 1,
  709. 'is_frontinput' => 1,
  710. 'is_input' => 1,
  711. 'is_import' => 0,
  712. 'is_listView' => 1
  713. ]
  714. ];
  715. $data['technical'] = [
  716. [
  717. 'fieldsmingcheng' => 'username',
  718. 'viewmingcheng' => '帐号',
  719. 'inputtype' => 'text',
  720. 'valuerules' => 'require',
  721. 'is_front' => 0,
  722. 'is_frontinput' => 1,
  723. 'is_input' => 0,
  724. 'is_import' => 1,
  725. 'is_listView' => 1,
  726. ], [
  727. 'fieldsmingcheng' => 'password',
  728. 'viewmingcheng' => '密码',
  729. 'inputtype' => 'text',
  730. 'valuerules' => 'require',
  731. 'is_front' => 0,
  732. 'is_frontinput' => 1,
  733. 'is_input' => 0,
  734. 'is_import' => 1,
  735. 'is_listView' => 0,
  736. ], [
  737. 'fieldsmingcheng' => 'title',
  738. 'viewmingcheng' => '姓名',
  739. 'valuerules' => 'require',
  740. 'inputtype' => 'text',
  741. 'is_front' => 1,
  742. 'is_frontinput' => 1,
  743. 'is_input' => 1,
  744. 'is_import' => 1,
  745. 'is_listView' => 1,
  746. ], [
  747. 'fieldsmingcheng' => 'level',
  748. 'viewmingcheng' => '等级',
  749. 'inputtype' => 'select',
  750. 'is_front' => 0,
  751. 'is_input' => 1,
  752. 'is_import' => 1,
  753. 'is_listView' => 1
  754. ], [
  755. 'fieldsmingcheng' => 'certificate_ids',
  756. 'viewmingcheng' => '师傅认证',
  757. 'inputtype' => 'checkbox',
  758. 'is_front' => 0,
  759. 'is_frontinput' => 1,
  760. 'is_input' => 1,
  761. 'is_import' => 1,
  762. 'is_listView' => 1
  763. ], [
  764. 'fieldsmingcheng' => 'tel',
  765. 'viewmingcheng' => '手机号',
  766. 'inputtype' => 'text',
  767. 'valuerules' => 'require|mobile',
  768. 'is_front' => 0,
  769. 'is_frontinput' => 1,
  770. 'is_input' => 1,
  771. 'is_import' => 1,
  772. 'is_listView' => 1
  773. ], [
  774. 'fieldsmingcheng' => 'touxiang',
  775. 'viewmingcheng' => '头像',
  776. 'inputtype' => 'pic',
  777. 'is_front' => 0,
  778. 'is_frontinput' => 0,
  779. 'is_input' => 0,
  780. 'is_import' => 1,
  781. 'is_listView' => 1
  782. ], [
  783. 'fieldsmingcheng' => 'photoalbum',
  784. 'viewmingcheng' => '相册',
  785. 'inputtype' => 'pics',
  786. 'is_front' => 1,
  787. 'is_frontinput' => 1,
  788. 'is_input' => 1,
  789. 'is_import' => 1,
  790. 'is_listView' => 0
  791. ], [
  792. 'fieldsmingcheng' => 'videourl',
  793. 'viewmingcheng' => '视频',
  794. 'inputtype' => 'video',
  795. 'is_front' => 0,
  796. 'is_frontinput' => 1,
  797. 'is_input' => 1,
  798. 'is_import' => 0,
  799. 'is_listView' => 0
  800. ], [
  801. 'fieldsmingcheng' => 'idpic1',
  802. 'viewmingcheng' => '身份证正面',
  803. 'inputtype' => 'pic',
  804. 'is_sys' => 0,
  805. 'is_front' => 0,
  806. 'is_frontinput' => 1,
  807. 'is_import' => 1,
  808. 'is_input' => 1
  809. ], [
  810. 'fieldsmingcheng' => 'idpic2',
  811. 'viewmingcheng' => '身份证背面',
  812. 'inputtype' => 'pic',
  813. 'is_sys' => 0,
  814. 'is_front' => 0,
  815. 'is_frontinput' => 1,
  816. 'is_import' => 1,
  817. 'is_input' => 1
  818. ], [
  819. 'fieldsmingcheng' => 'workunits',
  820. 'viewmingcheng' => '工作单位',
  821. 'inputtype' => 'text',
  822. 'is_front' => 0,
  823. 'is_frontinput' => 0,
  824. 'is_input' => 1,
  825. 'is_import' => 1,
  826. 'is_listView' => 0
  827. ], [
  828. 'fieldsmingcheng' => 'region_name',
  829. 'viewmingcheng' => '地理位置',
  830. 'inputtype' => 'lbs',
  831. 'valuerules' => 'require',
  832. 'is_sys' => 1,
  833. 'is_front' => 0,
  834. 'is_frontinput' => 1,
  835. 'is_import' => 1,
  836. 'is_input' => 1,
  837. 'is_listView' => 1
  838. ], [
  839. 'fieldsmingcheng' => 'house_number',
  840. 'viewmingcheng' => '详细地址',
  841. 'inputtype' => 'text',
  842. 'is_sys' => 1,
  843. 'is_front' => 0,
  844. 'is_frontinput' => 1,
  845. 'is_import' => 1,
  846. 'is_input' => 1,
  847. 'is_import' => 1,
  848. 'is_listView' => 0
  849. ], [
  850. 'fieldsmingcheng' => 'cate_ids',
  851. 'viewmingcheng' => '可接的服务',
  852. 'inputtype' => 'checkbox',
  853. 'valuerules' => 'require',
  854. 'is_front' => 0,
  855. 'is_frontinput' => 1,
  856. 'is_input' => 1,
  857. 'is_import' => 1,
  858. 'is_listView' => 1
  859. ], [
  860. 'fieldsmingcheng' => 'sid',
  861. 'viewmingcheng' => '所属店铺',
  862. 'inputtype' => 'select',
  863. 'is_front' => 0,
  864. 'is_frontinput' => 1,
  865. 'is_input' => 1,
  866. 'is_import' => 1,
  867. 'is_listView' => 1
  868. ], [
  869. 'fieldsmingcheng' => 'introduction',
  870. 'viewmingcheng' => '擅长与简介',
  871. 'inputtype' => 'textarea',
  872. 'is_front' => 1,
  873. 'is_frontinput' => 1,
  874. 'is_input' => 1,
  875. 'is_import' => 1,
  876. 'is_listView' => 0
  877. ], [
  878. 'fieldsmingcheng' => 'total_income',
  879. 'viewmingcheng' => '总收入',
  880. 'inputtype' => 'text',
  881. 'is_input' => 1,
  882. 'is_import' => 1,
  883. 'is_listView' => 1
  884. ], [
  885. 'fieldsmingcheng' => 'income',
  886. 'viewmingcheng' => '收入',
  887. 'inputtype' => 'text',
  888. 'is_input' => 1,
  889. 'is_import' => 1,
  890. 'is_listView' => 1,
  891. ], [
  892. 'fieldsmingcheng' => 'points',
  893. 'viewmingcheng' => '积分',
  894. 'inputtype' => 'text',
  895. 'is_input' => 1,
  896. 'is_import' => 1,
  897. 'is_listView' => 1
  898. ], [
  899. 'fieldsmingcheng' => 'service_times_base',
  900. 'viewmingcheng' => '服务次数基数',
  901. 'inputtype' => 'text',
  902. 'is_input' => 1,
  903. 'is_import' => 1,
  904. 'is_listView' => 0
  905. ], [
  906. 'fieldsmingcheng' => 'comment_base',
  907. 'viewmingcheng' => '评价基数',
  908. 'inputtype' => 'text',
  909. 'is_input' => 1,
  910. 'is_import' => 1,
  911. 'is_listView' => 0
  912. ], [
  913. 'fieldsmingcheng' => 'viewed_base',
  914. 'viewmingcheng' => '人气基数',
  915. 'inputtype' => 'text',
  916. 'is_input' => 1,
  917. 'is_import' => 1,
  918. 'is_listView' => 0
  919. ], [
  920. 'fieldsmingcheng' => 'end_time',
  921. 'viewmingcheng' => '到期时间',
  922. 'inputtype' => 'date',
  923. 'is_input' => 1,
  924. 'is_import' => 1,
  925. 'is_listView' => 1
  926. ], [
  927. 'fieldsmingcheng' => 'create_time',
  928. 'viewmingcheng' => '加入时间',
  929. 'inputtype' => 'text',
  930. 'is_input' => 0,
  931. 'is_import' => 1,
  932. 'is_listView' => 1
  933. ], [
  934. 'fieldsmingcheng' => 'email',
  935. 'viewmingcheng' => '邮箱',
  936. 'inputtype' => 'text',
  937. 'is_import' => 1,
  938. 'is_input' => 1
  939. ], [
  940. 'fieldsmingcheng' => 'sort',
  941. 'viewmingcheng' => '排序',
  942. 'inputtype' => 'text',
  943. 'is_import' => 1,
  944. 'is_input' => 1,
  945. 'is_listView' => 1
  946. ], [
  947. 'fieldsmingcheng' => 'status',
  948. 'viewmingcheng' => '是否审核',
  949. 'inputtype' => 'switch',
  950. 'is_input' => 1,
  951. 'is_import' => 1
  952. ]
  953. ];
  954. $data['tuanzhang'] = [
  955. [
  956. 'fieldsmingcheng' => 'username',
  957. 'viewmingcheng' => '帐号',
  958. 'inputtype' => 'text',
  959. 'valuerules' => 'require',
  960. 'is_front' => 0,
  961. 'is_frontinput' => 1,
  962. 'is_input' => 0,
  963. 'is_import' => 1,
  964. 'is_listView' => 1,
  965. ], [
  966. 'fieldsmingcheng' => 'password',
  967. 'viewmingcheng' => '密码',
  968. 'inputtype' => 'text',
  969. 'valuerules' => 'require',
  970. 'is_front' => 0,
  971. 'is_frontinput' => 1,
  972. 'is_input' => 0,
  973. 'is_import' => 1,
  974. 'is_listView' => 0,
  975. ], [
  976. 'fieldsmingcheng' => 'community_title',
  977. 'viewmingcheng' => '社区名称',
  978. 'inputtype' => 'text',
  979. 'valuerules' => 'require',
  980. 'is_front' => 1,
  981. 'is_frontinput' => 1,
  982. 'is_input' => 1,
  983. 'is_import' => 1,
  984. 'is_listView' => 1,
  985. ], [
  986. 'fieldsmingcheng' => 'title',
  987. 'viewmingcheng' => '团长姓名',
  988. 'inputtype' => 'text',
  989. 'valuerules' => 'require',
  990. 'is_front' => 1,
  991. 'is_frontinput' => 1,
  992. 'is_input' => 1,
  993. 'is_import' => 1,
  994. 'is_listView' => 1,
  995. ], [
  996. 'fieldsmingcheng' => 'level',
  997. 'viewmingcheng' => '等级',
  998. 'inputtype' => 'select',
  999. 'is_front' => 0,
  1000. 'is_input' => 1,
  1001. 'is_import' => 1,
  1002. 'is_listView' => 1
  1003. ], [
  1004. 'fieldsmingcheng' => 'tel',
  1005. 'viewmingcheng' => '手机号',
  1006. 'inputtype' => 'text',
  1007. 'valuerules' => 'require|mobile',
  1008. 'is_front' => 1,
  1009. 'is_frontinput' => 1,
  1010. 'is_input' => 1,
  1011. 'is_import' => 1,
  1012. 'is_listView' => 1
  1013. ], [
  1014. 'fieldsmingcheng' => 'touxiang',
  1015. 'viewmingcheng' => '头像',
  1016. 'inputtype' => 'pic',
  1017. 'is_front' => 1,
  1018. 'is_frontinput' => 1,
  1019. 'is_input' => 1,
  1020. 'is_import' => 1,
  1021. 'is_listView' => 1
  1022. ], [
  1023. 'fieldsmingcheng' => 'idpic1',
  1024. 'viewmingcheng' => '身份证正面',
  1025. 'inputtype' => 'pic',
  1026. 'is_sys' => 0,
  1027. 'is_front' => 1,
  1028. 'is_frontinput' => 1,
  1029. 'is_import' => 1,
  1030. 'is_input' => 1
  1031. ], [
  1032. 'fieldsmingcheng' => 'idpic2',
  1033. 'viewmingcheng' => '身份证背面',
  1034. 'inputtype' => 'pic',
  1035. 'is_sys' => 0,
  1036. 'is_front' => 1,
  1037. 'is_frontinput' => 1,
  1038. 'is_import' => 1,
  1039. 'is_input' => 1
  1040. ], [
  1041. 'fieldsmingcheng' => 'region_name',
  1042. 'viewmingcheng' => '地理位置',
  1043. 'inputtype' => 'lbs',
  1044. 'valuerules' => 'require',
  1045. 'is_sys' => 1,
  1046. 'is_front' => 1,
  1047. 'is_frontinput' => 1,
  1048. 'is_import' => 1,
  1049. 'is_input' => 1,
  1050. 'is_listView' => 1
  1051. ], [
  1052. 'fieldsmingcheng' => 'house_number',
  1053. 'viewmingcheng' => '详细地址',
  1054. 'inputtype' => 'text',
  1055. 'valuerules' => 'require',
  1056. 'is_sys' => 1,
  1057. 'is_front' => 1,
  1058. 'is_frontinput' => 1,
  1059. 'is_import' => 1,
  1060. 'is_input' => 1,
  1061. 'is_import' => 1,
  1062. 'is_listView' => 0
  1063. ], [
  1064. 'fieldsmingcheng' => 'introduction',
  1065. 'viewmingcheng' => '简介',
  1066. 'inputtype' => 'textarea',
  1067. 'is_front' => 1,
  1068. 'is_frontinput' => 1,
  1069. 'is_input' => 1,
  1070. 'is_import' => 1,
  1071. 'is_listView' => 0
  1072. ], [
  1073. 'fieldsmingcheng' => 'total_income',
  1074. 'viewmingcheng' => '总收入',
  1075. 'inputtype' => 'text',
  1076. 'is_input' => 1,
  1077. 'is_import' => 1,
  1078. 'is_listView' => 1
  1079. ], [
  1080. 'fieldsmingcheng' => 'income',
  1081. 'viewmingcheng' => '收入',
  1082. 'inputtype' => 'text',
  1083. 'is_input' => 1,
  1084. 'is_import' => 1,
  1085. 'is_listView' => 1,
  1086. ], [
  1087. 'fieldsmingcheng' => 'points',
  1088. 'viewmingcheng' => '积分',
  1089. 'inputtype' => 'text',
  1090. 'is_input' => 1,
  1091. 'is_import' => 1,
  1092. 'is_listView' => 1
  1093. ], [
  1094. 'fieldsmingcheng' => 'create_time',
  1095. 'viewmingcheng' => '加入时间',
  1096. 'inputtype' => 'text',
  1097. 'is_input' => 0,
  1098. 'is_import' => 1,
  1099. 'is_listView' => 1
  1100. ], [
  1101. 'fieldsmingcheng' => 'email',
  1102. 'viewmingcheng' => '邮箱',
  1103. 'inputtype' => 'text',
  1104. 'is_import' => 1,
  1105. 'is_input' => 1
  1106. ], [
  1107. 'fieldsmingcheng' => 'sort',
  1108. 'viewmingcheng' => '排序',
  1109. 'inputtype' => 'text',
  1110. 'is_import' => 1,
  1111. 'is_input' => 1,
  1112. 'is_listView' => 1
  1113. ], [
  1114. 'fieldsmingcheng' => 'status',
  1115. 'viewmingcheng' => '是否审核',
  1116. 'inputtype' => 'switch',
  1117. 'is_input' => 1,
  1118. 'is_import' => 1
  1119. ]
  1120. ];
  1121. $data['operatingcity'] = [
  1122. [
  1123. 'fieldsmingcheng' => 'username',
  1124. 'viewmingcheng' => '帐号',
  1125. 'inputtype' => 'text',
  1126. 'valuerules' => 'require',
  1127. 'is_front' => 0,
  1128. 'is_frontinput' => 1,
  1129. 'is_input' => 0,
  1130. 'is_import' => 1,
  1131. 'is_listView' => 1,
  1132. ], [
  1133. 'fieldsmingcheng' => 'password',
  1134. 'viewmingcheng' => '密码',
  1135. 'inputtype' => 'text',
  1136. 'valuerules' => 'require',
  1137. 'is_front' => 0,
  1138. 'is_frontinput' => 1,
  1139. 'is_input' => 0,
  1140. 'is_import' => 1,
  1141. 'is_listView' => 0,
  1142. ], [
  1143. 'fieldsmingcheng' => 'title',
  1144. 'viewmingcheng' => '名称',
  1145. 'inputtype' => 'text',
  1146. 'valuerules' => 'require',
  1147. 'is_front' => 1,
  1148. 'is_frontinput' => 1,
  1149. 'is_input' => 1,
  1150. 'is_import' => 1,
  1151. 'is_listView' => 1,
  1152. ], [
  1153. 'fieldsmingcheng' => 'level',
  1154. 'viewmingcheng' => '等级',
  1155. 'inputtype' => 'select',
  1156. 'is_front' => 0,
  1157. 'is_input' => 1,
  1158. 'is_import' => 1,
  1159. 'is_listView' => 1
  1160. ], [
  1161. 'fieldsmingcheng' => 'areatype',
  1162. 'viewmingcheng' => '类型',
  1163. 'inputtype' => 'radio',
  1164. 'is_front' => 1,
  1165. 'is_frontinput' => 1,
  1166. 'is_input' => 1,
  1167. 'is_import' => 1,
  1168. 'is_listView' => 1
  1169. ], [
  1170. 'fieldsmingcheng' => 'region_name',
  1171. 'viewmingcheng' => '地理位置',
  1172. 'inputtype' => 'lbs',
  1173. 'valuerules' => 'require',
  1174. 'is_sys' => 1,
  1175. 'is_front' => 1,
  1176. 'is_frontinput' => 1,
  1177. 'is_import' => 1,
  1178. 'is_input' => 1,
  1179. 'is_listView' => 1
  1180. ], [
  1181. 'fieldsmingcheng' => 'house_number',
  1182. 'viewmingcheng' => '详细地址',
  1183. 'inputtype' => 'text',
  1184. 'valuerules' => 'require',
  1185. 'is_sys' => 1,
  1186. 'is_front' => 1,
  1187. 'is_frontinput' => 1,
  1188. 'is_import' => 1,
  1189. 'is_input' => 1,
  1190. 'is_import' => 1,
  1191. 'is_listView' => 0
  1192. ],
  1193. [
  1194. 'fieldsmingcheng' => 'total_income',
  1195. 'viewmingcheng' => '总收入',
  1196. 'inputtype' => 'text',
  1197. 'is_input' => 1,
  1198. 'is_import' => 1,
  1199. 'is_listView' => 1
  1200. ], [
  1201. 'fieldsmingcheng' => 'income',
  1202. 'viewmingcheng' => '收入',
  1203. 'inputtype' => 'text',
  1204. 'is_input' => 1,
  1205. 'is_import' => 1,
  1206. 'is_listView' => 1,
  1207. ], [
  1208. 'fieldsmingcheng' => 'cate_ids',
  1209. 'viewmingcheng' => '经营类目',
  1210. 'inputtype' => 'checkbox',
  1211. 'valuerules' => 'require',
  1212. 'is_front' => 1,
  1213. 'is_frontinput' => 1,
  1214. 'is_input' => 1,
  1215. 'is_import' => 1,
  1216. 'is_listView' => 1
  1217. ], [
  1218. 'fieldsmingcheng' => 'create_time',
  1219. 'viewmingcheng' => '加入时间',
  1220. 'inputtype' => 'text',
  1221. 'is_input' => 0,
  1222. 'is_listView' => 1
  1223. ], [
  1224. 'fieldsmingcheng' => 'end_time',
  1225. 'viewmingcheng' => '到期时间',
  1226. 'inputtype' => 'date',
  1227. 'is_input' => 1,
  1228. 'is_import' => 1,
  1229. 'is_listView' => 1
  1230. ], [
  1231. 'fieldsmingcheng' => 'status',
  1232. 'viewmingcheng' => '是否审核',
  1233. 'inputtype' => 'switch',
  1234. 'is_input' => 1,
  1235. 'is_import' => 1
  1236. ]
  1237. ];
  1238. $data['store'] = [
  1239. [
  1240. 'fieldsmingcheng' => 'username',
  1241. 'viewmingcheng' => '帐号',
  1242. 'inputtype' => 'text',
  1243. 'valuerules' => 'require',
  1244. 'is_front' => 0,
  1245. 'is_frontinput' => 1,
  1246. 'is_input' => 0,
  1247. 'is_import' => 1,
  1248. 'is_listView' => 1,
  1249. ], [
  1250. 'fieldsmingcheng' => 'password',
  1251. 'viewmingcheng' => '密码',
  1252. 'inputtype' => 'text',
  1253. 'valuerules' => 'require',
  1254. 'is_front' => 0,
  1255. 'is_frontinput' => 1,
  1256. 'is_input' => 0,
  1257. 'is_import' => 1,
  1258. 'is_listView' => 0,
  1259. ], [
  1260. 'fieldsmingcheng' => 'title',
  1261. 'viewmingcheng' => '店名',
  1262. 'inputtype' => 'text',
  1263. 'valuerules' => 'require',
  1264. 'is_front' => 1,
  1265. 'is_frontinput' => 1,
  1266. 'is_input' => 1,
  1267. 'is_import' => 1,
  1268. 'is_listView' => 1,
  1269. ], [
  1270. 'fieldsmingcheng' => 'stid',
  1271. 'viewmingcheng' => '类型',
  1272. 'inputtype' => 'select',
  1273. 'is_front' => 0,
  1274. 'is_input' => 1,
  1275. 'is_import' => 1,
  1276. 'is_listView' => 1
  1277. ], [
  1278. 'fieldsmingcheng' => 'store_logo',
  1279. 'viewmingcheng' => '店LOGO',
  1280. 'inputtype' => 'pic',
  1281. 'is_front' => 1,
  1282. 'is_frontinput' => 1,
  1283. 'is_input' => 1,
  1284. 'is_import' => 1,
  1285. 'is_listView' => 1
  1286. ], [
  1287. 'fieldsmingcheng' => 'license',
  1288. 'viewmingcheng' => '营业执照',
  1289. 'inputtype' => 'pic',
  1290. 'is_front' => 1,
  1291. 'is_frontinput' => 1,
  1292. 'is_input' => 1,
  1293. 'is_import' => 1,
  1294. 'is_listView' => 1
  1295. ], [
  1296. 'fieldsmingcheng' => 'tel',
  1297. 'viewmingcheng' => '电话',
  1298. 'inputtype' => 'text',
  1299. 'valuerules' => 'require|mobile',
  1300. 'is_front' => 1,
  1301. 'is_frontinput' => 1,
  1302. 'is_input' => 1,
  1303. 'is_import' => 1,
  1304. 'is_listView' => 1,
  1305. ], [
  1306. 'fieldsmingcheng' => 'content',
  1307. 'viewmingcheng' => '店铺简介',
  1308. 'inputtype' => 'textarea',
  1309. 'is_sys' => 1,
  1310. 'is_front' => 1,
  1311. 'is_frontinput' => 1,
  1312. 'is_import' => 1,
  1313. 'is_input' => 1,
  1314. 'is_import' => 1,
  1315. 'is_listView' => 0
  1316. ], [
  1317. 'fieldsmingcheng' => 'region_name',
  1318. 'viewmingcheng' => '地理位置',
  1319. 'inputtype' => 'lbs',
  1320. 'valuerules' => 'require',
  1321. 'is_sys' => 1,
  1322. 'is_front' => 1,
  1323. 'is_frontinput' => 1,
  1324. 'is_import' => 1,
  1325. 'is_input' => 1,
  1326. 'is_listView' => 1
  1327. ], [
  1328. 'fieldsmingcheng' => 'house_number',
  1329. 'viewmingcheng' => '详细地址',
  1330. 'inputtype' => 'text',
  1331. 'is_sys' => 1,
  1332. 'is_front' => 1,
  1333. 'is_frontinput' => 1,
  1334. 'is_import' => 1,
  1335. 'is_input' => 1,
  1336. 'is_import' => 1,
  1337. 'is_listView' => 0
  1338. ],
  1339. [
  1340. 'fieldsmingcheng' => 'total_income',
  1341. 'viewmingcheng' => '总收入',
  1342. 'inputtype' => 'text',
  1343. 'is_input' => 1,
  1344. 'is_import' => 1,
  1345. 'is_listView' => 1
  1346. ], [
  1347. 'fieldsmingcheng' => 'income',
  1348. 'viewmingcheng' => '收入',
  1349. 'inputtype' => 'text',
  1350. 'is_input' => 1,
  1351. 'is_import' => 1,
  1352. 'is_listView' => 1,
  1353. ], [
  1354. 'fieldsmingcheng' => 'cate_ids',
  1355. 'viewmingcheng' => '可接的服务',
  1356. 'inputtype' => 'checkbox',
  1357. 'is_front' => 1,
  1358. 'is_frontinput' => 1,
  1359. 'is_input' => 1,
  1360. 'is_import' => 1,
  1361. 'is_listView' => 1
  1362. ], [
  1363. 'fieldsmingcheng' => 'create_time',
  1364. 'viewmingcheng' => '加入时间',
  1365. 'inputtype' => 'text',
  1366. 'is_input' => 0,
  1367. 'is_listView' => 1
  1368. ], [
  1369. 'fieldsmingcheng' => 'end_time',
  1370. 'viewmingcheng' => '到期时间',
  1371. 'inputtype' => 'date',
  1372. 'is_input' => 1,
  1373. 'is_import' => 1,
  1374. 'is_listView' => 1
  1375. ], [
  1376. 'fieldsmingcheng' => 'sort',
  1377. 'viewmingcheng' => '排序',
  1378. 'inputtype' => 'text',
  1379. 'is_import' => 1,
  1380. 'is_input' => 1,
  1381. 'is_listView' => 1
  1382. ], [
  1383. 'fieldsmingcheng' => 'status',
  1384. 'viewmingcheng' => '是否审核',
  1385. 'inputtype' => 'switch',
  1386. 'is_input' => 1,
  1387. 'is_import' => 1
  1388. ]
  1389. ];
  1390. $data = self::setdata($data[$ptype], $ptype);
  1391. self::createdata($data);
  1392. }
  1393. }