activitymsg.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790
  1. const app = getApp();
  2. var utils = require("../../../utils/http")
  3. const util = require("../../../utils/util");
  4. let page = 1, sharepage = 1;
  5. Page({
  6. /**
  7. * 页面的初始数据
  8. */
  9. data: {
  10. imgUrl: app.globalData.imgUrl,
  11. aid: '',
  12. activityobj: {},
  13. wshareshow: false,
  14. titype: 1,
  15. trackflag: false,
  16. tracktype: '1',
  17. customerlist: [],
  18. trackimgarr: [],
  19. nowimagearr: [],
  20. nowcid: '',
  21. recordtext: '',
  22. visitobj: {},
  23. housestate: '预约回访',
  24. seletime: '',
  25. visitcount: 0,
  26. visitlogarr: [],
  27. statype: '1',
  28. activitylist: [],
  29. activityname: '',
  30. invitecrm: [],
  31. showUpcrm: [],
  32. datashow: true,
  33. start: "",
  34. end: '',
  35. columns: [],
  36. showPicker: false,
  37. nowaid: '',
  38. personobj: app.globalData.personMsg,
  39. typeflag: false,
  40. ranktype: '预约',
  41. orgtype: '公司排行',
  42. shareranklist: [],
  43. gotranklist: [],
  44. sharemyrankobj: {},
  45. gotmyrankobj: {},
  46. topdataobj: {},
  47. type: 1,
  48. tacktype: 1,
  49. tackarr: [
  50. { id: 1, text: '自定义' },
  51. { id: 3, text: '已装修' },
  52. { id: 4, text: '无需求' },
  53. { id: 5, text: '有需求' },
  54. { id: 6, text: '超地域' },
  55. { id: 7, text: '未交房' },
  56. { id: 8, text: '在外地' },
  57. { id: 9, text: '无购买力' },
  58. { id: 10, text: '未接通电话' },
  59. ],
  60. nowtext1: '自定义',
  61. tacktext: '',
  62. amountdate: '',
  63. nowtext: false,
  64. timeshow: false,
  65. amountime: 1,
  66. amountime1: 1,
  67. visitdate: '',
  68. apointobj: {},
  69. customerobj: {},
  70. nowidx: 0,
  71. scoleval: 0,
  72. nowdate: '',
  73. cluestate: 1,
  74. activityType: '',
  75. addwxarr:[],
  76. addwxtypeflag:false,
  77. nextvisitflag:false,//true是必填,false不必传 下次回访时间
  78. measurenum:'',
  79. measuretime:'',
  80. amountarr:[],
  81. },
  82. /**
  83. * 生命周期函数--监听页面加载
  84. */
  85. onLoad: function (options) {
  86. let date = new Date();
  87. let m = date.getMonth() * 1 + 1;
  88. let d = date.getDate();
  89. let str = date.getFullYear() + '-' + (m < 10 ? '0' + m : m) + '-' + (d < 10 ? ('0' + d) : d);
  90. this.setData({
  91. aid: options.aid,
  92. amountdate: str,
  93. start: str,
  94. nowdate: str,
  95. personobj: app.globalData.personMsg,
  96. imgUrl: app.globalData.imgUrl,
  97. })
  98. if (!!options.type) {
  99. this.setData({
  100. activityType: options.type
  101. })
  102. }
  103. if (!!options.type && options.type == 'broker') {
  104. this.activityfun();
  105. } else {
  106. this.crmtopdatafun();
  107. this.activityfun();
  108. this.crmlistfun();
  109. this.ranklistfun();
  110. }
  111. this.activitylistfun();
  112. },
  113. crmtopdatafun() {
  114. const that = this;
  115. utils.$post({
  116. url: app.globalData.webUrl + 'api/activity/statistics',
  117. header: {
  118. 'Authorization': 'bearer ' + app.globalData.token
  119. },
  120. data: {
  121. aid: that.data.aid,
  122. },
  123. success: function (res) {
  124. if (res.data.code == '0') {
  125. that.setData({
  126. topdataobj: res.data.data
  127. })
  128. }
  129. }
  130. })
  131. },
  132. setranktypetap(e) {
  133. this.setData({
  134. ranktype: e.currentTarget.dataset.text
  135. })
  136. this.ranklistfun();
  137. },
  138. typeinitfun() {
  139. const that = this;
  140. let day = new Date();
  141. let month = day.getMonth() * 1 + 1;
  142. let date = day.getDate();
  143. let year = day.getFullYear();
  144. let str = year + '-' + month + '-' + date;
  145. this.setData({
  146. visitdate: str,
  147. amountdate: str,
  148. nowtext1: '自定义',
  149. tacktext: ''
  150. })
  151. },
  152. openorgtypetap(e) {
  153. this.setData({
  154. typeflag: true,
  155. })
  156. },
  157. closeorgtypetap(e) {
  158. this.setData({
  159. typeflag: false
  160. })
  161. },
  162. setorgtypetap(e) {
  163. this.setData({
  164. orgtype: e.currentTarget.dataset.type,
  165. typeflag: false
  166. })
  167. this.ranklistfun();
  168. },
  169. ranklistfun() {
  170. const that = this;
  171. sharepage = 1;
  172. var str = "api/activity/ranking_list";
  173. let data = {
  174. id: that.data.aid,
  175. type: that.data.ranktype,
  176. is_org: this.data.orgtype == '公司排行' ? 0 : '1',//0公司排行,1团队排行,
  177. page: sharepage,
  178. limit: 15,
  179. };
  180. if (this.data.orgtype == '部门排行') {
  181. str = "api/activity/org_ranking_list";
  182. data = {
  183. id: that.data.aid,
  184. type: that.data.ranktype,
  185. page: sharepage,
  186. limit: 15,
  187. };
  188. }
  189. utils.$post({
  190. url: app.globalData.webUrl + str,
  191. header: {
  192. 'Authorization': 'bearer ' + app.globalData.token
  193. },
  194. data: data,
  195. success: function (res) {
  196. setTimeout(() => {
  197. wx.hideLoading()
  198. }, 1000)
  199. if (res.data.code == "0") {
  200. if (that.data.orgtype == '公司排行' || that.data.orgtype == '团队排行') {
  201. that.setData({
  202. shareranklist: res.data.data.data,
  203. sharemyrankobj: res.data.data.my,
  204. })
  205. } else {
  206. that.setData({
  207. gotranklist: res.data.data.data,
  208. gotmyrankobj: res.data.data.my,
  209. })
  210. }
  211. }
  212. }
  213. })
  214. },
  215. setoptap(obj){
  216. const that=this;
  217. let customerobj = obj.detail;
  218. // 详情的状态已经修改过了
  219. if (!customerobj.addtoptime) {
  220. this.crmlistfun();
  221. } else {
  222. if (that.data.statype == 1) {
  223. let invitecrm = [];
  224. invitecrm=invitecrm.concat(that.data.invitecrm);
  225. invitecrm[that.data.nowidx].addtoptime = '2022';
  226. var obj =invitecrm.splice(that.data.nowidx, 1);
  227. invitecrm.unshift(obj[0]);
  228. that.setData({
  229. invitecrm: invitecrm
  230. })
  231. } else {
  232. let showUpcrm = [];
  233. showUpcrm=showUpcrm.concat(that.data.showUpcrm);
  234. showUpcrm[that.data.nowidx].addtoptime = '2022';
  235. var obj =showUpcrm.splice(that.data.nowidx, 1);
  236. showUpcrm.unshift(obj[0]);
  237. that.setData({
  238. showUpcrm: showUpcrm
  239. })
  240. }
  241. }
  242. },
  243. setypetap(e) {
  244. this.setData({
  245. type: e.currentTarget.dataset.type
  246. })
  247. if (this.data.type == 1) {
  248. this.setData({
  249. tacktype: 1,
  250. cluestate: this.data.customerobj.state == "待确认" ? 1 : 2
  251. })
  252. } else if (this.data.type == 2) {
  253. this.setData({
  254. tacktype: 3
  255. })
  256. }
  257. },
  258. bindsignChange: function (e) {
  259. this.setData({
  260. amountdate: e.detail.value
  261. })
  262. },
  263. bindsigndate1: function (e) {
  264. this.setData({
  265. addtime: e.detail.value
  266. })
  267. },
  268. dothis() { },
  269. trackfuntap: function (e) {
  270. this.setData({
  271. tracktype: e.currentTarget.dataset.type
  272. })
  273. },
  274. textareatap: function (e) {
  275. const that = this;
  276. if (this.data.nowtext1 != '自定义') {
  277. if (this.data.tacktext.indexOf(this.data.nowtext1) != 0) {
  278. that.setData({
  279. tacktext: this.data.nowtext1
  280. })
  281. } else {
  282. that.setData({
  283. tacktext: e.detail.value
  284. })
  285. }
  286. } else {
  287. that.setData({
  288. tacktext: e.detail.value
  289. })
  290. }
  291. },
  292. addtracktap: function (e) {
  293. this.getsetfun();
  294. this.setData({
  295. trackflag: true,
  296. nowcid: e.currentTarget.dataset.aid,
  297. nowidx: e.currentTarget.dataset.idx,
  298. })
  299. this.selectComponent('#addtrack').setcrmfun();
  300. this.activitylistfun();
  301. this.typeinitfun();
  302. },
  303. // 加微类型等
  304. getsetfun(){
  305. const that=this;
  306. utils.$post({
  307. url: app.globalData.webUrl + 'api/crm_customer/get_setting',
  308. header: {
  309. 'Authorization': 'bearer ' + app.globalData.token
  310. },
  311. data: {},
  312. success: function (res) {
  313. if(res.data.code==0){
  314. var arr = res.data.data.img_type,amountarr=[];
  315. for (let i in arr) {
  316. let obj = {
  317. id: i,
  318. name: "上传" + arr[i],
  319. color: "#384855",
  320. };
  321. amountarr.push(obj);
  322. }
  323. that.setData({
  324. addwxarr:res.data.data.wechat_type,
  325. nextvisitflag:res.data.data.next_visit_time_is_ok==1?true:false,
  326. amountarr:amountarr
  327. })
  328. }
  329. that.loginbox = that.selectComponent("#addtrack");
  330. that.loginbox.crmsgfun();
  331. }
  332. })
  333. },
  334. activitylistfun() {
  335. const that = this;
  336. utils.$post({
  337. url: app.globalData.webUrl + 'api/activity/activity_list',
  338. header: {
  339. 'Authorization': 'bearer ' + app.globalData.token
  340. },
  341. data: {},
  342. success: function (res) {
  343. setTimeout(() => {
  344. wx.hideLoading()
  345. }, 1000)
  346. if (res.data.code == "0") {
  347. let columns = [];
  348. for (let i in res.data.data) {
  349. columns.push(res.data.data[i].title)
  350. }
  351. that.setData({
  352. activitylist: res.data.data,
  353. columns: columns
  354. })
  355. }
  356. }
  357. })
  358. },
  359. statypetap(e) {
  360. this.setData({
  361. statype: e.currentTarget.dataset.type
  362. })
  363. this.crmlistfun();
  364. },
  365. crmmsgtap(e) {
  366. wx.navigateTo({
  367. url: "/pages/other/other?cid=" + e.currentTarget.dataset.aid + '&type=88&aid=' + this.data.aid,
  368. });
  369. },
  370. crmlistfun() {
  371. const that = this;
  372. page = 1;
  373. utils.$post({
  374. url: app.globalData.webUrl + 'api/activity/invite_list',
  375. header: {
  376. 'Authorization': 'bearer ' + app.globalData.token
  377. },
  378. data: {
  379. p: page,
  380. pagesize: 15,
  381. aid: that.data.aid,
  382. type: that.data.statype == 1 ? '预约活动' : that.data.statype == 2 ? '已到场' : that.data.statype == 3 ? '已交定' : '已签单'
  383. },
  384. success: function (res) {
  385. if (res.data.code == '0') {
  386. for (let i = 0; i < res.data.data.length; i++) {
  387. res.data.data[i].lastday = util.nowdayDiff(
  388. res.data.data[i].last_contact_date
  389. );
  390. }
  391. if (that.data.statype == 1) {
  392. that.setData({
  393. invitecrm: res.data.data
  394. })
  395. } else {
  396. that.setData({
  397. showUpcrm: res.data.data
  398. })
  399. }
  400. }
  401. }
  402. })
  403. },
  404. callphonetap(e) {
  405. const that = this;
  406. utils.$post({
  407. url: app.globalData.webUrl + 'api/crmCustomer/getCrmPhone',
  408. header: {
  409. 'Authorization': 'bearer ' + app.globalData.token
  410. },
  411. data: {
  412. id: e.currentTarget.dataset.aid
  413. },
  414. success: function (res) {
  415. if (res.data.code == 0) {
  416. wx.makePhoneCall({
  417. phoneNumber: res.data.phone.phone?res.data.phone.phone:res.data.phone.phone1?res.data.phone.phone1:res.data.phone.phone2,
  418. success() {
  419. that.getsetfun();
  420. that.setData({
  421. trackflag: true,
  422. nowcid: e.currentTarget.dataset.aid,
  423. })
  424. that.selectComponent('#addtrack').setcrmfun();
  425. that.activitylistfun();
  426. that.typeinitfun();
  427. }
  428. })
  429. }
  430. }
  431. })
  432. },
  433. /**
  434. * 生命周期函数--监听页面初次渲染完成
  435. */
  436. onReady: function () {
  437. },
  438. sharewaytap: function () {
  439. this.setData({
  440. wshareshow: true
  441. })
  442. },
  443. shareurltap: function () {
  444. wx.showLoading({
  445. title: '加载中...',
  446. })
  447. if (this.data.activityType && this.data.activityType == 'broker') {
  448. util.schemefun('/share/pages/activitymsg/activitymsg', 'aid=' + this.data.aid + '&bid=' + app.globalData.brokeruserId + '&ctp=' + app.globalData.clientype + '&t=b', this.data.aid, 'activity', '');
  449. } else {
  450. this.activitytap();
  451. util.schemefun('/share/pages/activitymsg/activitymsg', 'aid=' + this.data.aid + '&uid=' + app.globalData.personMsg.id + '&ctp=' + app.globalData.clientype, this.data.aid, 'activity', '');
  452. }
  453. },
  454. activityfun: function () {
  455. var that = this;
  456. if (that.data.activityType && that.data.activityType == 'broker') {
  457. utils.$post({
  458. url: app.globalData.webUrl + 'api/agents_work/activity_detail',
  459. header: {
  460. 'Authorization': 'bearer ' + app.globalData.token
  461. },
  462. data: {
  463. id: that.data.aid,
  464. uid: app.globalData.personMsg.id
  465. },
  466. success: function (res) {
  467. if (res.data.code == '0') {
  468. that.setData({
  469. activityobj: res.data.data
  470. })
  471. wx.setNavigationBarTitle({
  472. title: res.data.data.title
  473. })
  474. }
  475. }
  476. })
  477. } else {
  478. utils.$post({
  479. url: app.globalData.webUrl + 'api/activity/details',
  480. header: {
  481. 'Authorization': 'bearer ' + app.globalData.token
  482. },
  483. data: {
  484. id: that.data.aid,
  485. uid: app.globalData.personMsg.id
  486. },
  487. success: function (res) {
  488. if (res.data.code == '0') {
  489. that.setData({
  490. activityobj: res.data.data
  491. })
  492. wx.setNavigationBarTitle({
  493. title: res.data.data.title
  494. })
  495. }
  496. }
  497. })
  498. }
  499. },
  500. setpostertap: function () {
  501. if (this.data.activityType && this.data.activityType == 'broker') {
  502. wx.navigateTo({
  503. url: '/index/pages/setposter/setposter?type=activity&aid=' + this.data.aid + "&tp=broker" + "&listshare=",
  504. })
  505. } else {
  506. wx.navigateTo({
  507. url: '/index/pages/setposter/setposter?type=activity&aid=' + this.data.aid + "&listshare=",
  508. })
  509. }
  510. },
  511. collectap: function () {
  512. var that = this;
  513. let activityobj = that.data.activityobj;
  514. if (!that.data.activityobj.collected) {
  515. utils.$post({
  516. url: app.globalData.webUrl + 'api/activity/collection',
  517. header: {
  518. 'Authorization': 'bearer ' + app.globalData.token
  519. },
  520. data: {
  521. user_id: app.globalData.personMsg.id,
  522. id: that.data.aid
  523. },
  524. success: function (res) {
  525. if (res.data.code == '0') {
  526. wx.showToast({
  527. title: res.data.msg,
  528. icon: 'success',
  529. duration: 2000
  530. })
  531. activityobj.collected = true;
  532. that.setData({
  533. activityobj: activityobj
  534. })
  535. }
  536. }
  537. })
  538. } else {
  539. utils.$post({
  540. url: app.globalData.webUrl + 'api/activity/collectCancel',
  541. header: {
  542. 'Authorization': 'bearer ' + app.globalData.token
  543. },
  544. data: {
  545. user_id: app.globalData.personMsg.id,
  546. id: that.data.aid
  547. },
  548. success: function (res) {
  549. if (res.data.code == '0') {
  550. wx.showToast({
  551. title: res.data.msg,
  552. icon: 'none',
  553. duration: 2000
  554. })
  555. activityobj.collected = false;
  556. that.setData({
  557. activityobj: activityobj
  558. })
  559. }
  560. }
  561. })
  562. }
  563. },
  564. activitytap: function () {
  565. let that = this;
  566. utils.$post({
  567. url: app.globalData.webUrl + 'api/share/addlog',
  568. header: {
  569. 'Authorization': 'bearer ' + app.globalData.token
  570. },
  571. data: {
  572. id: that.data.aid,
  573. type: 'activity',
  574. },
  575. success: function (r) {
  576. }
  577. })
  578. },
  579. prelooktap() {
  580. wx.previewImage({
  581. current: this.data.activityobj.cover, // 当前显示图片的http链接
  582. urls: [this.data.activityobj.cover], // 需要预览的图片http链接列表
  583. fail(res) {
  584. console.log(res)
  585. }
  586. })
  587. },
  588. /**
  589. * 生命周期函数--监听页面显示
  590. */
  591. onShow: function () {
  592. },
  593. /**
  594. * 生命周期函数--监听页面隐藏
  595. */
  596. onHide: function () {
  597. },
  598. /**
  599. * 生命周期函数--监听页面卸载
  600. */
  601. onUnload: function () {
  602. },
  603. /**
  604. * 页面相关事件处理函数--监听用户下拉动作
  605. */
  606. onPullDownRefresh: function () {
  607. if (this.data.type == 1) {
  608. wx.stopPullDownRefresh();
  609. return false;
  610. }
  611. if (this.data.type == '3') {
  612. this.ranklistfun();
  613. wx.stopPullDownRefresh()
  614. } else {
  615. this.crmtopdatafun();
  616. const that = this;
  617. page = 1;
  618. utils.$post({
  619. url: app.globalData.webUrl + 'api/activity/invite_list',
  620. header: {
  621. 'Authorization': 'bearer ' + app.globalData.token
  622. },
  623. data: {
  624. p: page,
  625. pagesize: 15,
  626. aid: that.data.aid,
  627. type: that.data.statype == 1 ? '预约活动' : that.data.statype == 2 ? '已到场' : that.data.statype == 3 ? '已交定' : '已签单'
  628. },
  629. success: function (res) {
  630. wx.stopPullDownRefresh()
  631. if (res.data.code == '0') {
  632. for (let i = 0; i < res.data.data.length; i++) {
  633. res.data.data[i].lastday = util.nowdayDiff(
  634. res.data.data[i].last_contact_date
  635. );
  636. }
  637. if (that.data.statype == 1) {
  638. that.setData({
  639. invitecrm: res.data.data
  640. })
  641. } else {
  642. that.setData({
  643. showUpcrm: res.data.data
  644. })
  645. }
  646. }
  647. }
  648. })
  649. }
  650. },
  651. /**
  652. * 页面上拉触底事件的处理函数
  653. */
  654. onReachBottom: function () {
  655. const that = this;
  656. if (this.data.type == 1) {
  657. return false;
  658. }
  659. if (that.data.type == 3) {
  660. sharepage = sharepage * 1 + 1;
  661. var str = "api/activity/ranking_list";
  662. let data = {
  663. id: that.data.aid,
  664. type: that.data.ranktype,
  665. is_org: this.data.orgtype == '公司排行' ? 0 : '1',//0公司排行,1团队排行,
  666. page: sharepage,
  667. limit: 15,
  668. };
  669. if (this.data.orgtype == '部门排行') {
  670. str = "api/activity/org_ranking_list";
  671. data = {
  672. id: that.data.aid,
  673. type: that.data.ranktype,
  674. page: sharepage,
  675. limit: 15,
  676. };
  677. }
  678. utils.$post({
  679. url: app.globalData.webUrl + str,
  680. header: {
  681. 'Authorization': 'bearer ' + app.globalData.token
  682. },
  683. data: data,
  684. success: function (res) {
  685. setTimeout(() => {
  686. wx.hideLoading()
  687. }, 1000)
  688. if (res.data.code == "0") {
  689. if (that.data.orgtype == '公司排行' || that.data.orgtype == '团队排行') {
  690. let shareranklist = that.data.shareranklist;
  691. shareranklist = shareranklist.concat(res.data.data.data);
  692. that.setData({
  693. shareranklist: shareranklist
  694. })
  695. } else {
  696. let gotranklist = that.data.gotranklist;
  697. gotranklist = gotranklist.concat(res.data.data.data);
  698. that.setData({
  699. gotranklist: gotranklist
  700. })
  701. }
  702. }
  703. }
  704. })
  705. } else {
  706. page = page * 1 + 1;
  707. utils.$post({
  708. url: app.globalData.webUrl + 'api/activity/invite_list',
  709. header: {
  710. 'Authorization': 'bearer ' + app.globalData.token
  711. },
  712. data: {
  713. p: page,
  714. pagesize: 15,
  715. aid: that.data.aid,
  716. type: that.data.statype == 1 ? '预约活动' : that.data.statype == 2 ? '已到场' : that.data.statype == 3 ? '已交定' : '已签单'
  717. },
  718. success: function (res) {
  719. if (res.data.code == '0') {
  720. for (let i = 0; i < res.data.data.length; i++) {
  721. res.data.data[i].lastday = util.nowdayDiff(
  722. res.data.data[i].last_contact_date
  723. );
  724. }
  725. if (that.data.statype == 1) {
  726. let invitecrm = that.data.invitecrm;
  727. invitecrm = invitecrm.concat(res.data.data);
  728. that.setData({
  729. invitecrm: invitecrm
  730. })
  731. } else {
  732. let showUpcrm = that.data.showUpcrm;
  733. showUpcrm = showUpcrm.concat(res.data.data);
  734. that.setData({
  735. showUpcrm: showUpcrm
  736. })
  737. }
  738. }
  739. }
  740. })
  741. }
  742. },
  743. /**
  744. * 用户点击右上角分享
  745. */
  746. onShareAppMessage: function () {
  747. var img = this.data.activityobj.cover;
  748. if (this.data.activityType && this.data.activityType == 'broker') {
  749. return {
  750. title: this.data.activityobj.title,
  751. imageUrl: img,
  752. path: '/share/pages/activitymsg/activitymsg?aid=' + this.data.aid + '&bid=' + app.globalData.brokeruserId + "&ctp=" + app.globalData.clientype + '&t=b'
  753. }
  754. } else {
  755. var poster = this.data.activityobj.poster;
  756. this.activitytap();
  757. return {
  758. title: this.data.activityobj.title,
  759. imageUrl: poster,
  760. path: '/share/pages/activitymsg/activitymsg?aid=' + this.data.aid + '&uid=' + app.globalData.personMsg.id + "&ctp=" + app.globalData.clientype
  761. }
  762. }
  763. }
  764. })