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
1 line
3.5 KiB
3 years ago
|
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["pages/activity/describe/index"],{"02e4":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,"9d5e"))}},a=function(){var t=this,e=t.$createElement;t._self._c},i=[]},"4dfc":function(t,e,n){"use strict";(function(t){n("ef82");o(n("66fd"));var e=o(n("8445"));function o(t){return t&&t.__esModule?t:{default:t}}t(e.default)}).call(this,n("543d")["createPage"])},5313:function(t,e,n){"use strict";var o=n("b7fa"),a=n.n(o);a.a},"7ca2":function(t,e,n){"use strict";(function(t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;o(n("514b"));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"])},8445:function(t,e,n){"use strict";n.r(e);var o=n("02e4"),a=n("cd04");for(var i in a)"default"!==i&&function(t){n.d(e,t,(function(){return a[t]}))}(i);n("5313");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},b7fa:function(t,e,n){},cd04:function(t,e,n){"use strict";n.r(e);var o=n("7ca2"),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}},[["4dfc","common/runtime","common/vendor"]]]);
|