杨总惠通宝
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.
 
 
 
 
 
 
htb_backend/public/static/js/pages-columnGoods-goods_sea...

1 lines
26 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-columnGoods-goods_search-index"],{"0b4d":function(t,e,n){var o=n("756a");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("5fae70c3",o,!0,{sourceMap:!1,shadowMode:!1})},"111c":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalNoticeApi=function(t){return a.default.post("store/product/increase_take",t)},e.bagExplain=function(){return a.default.get("store/product/bag/explain")},e.bagRecommend=function(){return a.default.get("product/spu/bag/recommend")},e.collectAdd=function(t){return a.default.post("user/relation/create",t)},e.collectAll=function(t){return a.default.post("user/relation/batch/create",t)},e.collectDel=function(t){return a.default.post("user/relation/delete",t)},e.copyPasswordApi=function(t){return a.default.get("product/spu/copy",t,{noAuth:!0})},e.copyPasswordSearch=function(t){return a.default.get("command/copy",t,{noAuth:!0})},e.create=function(t){return a.default.post("intention/create",t)},e.discountsCartAdd=function(t){return a.default.post("user/cart/batchCreate",t)},e.express=function(t){return a.default.post("ordero/express/"+t,{noAuth:!0})},e.followStore=function(t){return a.default.post("user/relation/create",{type:10,type_id:t})},e.getApplicationRecordList=function(t){return a.default.get("intention/lst",t)},e.getBrandlist=function(t){return a.default.get("store/product/brand/lst",t,{noAuth:!0})},e.getBroadcastListApi=function(t){return a.default.get("broadcast/lst",t,{noAuth:!0})},e.getCaptcha=function(){return a.default.get("captcha")},e.getCategoryList=function(){return a.default.get("store/product/category/lst",{},{noAuth:!0})},e.getCollectUserList=function(t){return a.default.get("user/relation/product/lst",t)},e.getCouponProductlist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,i.default)({},t),t.brand_id=t.brand_id.toString());return a.default.get("product/spu/coupon_product",t,{noAuth:!0})},e.getDiscountsLst=function(t){return a.default.get("discounts/lst",t,{noAuth:!0})},e.getGeocoder=function(t){return a.default.get("lbs/geocoder?location=".concat(t.lat,",").concat(t.long),{},{noAuth:!0})},e.getGoodsDetails=function(t){return a.default.get("intention/detail/"+t,{})},e.getGroomList=function(t,e){return a.default.get("product/spu/hot/"+t,e,{noAuth:!0})},e.getHotBanner=function(t){return a.default.get("common/hot_banner/"+t,{},{noAuth:!0})},e.getLiveList=function(t){return a.default.get("broadcast/hot",t,{noAuth:!0})},e.getMerProductHot=function(t,e){return a.default.get("product/spu/recommend",{page:void 0===e.page?1:e.page,limit:void 0===e.limit?10:e.limit,mer_id:t||""},{noAuth:!0})},e.getMerchantLst=function(t){return a.default.get("user/relation/merchant/lst",t,{noAuth:!0})},e.getPresellProductDetail=function(t){return a.default.get("store/product/presell/detail/"+t,{},{noAuth:!0})},e.getPreviewProDetail=function(t){return a.default.get("store/product/preview",t,{noAuth:!0})},e.getProductCode=function(t,e){return a.default.get("store/product/qrcode/"+t,e)},e.getProductDetail=function(t){return a.default.get("store/product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return a.default.get("product/spu/recommend",{page:void 0===t?1:t,limit:void 0===e?10:e},{noAuth:!0})},e.getProductslist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,i.default)({},t),t.brand_id=t.brand_id.toString());return a.default.get("product/spu/lst",t,{noAuth:!0})},e.getReplyConfig=function(t){return a.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return a.default.get("store/product/reply/lst/"+t,e,{noAuth:!0})},e.getSearchKeyword=function(){return a.default.get("common/hot_keyword",{},{noAuth:!0})},e.getSeckillProductDetail=function(t){return a.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getStoreCategory=function(t,e){return a.default.get("store/merchant/category/lst/"+t,e,{noAuth:!0})},e.getStoreCoupon=function(t){return a.default.get("coupon/store/"+t,{noAuth:!0})},e.getStoreDetail=function(t,e){return a.default.get("store/merchant/detail/"+t,e,{noAuth:!0})},e.getStoreGoods=function(t,e){return a.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.getStoreTypeApi=function(){return a.default.get("intention/type",{},{noAuth:!0})},e.merClassifly=function(){return a.default.get("intention/cate",{},{noAuth:!0})},e.merchantProduct=function(t,e){e.brand_id&&Array.isArray(e.brand_id)&&(e=(0,i.default)({},e),e.brand_id=e.brand_id.toString());return a.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.merchantQrcode=function(t,e){return a.default.get("store/merchant/qrcode/"+t,e,{noAuth:!0})},e.postCartAdd=function(t){return a.default.post("user/cart/create",t)},e.priceRuleApi=function(t){return a.default.get("store/product/price_rule/".concat(t),{},{noAuth:!0})},e.productBag=function(t){return a.default.get("product/spu/bag",t,{noAuth:!0})},e.storeCategory=function(t){return a.default.get("store/product/category",t,{noAuth:!0})},e.storeCertificate=function(t){return a.default.post("store/certificate/".concat(t.merId),t)},e.storeListApi=function(t){return a.default.get("store_list",t,{noAuth:!0})},e.storeMerchantList=function(t){return a.default.get("store/merchant/lst",t,{noAuth:!0})},e.storeServiceList=function(t,e){return a.default.get("product/spu/local/".concat(t),e,{noAuth:!0})},e.unfollowStore=function(t){return a.default.post("user/relation/delete",{type:10,type_id:t})},e.updateGoodsRecord=function(t,e){return a.default.post("intention/update/"+t,e)},e.userCollectDel=function(t){return a.default.post("user/relation/batch/delete",t)},e.verify=function(t){return a.default.post("auth/verify",t)},n("d401"),n("d3b7"),n("25f0"),n("99af");var i=o(n("5530")),a=o(n("b5ef"))},"1c6c":function(t,e,n){"use strict";var o=n("d630"),i=n.n(o);i.a},"3b3e":function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.assistHelpList=function(t,e){return i.default.get("store/product/assist/user/"+t,e)},e.assistUserData=function(){return i.default.get("store/product/assist/count",{},{noAuth:!0})},e.getActivitycategory=function(t){return i.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t){return i.default.get("store/product/assist/detail/"+t)},e.getAssistList=function(t){return i.default.get("store/product/assist/lst",t,{noAuth:!0})},e.getAssistUser=function(t){return i.default.get("store/product/assist/share/"+t)},e.getBargainUserCancel=function(t){return i.default.post("store/product/assist/set/delete/"+t)},e.getBargainUserList=function(t){return i.default.get("store/product/assist/set/lst",t)},e.getCombinationDetail=function(t){return i.default.get("store/product/group/detail/"+t,{},{noAuth:!0})},e.getCombinationList=function(t){return i.default.get("store/product/group/lst",t,{noAuth:!0})},e.getCombinationPink=function(t){return i.default.get("store/product/group/get/"+t)},e.getCombinationPoster=function(t){return i.default.post("combination/poster",t)},e.getCombinationUser=function(t){return i.default.get("store/product/group/count",t,{noAuth:!0})},e.getCouponLst=function(t){return i.default.get("coupon/getlst",t,{noAuth:!0})},e.getMerchantServiceLst=function(t){return i.default.get("store/merchant/local",t,{noAuth:!0})},e.getNewPeopleCouponLst=function(t){return i.default.get("coupon/new_people",t,{noAuth:!0})},e.getPresellList=function(t){return i.default.get("store/product/presell/lst",t,{noAuth:!0})},e.getSeckillDetail=function(t){return i.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getSeckillIndexTime=function(){return i.default.get("store/product/seckill/select",{},{noAuth:!0})},e.getSeckillList=function(t){return i.default.get("store/product/seckill/lst",t,{noAuth:!0})},e.getTopicDetail=function(t){return i.default.get("activity/info/".concat(t),{},{noAuth:!0})},e.getTopicList=function(t,e){return i.default.get("activity/lst/".concat(t),e,{noAuth:!0})},e.getTopicProLst=function(t){return i.default.get("product/spu/labels",t,{noAuth:!0})},e.hotRankingApi=function(t){return i.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})},e.initiateAssistApi=function(t){return i.default.post("store/product/assist/create/"+t)},e.postAssistHelp=function(t){return i.default.post("store/product/assist/set/"+t)},e.postCombinationRemove=function(t){return i.default.post("store/product/group/cancel",t)},e.presellAgreement=function(){return i.default.get("store/product/presell/agree")},e.scombinationCode=function(t){return i.default.get("combination/code/"+t)},e.seckillCode=function(t,e){return i.default.get("seckill/code/"+t,e)},e.spuTop=function(t){return i.default.get("store/product/category/hotranking",{},{noAuth:!0})},e.spuTopList=function(t){return i.default.get("product/spu/get_hot_ranking",t,{noAuth:!0})};var i=o(n("b5ef"))},"3c9f":function(t,e,n){"use strict";var o=n("7f90"),i=n.n(o);i.a},"43dc":function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[n("v-uni-view",{staticClass:"searchGood"},[n("v-uni-view",{staticClass:"search acea-row row-between-wrapper"},[n("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[n("v-uni-text",{staticClass:"iconfont icon-sousuo2"}),n("v-uni-input",{attrs:{type:"text",value:t.searchValue,focus:t.focus,placeholder:"点击搜索商品、店铺名称","placeholder-class":"placeholder"},on:{input:function(e){arguments[0]=e=t.$handleEvent(e),t.setValue.apply(void 0,arguments)}}})],1),n("v-uni-view",{staticClass:"bnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.searchBut.apply(void 0,arguments)}}},[t._v("搜索")])],1),n("v-uni-view",{staticClass:"title"},[t._v("历史记录"),n("v-uni-text",{staticClass:"iconfont icon-shanchu",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.remove.apply(void 0,arguments)}}})],1),t.historyList.length>0?n("v-uni-view",{staticClass:"list acea-row",style:{height:t.historyBox?"auto":"150rpx"}},[t._l(t.historyList,(function(e,o){return[n("v-uni-view",{key:o+"_0",staticClass:"item line1",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.setHotSearchValue(e,0)}}},[t._v(t._s(e))])]}))],2):t._e(),n("v-uni-view",[t.historyList.length>9&&!t.historyBox?n("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.historyBox=!0}}},[t._v("展开全部"),n("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1):t._e(),t.historyList.length>9&&t.historyBox?n("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.historyBox=!1}}},[t._v("收起"),n("v-uni-text",{staticClass:"iconfont icon-xiangshang"})],1):t._e()],1),0==t.historyList.length?n("v-uni-view",{staticStyle:{"text-align":"center",color:"#999"}},[t._v("暂无搜索历史~")]):t._e(),n("v-uni-view",{staticClass:"title"},[t._v("热门搜索")]),n("v-uni-view",{staticClass:"list acea-row",style:{height:t.hotSearchBox?"auto":"150rpx"}},[t._l(t.hotSearchList,(function(e,o){return[n("v-uni-view",{key:o+"_0",staticClass:"item line1",on:{click:function(n){arguments[0]=n=t.$handleEvent(n),t.setHotSearchValue(e,1)}}},[t._v(t._s(e.keyword))])]}))],2),n("v-uni-view",[t.hotSearchList.length>8&&!t.hotSearchBox?n("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hotSearchBox=!0}}},[t._v("展开全部"),n("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1):t._e(),t.hotSearchList.length>8&&t.hotSearchBox?n("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hotSearchBox=!1}}},[t._v("收起"),n("v-uni-text",{staticClass:"iconfont icon-xiangshang"})],1):t._e()],1)],1),n("authorize",{attrs:{isAuto:t.isAuto,isShowAuth:t.isShowAuth,isGoIndex:!1},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)},i=[]},"493d":function(t,e,n){"use strict";n.r(e);var o=n("e933"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a},"57e6":function(t,e,n){var o=n("24fb");e=o(!1),e.push([t.i,"uni-page-body[data-v-e083fb20]{background-color:#fff}body.?%PAGE?%[data-v-e083fb20]{background-color:#fff}",""]),t.exports=e},"756a":function(t,e,n){var o=n("24fb");e=o(!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/* 文章场景相关 */.searchGood .search[data-v-e083fb20]{padding-left:%?30?%}.searchGood .search[data-v-e083fb20]{margin-top:%?20?%}.searchGood .search .input[data-v-e083fb20]{width:%?598?%;background-color:#f7f7f7;border-radius:%?33?%;padding:0 %?35?%;box-sizing:border-box;height:%?66?%}.searchGood .search .input uni-input[data-v-e083fb20]{width:%?472?%;font-size:%?28?%}.searchGood .search .input .placeholder[data-v-e083fb20]{color:#bbb}.searchGood .search .input .iconfont[data-v-e083fb20]{color:#000;font-size:%?35?%}.searchGood .search .bnt[data-v-e083fb20]{width:%?120?%;text-align:center;height:%?66?%;line-height:%?66?%;font-size:%?30?%;color:#282828}.searchGood .title[data-v-e083fb20]{position:relative;font-size:%?28?%;color:#282828;margin:%?50?% %?30?% %?25?% %?30?%}.searchGood .title .icon-shanchu[data-v-e083fb20]{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#999}.searchGood .list[data-v-e083fb20]{padding:0 %?10?%;overflow:hidden}.searchGood .list .item[data-v-e083fb20]{font-size:%?26?%;color:#666;padding:0 %?21?%;height:%?60?%;background:#f2f2f2;border-radius:%?22?%;line-height:%?60?%;margin:0 0 %?20?% %?20?%;max-width:%?150?%}.searchGood .line[data-v-e083fb20]{border-bottom:%?1?% solid #eee;margin:%?20?% %?30?% 0 %?30?%}.more-btn[data-v-e083fb20]{display:flex;align-items:center;justify-content:center;margin:0 0 %?20?% %?20?%;height:%?60?%;font-size:%?24?%;color:#999}.more-btn .iconfont[data-v-e083fb20]{font-size:%?22?%;margin-left:%?10?%}',""]),t.exports=e},"7f90":function(t,e,n){var o=n("57e6");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("fb52551a",o,!0,{sourceMap:!1,shadowMode:!1})},a296:function(t,e,n){var o=n("24fb");e=o(!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/* 文章场景相关 */.Popup[data-v-ac292046]{flex:1;align-items:center;justify-content:center;width:%?500?%;background-color:#fff;position:fixed;top:%?500?%;left:%?125?%;z-index:1000}.Popup .logo-auth[data-v-ac292046]{z-index:-1;position:absolute;left:50%;top:0;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:%?150?%;height:%?150?%;display:flex;align-items:center;justify-content:center;border:%?8?% solid #fff;border-radius:50%;background:#fff}.Popup .image[data-v-ac292046]{height:%?42?%;margin-top:%?-54?%}.Popup .title[data-v-ac292046]{font-size:%?28?%;color:#000;text-align:center;margin-top:%?30?%;align-items:center;justify-content:center;width:%?500?%;display:flex}.Popup .tip[data-v-ac292046]{font-size:%?22?%;color:#555;padding:0 %?24?%;margin-top:%?25?%;display:flex;align-items:center;justify-content:center}.Popup .bottom .item[data-v-ac292046]{width:%?250?%;height:%?80?%;background-color:#eee;text-align:center;line-height:%?80?%;margin-top:%?54?%;font-size:%?24?%;color:#666}.Popup .bottom .item .text[data-v-ac292046]{font-size:%?24?%;color:#666}.Popup .bottom .item.on[data-v-ac292046]{width:%?500?%}.flex[data-v-ac292046]{display:flex;flex-direction:row}.Popup .bottom .item.grant[data-v-ac292046]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-ac292046]{font-size:%?28?%;color:#fff}.mask[data-v-ac292046]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}',""]),t.exports=e},b272:function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n("c6c3"),a=o(n("ff56")),r=function(t,e){t&&a.default.set("spread",t||0),t&&e&&(0,i.spread)(t).then((function(t){}))};e.default=r},b72d:function(t,e,n){"use strict";var o=n("0b4d"),i=n.n(o);i.a},bd9e:function(t,e,n){"use strict";n("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)}))},n("d3b7"),n("99af")},c15c:function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){}));var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",[t.isShowAuth&&t.code?n("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?n("v-uni-view",{staticClass:"Popup",style:"top:"+t.top+"px;"},[n("v-uni-view",{staticClass:"logo-auth"},[n("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),t.isWeixin?n("v-uni-text",{staticClass:"title"},[t._v("授权提醒")]):n("v-uni-text",{staticClass:"title"},[t._v(t._s(t.title))]),t.isWeixin?n("v-uni-text",{staticClass:"tip"},[t._v("请授权头像等信息,以便为您提供更好的服务!")]):n("v-uni-text",{staticClass:"tip"},[t._v(t._s(t.info))]),n("v-uni-view",{staticClass:"bottom flex"},[n("v-uni-text",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),n("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?n("v-uni-text",{staticClass:"text"},[t._v("去授权")]):n("v-uni-text",{staticClass:"text"},[t._v("去登录")])],1)],1)],1):t._e()],1)},i=[]},d630:function(t,e,n){var o=n("a296");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[t.i,o,""]]),o.locals&&(t.exports=o.locals);var i=n("4f06").default;i("8f383f98",o,!0,{sourceMap:!1,shadowMode:!1})},e8fb:function(t,e,n){"use strict";n.r(e);var o=n("43dc"),i=n("fa2c");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("3c9f"),n("b72d");var r=n("f0c5"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"e083fb20",null,!1,o["a"],void 0);e["default"]=u.exports},e933:function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o(n("5530")),a=o(n("ff56")),r=n("31bd"),u=n("5cac"),s=n("26cb"),c=o(n("dae1")),d=n("4f1b"),l=(o(n("8b6a")),n("713c")),f=getApp(),h={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,i.default)((0,i.default)({},(0,s.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;c.default.getUserProfile().then((function(n){var o=n.userInfo;o.code=t.code,o.spread=f.globalData.spid,o.spread_code=f.globalData.code,(0,r.commonAuth)({auth:{type:"routine",auth:o}}).then((function(n){if(200!=n.data.status)return uni.setStorageSync("auth_token",n.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var o=n.data.result.expires_time-a.default.time();e.$store.commit("UPDATE_USERINFO",n.data.result.user),e.$store.commit("LOGIN",{token:n.data.result.token,time:o}),e.$store.commit("SETUID",n.data.result.user.uid),a.default.set(u.EXPIRES_TIME,n.data.result.expires_time,o),a.default.set(u.USER_INFO,n.data.result.user,o),t.$emit("onLoadFun",n.data.result.user),n.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=h},eaf6:function(t,e,n){"use strict";n("7a82");var o=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("ac1f"),n("00b4"),n("d3b7"),n("159b"),n("3c65");var i=n("111c"),a=o(n("b272")),r=n("4f1b"),u=n("bd9e"),s=n("3b3e"),c=n("26cb"),d=o(n("f272")),l={computed:(0,c.mapGetters)(["isLogin","uid"]),components:{authorize:d.default},data:function(){return{hostProduct:[],searchValue:"",focus:!0,bastList:[],hotSearchList:[],first:0,limit:8,page:1,loading:!1,loadend:!1,loadTitle:"加载更多",hotPage:1,isScroll:!0,historyList:[],tempStorage:[],historyBox:!1,hotSearchBox:!1,isAuto:!1,isShowAuth:!1}},onLoad:function(t){this.searchValue=t.searchVal||""},onShow:function(){try{this.historyList=[],this.tempStorage=[];var t=uni.getStorageSync("historyList");t.length>0?this.historyList=t:this.historyList=[],this.tempStorage=this.historyList}catch(e){}this.getRoutineHotSearch()},methods:{onLoadFun:function(t){this.isShowAuth=!1},authColse:function(t){this.isShowAuth=t},remove:function(){var t=this;uni.showModal({title:"提示",content:"确认删除全部历史搜索记录?",success:function(e){if(e.confirm){t.tempStorage=[];try{uni.setStorageSync("historyList",t.tempStorage),t.historyList=[]}catch(n){}}else e.cancel}})},getRoutineHotSearch:function(){var t=this;(0,i.getSearchKeyword)().then((function(e){t.$set(t,"hotSearchList",e.data)}))},setHotSearchValue:function(t,e){var n=this;this.focus=!1,e?this.$set(this,"searchValue",t.keyword):this.$set(this,"searchValue",t),this.$nextTick((function(){n.focus=!0})),this.searchBut()},setValue:function(t){this.$set(this,"searchValue",t.detail.value)},searchBut:function(){var t=this;if(/^(\/@[1-9]{1}).*\*\//.test(this.searchValue))uni.showLoading({title:"加载中",mask:!0}),(0,i.copyPasswordSearch)({key:this.searchValue}).then((function(e){uni.hideLoading();var n=e.data;(0,a.default)(e.data.user.uid,t.isLogin),t.isLogin&&(0,r.silenceBindingSpread)(),(0,u.goShopDetail)(n,t.uid).then((function(e){t.isLogin?(0,s.initiateAssistApi)(n.activity_id).then((function(t){var e=t.data.product_assist_set_id;uni.hideLoading(),uni.navigateTo({url:"/pages/activity/assist_detail/index?id="+e})})).catch((function(t){uni.showToast({title:t,icon:"none"})})):(t.isAuto=!0,t.isShowAuth=!0)}))})).catch((function(e){uni.showToast({title:e,icon:"none"}),t.searchValue=""}));else{var e=!1;this.tempStorage.forEach((function(n,o){n==t.searchValue&&(e=!0)})),!e&&this.searchValue&&this.tempStorage.unshift(this.searchValue);try{uni.setStorageSync("historyList",this.tempStorage)}catch(n){}uni.navigateTo({url:"/pages/columnGoods/goods_search_con/index?searchValue="+this.searchValue})}}}};e.default=l},f272:function(t,e,n){"use strict";n.r(e);var o=n("c15c"),i=n("493d");for(var a in i)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(a);n("1c6c");var r=n("f0c5"),u=Object(r["a"])(i["default"],o["b"],o["c"],!1,null,"ac292046",null,!1,o["a"],void 0);e["default"]=u.exports},fa2c:function(t,e,n){"use strict";n.r(e);var o=n("eaf6"),i=n.n(o);for(var a in o)["default"].indexOf(a)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(a);e["default"]=i.a}}]);