You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
3.5 KiB

(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/describe/index"],{"1a24":function(t,e,n){"use strict";n.r(e);var o=n("4d96"),a=n("9f12");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("eda0");var c,s=n("f0c5"),u=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,null,null,!1,o["a"],c);e["default"]=u.exports},"4d96":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return o}));var o={mpHtml:function(){return Promise.all([n.e("common/vendor"),n.e("uni_modules/mp-html/components/mp-html/mp-html")]).then(n.bind(null,"e6f0"))}},a=function(){var t=this,e=t.$createElement;t._self._c},i=[]},9217:function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(n("f431"));function o(t){return t&&t.__esModule?t:{default:t}}var a=getApp(),i={data:function(){return{activityId:"",article:"",activityDetail:""}},components:{},props:{},onLoad:function(t){console.log(t),t.id&&(this.setData({activityId:t.id}),this.getDetail())},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{getDetail:function(){var e=this,n=this;a.http("GET","activity/activityInfo/"+this.activityId).then((function(o){if(console.log(o),o.data.success){e.setData({activityDetail:o.data.data});var a=o.data.data.content;n.article=n.escape2Html(a)}else t.showToast({title:o.data.msg,icon:"none"})}))},call:function(){t.makePhoneCall({phoneNumber:this.activityDetail.publisherVo.phone,fail:function(){console.log("取消")}})},collect:function(){var e=this,n={};n.id=this.activityDetail.id,n.type="collect",n.status=!this.activityDetail.collect,""!=t.getStorageSync("userInfo")?this.requestCollect(n):t.getUserProfile({desc:"展示用户信息",success:function(o){console.log(o);var i=o.iv,c=o.encryptedData,s=o.userInfo;t.login({success:function(o){a.http("POST","wxapp/auth",{code:o.code,iv:i,encryptedData:c}).then((function(o){o.data.success?(t.setStorageSync("token","Bearer "+o.data.data.token),t.setStorageSync("userInfo",s),e.requestCollect(n)):t.showToast({title:o.data.msg,icon:"none"})}))}})}})},requestCollect:function(e){var n=this;a.http("POST","activity/collect",e).then((function(e){e.data.success?(t.showToast({title:"操作成功!"}),n.getDetail()):t.showToast({title:e.data.msg,icon:"none"})}))},toSignPage:function(){var e=this;""!=t.getStorageSync("userInfo")?t.navigateTo({url:"../signIn/index?id="+this.activityId}):t.getUserProfile({desc:"展示用户信息",success:function(n){console.log(n);var o=n.iv,i=n.encryptedData,c=n.userInfo;t.login({success:function(n){a.http("POST","wxapp/auth",{code:n.code,iv:o,encryptedData:i}).then((function(n){n.data.success?(t.setStorageSync("token","Bearer "+n.data.data.token),t.setStorageSync("userInfo",c),t.navigateTo({url:"../signIn/index?id="+e.activityId})):t.showToast({title:n.data.msg,icon:"none"})}))}})}})}}};e.default=i}).call(this,n("543d")["default"])},"9f12":function(t,e,n){"use strict";n.r(e);var o=n("9217"),a=n.n(o);for(var i in o)"default"!==i&&function(t){n.d(e,t,(function(){return o[t]}))}(i);e["default"]=a.a},a0dc:function(t,e,n){},c7fb:function(t,e,n){"use strict";(function(t){n("0371");o(n("66fd"));var e=o(n("1a24"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},eda0:function(t,e,n){"use strict";var o=n("a0dc"),a=n.n(o);a.a}},[["c7fb","common/runtime","common/vendor"]]]);