requirements.js 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843
  1. const app = getApp();
  2. Page({
  3. data: {
  4. // selectArray: [], // 性别-数据
  5. // index: '', // 性别-下标、
  6. heightid:0,
  7. heightArray: [], // 身高-数据
  8. heightindex: [0, 0], // 身高-下标
  9. EducationArray: [], // 学历-数据
  10. Educationindex: '', // 学历-下标
  11. MarriageArray: [], // 婚史-数据
  12. Marriageindex: '', // 婚史-下标
  13. incomeid:0,
  14. incomeArray: [], // 收入-数据
  15. incomeindex: [0, 0], // 收入-下标
  16. OccupationArray: [], // 职业-数据
  17. Occupationindex: '', // 职业-下标
  18. // contactArray: [], // 允许有意者联系我-数据
  19. // contactindex: '', // 允许有意者联系我-下标
  20. multiArray: [], // 地址-数据
  21. step: 0, // 地址
  22. multiIndex: [0, 0, 0], // 地址-下标
  23. // sex: '', // 性别
  24. age: '', // 年龄
  25. height: '', // 身高
  26. province: '', // 省
  27. city: '', // 市
  28. area: '', // 区
  29. education: '', // 学历
  30. marry: '', // 婚史
  31. income: '', // 收入
  32. occupation: '', // 职业
  33. Ageid:0,
  34. AgeArray: [], // 年龄-数据
  35. AgeIndex: [0, 0], // 年龄-下标
  36. },
  37. onLoad: function () {
  38. var that = this
  39. // 获取择偶信息
  40. let personal_url = 'my/personaloption/optioninfo';
  41. let personal_data = {
  42. };
  43. app.postRequest(personal_url, personal_data, function (res) {
  44. if (res.code == 201) {
  45. that.setData({
  46. personal: res.data, //获取全部数据
  47. })
  48. }
  49. })
  50. // 默认择偶信息
  51. let editinfo_url = 'my/personaloption/editoption';
  52. let editinfo_data = {
  53. };
  54. app.postRequest(editinfo_url, editinfo_data, function (res) {
  55. // console.log(res.data)
  56. // 年龄 ajax
  57. let Age_url = 'public/paramsgather?type=age';
  58. let Age_data = {
  59. // pid: '0'
  60. };
  61. let _age_min = res.data.age_min == 0 ? '不限' : res.data.age_min;
  62. let _age_max = res.data.age_max == 0 ? '以上' : res.data.age_max;
  63. // console.log(_age_min);
  64. // console.log(_age_max);
  65. app.postRequest(Age_url, Age_data, function (res) { // 年龄 ajax
  66. if (res.code == 201) {
  67. let newarray = ['不限'];
  68. var res_data = newarray.concat(res.data); //在原有的数据上 凭借上 不限
  69. let newarray1 = ['以上'];
  70. var res_data1 = newarray1.concat(res.data); //在原有的数据上 凭借上 以上
  71. let min = data_processing(res_data, _age_min); //已选中的数据处理 min
  72. let max = data_processing(res_data1, _age_max); //已选中的数据处理 max
  73. that.setData({
  74. AgeIndex: [min, max]
  75. })
  76. let dictObject = res.data; //对象不能直接使用 以下转成数组
  77. // 对象转成数组
  78. var createArr = []
  79. for (let i in dictObject) {
  80. createArr.push(dictObject[i] + "岁"); //在数据后面凭借 岁
  81. }
  82. let bx = ['不限'];
  83. var Unlimited = bx.concat(createArr); //在原有的数据上 凭借上 不限
  84. let ys = ['以上'];
  85. var Above = ys.concat(createArr); //在原有的数据上 凭借上 以上
  86. that.setData({
  87. AgeArray: [Unlimited, Above],
  88. })
  89. // console.log(createArr);
  90. }
  91. })
  92. // 身高 ajax
  93. let height_url = 'public/paramsgather?type=height';
  94. let height_data = {
  95. pid: '0'
  96. };
  97. let _height_min = res.data.height_min == 0 ? '不限' : res.data.height_min;
  98. let _height_max = res.data.height_max == 0 ? '以上' : res.data.height_max;
  99. // console.log(_height_min)
  100. // console.log(_height_max)
  101. app.postRequest(height_url, height_data, function (res) { // 身高 ajax
  102. if (res.code == 201) {
  103. let newarray = ['不限'];
  104. var res_data = newarray.concat(res.data); //在原有的数据上 凭借上 不限
  105. let newarray1 = ['以上'];
  106. var res_data1 = newarray1.concat(res.data); //在原有的数据上 凭借上 以上
  107. let min = data_processing(res_data, _height_min); //已选中的数据处理 min
  108. let max = data_processing(res_data1, _height_max); //已选中的数据处理 max
  109. that.setData({
  110. heightindex: [min, max]
  111. })
  112. let dictObject = res.data; //对象不能直接使用 以下转成数组
  113. // 对象转成数组
  114. var createArr = []
  115. for (let i in dictObject) {
  116. createArr.push(dictObject[i] + "cm");
  117. }
  118. let bx = ['不限'];
  119. var Unlimited = bx.concat(createArr);
  120. let ys = ['以上'];
  121. var Above = ys.concat(createArr);
  122. // console.log(createArr);
  123. that.setData({
  124. heightArray: [Unlimited, Above],
  125. })
  126. }
  127. })
  128. // 学历 ajax
  129. let Education_url = 'public/paramsgather?type=xueli';
  130. let Education_data = {
  131. // pid: '0'
  132. };
  133. let _education = res.data.education;
  134. app.postRequest(Education_url, Education_data, function (res) { // 学历 ajax
  135. if (res.code == 201) {
  136. for (let i = 0; i < res.data.length; i++) { //已选中的数据处理
  137. if (res.data[i].id == _education) {
  138. // console.log(res.data[i].id)
  139. that.setData({
  140. Educationindex: i
  141. })
  142. }
  143. }
  144. that.setData({
  145. EducationArray: res.data
  146. })
  147. }
  148. })
  149. // 婚史 ajax
  150. let Marriage_url = 'public/paramsgather?type=marriage';
  151. let Marriage_data = {
  152. pid: '0'
  153. };
  154. app.postRequest(Marriage_url, Marriage_data, function (res) { // 婚史 ajax
  155. if (res.code == 201) {
  156. that.setData({
  157. MarriageArray: res.data
  158. })
  159. }
  160. })
  161. // 收入 ajax
  162. let income_url = 'public/paramsgather?type=shouru1';
  163. let income_data = {
  164. // pid: '0'
  165. };
  166. let _income_min = res.data.income_min == 0 ? '不限' : res.data.income_min;
  167. let _income_max = res.data.income_max == 0 ? '以上' : res.data.income_max;
  168. console.log(_income_min);
  169. console.log(_income_max);
  170. app.postRequest(income_url, income_data, function (res) { // 收入 ajax
  171. if (res.code == 201) {
  172. let newarray = ['不限'];
  173. var res_data = newarray.concat(res.data); //在原有的数据上 凭借上 不限
  174. let newarray1 = ['以上'];
  175. var res_data1 = newarray1.concat(res.data); //在原有的数据上 凭借上 以上
  176. var min = data_processing(res_data, _income_min); //已选中的数据处理 min
  177. var max = data_processing(res_data1, _income_max); //已选中的数据处理 max
  178. console.log(min);
  179. console.log(max);
  180. that.setData({
  181. incomeindex: [min, max]
  182. })
  183. that.setData({
  184. incomeArray: [res_data, res_data1],
  185. })
  186. }
  187. })
  188. // 职业 ajax
  189. let Occupation_url = 'public/paramsgather?type=zhiye';
  190. let Occupation_data = {
  191. // pid: '0'
  192. };
  193. let _occupation = res.data.occupation;
  194. app.postRequest(Occupation_url, Occupation_data, function (res) { // 职业 ajax
  195. if (res.code == 201) {
  196. // console.log(res);
  197. for (let i = 0; i < res.data.length; i++) { //已选中的数据处理
  198. if (res.data[i].id == _occupation) {
  199. // console.log(res.data[i].id)
  200. that.setData({
  201. Occupationindex: i
  202. })
  203. }
  204. }
  205. that.setData({
  206. OccupationArray: res.data
  207. })
  208. }
  209. })
  210. if (res.code == 201) {
  211. var _age , _height , _income ;
  212. if (res.data.age_min == 0 && res.data.age_max == 0){
  213. _age = '';
  214. }else{
  215. _age = res.data.age_min + '-' + res.data.age_max
  216. }
  217. if (res.data.height_min == 0 && res.data.height_max == 0) {
  218. _height = '';
  219. }else{
  220. _height = res.data.height_min + '-' + res.data.height_max
  221. }
  222. if (res.data.income_min == 0 && res.data.income_max == 0) {
  223. _income = '';
  224. }else {
  225. _income = res.data.income_min + '-' + res.data.income_max
  226. }
  227. that.setData({
  228. // sex: res.data.sex, // 性别
  229. age: _age, // 年龄
  230. height: _height, // 身高
  231. province: res.data.province, // 市
  232. city: res.data.city, // 市
  233. area: res.data.area, // 区
  234. education: res.data.education, // 学历
  235. marry: res.data.marry, // 婚史
  236. income: _income, // 收入
  237. occupation: res.data.occupation, // 职业
  238. Marriageindex: res.data.marry, // 婚史
  239. personacodel: res, //获取全部数据
  240. })
  241. }
  242. that.getProvince(); //地址 ajax
  243. })
  244. // 性别 ajax
  245. // let p_url = 'public/paramsgather?type=sex';
  246. // let p_data = {
  247. // // pid: '0'
  248. // };
  249. // app.postRequest(p_url, p_data, function (res) { // 性别 ajax
  250. // if (res.code == 201) {
  251. // // console.log(res.data);
  252. // that.setData({
  253. // selectArray: res.data
  254. // })
  255. // }
  256. // })
  257. // 允许有意者联系我 ajax
  258. // let contact_url = 'public/citypid';
  259. // let contact_data = {
  260. // pid: '0'
  261. // };
  262. // app.postRequest(contact_url, contact_data, function (res) { // 允许有意者联系我 ajax
  263. // // console.log(res);
  264. // that.setData({
  265. // contactArray: res.data
  266. // })
  267. // })
  268. },
  269. // GenderEvent: function (e) { // 性别 单项选择器
  270. // // console.log(this);
  271. // // console.log(e);
  272. // // console.log(this.data.selectArray[e.detail.value]);
  273. // // console.log('picker发送选择改变,携带值为', e.detail.value)
  274. // this.setData({
  275. // index: e.detail.value,
  276. // sex: e.detail.value
  277. // })
  278. // },
  279. // 年龄双选
  280. AgeEvent: function (e) {
  281. var that =this;
  282. console.log('picker发送选择改变,携带值为', e.detail.value)
  283. var _value = e.detail.value; //发送选择改变,携带值为
  284. var Small = this.data.AgeArray[0][e.detail.value[0]].substring(0, 2);
  285. var large = this.data.AgeArray[1][e.detail.value[1]].substring(0, 2);
  286. if (Small > large && Small != '不限' && large != '以上') { //判断 最小值 大于 最大值 数据互换
  287. // console.log('调换')
  288. var Agedata = large + '-' + Small;
  289. that.Exchange(_value); // 调用数组调换
  290. } else {
  291. var Agedata = Small + '-' + large; //否则正常选中
  292. }
  293. console.log(Agedata);
  294. this.setData({
  295. AgeIndex: _value,
  296. age: Agedata,
  297. Ageid: 1,
  298. })
  299. },
  300. heightEvent: function (e) { // 身高 单项选择器
  301. var that = this;
  302. // console.log(this);
  303. // console.log(e);
  304. // console.log(this.data.heightArray[e.detail.value]);
  305. // console.log('picker发送选择改变,携带值为', e.detail.value)
  306. var _value = e.detail.value; //发送选择改变,携带值为
  307. var heightSmall = this.data. heightArray[0][e.detail.value[0]].substring(0, 3);
  308. var heightlarge = this.data. heightArray[1][e.detail.value[1]].substring(0, 3);
  309. // console.log(heightdata)
  310. if (heightSmall > heightlarge && heightSmall != '不限' && heightlarge != '以上') { //判断 最小值 大于 最大值 数据互换
  311. // console.log('调换')
  312. var heightdata = heightlarge + '-' + heightSmall;
  313. that.Exchange(_value); // 调用数组调换
  314. } else {
  315. var heightdata = heightSmall + '-' + heightlarge;
  316. }
  317. this.setData({
  318. heightindex: _value,
  319. height: heightdata,
  320. heightid: 1,
  321. })
  322. },
  323. EducationEvent: function (e) { // 学历 单项选择器
  324. console.log(this);
  325. // console.log(e);
  326. console.log(this.data.EducationArray[e.detail.value].id);
  327. // console.log('picker发送选择改变,携带值为', e.detail.value)
  328. this.setData({
  329. Educationindex: e.detail.value,
  330. education: this.data.EducationArray[e.detail.value].id
  331. })
  332. },
  333. MarriageEvent: function (e) { // 婚史 单项选择器
  334. // console.log(this);
  335. // console.log(e);
  336. // console.log(this.data.MarriageArray[e.detail.value]);
  337. // console.log('picker发送选择改变,携带值为', e.detail.value)
  338. this.setData({
  339. Marriageindex: e.detail.value,
  340. marry: e.detail.value
  341. })
  342. },
  343. incomeEvent: function (e) { // 收入 单项选择器
  344. var that = this;
  345. // console.log(this);
  346. // console.log(e);
  347. // console.log(this.data.incomeArray[e.detail.value].id);
  348. // console.log('picker发送选择改变,携带值为', e.detail.value)
  349. var _value = e.detail.value; //发送选择改变,携带值为
  350. var srSmall = this.data.incomeArray[0][e.detail.value[0]];
  351. var srlarge = this.data.incomeArray[1][e.detail.value[1]];
  352. if (srSmall > srlarge && srSmall != '不限' && srlarge != '以上') { //判断 最小值 大于 最大值 数据互换
  353. // console.log('调换')
  354. var srdata = srlarge + '-' + srSmall;
  355. that.Exchange(_value); // 调用数组调换
  356. } else {
  357. var srdata = srSmall + '-' + srlarge; //否则正常选中
  358. }
  359. // console.log(srdata);
  360. this.setData({
  361. incomeindex: _value,
  362. income: srdata,
  363. incomeid:1,
  364. })
  365. },
  366. OccupationEvent: function (e) { // 职业 单项选择器
  367. // console.log(this);
  368. // console.log(e);
  369. // console.log(this.data.OccupationArray[e.detail.value].id);
  370. // console.log('picker发送选择改变,携带值为', e.detail.value)
  371. this.setData({
  372. Occupationindex: e.detail.value,
  373. occupation: this.data.OccupationArray[e.detail.value].id
  374. })
  375. },
  376. // 数组数据调换
  377. Exchange: function (data) {
  378. for (var i = 0; i < data.length / 2; i++) {
  379. var data_i = data[i];
  380. data[i] = data[data.length - 1 - i];
  381. data[data.length - 1 - i] = data_i;
  382. }
  383. return;
  384. },
  385. // contactEvent: function (e) { // 允许有意者联系我 单项选择器
  386. // // console.log(this.data.selectArray[e.detail.value].area_name)
  387. // // console.log('picker发送选择改变,携带值为', e.detail.value)
  388. // console.log(this);
  389. // console.log(e);
  390. // console.log(this.data.contactArray[e.detail.value]);
  391. // console.log('picker发送选择改变,携带值为', e.detail.value)
  392. // this.setData({
  393. // contactindex: e.detail.value
  394. // })
  395. // },
  396. getProvince() { // 多项选择器
  397. let _this = this;
  398. let d_url = 'public/citypid';
  399. app.postRequest(d_url, { pid: '0' }, function (res) {
  400. // console.log(res.data);
  401. if (res.code == '201') {
  402. var provinceList = res.data;
  403. var provinceArr = [];
  404. provinceArr = _this.mapArray(res.data);
  405. _this.setData({
  406. multiArray: [provinceArr, [], []],
  407. provinceList,
  408. provinceArr,
  409. })
  410. // console.log(provinceList);
  411. // console.log(provinceArr);
  412. var defaultCode = provinceList[0]['area_id']
  413. // console.log(provinceList[0]['area_id']);
  414. if (defaultCode) {
  415. _this.setData({
  416. currnetProvinceKey: defaultCode
  417. })
  418. _this.getCity(defaultCode)
  419. }
  420. }
  421. })
  422. },
  423. getCity(codes) {
  424. // 多项选择
  425. let _this = this;
  426. let d_url = 'public/citypid';
  427. app.postRequest(d_url, { pid: codes }, function (res) {
  428. var cityList = res.data;
  429. var cityArr = [];
  430. if (res.code == '201') {
  431. cityArr = _this.mapArray(res.data);
  432. _this.setData({
  433. multiArray: [_this.data.provinceArr, cityArr, []],
  434. cityArr,
  435. cityList
  436. })
  437. var defaultCode = cityList[0]['area_id']
  438. if (defaultCode) {
  439. _this.setData({
  440. currnetProvinceKey: defaultCode
  441. })
  442. _this.getArea(defaultCode)
  443. }
  444. }
  445. })
  446. },
  447. getArea(codes) {
  448. // 多项选择
  449. let _this = this;
  450. let d_url = 'public/citypid';
  451. app.postRequest(d_url, { pid: codes }, function (res) {
  452. var areaList = res.data;
  453. var areaArr = [];
  454. if (res.code == '201') {
  455. areaArr = _this.mapArray(res.data);
  456. }
  457. // console.log(areaList);
  458. // console.log(areaArr);
  459. _this.setData({
  460. multiArray: [_this.data.provinceArr, _this.data.cityArr, areaArr],
  461. areaList,
  462. areaArr
  463. })
  464. })
  465. },
  466. mapArray: function (data) {
  467. let cityArray = []
  468. if (data) {
  469. for (let i = 0; i < data.length; i++) {
  470. if (data[i].area_name) {
  471. cityArray[i] = data[i].area_name;
  472. }
  473. }
  474. }
  475. return cityArray;
  476. },
  477. columnchange(e) { // 滚动选择器 触发的事件
  478. var column = e.detail.column // 当前改变的列
  479. // console.log(column);
  480. // console.log(this.data.multiIndex);
  481. // console.log(JSON.parse(JSON.stringify(this.data.multiIndex)));
  482. var data = {
  483. multiIndex: this.data.multiIndex,
  484. multiArray: this.data.multiArray
  485. }
  486. data.multiIndex[column] = e.detail.value; // 第几列改变了就是对应multiIndex的第几个,更新它
  487. switch (column) { // 处理不同的逻辑
  488. case 0: // 第一列更改 就是省级的更改
  489. var currentProvinceKey = this.data.provinceList[e.detail.value].area_id
  490. if (currentProvinceKey != this.data.currnetProvinceKey) { // 判断当前的key是不是真正的更新了
  491. this.getCity(currentProvinceKey) // 获取当前key下面的市级数据
  492. }
  493. data.multiIndex[1] = 0 // 将市默认选择第一个
  494. break;
  495. case 1: // 市发生变化
  496. var currentCitykey = this.data.cityList[e.detail.value].area_id
  497. if (currentCitykey != this.data.currnetCityKey) { // 同样判断
  498. this.getArea(currentCitykey) // 获取门店
  499. }
  500. data.multiIndex[2] = 0
  501. break;
  502. }
  503. this.setData(data) // 更新数据
  504. },
  505. pickchange(e) {
  506. // console.log(this.data.provinceList[e.detail.value[0]].area_id);
  507. // console.log(this.data.cityList[e.detail.value[1]].area_id);
  508. // console.log(this.data.areaList[e.detail.value[2]].area_id);
  509. this.setData({
  510. step: 1, // 更新,用来选择用户选中的门店
  511. multiIndex: e.detail.value, // 更新下标字段
  512. province: this.data.provinceList[e.detail.value[0]].area_id, // 市
  513. city: this.data.cityList[e.detail.value[1]].area_id, // 市
  514. area: this.data.areaList[e.detail.value[2]].area_id // 区
  515. })
  516. },
  517. //下一步事件
  518. register: function (e) {
  519. var that =this ;
  520. var _age = transformation(that.data.age) //不限以上 转换成0
  521. var _height = transformation(that.data.height) //不限以上 转换成0
  522. var _income = transformation(that.data.income) //不限以上 转换成0
  523. console.log(_age);
  524. // console.log(this.data.age); // 年龄
  525. console.log(this.data.height); // 身高
  526. console.log(this.data.education); // 学历
  527. console.log(this.data.marry); // 婚史
  528. console.log(this.data.income); // 收入
  529. console.log(this.data.province); // 省
  530. console.log(this.data.city); // 市
  531. console.log(this.data.area); // 区
  532. console.log(this.data.occupation); // 职业
  533. // let _Receive_img = that.data.Receive_news;
  534. // _Receive_img.push(obj); //合并历史消息对象
  535. var age = this.data.age // 年龄
  536. var height = this.data.height // 身高
  537. var province = this.data.province // 省
  538. var city = this.data.city // 市
  539. var area = this.data.area // 区
  540. var education = this.data.education // 学历
  541. var marry = this.data.marry // 婚史
  542. var income = this.data.income // 收入
  543. var occupation = this.data.occupation // 职业
  544. if (_age || height || province || city || area || education || marry || income || occupation){
  545. // 修改择偶信息
  546. let editinfoform_url = 'my/personaloption/editoptionform';
  547. let editinfoform_data = {
  548. age: _age, // 年龄
  549. height: _height, // 身高
  550. province: this.data.province, // 市
  551. city: this.data.city, // 市
  552. area: this.data.area, // 区
  553. education: this.data.education, // 学历
  554. marry: this.data.marry, // 婚史
  555. income: _income, // 收入
  556. occupation: this.data.occupation, // 职业
  557. };
  558. app.postRequest(editinfoform_url, editinfoform_data, function (res) {
  559. if (res.code == 201) {
  560. wx.showToast({
  561. title: '修改成功',
  562. icon: 'success',
  563. duration: 2000
  564. })
  565. return;
  566. }
  567. var fail = '修改失败' //调用提示框
  568. getApp().Tips(fail)
  569. })
  570. }else{
  571. var _occupation = '您没有选择'
  572. getApp().Tips(_occupation)
  573. }
  574. },
  575. })
  576. var data_processing = function (data, min_max, ) {
  577. for (let i = 0; i < data.length; i++) { //已选中的数据处理
  578. if (data[i] == min_max) {
  579. return i;
  580. }
  581. }
  582. }
  583. var transformation = function (resdata) {
  584. if (resdata) {
  585. let newArry = resdata.split("-"); //转成数组
  586. if (newArry[0] == '不限' || newArry[0] == undefined) {
  587. var _min = 0
  588. } else {
  589. var _min = newArry[0];
  590. }
  591. if (newArry[1] == '以上' || newArry[1] == undefined) {
  592. var _max = 0
  593. } else {
  594. var _max = newArry[1];
  595. }
  596. resdata = _min + '-' + _max
  597. }
  598. return resdata;
  599. }