(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-activity-topic_detail-index"],{"01b8":function(t,e,i){"use strict";i.r(e);var a=i("1fc7"),n=i("8a9d");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("2cf1");var c=i("f0c5"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"fa14f99c",null,!1,a["a"],void 0);e["default"]=s.exports},"1c6c":function(t,e,i){"use strict";var a=i("d630"),n=i.n(a);n.a},"1f3e":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticStyle:{"touch-action":"none"},style:t.viewColor},[i("v-uni-view",{staticClass:"home",staticStyle:{position:"fixed"},style:{top:t.top+"px",bottom:t.bottom},attrs:{id:"right-nav"},on:{touchmove:function(e){e.stopPropagation(),e.preventDefault(),arguments[0]=e=t.$handleEvent(e),t.setTouchMove.apply(void 0,arguments)}}},[t.homeActive?i("v-uni-view",{staticClass:"homeCon",class:!0===t.homeActive?"on":""},[i("v-uni-navigator",{staticClass:"iconfont icon-shouye-xianxing",attrs:{"hover-class":"none",url:"/pages/index/index","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-caigou-xianxing",attrs:{"hover-class":"none",url:"/pages/order_addcart/order_addcart","open-type":"switchTab"}}),i("v-uni-navigator",{staticClass:"iconfont icon-yonghu1",attrs:{"hover-class":"none",url:"/pages/user/index","open-type":"switchTab"}})],1):t._e(),i("v-uni-view",{staticClass:"pictrueBox",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.open.apply(void 0,arguments)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("v-uni-image",{staticClass:"image pictruea",attrs:{src:!0===t.homeActive?"/static/images/navbtn_open.gif":"/static/images/navbtn_close.gif"}})],1)],1)],1)],1)},n=[]},"1fc7":function(t,e,i){"use strict";i.d(e,"b",(function(){return n})),i.d(e,"c",(function(){return o})),i.d(e,"a",(function(){return a}));var a={easyLoadimage:i("ae65").default},n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{staticClass:"page-container",style:t.viewColor},[i("v-uni-view",{staticClass:"topic-home",style:"background-color: "+t.bgColor},[i("v-uni-view",{staticClass:"header"},[i("v-uni-view",{staticClass:"head-menu"},[i("v-uni-view",{staticClass:"iconfont icon-xiangzuo",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goback.apply(void 0,arguments)}}}),t.merchant?i("v-uni-view",{staticClass:"iconfont merchant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goStore(t.topicData.group_mer_id)}}},[i("v-uni-image",{staticClass:"icon_merchant",attrs:{src:t.merchant.mer_avatar}})],1):i("v-uni-view",{staticClass:"iconfont icon-shouye4",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goHome.apply(void 0,arguments)}}})],1)],1),i("v-uni-view",{staticClass:"main_count"},[i("v-uni-view",{staticClass:"topic_image"},[i("v-uni-image",{staticClass:"picture",attrs:{src:t.topicData.image,mode:"widthFix"}})],1),i("v-uni-view",{staticClass:"main"},[t.imgUrls.length>0?i("v-uni-view",{staticClass:"slider-wrapper"},[i("v-uni-swiper",{attrs:{"indicator-dots":"true",autoplay:t.autoplay,circular:t.circular,interval:t.interval,duration:t.duration,"indicator-color":"rgba(255,255,255,0.6)","indicator-active-color":"#fff"}},[t._l(t.imgUrls,(function(t,e){return[i("v-uni-swiper-item",[i("v-uni-view",{staticClass:"slide-navigator acea-row row-between-wrapper"},[i("v-uni-image",{staticClass:"slide-image",attrs:{src:t}})],1)],1)]}))],2)],1):t._e(),i("v-uni-view",{staticClass:"product_list",class:["theme"+t.theme,{"acea-row row-between-wrapper":2==t.theme||""==t.theme}]},t._l(t.activety_goods,(function(e,a){return i("v-uni-view",{key:a,staticClass:"item",attrs:{"hover-class":"none"},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.goDetail(e)}}},[i("v-uni-view",{staticClass:"pictrue"},[i("easy-loadimage",{attrs:{mode:"widthFix","image-src":e.image}})],1),i("v-uni-view",{staticClass:"text"},[i("v-uni-view",{staticClass:"name line2"},[t._v(t._s(e.store_name))]),i("v-uni-view",{staticClass:"acea-row row-middle"},[i("v-uni-view",{staticClass:"money"},[t._v("¥"),i("v-uni-text",{staticClass:"num"},[t._v(t._s(e.price))])],1)],1),1!=t.theme?i("v-uni-view",{staticClass:"score"},[t._v(t._s(e.rate)+"评分 "+t._s(e.reply_count)+"条评论")]):t._e()],1)],1)})),1)],1)],1)],1),i("home"),i("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth},on:{onLoadFun:function(e){arguments[0]=e=t.$handleEvent(e),t.onLoadFun.apply(void 0,arguments)},authColse:function(e){arguments[0]=e=t.$handleEvent(e),t.authColse.apply(void 0,arguments)}}})],1)},o=[]},"2cf1":function(t,e,i){"use strict";var a=i("8924"),n=i.n(a);n.a},"32e8":function(t,e,i){"use strict";i.r(e);var a=i("ae5c"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"3b3e":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return n.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(){return n.default.get("store/product/assist/count",{},{noAuth:!0})},e.getActivitycategory=function(t){return n.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t){return n.default.get("store/product/assist/detail/"+t)},e.getAssistList=function(t){return n.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return n.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return n.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return n.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return n.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return n.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return n.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return n.default.post("combination/poster",t)},e.getCombinationUser=function(t){return n.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return n.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return n.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return n.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return n.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return n.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return n.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return n.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return n.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return n.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return n.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return n.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return n.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return n.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return n.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return n.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return n.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return n.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return n.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var n=a(i("b5ef"))},"458b":function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,".pictrueBox[data-v-6d33dd08]{width:%?130?%;height:%?120?%}\n/*返回主页按钮*/.home[data-v-6d33dd08]{position:fixed;color:#fff;text-align:center;z-index:9999;right:%?15?%;display:flex}.home .homeCon[data-v-6d33dd08]{border-radius:%?50?%;opacity:0;height:0;color:#e93323;width:0}.home .homeCon.on[data-v-6d33dd08]{opacity:1;-webkit-animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);animation:bounceInRight .5s cubic-bezier(.215,.61,.355,1);width:%?300?%;height:%?86?%;margin-bottom:%?20?%;display:flex;justify-content:center;align-items:center;background:var(--view-theme)}.home .homeCon .iconfont[data-v-6d33dd08]{font-size:%?48?%;color:#fff;display:inline-block;margin:0 auto}.home .pictrue[data-v-6d33dd08]{width:%?86?%;height:%?86?%;border-radius:50%;margin:0 auto;background-color:var(--view-theme);box-shadow:0 %?5?% %?12?% rgba(0,0,0,.5)}.home .pictrue .image[data-v-6d33dd08]{width:100%;height:100%}.pictruea[data-v-6d33dd08]{width:100%;height:100%;display:block;object-fit:cover;vertical-align:middle}",""]),t.exports=e},"493d":function(t,e,i){"use strict";i.r(e);var a=i("e933"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},5850:function(t,e,i){var a=i("24fb");e=a(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.header[data-v-fa14f99c]{position:absolute;z-index:6;display:flex;align-items:center;padding-right:%?34?%;height:43px;padding-left:%?33?%}.header .head-menu[data-v-fa14f99c]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:27px;width:70px;background:rgba(0,0,0,.3);border-radius:13px}.header .head-menu .icon-xiangzuo[data-v-fa14f99c]{font-size:%?32?%;color:#fff}.header .head-menu .iconfont[data-v-fa14f99c]{-webkit-box-flex:1;-webkit-flex:1;flex:1;text-align:center;color:#fff;box-sizing:border-box}.header .head-menu .iconfont.icon-xiangzuo[data-v-fa14f99c]{border-right:1px solid #fff}.header .head-menu .merchant[data-v-fa14f99c]{width:%?36?%;height:%?36?%}.header .head-menu .merchant .icon_merchant[data-v-fa14f99c]{width:%?36?%;height:%?36?%;border-radius:100%}.topic-home[data-v-fa14f99c]{position:relative;min-height:100vh;padding-bottom:%?30?%}.topic-home .topic_image[data-v-fa14f99c]{line-height:0}.topic-home .topic_image .picture[data-v-fa14f99c]{width:%?750?%}.main_count .main[data-v-fa14f99c]{padding:0 %?20?%}.main_count .slider-wrapper[data-v-fa14f99c]{width:%?710?%;height:%?250?%;margin:%?40?% 0}.main_count .slider-wrapper uni-swiper[data-v-fa14f99c]{height:%?250?%}.main_count .slider-wrapper .slide-image[data-v-fa14f99c]{width:%?710?%;height:%?250?%;border-radius:%?16?%}.main_count .product_list .item[data-v-fa14f99c]{background-color:#fff}.main_count .product_list .image[data-v-fa14f99c]{width:100%;height:100%;border-radius:%?20?% %?20?% 0 0}.main_count .product_list .text[data-v-fa14f99c]{color:#222}.main_count .product_list .money[data-v-fa14f99c]{display:flex;align-items:center;font-size:%?26?%;font-weight:700;margin-top:%?8?%;color:var(--view-priceColor)}.main_count .product_list .score[data-v-fa14f99c]{margin-top:%?10?%;color:#737373;font-size:%?20?%}.main_count .product_list.theme2 .item[data-v-fa14f99c], .main_count .product_list.theme .item[data-v-fa14f99c]{position:relative;width:%?345?%;margin-bottom:%?20?%;border-radius:%?20?%}.main_count .product_list.theme2 .item .pictrue[data-v-fa14f99c], .main_count .product_list.theme .item .pictrue[data-v-fa14f99c]{position:relative;width:100%;height:%?345?%}.main_count .product_list.theme2 .item[data-v-fa14f99c] uni-image, .main_count .product_list.theme2 .item[data-v-fa14f99c] .easy-loadimage, .main_count .product_list.theme2 .item uni-image[data-v-fa14f99c], .main_count .product_list.theme .item[data-v-fa14f99c] uni-image, .main_count .product_list.theme .item[data-v-fa14f99c] .easy-loadimage, .main_count .product_list.theme .item uni-image[data-v-fa14f99c]{height:%?345?%}.main_count .product_list.theme2 .item .text[data-v-fa14f99c], .main_count .product_list.theme .item .text[data-v-fa14f99c]{padding:%?20?% %?17?% %?26?% %?17?%}.main_count .product_list.theme2 .item .name[data-v-fa14f99c], .main_count .product_list.theme .item .name[data-v-fa14f99c]{font-size:13px;color:#282828;margin:11px 0 5px 0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.main_count .product_list.theme1 .item[data-v-fa14f99c]{display:inline-block;width:%?225?%;margin:0 %?19?% %?16?% 0;border-radius:%?10?%}.main_count .product_list.theme1 .item[data-v-fa14f99c]:nth-child(3n){margin-right:0}.main_count .product_list.theme1 .pictrue[data-v-fa14f99c]{position:relative;width:100%;height:%?226?%}.main_count .product_list.theme1 .pictrue .image[data-v-fa14f99c]{border-radius:%?10?% %?10?% 0 0}.main_count .product_list.theme1[data-v-fa14f99c] uni-image, .main_count .product_list.theme1[data-v-fa14f99c] .easy-loadimage, .main_count .product_list.theme1 uni-image[data-v-fa14f99c]{width:100%;height:%?226?%;border-radius:%?10?% %?10?% 0 0}.main_count .product_list.theme1 .text[data-v-fa14f99c]{padding:%?12?% %?14?% %?16?%}.main_count .product_list.theme1 .text .name[data-v-fa14f99c]{font-size:13px;color:#282828;margin:11px 0 5px 0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.main_count .product_list.theme1 .text .money[data-v-fa14f99c]{font-size:%?22?%}.main_count .product_list.theme2[data-v-fa14f99c]{display:flex;justify-content:space-around;flex-wrap:wrap}.main_count .product_list.theme2 .pictrue[data-v-fa14f99c], .main_count .product_list.theme2[data-v-fa14f99c] uni-image, .main_count .product_list.theme2[data-v-fa14f99c] .easy-loadimage, .main_count .product_list.theme2 uni-image[data-v-fa14f99c]{border-radius:%?20?% %?20?% 0 0}.main_count .product_list.theme3 .item[data-v-fa14f99c]{width:%?710?%;border-radius:%?20?%;margin-bottom:%?30?%}.main_count .product_list.theme3 .num[data-v-fa14f99c]{font-family:PingFangSC-Semibold;font-size:%?32?%}.main_count .product_list.theme3 .pictrue[data-v-fa14f99c]{position:relative;width:%?710?%;height:%?710?%}.main_count .product_list.theme3 .pictrue .image[data-v-fa14f99c]{border-radius:%?20?% %?20?% 0 0}.main_count .product_list.theme3[data-v-fa14f99c] uni-image, .main_count .product_list.theme3[data-v-fa14f99c] .easy-loadimage, .main_count .product_list.theme3 uni-image[data-v-fa14f99c]{width:%?710?%;height:%?710?%;max-height:%?710?%;border-radius:%?20?% %?20?% 0 0}.main_count .product_list.theme3 .text[data-v-fa14f99c]{padding:%?24?% %?30?% %?34?%;position:relative}.main_count .product_list.theme3 .text .name[data-v-fa14f99c]{color:#222;font-size:%?34?%;margin-bottom:%?16?%;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.main_count .product_list.theme3 .text .money[data-v-fa14f99c]{font-size:%?22?%;font-family:PingFangSC-Semibold;font-weight:700}.main_count .product_list.theme3 .text .score[data-v-fa14f99c]{color:#737373;display:inline-block;float:right;position:relative;top:%?-34?%;margin-top:0}',""]),t.exports=e},"6cb5":function(t,e,i){var a=i("458b");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("545af455",a,!0,{sourceMap:!1,shadowMode:!1})},8924:function(t,e,i){var a=i("5850");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("322817ee",a,!0,{sourceMap:!1,shadowMode:!1})},"8a9d":function(t,e,i){"use strict";i.r(e);var a=i("942c"),n=i.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return a[t]}))}(o);e["default"]=n.a},"92b0":function(t,e,i){"use strict";var a=i("6cb5"),n=i.n(a);n.a},"942c":function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af");var n=i("26cb"),o=i("3b3e"),c=i("bd9e"),s=a(i("a394")),r=a(i("ae65")),u=a(i("f272")),d=getApp(),l={computed:(0,n.mapGetters)(["isLogin","uid","viewColor"]),components:{home:s.default,easyLoadimage:r.default,authorize:u.default},data:function(){return{group_id:"",systemInfo:d.globalData.statusBarHeight,bgColor:"",activety_goods:[],page:1,limit:30,loading:!1,loadend:!1,pageloading:!1,autoplay:!0,circular:!0,interval:3e3,duration:500,theme:1,topicData:{},imgUrls:[],label_id:"",isAuto:!1,isShowAuth:!1,merchant:{}}},onLoad:function(t){this.group_id=t.id,this.getTopicDetail()},methods:{onLoadFun:function(){this.isShowAuth=!1,this.getTopicDetail()},authColse:function(t){this.isShowAuth=t},goback:function(){uni.navigateBack()},goHome:function(){uni.switchTab({url:"/pages/index/index"})},goStore:function(t){uni.navigateTo({url:"/pages/store/home/index?id=".concat(t)})},getTopicDetail:function(){var t=this;(0,o.getTopicDetail)(t.group_id).then((function(e){t.$set(t,"topicData",e.data),t.$set(t,"theme",e.data.type),t.$set(t,"bgColor",e.data.color),t.$set(t,"imgUrls",e.data.banner),t.$set(t,"label_id",e.data.label_id),t.$set(t,"merchant",e.data.merchant),t.getProList()})).catch((function(t){}))},getProList:function(){var t=this,e={page:t.page,limit:t.limit,labels:t.label_id,mer_id:t.topicData.group_mer_id};t.loadend||t.pageloading||(this.pageloading=!0,(0,o.getTopicProLst)(e).then((function(e){var i=e.data.list,a=i.length66&&(this.top=t.touches[0].clientY,this.bottom="auto")},open:function(){this.homeActive?this.$store.commit("CLOSE_HOME"):this.$store.commit("OPEN_HOME")}},created:function(){this.bottom="50px"}};e.default=o},bd9e:function(t,e,i){"use strict";i("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.goShopDetail=function(t,e){return new Promise((function(e){1===t.product_type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(t.product_id,"&time=").concat(t.stop_time)}):2===t.product_type?uni.navigateTo({url:"/pages/activity/presell_details/index?id=".concat(t.activity_id)}):0===t.product_type||10===t.product_type?uni.navigateTo({url:"/pages/goods_details/index?id=".concat(t.product_id)}):4===t.product_type?uni.navigateTo({url:"/pages/activity/combination_details/index?id=".concat(t.activity_id)}):40===t.product_type?uni.navigateTo({url:"/pages/activity/combination_status/index?id=".concat(t.activity_id)}):e(t)}))},i("d3b7"),i("99af")},c15c:function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"c",(function(){return n})),i.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",[t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"mask",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}}):t._e(),t.isShowAuth&&t.code?i("v-uni-view",{staticClass:"Popup",style:"top:"+t.top+"px;"},[i("v-uni-view",{staticClass:"logo-auth"},[i("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),t.isWeixin?i("v-uni-text",{staticClass:"title"},[t._v("授权提醒")]):i("v-uni-text",{staticClass:"title"},[t._v(t._s(t.title))]),t.isWeixin?i("v-uni-text",{staticClass:"tip"},[t._v("请授权头像等信息,以便为您提供更好的服务!")]):i("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.info))]),i("v-uni-view",{staticClass:"bottom flex"},[i("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),i("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?i("v-uni-text",{staticClass:"text"},[t._v("去授权")]):i("v-uni-text",{staticClass:"text"},[t._v("去登录")])],1)],1)],1):t._e()],1)},n=[]},d630:function(t,e,i){var a=i("a296");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=i("4f06").default;n("8f383f98",a,!0,{sourceMap:!1,shadowMode:!1})},e933:function(t,e,i){"use strict";i("7a82");var a=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(i("5530")),o=a(i("ff56")),c=i("31bd"),s=i("5cac"),r=i("26cb"),u=a(i("dae1")),d=i("4f1b"),l=(a(i("8b6a")),i("713c")),f=getApp(),p={name:"Authorize",props:{isAuto:{type:Boolean,default:!0},isGoIndex:{type:Boolean,default:!0},isShowAuth:{type:Boolean,default:!1}},components:{},data:function(){return{title:"用户登录",info:"请登录,将为您提供更好的服务!",isWeixin:this.$wechat.isWeixin(),canUseGetUserProfile:!1,code:null,top:0,mp_is_new:this.$Cache.get("MP_VERSION_ISNEW")||!1,editModal:!1}},computed:(0,n.default)((0,n.default)({},(0,r.mapGetters)(["isLogin","userInfo","viewColor"])),(0,d.configMap)(["routine_logo"])),watch:{isLogin:function(t){!0===t&&this.$emit("onLoadFun",this.userInfo)},isShowAuth:function(t){this.getCode(this.isShowAuth)}},created:function(){this.top=uni.getSystemInfoSync().windowHeight/2-70,wx.getUserProfile&&(this.canUseGetUserProfile=!0),this.setAuthStatus(),this.getCode(this.isShowAuth)},methods:{setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,l.toLogin)(!0)},getUserProfile:function(){var t=this,e=this;u.default.getUserProfile().then((function(i){var a=i.userInfo;a.code=t.code,a.spread=f.globalData.spid,a.spread_code=f.globalData.code,(0,c.commonAuth)({auth:{type:"routine",auth:a}}).then((function(i){if(200!=i.data.status)return uni.setStorageSync("auth_token",i.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var a=i.data.result.expires_time-o.default.time();e.$store.commit("UPDATE_USERINFO",i.data.result.user),e.$store.commit("LOGIN",{token:i.data.result.token,time:a}),e.$store.commit("SETUID",i.data.result.user.uid),o.default.set(s.EXPIRES_TIME,i.data.result.expires_time,a),o.default.set(s.USER_INFO,i.data.result.user,a),t.$emit("onLoadFun",i.data.result.user),i.data.result.user.isNew&&t.mp_is_new&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1)}}};e.default=p},f272:function(t,e,i){"use strict";i.r(e);var a=i("c15c"),n=i("493d");for(var o in n)["default"].indexOf(o)<0&&function(t){i.d(e,t,(function(){return n[t]}))}(o);i("1c6c");var c=i("f0c5"),s=Object(c["a"])(n["default"],a["b"],a["c"],!1,null,"ac292046",null,!1,a["a"],void 0);e["default"]=s.exports}}]);