worksheetinfo.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745
  1. // pages/worksheetinfo/worksheetinfo.js
  2. let Util = require("../../utils/util");
  3. Page({
  4. /**
  5. * 页面的初始数据
  6. */
  7. data: {
  8. images: [],
  9. signs: [],
  10. worksheetinfo: {},
  11. chargstations: [],
  12. chargstationsindex: 0,
  13. pcitures: [],
  14. workstatus: [{
  15. value: 1,
  16. text: '新建'
  17. }, {
  18. value: 2,
  19. text: '指派人员'
  20. }, {
  21. value: 3,
  22. text: '指派确认'
  23. }, {
  24. value: 4,
  25. text: '施工前安全准备'
  26. }, {
  27. value: 5,
  28. text: '进行中'
  29. }
  30. , {
  31. value: 6,
  32. text: '完成工作内容'
  33. }
  34. , {
  35. value: 7,
  36. text: '完成工单'
  37. }],
  38. workstatusindex: 0,
  39. workstatusFinished: false,
  40. workBigclass: [{
  41. value: 1,
  42. text: '售后服务'
  43. }, {
  44. value: 2,
  45. text: '工程实施'
  46. }],
  47. workBigclassindex: 0,
  48. wokSmallclass:[{
  49. value: 1,
  50. text: '日常巡站'
  51. }, {
  52. value: 2,
  53. text: '紧急维修'
  54. }, {
  55. value: 3,
  56. text: '施工准备'
  57. }, {
  58. value: 4,
  59. text: '工程进程'
  60. }, {
  61. value: 5,
  62. text: '施工过程'
  63. }, {
  64. value: 6,
  65. text: '工程竣工'
  66. }, {
  67. value: 7,
  68. text: '工程验收'
  69. }, {
  70. value: 8,
  71. text: '其他'
  72. }],
  73. wokSmallclassIndex: 1,
  74. breakdownType: [{
  75. value: 1,
  76. text: '车辆导致'
  77. }, {
  78. value: 2,
  79. text: '桩体导致'
  80. }, {
  81. value: 3,
  82. text: '人为导致'
  83. }, {
  84. value: 4,
  85. text: '基础设施问题'
  86. }, {
  87. value: 5,
  88. text: '其他'
  89. }],
  90. breakdownTypeindex: 1,
  91. exceptdate: null,
  92. excepttime: '00:00',
  93. finishdate: null,
  94. finishtime: '00:00',
  95. exceptparams:{
  96. placeholder: '请选择时间',
  97. startDateTime: '2020-01-01 00:00',
  98. endDateTime: '2040-01-01 00:00',
  99. pText: Util.formatTimePicker(new Date()) //'2022-04-30 00:00'
  100. },
  101. finishparams:{
  102. placeholder: '请选择时间',
  103. startDateTime: '2020-01-01 00:00',
  104. endDateTime: '2040-01-01 00:00',
  105. pText: Util.formatTimePicker(new Date()) //'2022-04-30 00:00'
  106. },
  107. workEndtimeParams:{
  108. placeholder: '请选择时间',
  109. startDateTime: '2020-01-01 00:00',
  110. endDateTime: '2040-01-01 00:00',
  111. pText: Util.formatTimePicker(new Date()) //'2022-04-30 00:00'
  112. // pText: '0000-00-00 00:00' //'2022-04-30 00:00'
  113. },
  114. accendantids: [],
  115. userNames:[],
  116. chargStationName:'',
  117. chargStationNameClearFlag: false
  118. },
  119. chargStationNameSelect:function(e){
  120. let url = `/pages/worksheetinfo/findstation`;
  121. wx.navigateTo({
  122. url
  123. });
  124. },
  125. bindChargstationsChange: function(e) {
  126. if (this.data.chargstationsindex != e.detail.value) {
  127. console.log('picker发送选择改变,携带值为', e.detail.value)
  128. let chargstationid = this.data.chargstations[e.detail.value].id;
  129. let worksheetinfo = this.data.worksheetinfo;
  130. worksheetinfo.accendant = null;
  131. worksheetinfo.chargStationId = chargstationid;
  132. this.setData({
  133. chargstationsindex: e.detail.value,
  134. worksheetinfo
  135. })
  136. }
  137. },
  138. bindWorkstatusChange: function(e) {
  139. //console.log('picker发送选择改变,携带值为', e.detail.value)
  140. let workStatus = this.data.workstatus[e.detail.value].value;
  141. let worksheetinfo = this.data.worksheetinfo;
  142. worksheetinfo.workStatus = workStatus;
  143. this.setData({
  144. workstatusindex: e.detail.value,
  145. worksheetinfo
  146. });
  147. },
  148. bindWorkBigclassChange: function(e) {
  149. //console.log('picker发送选择改变,携带值为', e.detail.value)
  150. let workBigclass = this.data.workBigclass[e.detail.value].value;
  151. let worksheetinfo = this.data.worksheetinfo;
  152. worksheetinfo.workBigclass = workBigclass;
  153. this.setData({
  154. workBigclassindex: e.detail.value,
  155. worksheetinfo
  156. });
  157. },
  158. bindwokSmallclassChange: function(e) {
  159. //console.log('picker发送选择改变,携带值为', e.detail.value)
  160. let wokSmallclass = this.data.wokSmallclass[e.detail.value].value;
  161. let worksheetinfo = this.data.worksheetinfo;
  162. worksheetinfo.wokSmallclass = wokSmallclass;
  163. this.setData({
  164. wokSmallclassindex: e.detail.value,
  165. worksheetinfo
  166. });
  167. },
  168. bindBreakdownType(e) {
  169. //console.log('picker发送选择改变,携带值为', e.detail.value)
  170. let breakdownType = this.data.breakdownType[e.detail.value].value;
  171. let worksheetinfo = this.data.worksheetinfo;
  172. worksheetinfo.breakdownType = breakdownType;
  173. this.setData({
  174. breakdownTypeindex: e.detail.value,
  175. worksheetinfo
  176. });
  177. },
  178. bindAccendantChange: function(e) {
  179. let chargstationid = this.data.worksheetinfo.chargStationId==null?0:this.data.worksheetinfo.chargStationId;
  180. let accendant = this.data.worksheetinfo.accendant;
  181. let url = `/pages/worksheetinfo/accendant?chargstationid=${chargstationid}&accendant=${accendant}`;
  182. wx.navigateTo({
  183. url
  184. });
  185. },
  186. bindExceptdateChange(e) {
  187. this.setData({
  188. exceptdate: e.detail.value
  189. })
  190. },
  191. bindExcepttimeChange(e) {
  192. this.setData({
  193. excepttime: e.detail.value
  194. })
  195. },
  196. bindFinishdateChange(e) {
  197. this.setData({
  198. finishdate: e.detail.value
  199. })
  200. },
  201. bindFinishtimeChange(e) {
  202. this.setData({
  203. finishtime: e.detail.value
  204. })
  205. },
  206. bindMainLocationInput(e) {
  207. let mainLocation = e.detail.value;
  208. let worksheetinfo = this.data.worksheetinfo;
  209. worksheetinfo.mainLocation = mainLocation;
  210. this.setData({
  211. worksheetinfo
  212. });
  213. },
  214. bindContentInput(e) {
  215. let content = e.detail.value;
  216. let worksheetinfo = this.data.worksheetinfo;
  217. worksheetinfo.content = content;
  218. this.setData({
  219. worksheetinfo
  220. });
  221. },
  222. bindWorkSheetSubmit(e) {
  223. let worksheetinfo = this.data.worksheetinfo;
  224. worksheetinfo.operatorName = this.data.userNames.length>0?this.data.userNames[0]:"";
  225. worksheetinfo.pams = this.data.accendantids;
  226. worksheetinfo.accendant = null;
  227. console.log(this.data.workstatusindex);
  228. console.log("工单状态");
  229. // if (this.data.exceptdate && this.data.excepttime) {
  230. // worksheetinfo.exceptTime = this.data.exceptdate + " " + this.data.excepttime + ":00";
  231. // }
  232. worksheetinfo.exceptTime = this.data.exceptparams.pText + ":00";
  233. // if (this.data.finishdate && this.data.finishtime){
  234. // worksheetinfo.finishTime = this.data.finishdate + " " + this.data.finishtime + ":00";
  235. // }
  236. worksheetinfo.finishTime = this.data.finishparams.pText=='0000-00-00 00:00'?null:this.data.finishparams.pText + ":00";
  237. worksheetinfo.workEndtime = this.data.workEndtimeParams.pText == '0000-00-00 00:00'? null : this.data.workEndtimeParams.pText + ":00";
  238. let images = this.data.images;
  239. var imgString = [];
  240. var pciString = [];
  241. this.data.pcitures.forEach((item, index) =>{
  242. pciString.push(item.src);
  243. });
  244. if(worksheetinfo.mainLocation == '' || worksheetinfo.mainLocation == undefined){
  245. wx.showModal({
  246. showCancel: false,
  247. content: '地址不能为空,请填写!',
  248. confirmColor:'#00AADD',
  249. });
  250. return;
  251. }
  252. if(worksheetinfo.pams.length == 0){
  253. wx.showModal({
  254. showCancel: false,
  255. content: '运维人员不能为空,请填写!',
  256. confirmColor:'#00AADD',
  257. });
  258. return;
  259. }
  260. if(worksheetinfo.content == '' || worksheetinfo.content == undefined){
  261. wx.showModal({
  262. showCancel: false,
  263. content: '工作内容不能为空,请填写!',
  264. confirmColor:'#00AADD',
  265. });
  266. return;
  267. }
  268. if( this.data.finishparams.pText=='0000-00-00 00:00'&& this.data.workstatusindex == 6){
  269. wx.showModal({
  270. showCancel: false,
  271. content: '请填写实际完成时间!',
  272. confirmColor:'#00AADD',
  273. });
  274. return;
  275. }
  276. let signs = this.data.signs;
  277. console.log(signs.length == 0);
  278. var signString = [];
  279. if (signs.length == 0) {
  280. //2021-1-1撤销校验
  281. // wx.showToast({
  282. // title: '请设置签名',
  283. // icon: 'loading',
  284. // duration: 2000,
  285. // mask: true,
  286. // success: function() {}
  287. // });
  288. // return;
  289. } else {
  290. console.info('上传签名')
  291. signs.forEach((item, index) => {
  292. wx.uploadFile({
  293. url: getApp().globalData.postHeadAgreement + '/restapi/wechat/editWorkSheetImg',
  294. filePath: signs[index],
  295. name: 'imageFileName',
  296. success: function(res) {
  297. let result = JSON.parse(res.data);
  298. if (result.code == 500) {
  299. wx.showModal({
  300. showCancel: false,
  301. content: result.msg,
  302. confirmColor:'#00AADD',
  303. });
  304. } else {
  305. signString.push(result.msg);
  306. console.log(signString);
  307. }
  308. }
  309. });
  310. });
  311. }
  312. var uploadSignOverFlag = setInterval(function() {
  313. if (signString.length == signs.length) {
  314. clearInterval(uploadSignOverFlag);
  315. if (images.length == 0) {
  316. if (worksheetinfo.pciture) {
  317. console.log(worksheetinfo.pciture);
  318. worksheetinfo.pciture = (pciString.concat(imgString).concat(signString)).join(",");
  319. //worksheetinfo.pciture = ((worksheetinfo.pciture.split(",")).concat(signString)).join(",");
  320. console.log(worksheetinfo.pciture);
  321. }
  322. wx.request({
  323. url: getApp().globalData.postHeadAgreement + '/restapi/wechat/editWorkSheet',
  324. data: worksheetinfo,
  325. method: 'POST',
  326. success(res) {
  327. //console.log(res);
  328. if (res.data.code == 500) {
  329. wx.showModal({
  330. showCancel: false,
  331. content: res.data.msg,
  332. confirmColor:'#00AADD',
  333. });
  334. } else {
  335. wx.navigateBack();
  336. }
  337. }
  338. });
  339. } else {
  340. images.forEach((item, index) => {
  341. wx.uploadFile({
  342. url: getApp().globalData.postHeadAgreement + '/restapi/wechat/editWorkSheetImg',
  343. filePath: images[index],
  344. name: 'imageFileName',
  345. success: function(res) {
  346. let result = JSON.parse(res.data);
  347. if (result.code == 500) {
  348. wx.showModal({
  349. showCancel: false,
  350. content: result.msg,
  351. confirmColor:'#00AADD',
  352. });
  353. } else {
  354. imgString.push(result.msg);
  355. console.log(imgString);
  356. if (index == (images.length - 1)) {
  357. var uploadImgOverFlag = setInterval(function() {
  358. if (imgString.length == images.length) {
  359. clearInterval(uploadImgOverFlag);
  360. //worksheetinfo.pciture = ((worksheetinfo.pciture.split(",")).concat(signString)).join(",");
  361. worksheetinfo.pciture = (pciString.concat(imgString).concat(signString)).join(",");
  362. //var images = this.data.images.concat(res.tempFilePaths);
  363. wx.request({
  364. url: getApp().globalData.postHeadAgreement + '/restapi/wechat/editWorkSheet',
  365. data: worksheetinfo,
  366. method: 'POST',
  367. success(res) {
  368. //console.log(res);
  369. if (res.data.code == 500) {
  370. wx.showModal({
  371. showCancel: false,
  372. content: res.data.msg,
  373. confirmColor:'#00AADD',
  374. });
  375. } else {
  376. wx.navigateBack();
  377. }
  378. }
  379. });
  380. }
  381. }, 100);
  382. }
  383. }
  384. },
  385. fail: function(data) {
  386. console.log(data);
  387. }
  388. });
  389. });
  390. }
  391. }
  392. }, 100);
  393. },
  394. openImage(e) {
  395. //var that = this;
  396. var imgCount = (9 - this.data.pcitures.length) < 0 ? 0 : 9 - this.data.pcitures.length;
  397. console.log(imgCount);
  398. wx.chooseImage({
  399. count: 9 - (this.data.pcitures.length + this.data.images.length),
  400. //sizeType: ['original', 'compressed'], //可选择原图或压缩后的图片
  401. //sourceType: ['album', 'camera'], //可选择性开放访问相册、相机
  402. success: res => {
  403. //console.log(res);
  404. var images = this.data.images.concat(res.tempFilePaths);
  405. // 限制最多只能留下5张照片
  406. images = images.length <= imgCount ? images : images.slice(0, imgCount);
  407. if (images.length >= imgCount || imgCount<= 0){
  408. wx.showToast({
  409. title: '最多9张图片',
  410. icon:'none'
  411. });
  412. }
  413. this.setData({
  414. //pcitures: [],
  415. images
  416. });
  417. }
  418. });
  419. },
  420. removeImage(e) {
  421. //console.log(e);
  422. //console.log(this.data.images);
  423. let idx = e.currentTarget.dataset.idx;
  424. var images = this.data.images;
  425. images.splice(idx, 1);
  426. this.setData({
  427. images
  428. });
  429. },
  430. removePciture(e) {
  431. //console.log(e);
  432. //console.log(this.data.images);
  433. let idx = e.currentTarget.dataset.idx;
  434. var pcitures = this.data.pcitures;
  435. pcitures.splice(idx, 1);
  436. this.setData({
  437. pcitures
  438. });
  439. },
  440. removeSign(e) {
  441. //console.log(e);
  442. //console.log(this.data.images);
  443. let idx = e.currentTarget.dataset.idx;
  444. var signs = this.data.signs;
  445. signs.splice(idx, 1);
  446. this.setData({
  447. signs
  448. });
  449. },
  450. handlePcituresPreview(e) {
  451. console.info("ddddddddddd")
  452. const idx = e.target.dataset.idx
  453. const pcitures = this.data.pcitures.map(it=>it.url)
  454. console.info(this.data.pcitures)
  455. wx.previewImage({
  456. current: pcitures[idx], //当前预览的图片
  457. urls: pcitures, //所有要预览的图片
  458. })
  459. },
  460. handleImagePreview(e) {
  461. const idx = e.target.dataset.idx
  462. const images = this.data.images
  463. console.info(this.data.images)
  464. wx.previewImage({
  465. current: images[idx], //当前预览的图片
  466. urls: images, //所有要预览的图片
  467. })
  468. },
  469. handleSignPreview(e) {
  470. const idx = e.target.dataset.idx
  471. const signs = this.data.signs
  472. //console.log(idx);
  473. //console.log(signs);
  474. //console.log(signs[idx]);
  475. wx.previewImage({
  476. current: signs[idx], //当前预览的图片
  477. urls: signs, //所有要预览的图片
  478. })
  479. },
  480. clear_chargStationName(e){
  481. let worksheetinfo = this.data.worksheetinfo;
  482. worksheetinfo.chargStationId = null;
  483. worksheetinfo.pams = [];
  484. worksheetinfo.accendant = '';
  485. worksheetinfo.mainLocation = '';
  486. this.setData({
  487. worksheetinfo,
  488. chargStationNameClearFlag: true
  489. });
  490. },
  491. bindworkEndtimeParamsChange(e){
  492. let workEndtimeParams = this.data.workEndtimeParams;
  493. workEndtimeParams.pText = e.detail
  494. this.setData({
  495. workEndtimeParams:workEndtimeParams
  496. })
  497. console.info("workEndtimeParams " + workEndtimeParams.pText)
  498. },
  499. bindFinishparamsChange(e){
  500. let finishparams = this.data.finishparams;
  501. finishparams.pText = e.detail
  502. this.setData({
  503. finishparams:finishparams
  504. })
  505. console.info("finishparams " + finishparams.pText)
  506. },
  507. bindExceptparamsChange(e){
  508. let exceptparams = this.data.exceptparams;
  509. exceptparams.pText = e.detail
  510. this.setData({
  511. exceptparams:exceptparams
  512. })
  513. console.info("exceptparams " + exceptparams.pText)
  514. },
  515. /**
  516. * 生命周期函数--监听页面加载
  517. */
  518. onLoad: function(options) {
  519. //console.log(options);
  520. let {
  521. worksheet
  522. } = options;
  523. //console.log(worksheet);
  524. let worksheetinfo = JSON.parse(worksheet);
  525. //worksheetinfo.breakdownType = 2;
  526. this.setData({
  527. worksheetinfo
  528. });
  529. this.data.workstatus.forEach((item, index) => {
  530. if (item.value == worksheetinfo.workStatus) {
  531. this.setData({
  532. workstatusindex: index
  533. });
  534. }
  535. });
  536. this.data.workBigclass.forEach((item, index) => {
  537. if (item.value == worksheetinfo.workBigclass) {
  538. this.setData({
  539. workBigclassindex: index
  540. });
  541. }
  542. });
  543. this.data.wokSmallclass.forEach((item, index) => {
  544. if (item.value == worksheetinfo.wokSmallclass) {
  545. this.setData({
  546. wokSmallclassindex: index
  547. });
  548. }
  549. });
  550. if (worksheetinfo.exceptTime) {
  551. // let datetime = worksheetinfo.exceptTime.split(" ");
  552. // this.setData({
  553. // exceptdate: datetime[0],
  554. // excepttime: datetime[1].substr(0, 5)
  555. // });
  556. let exceptparams = this.data.exceptparams;
  557. exceptparams['pText'] = worksheetinfo.exceptTime.substr(0,16)
  558. this.setData({
  559. exceptparams: exceptparams
  560. });
  561. }
  562. if (worksheetinfo.workEndtime) {
  563. let workEndtimeParams = this.data.workEndtimeParams;
  564. workEndtimeParams['pText'] = worksheetinfo.workEndtime.substr(0,16)
  565. this.setData({
  566. workEndtimeParams: workEndtimeParams
  567. });
  568. }else{
  569. let workEndtimeParams = this.data.workEndtimeParams;
  570. workEndtimeParams['pText'] = '0000-00-00 00:00'
  571. this.setData({
  572. workEndtimeParams: workEndtimeParams
  573. });
  574. }
  575. if (worksheetinfo.finishTime) {
  576. // let datetime = worksheetinfo.finishTime.split(" ");
  577. // this.setData({
  578. // finishdate: datetime[0],
  579. // finishtime: datetime[1].substr(0, 5)
  580. // });
  581. let finishparams = this.data.finishparams;
  582. finishparams['pText'] = worksheetinfo.finishTime.substr(0,16)
  583. this.setData({
  584. finishparams: finishparams
  585. });
  586. }else{
  587. let finishparams = this.data.finishparams;
  588. finishparams['pText'] = Util.formatTimePicker(new Date())
  589. this.setData({
  590. finishparams: finishparams
  591. });
  592. }
  593. this.data.breakdownType.forEach((item, index) => {
  594. if (item.value == worksheetinfo.breakdownType) {
  595. this.setData({
  596. breakdownTypeindex: index
  597. });
  598. }
  599. });
  600. if (worksheetinfo.pciture) {
  601. let pcitures_src = worksheetinfo.pciture.split(",");
  602. var pcitures = [];
  603. pcitures_src.forEach((item, index) => {
  604. // pcitures[index] = { src: item, flag: item.indexOf('https://cdgl.pjnes.com/profile/station/') != -1};
  605. let url = getApp().globalData.postHeadAgreement
  606. url = url.replace("cloud/chargapi","") + "web/profile/station/" + item
  607. console.info(url)
  608. pcitures[index] = { url:url, src: item, flag: item.indexOf(getApp().globalData.postHeadAgreement) != -1};
  609. });
  610. this.setData({
  611. pcitures
  612. });
  613. }
  614. //console.log(worksheetinfo);
  615. if(worksheetinfo.workStatus==7){
  616. this.setData({
  617. workstatusFinished: true
  618. })
  619. }
  620. let userInfo = wx.getStorageSync('userInfo');
  621. let isLogin = wx.getStorageSync('isLogin');
  622. let that = this;
  623. //console.log(12345);
  624. if (userInfo && isLogin) {
  625. that.setData({
  626. chargStationName:worksheetinfo.chargStationName,
  627. worksheetinfo
  628. });
  629. if(!worksheetinfo.chargStationName){
  630. that.setData({
  631. chargStationNameClearFlag:true,
  632. });
  633. }
  634. }
  635. wx.request({
  636. url: getApp().globalData.postHeadAgreement + '/restapi/wechat/getuserworksheet',
  637. data: worksheetinfo.id,
  638. method: 'POST',
  639. success(res) {
  640. //console.log(res);
  641. let accendantids = [];
  642. let userNames = [];
  643. res.data.forEach((item, index) => {
  644. accendantids.push(item.userId);
  645. userNames.push(item.userName);
  646. });
  647. that.setData({
  648. accendantids,
  649. userNames
  650. });
  651. }
  652. });
  653. },
  654. openSign(e) {
  655. let url = `/pages/sign/sign`;
  656. wx.navigateTo({
  657. url
  658. });
  659. },
  660. /**
  661. * 生命周期函数--监听页面初次渲染完成
  662. */
  663. onReady: function() {
  664. },
  665. /**
  666. * 生命周期函数--监听页面显示
  667. */
  668. onShow: function() {
  669. },
  670. /**
  671. * 生命周期函数--监听页面隐藏
  672. */
  673. onHide: function() {
  674. },
  675. /**
  676. * 生命周期函数--监听页面卸载
  677. */
  678. onUnload: function() {
  679. },
  680. /**
  681. * 页面相关事件处理函数--监听用户下拉动作
  682. */
  683. onPullDownRefresh: function() {
  684. },
  685. /**
  686. * 页面上拉触底事件的处理函数
  687. */
  688. onReachBottom: function() {
  689. },
  690. /**
  691. * 用户点击右上角分享
  692. */
  693. onShareAppMessage: function() {
  694. }
  695. })