(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-mine-follow"],{"0270":function(t,e,a){var n=a("5cd0");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("967d").default;o("eb001b92",n,!0,{sourceMap:!1,shadowMode:!1})},"12c1":function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=n(a("2634")),i=n(a("2fdc"));a("64aa");var r=n(a("c158")),s={name:"tn-nav-bar",mixins:[r.default],props:{zIndex:{type:Number,default:0},height:{type:Number,default:0},unit:{type:String,default:"px"},isBack:{type:Boolean,default:!0},backIcon:{type:String,default:"left"},backTitle:{type:String,default:"返回"},alpha:{type:Boolean,default:!1},fixed:{type:Boolean,default:!0},bottomShadow:{type:Boolean,default:!0},customBack:{type:Boolean,default:!1},beforeBack:{type:Function,default:null}},computed:{navBarStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.position="fixed"),t.zIndex=this.elZIndex,t},barClass:function(){var t="";return this.backgroundColorClass&&(t+=" ".concat(this.backgroundColorClass)),this.fontColorClass&&(t+="".concat(this.fontColorClass)),this.fixed&&(t+=" tn-custom-nav-bar__bar--fixed"),this.alpha&&(t+=" tn-custom-nav-bar__bar--alpha"),this.bottomShadow&&(t+=" tn-custom-nav-bar__bar--bottom-shadow"),t},barStyle:function(){var t={};return t.height=0===this.height?this.customBarHeight+this.unit:this.height+this.unit,this.fixed&&(t.paddingTop=this.statusBarHeight+"px"),this.backgroundColorClass||(t.backgroundColor=""!==this.backgroundColor?this.backgroundColor:"#FFFFFF"),!this.fontColorClass&&this.fontColor&&(t.color=this.fontColor),t.zIndex=this.elZIndex,t},contentStyle:function(){var t={};if(t.top=this.fixed?this.statusBarHeight+"px":"0px",t.height=0===this.height?this.customBarHeight-this.statusBarHeight+this.unit:this.height+this.unit,t.lineHeight=t.height,this.isBack)if(this.customBack){var e=2*(this.customBackStyleInfo.width+this.customBackStyleInfo.left);t.width="calc(100% - ".concat(e,"px)")}else t.width="calc(100% - 340rpx)";else t.width="100%";return t},elZIndex:function(){return this.zIndex?this.zIndex:this.$t.zIndex.navbar}},data:function(){return{statusBarHeight:0,customBarHeight:0,customBackStyleInfo:{width:86,height:32,left:15}}},mounted:function(){this.updateNavBarInfo()},created:function(){},methods:{updateNavBarInfo:function(){var t=this;return(0,i.default)((0,o.default)().mark((function e(){var a,n,i;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.vuex_custom_bar_height,n=t.vuex_status_bar_height,a){e.next=15;break}return e.prev=3,e.next=6,t.$t.updateCustomBar();case 6:i=e.sent,a=i.customBarHeight,n=i.statusBarHeight,e.next=15;break;case 11:return e.prev=11,e.t0=e["catch"](3),setTimeout((function(){t.updateNavBarInfo()}),10),e.abrupt("return");case 15:t&&t.$t.vuex("vuex_status_bar_height",n),t&&t.$t.vuex("vuex_custom_bar_height",a),t.customBarHeight=a,t.statusBarHeight=n;case 19:case"end":return e.stop()}}),e,null,[[3,11]])})))()},handlerBack:function(){var t=this;return(0,i.default)((0,o.default)().mark((function e(){var a;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!t.beforeBack||"function"!==typeof t.beforeBack){e.next=10;break}if(a=t.beforeBack.bind(t.$t.$parent.call(t))(),!a||"function"!==typeof a.then){e.next=7;break}return e.next=5,a.then((function(e){t.navBack()})).catch((function(t){}));case 5:e.next=8;break;case 7:!0===a&&t.navBack();case 8:e.next=11;break;case 10:t.navBack();case 11:case"end":return e.stop()}}),e)})))()},navBack:function(){var t=getCurrentPages();if(t&&t.length>0){var e=t[0];1!=t.length||e.route&&"pages/index/index"==e.route?uni.navigateBack({delta:1}):uni.reLaunch({url:"/pages/index"})}else uni.reLaunch({url:"/pages/index"})}}};e.default=s},2445:function(t,e,a){"use strict";var n=a("0270"),o=a.n(n);o.a},3507:function(t,e,a){"use strict";a("6a54");var n=a("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.updateFollowApi=e.submitStoreFollowApi=e.submitAreaFollowApi=e.getStoreFollowListApi=e.getAreaFollowListApi=void 0;var o=n(a("0ae0"));e.getStoreFollowListApi=function(t){return o.default.get("api/delivery.follow.follow/lists",{params:t})};e.submitStoreFollowApi=function(t){return o.default.post("api/delivery.follow.follow/submit",{data:{store_ids:t}})};e.getAreaFollowListApi=function(t){return o.default.get("api/delivery.follow.follow/arealists",{params:t})};e.submitAreaFollowApi=function(t){return o.default.post("api/delivery.follow.follow/areasubmit",{data:{area_ids:t}})};e.updateFollowApi=function(t){return o.default.post("api/delivery.follow.follow/followStatus",{data:{is_follow:t}})}},"4df5":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.tn-custom-nav-bar[data-v-0c6fe6ee]{display:block;position:relative}.tn-custom-nav-bar__bar[data-v-0c6fe6ee]{display:flex;position:relative;align-items:center;min-height:%?100?%;justify-content:space-between;min-height:0;box-shadow:%?0?% %?0?% %?0?%;z-index:9999}.tn-custom-nav-bar__bar--fixed[data-v-0c6fe6ee]{position:fixed;width:100%;top:0;left:0}.tn-custom-nav-bar__bar--alpha[data-v-0c6fe6ee]{background:transparent!important;box-shadow:none!important}.tn-custom-nav-bar__bar--bottom-shadow[data-v-0c6fe6ee]{box-shadow:%?0?% %?0?% %?80?% %?0?% rgba(0,0,0,.05)}.tn-custom-nav-bar__bar__action[data-v-0c6fe6ee]{display:flex;align-items:center;height:100%;justify-content:center;max-width:100%}.tn-custom-nav-bar__bar__action--nav-back[data-v-0c6fe6ee]{\n /* position: absolute; */\n /* top: 50%; */\n /* left: 20rpx; */\n /* margin-top: -15rpx; */margin-left:%?20?%;font-size:%?38?%;line-height:100%}.tn-custom-nav-bar__bar__action--nav-back-text[data-v-0c6fe6ee]{margin-left:%?10?%}.tn-custom-nav-bar__bar__content[data-v-0c6fe6ee]{position:absolute;text-align:center;left:0;right:0;bottom:0;margin:auto;font-size:%?32?%;cursor:none;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}',""]),t.exports=e},"5bed":function(t,e,a){"use strict";a.d(e,"b",(function(){return o})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return n}));var n={tnNavBar:a("7a95").default},o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",[a("tn-nav-bar",{attrs:{fixed:!0,bottomShadow:!0,backgroundColor:"#FFFFFF"}},[a("v-uni-view",{staticClass:"custom-nav",attrs:{id:"navbar"}},[t._v("特别关注")])],1),a("v-uni-view",{style:{paddingTop:t.vuex_custom_bar_height+20+"px"}},[a("v-uni-view",{staticClass:"search-container"},[a("v-uni-view",{staticClass:"search-box"},[a("v-uni-text",{staticClass:"tn-icon-search"}),a("v-uni-input",{attrs:{placeholder:"请输入商户名称","placeholder-class":"placeholder"},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}})],1),a("v-uni-view",{staticClass:"search-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.queryStore.apply(void 0,arguments)}}},[t._v("搜索")])],1),a("v-uni-scroll-view",{attrs:{"scroll-y":!0},on:{scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.loadMoreData.apply(void 0,arguments)}}},[a("v-uni-checkbox-group",{staticClass:"checkbox-container",on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.checkboxChange.apply(void 0,arguments)}}},t._l(t.items,(function(e,n){return a("v-uni-label",{key:n,staticClass:"store-item"},[a("v-uni-view",{staticClass:"checkbox-wrapper"},[a("v-uni-checkbox",{attrs:{value:e.value,checked:e.checked,color:"#1DB4C7"}})],1),a("v-uni-view",{staticClass:"store-name"},[t._v(t._s(e.name))]),a("v-uni-view",{staticClass:"order-count"},[t._v("已完成"+t._s(e.count)+"单")])],1)})),1)],1)],1),a("v-uni-view",{staticClass:"submit-btn",on:{click:function(e){e.stopPropagation(),arguments[0]=e=t.$handleEvent(e),t.submitFollow.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"tn-icon-check"}),a("v-uni-text",[t._v("确认关注")])],1)],1)},i=[]},"5c4b":function(t,e,a){"use strict";a.r(e);var n=a("12c1"),o=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},"5cd0":function(t,e,a){var n=a("c86c");e=n(!1),e.push([t.i,'@charset "UTF-8";\n/**\n * 下方引入的为Tuniao UI的集成样式文件,为scss预处理器,其中包含了一些"tn-"开头的自定义变量\n * 使用的时候,请将下面的一行复制到您的uniapp项目根目录的uni.scss中即可\n * Tuniao UI自定义的css类名和scss变量,均以"tn-"开头,不会造成冲突,请放心使用 \n */.search-container[data-v-97568ae4]{padding:%?20?% %?30?%;display:flex;align-items:center}.search-container .search-box[data-v-97568ae4]{flex:1;height:%?80?%;background:#f8f8f8;border-radius:%?40?%;display:flex;align-items:center;padding:0 %?30?%}.search-container .search-box .tn-icon-search[data-v-97568ae4]{font-size:%?36?%;color:#999;margin-right:%?20?%}.search-container .search-box uni-input[data-v-97568ae4]{flex:1;font-size:%?28?%}.search-container .search-box .placeholder[data-v-97568ae4]{color:#999}.search-container .search-btn[data-v-97568ae4]{width:%?140?%;height:%?80?%;background:#1db4c7;color:#fff;border-radius:%?40?%;margin-left:%?20?%;display:flex;align-items:center;justify-content:center;font-size:%?28?%}.checkbox-container[data-v-97568ae4]{padding-bottom:%?100?%;display:flex;flex-direction:column;align-items:center}.store-item[data-v-97568ae4]{width:92%;display:flex;align-items:center;padding:%?30?%;background:#fff;border-radius:%?16?%;margin-bottom:%?20?%;box-shadow:0 %?2?% %?12?% rgba(0,0,0,.05)}.store-item .checkbox-wrapper[data-v-97568ae4]{margin-right:%?20?%;display:flex;align-items:center}.store-item .store-name[data-v-97568ae4]{flex:1;font-size:%?28?%;color:#333}.store-item .order-count[data-v-97568ae4]{font-size:%?26?%;color:#ea930a;margin-left:%?20?%}.store-item[data-v-97568ae4]:active{background:#f5f5f5}.submit-btn[data-v-97568ae4]{position:fixed;left:50%;bottom:%?40?%;-webkit-transform:translateX(-50%);transform:translateX(-50%);width:90%;height:%?90?%;background:#1db4c7;color:#fff;border-radius:%?45?%;display:flex;align-items:center;justify-content:center;font-size:%?32?%;box-shadow:0 %?4?% %?16?% rgba(29,180,199,.3)}.submit-btn .tn-icon-check[data-v-97568ae4]{margin-right:%?10?%}.submit-btn[data-v-97568ae4]:active{-webkit-transform:translateX(-50%) scale(.98);transform:translateX(-50%) scale(.98)}',""]),t.exports=e},"7a95":function(t,e,a){"use strict";a.r(e);var n=a("9d12"),o=a("5c4b");for(var i in o)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("7fa2");var r=a("828b"),s=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"0c6fe6ee",null,!1,n["a"],void 0);e["default"]=s.exports},"7e71":function(t,e,a){"use strict";a.r(e);var n=a("5bed"),o=a("df84");for(var i in o)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("2445");var r=a("828b"),s=Object(r["a"])(o["default"],n["b"],n["c"],!1,null,"97568ae4",null,!1,n["a"],void 0);e["default"]=s.exports},"7fa2":function(t,e,a){"use strict";var n=a("91cb"),o=a.n(n);o.a},"91cb":function(t,e,a){var n=a("4df5");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=a("967d").default;o("e3174358",n,!0,{sourceMap:!1,shadowMode:!1})},"9d12":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"tn-custom-nav-bar-class tn-custom-nav-bar",style:[t.navBarStyle]},[a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar",class:[t.barClass],style:[t.barStyle]},[t.isBack?a("v-uni-view",[t.customBack?a("v-uni-view",[a("v-uni-view",{style:{width:t.customBackStyleInfo.width+"px",height:t.customBackStyleInfo.height+"px",marginLeft:t.customBackStyleInfo.left+"px"}},[t._t("back")],2)],1):a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__action",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.handlerBack.apply(void 0,arguments)}}},[a("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back",class:["tn-icon-"+t.backIcon]}),t.backTitle?a("v-uni-text",{staticClass:"tn-custom-nav-bar__bar__action--nav-back-text"},[t._v(t._s(t.backTitle))]):t._e()],1)],1):t._e(),a("v-uni-view",{staticClass:"tn-custom-nav-bar__bar__content",style:[t.contentStyle]},[t._t("default")],2),a("v-uni-view",[t._t("right")],2)],1)],1)},o=[]},c158:function(t,e,a){a("64aa"),t.exports={data:function(){},props:{backgroundColor:{type:String,default:""},fontColor:{type:String,default:""},fontSize:{type:Number,default:0},fontUnit:{type:String,default:"rpx"}},computed:{backgroundColorStyle:function(){return this.$t.color.getBackgroundColorStyle(this.backgroundColor)},backgroundColorClass:function(){return this.$t.color.getBackgroundColorInternalClass(this.backgroundColor)},fontColorStyle:function(){return this.$t.color.getFontColorStyle(this.fontColor)},fontColorClass:function(){return this.$t.color.getFontColorInternalClass(this.fontColor)},fontSizeStyle:function(){return this.$t.string.getLengthUnitValue(this.fontSize,this.fontUnit)}},methods:{}}},df84:function(t,e,a){"use strict";a.r(e);var n=a("e132"),o=a.n(n);for(var i in n)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(i);e["default"]=o.a},e132:function(t,e,a){"use strict";a("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("fd3c"),a("5ef2"),a("c223");var n=a("3507"),o={data:function(){return{page:1,keyword:"",items:[],store_ids:[],is_loading:!1}},onLoad:function(){this.getStoreFollow()},methods:{getStoreFollow:function(){var t=this;(0,n.getStoreFollowListApi)({page:this.page,keyword:this.keyword}).then((function(e){var a=e.data,n=a.stores.map((function(t){return-1==a.store_ids.indexOf(t.id)?{value:t.id,checked:!1,name:t.title,count:t.order_num}:{value:t.id,checked:!0,name:t.title,count:t.order_num}}));n.length<10&&(t.is_loading=!0),t.items=t.items.concat(n)}))},onReachBottom:function(){this.is_loading||(this.page++,this.getStoreFollow())},queryStore:function(){this.page=1,this.items=[],this.store_ids=[],this.is_loading=!1,this.getStoreFollow()},checkboxChange:function(t){this.store_ids=t.detail.value},submitFollow:function(){(0,n.submitStoreFollowApi)(this.store_ids).then((function(t){uni.showToast({title:t.msg,icon:"none"})}))}}};e.default=o}}]);