myshare.js 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. // pages/mine/mine.js
  2. var app = getApp();
  3. var utils = require("../../../utils/http");
  4. const util = require("../../../utils/util");
  5. var stoptime = 0;
  6. Page({
  7. data: {
  8. imgUrl: app.globalData.imgUrl,
  9. webUrl: '',
  10. titleType: 'article',
  11. firsTitext: '',
  12. videotagList: [],
  13. articletagList: [],
  14. secondtitlist: [],
  15. nowcasearr: [],
  16. wordtit: [],
  17. type: 1,
  18. nowTagText: '',
  19. page: 1,
  20. datashow: false,
  21. videoList: [],
  22. LeftdataList: [],
  23. RightdataList: [],
  24. creationtop: 120,
  25. artileList: [],
  26. shareflag: false,
  27. toolobj: {},
  28. nowtype: '',
  29. nowid: '',
  30. toptype: '',
  31. communame: '',
  32. casestylelist: [],
  33. filtrateflag: false,
  34. casestyletype: '',
  35. caselist: [],
  36. activitylist: [],
  37. evidencelist: [],
  38. leftevidencelist: [],
  39. rightevidencelist: [],
  40. wshareshow: false
  41. },
  42. onLoad: function (options) {
  43. var that = this;
  44. wx.showLoading({
  45. title: '加载中...',
  46. })
  47. // wx.hideShareMenu();
  48. this.setData({
  49. type: options.type
  50. })
  51. if (!!options.type) {
  52. that.setData({
  53. titleType: options.type
  54. })
  55. }
  56. that.sharedata();
  57. },
  58. casestylefun: function () {
  59. var that = this;
  60. utils.$get({
  61. url: app.globalData.webUrl + 'api/stylelist',
  62. header: {
  63. 'Authorization': 'bearer ' + app.globalData.token
  64. },
  65. data: {
  66. cmid: app.globalData.personMsg.binded.cmid
  67. },
  68. success: function (res) {
  69. if (res.data.code == '0') {
  70. that.setData({
  71. casestylelist: res.data.data
  72. })
  73. }
  74. }
  75. })
  76. },
  77. casecommunityfun: function () {
  78. var that = this;
  79. utils.$get({
  80. url: app.globalData.webUrl + 'api/communitylist',
  81. header: {
  82. 'Authorization': 'bearer ' + app.globalData.token
  83. },
  84. data: {
  85. cmid: app.globalData.personMsg.binded.cmid
  86. },
  87. success: function (res) {
  88. if (res.data.code == '0') {
  89. that.setData({
  90. casecommunitylist: res.data.data
  91. })
  92. that.getCitys();
  93. }
  94. }
  95. })
  96. },
  97. getCitys() {
  98. const _this = this
  99. const cities = this.data.casecommunitylist;
  100. // 按拼音排序
  101. cities.sort((c1, c2) => {
  102. let pinyin1 = c1.pinyin;
  103. let pinyin2 = c2.pinyin;
  104. return pinyin1.localeCompare(pinyin2)
  105. })
  106. // 添加首字母
  107. const map = new Map()
  108. for (const city of cities) {
  109. const alpha = city.pinyin.charAt(0).toUpperCase()
  110. if (!map.has(alpha)) map.set(alpha, [])
  111. map.get(alpha).push({
  112. name: city.name
  113. })
  114. }
  115. const keys = []
  116. for (const key of map.keys()) {
  117. keys.push(key)
  118. }
  119. keys.sort()
  120. const list = []
  121. for (const key of keys) {
  122. list.push({
  123. alpha: key,
  124. subItems: map.get(key)
  125. })
  126. }
  127. for (let i = 0; i < list.length; i++) {
  128. for (let j = 0; j < cities.length; j++) {
  129. if (list[i].subItems[0].name == cities[j].name) {
  130. list[i].case_num = cities[j].case_num;
  131. list[i].id = cities[j].id;
  132. }
  133. }
  134. }
  135. _this.setData({
  136. list: list
  137. })
  138. },
  139. materialcasetap: function (e) {
  140. this.setData({
  141. toptype: e.currentTarget.dataset.type,
  142. filtrateflag: true
  143. })
  144. },
  145. dothis: function () {},
  146. closefiltratetap: function () {
  147. this.setData({
  148. filtrateflag: false
  149. })
  150. },
  151. deltap(e) {
  152. var that = this;
  153. that.setData({
  154. commu_id: '',
  155. communame: ''
  156. })
  157. that.sharedata();
  158. },
  159. delareatap: function (e) {
  160. var that = this;
  161. that.setData({
  162. square_start: '',
  163. square_end: '',
  164. })
  165. that.sharedata();
  166. },
  167. casestyletap: function (e) {
  168. this.setData({
  169. casestyletype: e.currentTarget.dataset.type
  170. })
  171. this.sharedata();
  172. },
  173. sharedata: function () {
  174. var that = this;
  175. that.setData({
  176. page: 1
  177. })
  178. utils.$post({
  179. url: app.globalData.webUrl + 'api/share/uclist',
  180. header: {
  181. 'Authorization': 'bearer ' + app.globalData.token
  182. },
  183. data: {
  184. page: that.data.page,
  185. limit: 15,
  186. type: that.data.titleType,
  187. label: that.data.firsTitext,
  188. ctype: that.data.nowTagText
  189. },
  190. success: function (res) {
  191. if (res.data.code == '0') {
  192. that.createlist(res.data.data);
  193. }
  194. wx.hideLoading();
  195. }
  196. })
  197. },
  198. changeTap: function (e) {
  199. var that = this;
  200. that.setData({
  201. titleType: e.target.dataset.type
  202. })
  203. if (this.data.titleType == 'video') {
  204. that.setData({
  205. firsTitext: '',
  206. secondtitlist: [],
  207. nowTagText: ''
  208. })
  209. }
  210. if (this.data.titleType == 'article') {
  211. that.setData({
  212. firsTitext: '',
  213. secondtitlist: [],
  214. nowTagText: ''
  215. })
  216. }
  217. this.sharedata();
  218. // setTimeout(function(){
  219. // that.setght();
  220. // },100)
  221. },
  222. firsttap: function (e) {
  223. var that = this;
  224. that.setData({
  225. firsTitext: e.target.dataset.text
  226. })
  227. if (e.target.dataset.type == 1) {
  228. if (e.target.dataset.text != '') {
  229. that.setData({
  230. nowTagText: '',
  231. secondtitlist: that.data.videotagList[e.target.dataset.idx].sonLabel
  232. })
  233. } else {
  234. that.setData({
  235. nowTagText: '',
  236. secondtitlist: ''
  237. })
  238. }
  239. this.sharedata();
  240. } else if (e.target.dataset.type == 2) {
  241. if (e.target.dataset.text != '') {
  242. that.setData({
  243. nowTagText: '',
  244. secondtitlist: that.data.articletagList[e.target.dataset.idx].sonLabel
  245. })
  246. } else {
  247. that.setData({
  248. nowTagText: '',
  249. secondtitlist: ''
  250. })
  251. }
  252. this.sharedata();
  253. }
  254. // setTimeout(function(){
  255. // that.setght();
  256. // },100)
  257. },
  258. videoTagTap: function (e) {
  259. var that = this;
  260. that.setData({
  261. nowTagText: e.target.dataset.text
  262. })
  263. this.sharedata();
  264. },
  265. articleTagTap: function (e) {
  266. this.setData({
  267. nowTagText: e.target.dataset.text
  268. })
  269. this.sharedata();
  270. },
  271. sharealertap: function (e) {
  272. var that = this;
  273. that.setData({
  274. nowflag: true
  275. })
  276. if (e.currentTarget.dataset.type == 'article') {
  277. that.setData({
  278. nowtype: 'article',
  279. nowid: e.currentTarget.dataset.aid,
  280. })
  281. } else if (e.currentTarget.dataset.type == 'video') {
  282. that.setData({
  283. nowtype: 'video',
  284. nowid: e.currentTarget.dataset.aid,
  285. })
  286. } else if (e.currentTarget.dataset.type == 'materialCase') {
  287. that.setData({
  288. nowtype: 'materialCase',
  289. nowid: e.currentTarget.dataset.aid,
  290. })
  291. } else if (e.currentTarget.dataset.type == 'activity') {
  292. that.setData({
  293. nowtype: 'activity',
  294. nowid: e.currentTarget.dataset.aid,
  295. })
  296. } else if (e.currentTarget.dataset.type == 'materialEvidence') {
  297. that.setData({
  298. nowtype: 'materialEvidence',
  299. nowid: e.currentTarget.dataset.eid,
  300. })
  301. }
  302. this.setData({
  303. wshareshow: true
  304. })
  305. },
  306. shareurltap: function () {
  307. var that = this;
  308. wx.showLoading({
  309. title: '加载中...',
  310. })
  311. if (that.data.nowtype == 'article') {
  312. util.schemefun('/share/pages/articleshare/articleshare', 'aid=' + that.data.nowid + '&userid=' + app.globalData.personMsg.id + '&ctp=' + app.globalData.clientype, that.data.nowid, 'article', '');
  313. } else if (that.data.nowtype == 'video') {
  314. util.schemefun('/share/pages/videoshare/videoshare', 'vid=' + that.data.nowid + '&userid=' + app.globalData.personMsg.id + '&ctp=' + app.globalData.clientype, that.data.nowid, 'video', '');
  315. } else if (that.data.nowtype == 'materialCase') {
  316. util.schemefun('/share/pages/materialcase/materialcase', 'cid=' + that.data.nowid + '&uid=' + app.globalData.personMsg.id + '&ctp=' + app.globalData.clientype, that.data.nowid, 'materialCase', '');
  317. } else if (that.data.nowtype == 'activity') {
  318. util.schemefun('/share/pages/activitymsg/activitymsg', 'aid=' + this.data.nowid + '&uid=' + app.globalData.personMsg.id + '&ctp=' + app.globalData.clientype, this.data.nowid, 'activity', '');
  319. } else if (that.data.nowtype == 'materialEvidence') {
  320. util.schemefun('/share/pages/publicpraisemsg/publicpraisemsg', 'eid=' + that.data.nowid + '&uid=' + app.globalData.personMsg.id + '&ctp=' + app.globalData.clientype, that.data.nowid, 'materialEvidence', '');
  321. }
  322. this.sharelogtap();
  323. },
  324. sharelogtap: function (e) {
  325. var that = this;
  326. utils.$post({
  327. url: app.globalData.webUrl + 'api/share/addlog',
  328. header: {
  329. 'Authorization': 'bearer ' + app.globalData.token
  330. },
  331. data: {
  332. id: that.data.nowid,
  333. type: that.data.nowtype
  334. },
  335. success: function (r) {}
  336. })
  337. },
  338. wordTagTap: function (e) {
  339. var that = this;
  340. if (that.data.wordTagNum == e.target.dataset.text) {
  341. that.setData({
  342. wordTagNum: ''
  343. })
  344. } else {
  345. that.setData({
  346. wordTagNum: e.target.dataset.text
  347. })
  348. }
  349. },
  350. setght: function () {
  351. var that = this;
  352. const query = wx.createSelectorQuery()
  353. query.select('.collectedTitle').boundingClientRect();
  354. query.exec(function (res) {
  355. // console.log(res[0])
  356. that.setData({
  357. creationtop: res[0].height
  358. })
  359. })
  360. },
  361. jsLine: function () {
  362. var that = this;
  363. },
  364. activityTap: function (e) {
  365. wx.navigateTo({
  366. url: "/index/pages/sharecasemsg/sharecasemsg?cid=" + e.target.dataset.aid + '&vtype=mycreation',
  367. });
  368. },
  369. imgLoad: function () {
  370. var that = this;
  371. var leftlist = that.data.LeftdataList;
  372. var rightlist = that.data.RightdataList;
  373. var videolist = that.data.videoList;
  374. if (that.data.videoList.length == 0) {
  375. return false
  376. }
  377. if (videolist.length == 0) {
  378. return false;
  379. }
  380. if (leftlist.length == 0) {
  381. leftlist.push(videolist[0]);
  382. videolist.shift();
  383. that.setData({
  384. videoList: videolist,
  385. LeftdataList: leftlist,
  386. RightdataList: rightlist
  387. })
  388. } else {
  389. var leftheight, rightheight;
  390. const query = wx.createSelectorQuery()
  391. query.select('.videoshareListLeft').boundingClientRect();
  392. query.exec(function (res) {
  393. leftheight = res[0].height;
  394. const queryright = wx.createSelectorQuery()
  395. queryright.select('.videoshareListRight').boundingClientRect();
  396. queryright.exec(function (rs) {
  397. leftlist = that.data.LeftdataList;
  398. rightlist = that.data.RightdataList;
  399. videolist = that.data.videoList;
  400. rightheight = rs[0].height;
  401. if (leftheight <= rightheight) {
  402. leftlist.push(videolist[0]);
  403. videolist.shift();
  404. } else {
  405. var str = videolist.shift();
  406. rightlist.push(str);
  407. }
  408. that.setData({
  409. videoList: videolist,
  410. LeftdataList: leftlist,
  411. RightdataList: rightlist
  412. })
  413. })
  414. })
  415. }
  416. },
  417. setpostertap: function () {
  418. let that = this;
  419. let type = that.data.nowtype;
  420. wx.navigateTo({
  421. url: '/index/pages/setposter/setposter?type=' + type + '&aid=' + this.data.nowid + "&listshare=",
  422. })
  423. },
  424. createlist: function (list) {
  425. var that = this;
  426. if (that.data.titleType == 'video') {
  427. var videoList = that.data.videoList;
  428. that.setData({
  429. datashow: true,
  430. LeftdataList: [],
  431. RightdataList: [],
  432. })
  433. var arr = list;
  434. // 数据渲染成功后,隐藏下拉刷新的状态
  435. videoList = videoList.concat(arr);
  436. that.setData({
  437. videoList: videoList
  438. })
  439. that.imgLoad();
  440. } else if (that.data.titleType == 'article') {
  441. that.setData({
  442. artileList: list,
  443. datashow: true
  444. })
  445. } else if (that.data.titleType == 'tool') {
  446. that.setData({
  447. toolobj: list
  448. })
  449. } else if (that.data.titleType == 'materialCase') {
  450. that.setData({
  451. caselist: list
  452. })
  453. } else if (that.data.titleType == 'activity') {
  454. that.setData({
  455. activitylist: list
  456. })
  457. } else if (that.data.titleType == 'materialEvidence') {
  458. var evidencelist = that.data.evidencelist;
  459. that.setData({
  460. datashow: true,
  461. leftevidencelist: [],
  462. rightevidencelist: [],
  463. })
  464. var arr = list;
  465. // 数据渲染成功后,隐藏下拉刷新的状态
  466. evidencelist = evidencelist.concat(arr);
  467. that.setData({
  468. evidencelist: evidencelist
  469. })
  470. that.evidenceimgLoad();
  471. }
  472. // setTimeout(function(){
  473. // that.setght();
  474. // },200)
  475. },
  476. evidenceimgLoad: function () {
  477. var that = this;
  478. var that = this;
  479. var leftlist = that.data.leftevidencelist;
  480. var rightlist = that.data.rightevidencelist;
  481. var indexlist = that.data.evidencelist;
  482. if (indexlist.length == 0) {
  483. return false;
  484. }
  485. if (leftlist.length == 0) {
  486. leftlist.push(indexlist[0]);
  487. indexlist.shift();
  488. that.setData({
  489. evidencelist: indexlist,
  490. leftevidencelist: leftlist,
  491. rightevidencelist: rightlist
  492. })
  493. } else {
  494. var leftheight, rightheight;
  495. const query = wx.createSelectorQuery()
  496. query.select('.leftpublicpraisebox').boundingClientRect();
  497. query.exec(function (res) {
  498. leftheight = res[0].height;
  499. const queryright = wx.createSelectorQuery()
  500. queryright.select('.rightpublicpraisebox').boundingClientRect();
  501. queryright.exec(function (rs) {
  502. leftlist = that.data.leftevidencelist;
  503. rightlist = that.data.rightevidencelist;
  504. indexlist = that.data.evidencelist;
  505. rightheight = rs[0].height;
  506. if (leftheight <= rightheight) {
  507. leftlist.push(indexlist[0]);
  508. indexlist.shift();
  509. } else {
  510. var str = indexlist.shift();
  511. rightlist.push(str);
  512. }
  513. that.setData({
  514. evidencelist: indexlist,
  515. leftevidencelist: leftlist,
  516. rightevidencelist: rightlist
  517. })
  518. })
  519. })
  520. }
  521. },
  522. articleTap: function (e) {
  523. wx.navigateTo({
  524. url: "/pages/articleshare/articleshare?aid=" + e.target.dataset.aid + '&vtype=mycreation',
  525. });
  526. },
  527. wordMsgTap: function (e) {
  528. var that = this;
  529. wx.navigateTo({
  530. url: "/pages/other/other?type=22&vid=" + e.target.dataset.wid,
  531. })
  532. },
  533. videoTap: function (e) {
  534. var that = this;
  535. wx.navigateTo({
  536. url: "/pages/videoshare/videoshare?vid=" + e.target.dataset.vid + '&vtype=mycreation',
  537. });
  538. },
  539. onReady: function () {
  540. },
  541. onPlay: function () {
  542. },
  543. onPlayNav: function () {
  544. },
  545. onShow: function () {
  546. stoptime = 0;
  547. setTimeout(function () {
  548. stoptime = stoptime * 1 + 1;
  549. }, 1000)
  550. app.globalData.sharevideo = false;
  551. app.globalData.sharearticle = false;
  552. app.globalData.sharecase = false;
  553. this.setData({
  554. shareflag: false
  555. })
  556. },
  557. /**
  558. * 生命周期函数--监听页面隐藏
  559. */
  560. onHide: function () {
  561. this.setData({
  562. webUrl: ''
  563. })
  564. var timearr = app.globalData.timearr,
  565. flag = false;
  566. for (var i = 0; i < timearr.length; i++) {
  567. if (timearr[i].type == 'mycreation') {
  568. timearr[i].time = timearr[i].time * 1 + stoptime * 1;
  569. flag = true;
  570. }
  571. }
  572. if (!flag) {
  573. var obj = {
  574. type: 'mycreation',
  575. time: stoptime
  576. };
  577. app.globalData.timearr.push(obj);
  578. } else {
  579. app.globalData.timearr = timearr;
  580. }
  581. },
  582. /**
  583. * 生命周期函数--监听页面卸载
  584. */
  585. onUnload: function () {
  586. this.setData({
  587. webUrl: ''
  588. })
  589. },
  590. /**
  591. * 页面相关事件处理函数--监听用户下拉动作
  592. */
  593. onPullDownRefresh: function () {
  594. var that = this;
  595. that.setData({
  596. page: 1
  597. })
  598. utils.$post({
  599. url: app.globalData.webUrl + 'api/share/uclist',
  600. header: {
  601. 'Authorization': 'bearer ' + app.globalData.token
  602. },
  603. data: {
  604. page: that.data.page,
  605. limit: 15,
  606. type: that.data.titleType,
  607. label: that.data.firsTitext,
  608. ctype: that.data.nowTagText
  609. },
  610. success: function (res) {
  611. if (res.data.code == '0') {
  612. that.createlist(res.data.data);
  613. }
  614. wx.stopPullDownRefresh();
  615. wx.hideLoading();
  616. }
  617. })
  618. },
  619. publictap: function (e) {
  620. wx.navigateTo({
  621. url: '/index/pages/publicpraisemsg/publicpraisemsg?eid=' + e.currentTarget.dataset.eid + "&title=" + e.currentTarget.dataset.title,
  622. })
  623. },
  624. casemsgtap: function (e) {
  625. wx.navigateTo({
  626. url: '/index/pages/casemsg/casemsg?cid=' + e.currentTarget.dataset.cid,
  627. })
  628. },
  629. activitytap: function (e) {
  630. wx.navigateTo({
  631. url: '/index/pages/activitymsg/activitymsg?aid=' + e.currentTarget.dataset.aid + "&collect=" + e.currentTarget.dataset.collect
  632. })
  633. },
  634. /**
  635. * 页面上拉触底事件的处理函数
  636. */
  637. onReachBottom: function () {
  638. var that = this;
  639. var page = that.data.page;
  640. page = page * 1 + 1;
  641. that.setData({
  642. page: page
  643. })
  644. utils.$post({
  645. url: app.globalData.webUrl + 'api/share/uclist',
  646. header: {
  647. 'Authorization': 'bearer ' + app.globalData.token
  648. },
  649. data: {
  650. page: that.data.page,
  651. limit: 15,
  652. type: that.data.titleType,
  653. label: that.data.firsTitext,
  654. ctype: that.data.nowTagText
  655. },
  656. success: function (res) {
  657. if (res.data.code == '0') {
  658. if (that.data.titleType == 'video') {
  659. var videoList = that.data.videoList;
  660. var flag = videoList.length == '0' ? true : false;
  661. var arr = res.data.data;
  662. // 数据渲染成功后,隐藏下拉刷新的状态
  663. videoList = videoList.concat(arr);
  664. that.setData({
  665. videoList: videoList
  666. })
  667. if (flag) {
  668. that.imgLoad();
  669. }
  670. } else if (that.data.titleType == 'article') {
  671. var artileList = that.data.artileList;
  672. artileList = artileList.concat(res.data.data);
  673. that.setData({
  674. artileList: artileList
  675. })
  676. } else if (that.data.titleType == 'materialCase') {
  677. let caselist = that.data.caselist;
  678. caselist = caselist.concat(res.data.data);
  679. that.setData({
  680. caselist: caselist
  681. })
  682. } else if (that.data.titleType == 'activity') {
  683. let activitylist = that.data.activitylist;
  684. activitylist = activitylist.concat(res.data.data);
  685. that.setData({
  686. activitylist: activitylist
  687. })
  688. } else if (that.data.titleType == 'materialEvidence') {
  689. let evidencelist = that.data.evidencelist;
  690. var arrflag = false
  691. if (evidencelist.length != 0) {
  692. arrflag = true;
  693. }
  694. for (let i = 0; i < res.data.data.length; i++) {
  695. evidencelist.push(res.data.data[i])
  696. }
  697. that.setData({
  698. evidencelist: evidencelist
  699. })
  700. if (!arrflag) {
  701. that.evidenceimgLoad();
  702. }
  703. }
  704. }
  705. wx.hideLoading();
  706. }
  707. })
  708. },
  709. /**
  710. * 用户点击右上角分享
  711. */
  712. // onShareAppMessage: function (e) {
  713. // var that=this;
  714. // var imgsrc=e.target.dataset.src;
  715. // this.setData({
  716. // shareflag:true
  717. // })
  718. // var obj={};
  719. // if(that.data.titleType=='article'){
  720. // obj={
  721. // title: e.target.dataset.title,
  722. // imageUrl:imgsrc,
  723. // path: '/index/pages/articleshare/articleshare?aid='+e.target.dataset.aid+'&userid='+app.globalData.personMsg.id,
  724. // };
  725. // }else if(that.data.titleType=='video'){
  726. // obj={
  727. // title: e.target.dataset.title,
  728. // imageUrl:imgsrc,
  729. // path: '/index/pages/videoshare/videoshare?vid='+e.target.dataset.vid+'&userid='+app.globalData.personMsg.id,
  730. // }
  731. // }
  732. // return obj
  733. // }
  734. })