admin-api/public/static/js/pages-columnGoods-goods_sea...

1 line
28 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-columnGoods-goods_search-index"],{"23ce":function(t,e,o){"use strict";o("7a82");var n=o("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.getProductParmas=function(t){return a.default.get("store/product/show/"+t,{},{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)},o("d401"),o("d3b7"),o("25f0"),o("99af");var i=n(o("5530")),a=n(o("5a4d"))},"25b4":function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=o("974a"),a=n(o("956a")),r=function(t,e){t&&a.default.set("spread",t||0),t&&e&&(0,i.spread)(t).then((function(t){}))};e.default=r},"2e54":function(t,e,o){"use strict";o("7a82");var n=o("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(t){return i.default.get("store/product/assist/count",t,{noAuth:!0})},e.getActivitycategory=function(t){return i.default.get("product/spu/active/category/"+t,{},{noAuth:!0})},e.getAssistDetail=function(t,e){return i.default.get("store/product/assist/detail/"+t,e)},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=n(o("5a4d"))},"3fcb":function(t,e,o){var n=o("da5d");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("54d033f0",n,!0,{sourceMap:!1,shadowMode:!1})},"5aa3":function(t,e,o){var n=o("a83b");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("99094398",n,!0,{sourceMap:!1,shadowMode:!1})},"6ac5":function(t,e,o){"use strict";o.r(e);var n=o("e64a"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},"6b60":function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[o("v-uni-view",{staticClass:"searchGood"},[o("v-uni-view",{staticClass:"search acea-row row-between-wrapper"},[o("v-uni-view",{staticClass:"input acea-row row-between-wrapper"},[o("v-uni-text",{staticClass:"iconfont icon-sousuo2"}),o("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),o("v-uni-view",{staticClass:"bnt",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.searchBut.apply(void 0,arguments)}}},[t._v("搜索")])],1),o("v-uni-view",{staticClass:"title"},[t._v("历史记录"),o("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?o("v-uni-view",{staticClass:"list acea-row",style:{height:t.historyBox?"auto":"150rpx"}},[t._l(t.historyList,(function(e,n){return[o("v-uni-view",{key:n+"_0",staticClass:"item line1",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.setHotSearchValue(e,0)}}},[t._v(t._s(e))])]}))],2):t._e(),o("v-uni-view",[t.historyList.length>9&&!t.historyBox?o("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.historyBox=!0}}},[t._v("展开全部"),o("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1):t._e(),t.historyList.length>9&&t.historyBox?o("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.historyBox=!1}}},[t._v("收起"),o("v-uni-text",{staticClass:"iconfont icon-xiangshang"})],1):t._e()],1),0==t.historyList.length?o("v-uni-view",{staticStyle:{"text-align":"center",color:"#999"}},[t._v("暂无搜索历史~")]):t._e(),o("v-uni-view",{staticClass:"title"},[t._v("热门搜索")]),o("v-uni-view",{staticClass:"list acea-row",style:{height:t.hotSearchBox?"auto":"150rpx"}},[t._l(t.hotSearchList,(function(e,n){return[o("v-uni-view",{key:n+"_0",staticClass:"item line1",on:{click:function(o){arguments[0]=o=t.$handleEvent(o),t.setHotSearchValue(e,1)}}},[t._v(t._s(e.keyword))])]}))],2),o("v-uni-view",[t.hotSearchList.length>8&&!t.hotSearchBox?o("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hotSearchBox=!0}}},[t._v("展开全部"),o("v-uni-text",{staticClass:"iconfont icon-xiangxia"})],1):t._e(),t.hotSearchList.length>8&&t.hotSearchBox?o("v-uni-view",{staticClass:"more-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.hotSearchBox=!1}}},[t._v("收起"),o("v-uni-text",{staticClass:"iconfont icon-xiangshang"})],1):t._e()],1)],1),o("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=[]},"71b4":function(t,e,o){var n=o("24fb");e=n(!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-6cfa5c77]{--logo-auth-size-:%?180?%;width:80%;background-color:#fff;position:fixed;top:%?500?%;left:10%;z-index:900;padding:calc(var(--logo-auth-size-) / 2) %?20?% %?20?% %?20?%;border-radius:%?15?%}.Popup .logo-auth[data-v-6cfa5c77]{position:absolute;top:calc(%?0?% - (var(--logo-auth-size-) + %?8?%) / 2);left:calc((100% - %?180?%) / 2);width:var(--logo-auth-size-);height:var(--logo-auth-size-);border:%?8?% solid #fff;border-radius:50%;background:#fff;display:inline-flex;flex-direction:row;flex-wrap:nowrap;justify-content:center;align-items:center}.Popup .logo-auth .image[data-v-6cfa5c77]{height:var(--logo-auth-size-);margin-top:%?-30?%}.Popup .title[data-v-6cfa5c77]{width:100%;height:%?60?%;line-height:%?60?%;text-align:center;font-size:%?32?%;color:#000}.Popup .tip[data-v-6cfa5c77]{width:100%;line-height:%?50?%;font-size:%?28?%;color:#555;padding:%?20?% 0;text-align:left}.Popup .bottom[data-v-6cfa5c77]{width:100%;height:%?80?%;margin-top:%?50?%;display:inline-flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-around;align-items:center}.Popup .bottom .item[data-v-6cfa5c77]{width:%?200?%;height:%?80?%;line-height:%?80?%;background-color:#eee;text-align:center;font-size:%?26?%;color:#666}.Popup .bottom .item .text[data-v-6cfa5c77]{font-size:%?26?%;color:#666}.Popup .bottom .item.on[data-v-6cfa5c77]{width:%?500?%}.Popup .bottom .item.grant[data-v-6cfa5c77]{font-weight:700;background-color:#e93323;\n /* background-color: var(--view-theme); */border-radius:0;padding:0}.Popup .bottom .item.grant .text[data-v-6cfa5c77]{font-size:%?28?%;color:#fff}.flex[data-v-6cfa5c77]{display:flex;flex-direction:row}.mask[data-v-6cfa5c77]{position:fixed;top:0;right:0;left:0;bottom:0;background-color:rgba(0,0,0,.65);z-index:99}.popup_box[data-v-6cfa5c77]{width:100%;background-color:#fff;border-radius:%?35?%;display:flex;flex-direction:column}.popup_box .h1[data-v-6cfa5c77]{width:100%;position:fixed;top:0;background:#fff;font-size:%?36?%;height:%?100?%;line-height:%?100?%;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:0 %?28?%;box-sizing:border-box}.popup_box .h1 uni-icon[data-v-6cfa5c77]{font-size:%?32?%;color:#c9c9c9}.popup_box .info[data-v-6cfa5c77]{width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column}.popup_box .info .userAvatar[data-v-6cfa5c77]{width:%?130?%;height:%?130?%;border-radius:100%;overflow:hidden;padding:0;margin-top:45px;background-color:#fff;border:%?2?% solid #ccc}.popup_box .info .userAvatar .avatar[data-v-6cfa5c77]{display:block;width:%?130?%;height:%?130?%}.popup_box .info .row[data-v-6cfa5c77]{border-bottom:1px solid #ccc;display:flex;align-items:center;height:%?80?%;padding-left:%?20?%}.popup_box .info .row.text1[data-v-6cfa5c77]{flex:2}.popup_box .info .row.weui-input[data-v-6cfa5c77]{flex:6}.popup_box .btn[data-v-6cfa5c77]{position:fixed;bottom:0;width:100%;background:#fff;align-items:center;justify-content:center;display:flex;padding-top:%?20?%;padding-bottom:%?20?%}.popup_box .btn .button[data-v-6cfa5c77]{width:90%;height:%?84?%;border-radius:%?64?%;background:#f15353;color:#fff;font-size:%?36?%;border:none;text-align:center;line-height:%?84?%}',""]),t.exports=e},"737f":function(t,e,o){"use strict";o("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)}))},o("d3b7"),o("99af")},a723:function(t,e,o){"use strict";o.r(e);var n=o("6b60"),i=o("6ac5");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("b44a"),o("d56f");var r=o("f0c5"),u=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"0d057f1d",null,!1,n["a"],void 0);e["default"]=u.exports},a83b:function(t,e,o){var n=o("24fb");e=n(!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-0d057f1d]{padding-left:%?30?%}.searchGood .search[data-v-0d057f1d]{margin-top:%?20?%}.searchGood .search .input[data-v-0d057f1d]{width:%?598?%;background-color:#f7f7f7;border-radius:%?33?%;padding:0 %?35?%;box-sizing:border-box;height:%?66?%}.searchGood .search .input uni-input[data-v-0d057f1d]{width:%?472?%;font-size:%?28?%}.searchGood .search .input .placeholder[data-v-0d057f1d]{color:#bbb}.searchGood .search .input .iconfont[data-v-0d057f1d]{color:#000;font-size:%?35?%}.searchGood .search .bnt[data-v-0d057f1d]{width:%?120?%;text-align:center;height:%?66?%;line-height:%?66?%;font-size:%?30?%;color:#282828}.searchGood .title[data-v-0d057f1d]{position:relative;font-size:%?28?%;color:#282828;margin:%?50?% %?30?% %?25?% %?30?%}.searchGood .title .icon-shanchu[data-v-0d057f1d]{position:absolute;right:0;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);color:#999}.searchGood .list[data-v-0d057f1d]{padding:0 %?10?%;overflow:hidden}.searchGood .list .item[data-v-0d057f1d]{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-0d057f1d]{border-bottom:%?1?% solid #eee;margin:%?20?% %?30?% 0 %?30?%}.more-btn[data-v-0d057f1d]{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-0d057f1d]{font-size:%?22?%;margin-left:%?10?%}',""]),t.exports=e},aef0:function(t,e,o){"use strict";o.r(e);var n=o("cf78"),i=o.n(n);for(var a in n)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return n[t]}))}(a);e["default"]=i.a},b44a:function(t,e,o){"use strict";var n=o("3fcb"),i=o.n(n);i.a},cf78:function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(o("5530")),a=n(o("956a")),r=o("f063"),u=o("93f6"),s=o("26cb"),c=n(o("d2b7")),d=o("8f46"),l=o("79a6"),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,canGetPrivacySetting:!1,avatar:"",nickname:""}},computed:(0,i.default)((0,i.default)({},(0,s.mapGetters)(["isLogin","userInfo","viewColor"])),(0,d.configMap)(["routine_logo","first_avatar_switch","wechat_phone_switch"])),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:{onclose:function(){this.canGetPrivacySetting=!1},onAgree:function(){var t=this;t.canUseGetUserProfile=!1,c.default.getUserProfile().then((function(e){var o=e.userInfo;o.code=t.code,o.spread=f.globalData.spid,o.spread_code=f.globalData.code,o.new_nickname=t.nickname,o.new_avatar=t.avatar,(0,r.commonAuth)({auth:{type:"routine",auth:o}}).then((function(e){if(200!=e.data.status)return uni.setStorageSync("auth_token",e.data.result.key),uni.navigateTo({url:"/pages/users/login/index"});var o=e.data.result.expires_time-a.default.time();t.$store.commit("UPDATE_USERINFO",e.data.result.user),t.$store.commit("LOGIN",{token:e.data.result.token,time:o}),t.$store.commit("SETUID",e.data.result.user.uid),a.default.set(u.EXPIRES_TIME,e.data.result.expires_time,o),a.default.set(u.USER_INFO,e.data.result.user,o),t.$emit("onLoadFun",e.data.result.user),e.data.result.user.isNew&&t.mp_is_new&&1==t.first_avatar_switch&&1==t.wechat_phone_switch&&(t.editModal=!0)})).catch((function(t){uni.hideLoading(),uni.showToast({title:t.message,icon:"none",duration:2e3})}))})).catch((function(t){uni.hideLoading()}))},setAuthStatus:function(){},getCode:function(t){t&&(this.code=1)},toWecahtAuth:function(){(0,l.toLogin)(!0)},getUserProfile:function(){var t=this;wx.getPrivacySetting?wx.getPrivacySetting({success:function(e){e.needAuthorization?(t.canGetPrivacySetting=!0,t.$nextTick((function(){t.$refs.privacyAgreement.showPoupon(e.privacyContractName)}))):t.onAgree()},fail:function(t){},complete:function(){}}):this.onAgree()},close:function(){var t=getCurrentPages();t[t.length-1];this.$emit("authColse",!1),this.canGetPrivacySetting=!1},onChooseAvatar:function(t){var e=this,o=t.detail.avatarUrl;this.$util.uploadImgs("upload/image",o,(function(t){e.avatar=t.data.path}),(function(t){}))},changeNickname:function(t){this.nickname=t.detail.value||t.target.value}}};e.default=h},d3e4:function(t,e,o){"use strict";var n=o("ddbf"),i=o.n(n);i.a},d56f:function(t,e,o){"use strict";var n=o("5aa3"),i=o.n(n);i.a},da5d:function(t,e,o){var n=o("24fb");e=n(!1),e.push([t.i,"uni-page-body[data-v-0d057f1d]{background-color:#fff}body.?%PAGE?%[data-v-0d057f1d]{background-color:#fff}",""]),t.exports=e},dda2:function(t,e,o){"use strict";o.d(e,"b",(function(){return n})),o.d(e,"c",(function(){return i})),o.d(e,"a",(function(){}));var n=function(){var t=this,e=t.$createElement,o=t._self._c||e;return o("v-uni-view",[t.isShowAuth&&t.code?o("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?o("v-uni-view",{staticClass:"Popup",class:{privacyPoupon:t.canGetPrivacySetting},style:"top:"+t.top+"px;"},[o("v-uni-view",{staticClass:"logo-auth"},[o("v-uni-image",{staticClass:"image",attrs:{src:t.routine_logo,mode:"aspectFit"}})],1),[t.isWeixin?o("v-uni-view",{staticClass:"title"},[t._v("授权提醒")]):o("v-uni-view",{staticClass:"title"},[t._v(t._s(t.title))])],[t.isWeixin?o("v-uni-view",{staticClass:"tip"},[t._v("请授权用户信息,以便为您提供更好的服务!")]):o("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.info))]),o("v-uni-view",{staticClass:"tip"},[t._v(t._s(t.info))])],o("v-uni-view",{staticClass:"bottom flex"},[o("v-uni-view",{staticClass:"item",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.close.apply(void 0,arguments)}}},[t._v("随便逛逛")]),o("v-uni-button",{staticClass:"item grant",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toWecahtAuth.apply(void 0,arguments)}}},[t.isWeixin?o("v-uni-view",{staticClass:"text"},[t._v("去授权")]):o("v-uni-view",{staticClass:"text"},[t._v("去登录")])],1)],1)],2):t._e()],1)},i=[]},ddbf:function(t,e,o){var n=o("71b4");n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var i=o("4f06").default;i("f7f3db9a",n,!0,{sourceMap:!1,shadowMode:!1})},e64a:function(t,e,o){"use strict";o("7a82");var n=o("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,o("ac1f"),o("00b4"),o("d3b7"),o("159b"),o("3c65");var i=o("23ce"),a=n(o("25b4")),r=o("8f46"),u=o("737f"),s=o("2e54"),c=o("26cb"),d=n(o("fecf")),l=n(o("25b4")),f={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||"",t.spread&&(0,l.default)(t.spread,this.isLogin)},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(o){}}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 o=this;this.focus=!1,e?this.$set(this,"searchValue",t.keyword):this.$set(this,"searchValue",t),this.$nextTick((function(){o.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 o=e.data;(0,a.default)(e.data.user.uid,t.isLogin),t.isLogin&&(0,r.silenceBindingSpread)(),(0,u.goShopDetail)(o,t.uid).then((function(e){t.isLogin?(0,s.initiateAssistApi)(o.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(o,n){o==t.searchValue&&(e=!0)})),!e&&this.searchValue&&this.tempStorage.unshift(this.searchValue);try{uni.setStorageSync("historyList",this.tempStorage)}catch(o){}uni.navigateTo({url:"/pages/columnGoods/goods_search_con/index?searchValue="+this.searchValue})}}}};e.default=f},fecf:function(t,e,o){"use strict";o.r(e);var n=o("dda2"),i=o("aef0");for(var a in i)["default"].indexOf(a)<0&&function(t){o.d(e,t,(function(){return i[t]}))}(a);o("d3e4");var r=o("f0c5"),u=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"6cfa5c77",null,!1,n["a"],void 0);e["default"]=u.exports}}]);