1 line
6.8 KiB
JavaScript
1 line
6.8 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-newActivity-activityDetail-activityDetail"],{"0aba":function(t,n,i){"use strict";var o=i("6088"),a=i.n(o);a.a},6088:function(t,n,i){var o=i("9030");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var a=i("4f06").default;a("2249a2c4",o,!0,{sourceMap:!1,shadowMode:!1})},"6d3c":function(t,n,i){"use strict";i.r(n);var o=i("918e"),a=i("6dc5");for(var e in a)["default"].indexOf(e)<0&&function(t){i.d(n,t,(function(){return a[t]}))}(e);i("0aba");var s=i("f0c5"),c=Object(s["a"])(a["default"],o["b"],o["c"],!1,null,"18d01fa1",null,!1,o["a"],void 0);n["default"]=c.exports},"6dc5":function(t,n,i){"use strict";i.r(n);var o=i("b4de"),a=i.n(o);for(var e in o)["default"].indexOf(e)<0&&function(t){i.d(n,t,(function(){return o[t]}))}(e);n["default"]=a.a},9030:function(t,n,i){var o=i("24fb");n=o(!1),n.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-page-body[data-v-18d01fa1]{background-color:#fff5dd}body.?%PAGE?%[data-v-18d01fa1]{background-color:#fff5dd}.bg[data-v-18d01fa1]{position:relative;padding-bottom:%?300?%}.bg .bg_img[data-v-18d01fa1]{width:%?750?%;height:%?652?%;position:absolute;top:0;left:0}.bg .bg_back[data-v-18d01fa1]{height:%?34?%;width:%?20?%;position:absolute;top:calc(0px + %?30?%);left:%?30?%}.bg .b_body[data-v-18d01fa1]{width:%?710?%;margin-left:%?21?%;margin-right:%?19?%;height:auto;background-color:#fff;border-radius:0 0 %?60?% %?60?%;padding:%?28?%;padding-top:%?680?%;margin-bottom:%?30?%}.bg .b_body .b_content[data-v-18d01fa1]{width:100%}.btn_box[data-v-18d01fa1]{position:fixed;bottom:%?30?%;left:50%;-webkit-transform:translate(-50%);transform:translate(-50%);width:%?710?%}.btn_box .btn_image[data-v-18d01fa1]{width:100%}',""]),t.exports=n},"918e":function(t,n,i){"use strict";i.d(n,"b",(function(){return a})),i.d(n,"c",(function(){return e})),i.d(n,"a",(function(){return o}));var o={uModal:i("a322").default},a=function(){var t=this,n=t.$createElement,i=t._self._c||n;return i("v-uni-view",[i("v-uni-view",{staticClass:"bg"},[i("v-uni-image",{staticClass:"bg_img",attrs:{mode:"widthFix",src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/detail.webp"}}),i("v-uni-image",{staticClass:"bg_back",attrs:{src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/back.png"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.back.apply(void 0,arguments)}}}),i("v-uni-view",{staticClass:"b_body"},[i("v-uni-view",{staticClass:"b_content"},[t.info.content?i("v-uni-view",{domProps:{innerHTML:t._s(t.info.content.content)}}):t._e()],1)],1)],1),i("v-uni-view",{staticClass:"btn_box"},[t.show_a1?i("v-uni-image",{staticClass:"btn_image",attrs:{mode:"widthFix",src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/detail_btn1.webp"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeA(t.show_a1)}}}):t._e(),t.show_a2?i("v-uni-image",{staticClass:"btn_image",attrs:{mode:"widthFix",src:"https://lihai001.oss-cn-chengdu.aliyuncs.com/public/uploads/new_activity/detail_btn2.webp"},on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.changeA(t.show_a2)}}}):t._e()],1),i("u-modal",{attrs:{show:t.show,closeOnClickOverlay:!0,title:"["+t.activity.title+"]",content:"选择活动后只有完成活动任务后才可参加另一个活动, 确定要参与这个活动吗",cancelText:"我再想想",confirmText:"参加活动",confirmColor:"#e54841",showCancelButton:!0},on:{cancel:function(n){arguments[0]=n=t.$handleEvent(n),t.show=!1},confirm:function(n){arguments[0]=n=t.$handleEvent(n),t.joinA()}}}),i("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth,isGoIndex:!1},on:{onLoadFun:function(n){arguments[0]=n=t.$handleEvent(n),t.onLoadFun.apply(void 0,arguments)},authColse:function(n){arguments[0]=n=t.$handleEvent(n),t.authColse.apply(void 0,arguments)}}})],1)},e=[]},b4de:function(t,n,i){"use strict";i("7a82");var o=i("4ea4").default;Object.defineProperty(n,"__esModule",{value:!0}),n.default=void 0,i("7db0"),i("d3b7");var a=i("95ca"),e=i("ece0"),s=i("f89e"),c=o(i("104c")),u=i("33b4"),r={components:{authorize:c.default},data:function(){return{info:{},userInfo:{},Alist:[],activity:{title:""},show:!1,isAuto:!1,isShowAuth:!1,is_join_activity:0}},onLoad:function(){this.getArticleList(),this.is_join_activity=uni.getStorageSync("is_join_activity")},onShow:function(){this.getUserInfo(),this.consumption()},computed:{show_a1:function(){return this.Alist.find((function(t){return"用户消费补贴活动"==t.title}))},show_a2:function(){return this.Alist.find((function(t){return"用户推荐拉新活动"==t.title}))}},methods:{consumption:function(){var t=this;(0,a.consumption)().then((function(n){t.Alist=n.data}))},back:function(){uni.navigateBack()},changeA:function(t){return this.userInfo.account?(this.activity=t,this.is_join_activity?this.joinA():void(this.show=!0)):this.openAuto()},getArticleList:function(){var t=this;(0,e.getArticleList)(25).then((function(n){t.info=n.data.list[0]}))},joinA:function(){var t=this;(0,a.chooseConsumption)({coupon_id:this.activity.coupon_id,activity_id:1}).then((function(n){t.show=!1;var i="";"用户消费补贴活动"==t.activity.title&&(i="/pages/redpacket/redpack_type?type=1"),"用户推荐拉新活动"==t.activity.title&&(i="/pages/newActivity/invitation/invitation"),i&&uni.navigateTo({url:i})})).catch((function(n){t.show=!1,t.$nextTick((function(){(0,s.Toast)("您正在参与活动,暂时不支持切换")}))})),uni.setStorageSync("is_join_activity",1),this.is_join_activity=1},getUserInfo:function(){var t=this;(0,u.getUserInfo)().then((function(n){t.userInfo=n.data})).catch((function(t){}))},onLoadFun:function(t){this.getUserInfo(),this.isShowAuth=!1},openAuto:function(){this.isAuto=!0,this.isShowAuth=!0},authColse:function(t){this.isShowAuth=t}},onPullDownRefresh:function(){uni.stopPullDownRefresh()}};n.default=r}}]); |