|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-detail-index"],{"1de5":function(t,e,n){"use strict";t.exports=function(t,e){return e||(e={}),t=t&&t.__esModule?t.default:t,"string"!==typeof t?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},"2ef7":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG8AAAATCAMAAACp+6PoAAAAWlBMVEUAAABmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZmZJqDNWAAAAHXRSTlMAqhzp38+/0svGs5aGgG1gTUc5IwbukHJxPzIvCgAGtv4AAACUSURBVEjHtcpHDgMxDARBJWtzXmfz/9/0SIBBGToPL2QXaH7jht3o8LkR0eDzLiIPTTp3sKsmmw9JsyhQ2W1dtrAehs3vsQ+i4+Nto7LUg08e24pafNK4xssHn0y2/5QfqdxXRObCHJLNrrAXms3PwmY0m+fCLJrNNoWf2rQaNJsD7vE0ZvE40Gxe4+DycU7xjsXkLziLaFJfyLhOAAAAAElFTkSuQmCC"},"34ad":function(t,e,n){"use strict";n.r(e);var a=n("c8cf"),o=n("8385");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("5672");var r=n("f0c5"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"4ea3405b",null,!1,a["a"],void 0);e["default"]=s.exports},5672:function(t,e,n){"use strict";var a=n("903f"),o=n.n(a);o.a},"736f":function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.arrivalNoticeApi=function(t){return i.default.post("store/product/increase_take",t)},e.bagExplain=function(){return i.default.get("store/product/bag/explain")},e.bagRecommend=function(){return i.default.get("product/spu/bag/recommend")},e.collectAdd=function(t){return i.default.post("user/relation/create",t)},e.collectAll=function(t){return i.default.post("user/relation/batch/create",t)},e.collectDel=function(t){return i.default.post("user/relation/delete",t)},e.copyPasswordApi=function(t){return i.default.get("product/spu/copy",t,{noAuth:!0})},e.copyPasswordSearch=function(t){return i.default.get("command/copy",t,{noAuth:!0})},e.create=function(t){return i.default.post("intention/create",t)},e.discountsCartAdd=function(t){return i.default.post("user/cart/batchCreate",t)},e.express=function(t){return i.default.post("ordero/express/"+t,{noAuth:!0})},e.followStore=function(t){return i.default.post("user/relation/create",{type:10,type_id:t})},e.getApplicationRecordList=function(t){return i.default.get("intention/lst",t)},e.getBrandlist=function(t){return i.default.get("store/product/brand/lst",t,{noAuth:!0})},e.getBroadcastListApi=function(t){return i.default.get("broadcast/lst",t,{noAuth:!0})},e.getCaptcha=function(){return i.default.get("captcha")},e.getCategoryList=function(){return i.default.get("store/product/category/lst",{},{noAuth:!0})},e.getCollectUserList=function(t){return i.default.get("user/relation/product/lst",t)},e.getCouponProductlist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,o.default)({},t),t.brand_id=t.brand_id.toString());return i.default.get("product/spu/coupon_product",t,{noAuth:!0})},e.getDiscountsLst=function(t){return i.default.get("discounts/lst",t,{noAuth:!0})},e.getGeocoder=function(t){return i.default.get("lbs/geocoder?location=".concat(t.lat,",").concat(t.long),{},{noAuth:!0})},e.getGoodsDetails=function(t){return i.default.get("intention/detail/"+t,{})},e.getGroomList=function(t,e){return i.default.get("product/spu/hot/"+t,e,{noAuth:!0})},e.getHotBanner=function(t){return i.default.get("common/hot_banner/"+t,{},{noAuth:!0})},e.getHotRanking=function(){return i.default.get("product/spu/hot_top",{},{noAuth:!0})},e.getLiveList=function(t){return i.default.get("broadcast/hot",t,{noAuth:!0})},e.getMerProductHot=function(t,e){return i.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 i.default.get("user/relation/merchant/lst",t,{noAuth:!0})},e.getParmasList=function(t){return i.default.get("product/spu/params",t,{noAuth:!0})},e.getParmasValue=function(t){return i.default.get("product/spu/params_value/".concat(t),{},{noAuth:!0})},e.getPresellProductDetail=function(t){return i.default.get("store/product/presell/detail/"+t,{},{noAuth:!0})},e.getPreviewProDetail=function(t){return i.default.get("store/product/preview",t,{noAuth:!0})},e.getProductCode=function(t,e){return i.default.get("store/product/qrcode/"+t,e)},e.getProductDetail=function(t){return i.default.get("store/product/detail/"+t,{},{noAuth:!0})},e.getProductHot=function(t,e){return i.default.get("product/spu/recommend",{page:void 0===t?1:t,limit:void 0===e?10:e},{noAuth:!0})},e.getProductParmas=function(t){return i.default.get("store/product/show/"+t,{},{noAuth:!0})},e.getProductslist=function(t){t.brand_id&&Array.isArray(t.brand_id)&&(t=(0,o.default)({},t),t.brand_id=t.brand_id.toString());return i.default.get("product/spu/lst",t,{noAuth:!0})},e.getReplyConfig=function(t){return i.default.get("reply/config/"+t)},e.getReplyList=function(t,e){return i.default.get("store/product/reply/lst/"+t,e,{noAuth:!0})},e.getSearchKeyword=function(){return i.default.get("common/hot_keyword",{},{noAuth:!0})},e.getSeckillProductDetail=function(t){return i.default.get("store/product/seckill/detail/"+t,{},{noAuth:!0})},e.getStoreCategory=function(t,e){return i.default.get("store/merchant/category/lst/"+t,e,{noAuth:!0})},e.getStoreCoupon=function(t){return i.default.get("coupon/store/"+t,{noAuth:!0})},e.getStoreDetail=function(t,e){return i.default.get("store/merchant/detail/"+t,e,{noAuth:!0})},e.getStoreGoods=function(t,e){return i.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.getStoreRecommend=function(t){return i.default.get("store/product/good_list/"+t,{},{noAuth:!0})},e.getStoreTypeApi=function(t){return i.default.get("intention/type",t,{noAuth:!0})},e.getTodayHotSearch=function(){return i.default.get("product/spu/hot_lst",{},{noAuth:!0})},e.merClassifly=function(){return i.default.get("intention/cate",{},{noAuth:!0})},e.merchantProduct=function(t,e){e.brand_id&&Array.isArray(e.brand_id)&&(e=(0,o.default)({},e),e.brand_id=e.brand_id.toString());return i.default.get("product/spu/merchant/"+t,e,{noAuth:!0})},e.merchantQrcode=function(t,e){return i.default.get("store/merchant/qrcode/"+t,e,{noAuth:!0})},e.postCartAdd=function(t){return i.default.post("user/cart/create",t)},e.priceRuleApi=function(t){return i.default.get("store/product/price_rule/".concat(t),{},{noAuth:!0})},e.productBag=function(t){return i.default.get("product/spu/bag",t,{noAuth:!0})},e.storeCategory=function(t){return i.default.get("store/product/category",t,{noAuth:!0})},e.storeCertificate=function(t){return i.default.post("store/certificate/".concat(t.merId),t)},e.storeMerchantList=function(t){return i.default.get("store/merchant/lst",t,{noAuth:!0})},e.storeServiceList=function(t,e){return i.default.get("product/spu/local/".concat(t),e,{noAuth:!0})},e.unfollowStore=function(t){return i.default.post("user/relation/delete",{type:10,type_id:t})},e.updateGoodsRecord=function(t,e){return i.default.post("intention/update/"+t,e)},e.userCollectDel=function(t){return i.default.post("user/relation/batch/delete",t)},e.verify=function(t){return i.default.post("auth/verify",t)},n("d401"),n("d3b7"),n("25f0"),n("99af");var o=a(n("5530")),i=a(n("3314"))},8385:function(t,e,n){"use strict";n.r(e);var a=n("f52d"),o=n.n(a);for(var i in a)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(i);e["default"]=o.a},"903f":function(t,e,n){var a=n("ca79");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("4f06").default;o("3e7842bd",a,!0,{sourceMap:!1,shadowMode:!1})},c8cf:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){}));var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{style:t.viewColor},[n("v-uni-view",{staticClass:"store-detail",style:{"background-image":"linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 40%),url("+t.store.mer_banner+")"}},[n("v-uni-view",{staticClass:"section head"},[n("v-uni-image",{attrs:{src:t.store.mer_avatar}}),n("v-uni-view",{staticClass:"text-wrap"},[n("v-uni-view",{staticClass:"name line1"},[n("v-uni-text",{staticClass:"name_store"},[t._v(t._s(t.store.mer_name))]),1==t.margin_ico_switch&&t.margin_ico&&10==t.store.is_margin?n("v-uni-image",{staticClass:"store-margin",attrs:{src:t.margin_ico}}):t._e(),t.store.type_name?n("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v(t._s(t.store.type_name))]):t.store.is_trader?n("v-uni-text",{staticClass:"font-bg-red ml8"},[t._v("自营")]):t._e()],1),n("v-uni-view",{staticClass:"fans"},[t._v(t._s(t.store.care_count<1e4?t.store.care_count:(t.store.care_count/1e4).toFixed(2)+"万")+"人关注")])],1),n("v-uni-button",{class:{followed:t.store.care},attrs:{"hover-class":"none"},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.followToggle.apply(void 0,arguments)}}},[n("v-uni-text",{directives:[{name:"show",rawName:"v-show",value:!t.store.care,expression:"!store.care"}],staticClass:"iconfont icon-guanzhu"}),t._v(t._s(t.store.care?"已关注":"关注"))],1)],1),n("v-uni-view",{staticClass:"section wrap"},[n("v-uni-view",{staticClass:"name"},[t._v("店铺评级")]),n("v-uni-view",{staticClass:"score-wrap"},[n("v-uni-view",{staticClass:"star",class:"star"+t.keyColor},[n("v-uni-view",{style:{width:t.star.toFixed(2)+"%",backgroundImage:"url("+t.domain+"/static/diy/score1"+t.keyColor+".png)"}})],1),n("v-uni-view",[t._v(t._s(t.score.toFixed(1)))])],1)],1),n("v-uni-view",{staticClass:"section wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.popupShow=!0}}},[n("v-uni-view",{staticClass:"name"},[t._v("店铺二维码")]),n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont icon-erweima1"})],1)],1),t.store.isset_certificate?n("v-uni-navigator",{staticClass:"section wrap",attrs:{url:"/pages/store/qualifications/index?mer_id="+t.store.mer_id+"&uid="+this.uid+"&storeName="+t.store.mer_name}},[n("v-uni-view",{staticClass:"name"},[t._v("店铺资质信息")]),n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont"},[t._v("")])],1)],1):t._e(),1==t.store.services_type?n("v-uni-view",{staticClass:"section wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.call(1)}}},[n("v-uni-view",{staticClass:"name"},[t._v("联系客服")]),n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont icon-kefu1"})],1)],1):0==t.store.services_type?n("v-uni-view",{staticClass:"section wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.goChat.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"name"},[t._v("联系客服")]),n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont icon-kefu1"})],1)],1):n("v-uni-view",{staticClass:"section wrap",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.call(0)}}},[n("v-uni-view",{staticClass:"name"},[t._v("联系客服")]),n("v-uni-view",[n("v-uni-text",{staticClass:"iconfont icon-kefu1"})],1)],1),n("v-uni-view",{staticClass:"section info"},[n("v-uni-view",{staticClass:"item very"},[n("v-uni-view",{staticClass:"name"},[t._v("店铺简介")]),n("v-uni-view",{staticClass:"value"},[t._v(t._s(t.store.mer_info))])],1),n("v-uni-view",{staticClass:"item very"},[n("v-uni-view",{staticClass:"name"},[t._v("店铺地址")]),n("v-uni-view",{staticClass:"value"},[t._v(t._s(t.store.mer_address))]),t.store.lat&&t.store.long&&1==t.mer_location?n("v-uni-view",{staticClass:"iconfont icon-dingwei",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.showMaoLocation(t.store.lat,t.store.long)}}}):t._e()],1),t.store.service_phone?n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"name"},[t._v("联系电话")]),n("v-uni-view",{staticClass:"value"},[t._v(t._s(t.store.service_phone))])],1):t._e(),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"name"},[t._v("开店时间")]),n("v-uni-view",{staticClass:"value"},[t._v(t._s(t._f("dateFormat")(t.store.create_time)))])],1)],1),n("v-uni-view",{class:{mask:t.popupShow},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.popupShow=!1}}}),n("v-uni-view",{staticClass:"popup-qrcode",class:{"popup-active":t.popupShow}},[n("v-uni-view",{staticClass:"name"},[t._v(t._s(t.store.mer_name))]),n("v-uni-view",{staticClass:"info"},[t._v("保存二维码可分享店铺给好友哦~")]),n("v-uni-image",{attrs:{src:t.storeCode}})],1)],1)],1)},o=[]},ca79:function(t,e,n){var a=n("24fb"),o=n("1de5"),i=n("2ef7"),r=n("d775");e=a(!1);var s=o(i),u=o(r);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/* 文章场景相关 */.font-bg-red[data-v-4ea3405b]{display:flex;align-items:center;background:var(--view-theme);border-color:var(--view-theme);color:#fff;font-size:%?20?%;text-align:center;line-height:%?30?%;height:%?28?%;border-radius:%?5?%;margin-right:%?8?%}.font-bg-red.ml8[data-v-4ea3405b]{margin-left:%?8?%;margin-right:0}.store-detail[data-v-4ea3405b]{padding-top:%?80?%;padding-right:%?20?%;padding-left:%?20?%;background:0 0/%?750?% %?360?% no-repeat fixed}.store-detail .section[data-v-4ea3405b]{border-radius:%?10?%;margin-bottom:%?20?%;background-color:#fff}.store-detail .head[data-v-4ea3405b]{display:flex;align-items:center;padding:%?20?%}.store-detail .head uni-image[data-v-4ea3405b]{width:%?90?%;height:%?90?%;border-radius:%?6?%}.store-detail .head .text-wrap[data-v-4ea3405b]{flex:1;min-width:0;margin-right:%?20?%;margin-left:%?20?%;line-height:1}.store-detail .head .text-wrap .store-margin[data-v-4ea3405b]{width:%?28?%;height:%?30?%;margin-left:%?10?%}.store-detail .head .text-wrap .name[data-v-4ea3405b]{display:flex;align-items:center;font-weight:700;font-size:%?28?%;color:#282828}.store-detail .head .text-wrap .name .name_store[data-v-4ea3405b]{display:inline-block;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:140px}.store-detail .head .text-wrap .fans[data-v-4ea3405b]{margin-top:%?15?%;font-weight:500;font-size:%?22?%;color:#666}.store-detail .head uni-button[data-v-4ea3405b]{display:flex;justify-content:center;align-items:center;width:%?113?%;height:%?48?%;border-radius:%?24?%;background-image:linear-gradient(-90deg,var(--view-bntColor21),var(--view-bntColor22));font-weight:500;font-size:%?22?%;color:#fff}.store-detail .head uni-button .iconfont[data-v-4ea3405b]{margin-right:%?6?%;font-size:%?22?%}.store-detail .head .followed[data-v-4ea3405b]{border:1px solid #bfbfbf;background:none;color:#999}.store-detail .wrap[data-v-4ea3405b]{display:flex;align-items:center;padding:%?32?% %?20?%}.store-detail .wrap .name[data-v-4ea3405b]{flex:1;min-width:0;font-weight:400;font-size:%?28?%;color:#282828}.store-detail .wrap .score-wrap[data-v-4ea3405b]{display:flex;align-items:center;font-weight:500;font-size:%?28?%;color:var(--view-theme)}.store-detail .wrap .score-wrap .star[data-v-4ea3405b]{position:relative;width:%?111?%;height:%?19?%;margin-right:%?10?%;background:url('+s+") 0 0/100% 100% no-repeat;overflow:hidden}.store-detail .wrap .score-wrap .star uni-view[data-v-4ea3405b]{position:absolute;top:0;left:0;height:100%;background:url("+u+") 0 0/%?111?% %?19?% no-repeat}.store-detail .wrap .iconfont[data-v-4ea3405b]{font-size:%?36?%}.store-detail .wrap .icon-pingfen[data-v-4ea3405b]{margin-right:%?6?%;font-size:%?23?%;color:#666}.store-detail .wrap .active[data-v-4ea3405b]{color:#e93323}.store-detail .info .item[data-v-4ea3405b]{display:flex;align-items:center;padding:%?30?% %?20?%;border:1px solid #f5f5f5;font-weight:400;font-size:%?28?%;line-height:%?30?%;color:#282828}.store-detail .info .item .name[data-v-4ea3405b]{margin-right:%?18?%}.store-detail .info .item .value[data-v-4ea3405b]{flex:1;min-width:0}.store-detail .info .very .name[data-v-4ea3405b]{align-self:flex-start}.store-detail .popup-qrcode[data-v-4ea3405b]{position:fixed;top:50%;left:50%;z-index:99;width:%?544?%;padding-top:%?48?%;padding-bottom:%?36?%;border-radius:%?24?%;background-color:#fff;-webkit-transform:translate(-50%,-50%) scale(0);transform:translate(-50%,-50%) scale(0);opacity:0;transition:.3s;line-height:1;text-align:center;color:#282828}.store-detail .popup-qrcode .name[data-v-4ea3405b]{max-width:90%;margin-right:auto;margin-left:auto;font-weight:700;font-size:%?32?%}.store-detail .popup-qrcode .info[data-v-4ea3405b]{margin-top:%?24?%;font-weight:500;font-size:%?24?%}.store-detail .popup-qrcode uni-image[data-v-4ea3405b]{width:%?384?%;height:%?384?%;margin-top:%?18?%}.store-detail .popup-active[data-v-4ea3405b]{-webkit-transform:translate(-50%,-50%) scale(1);transform:translate(-50%,-50%) scale(1);opacity:1}",""]),t.exports=e},d775:function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAG8AAAATCAMAAACp+6PoAAAAZlBMVEUAAADpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPpMyPKqB2aAAAAIXRSTlMA/Onfy7+oG9LPxrOrloaAbWBNRzkjHgTukHJxPzIvCgcVzGbCAAAAnUlEQVRIx73QRxLDIBQDUNzAce9OT/79LxnBTAaXtdBG6M1fof4x9aR8+JyLrKhQPInIAx2KC9gVHYhnsek9UHkZC2fJMCs2v5syEZ84u41UlnNwyePqRCkuiawPdPngksl6T+6QyuXxH9gceTOYbF7E54XN5ufGOmw2dxvT2Gyu7Ijb1FaOzeZEJGpWpfoYD2w2D1lt3OPbZncUk38iPXa8mx9k4gAAAABJRU5ErkJggg=="},f52d:function(t,e,n){"use strict";n("7a82");var a=n("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("acd8"),n("99af"),n("a9e3");var o=a(n("5530")),i=n("26cb"),r=n("3255"),s=n("736f"),u=n("f26a"),c=n("ddb3"),d=(getApp(),{computed:(0,o.default)({},(0,r.configMap)({margin_ico_switch:0,margin_ico:""},(0,i.mapGetters)(["isLogin","uid","viewColor","keyColor"]))),filters:{dateFormat:function(t){return t?t.split(" ")[0]:""}},data:function(){return{domain:u.HTTP_REQUEST_URL,id:0,store:{},score:0,star:0,popupShow:!1,storeCode:"",openSettingBtnHidden:!0,mer_location:""}},onLoad:function(t){var e=this;uni.getStorage({key:"GLOBAL_DATA",success:function(t){e.mer_location=t.data.mer_location}}),this.id=t.mer_id||t.id,this.getStore(),this.getStoreCode()},onReady:function(){},mounted:function(){},methods:{call:function(){var t=this;if(!t.store.service_phone)return t.$util.Tips({title:"暂无可用客服"});uni.showModal({title:"提示",content:"暂无在线客服,确定拨打客服电话:"+t.store.service_phone+"吗?",success:function(e){e.confirm&&uni.makePhoneCall({phoneNumber:t.store.service_phone})}})},getStore:function(){var t=this;(0,s.getStoreDetail)(this.id).then((function(e){var n=e.data;t.store=n,t.score=(parseFloat(n.postage_score)+parseFloat(n.product_score)+parseFloat(n.service_score))/3,t.star=t.score/5*100}))},goChat:function(){this.isLogin?uni.navigateTo({url:"/pages/chat/customer_list/chat?mer_id=".concat(this.store.mer_id,"&uid=").concat(this.uid)}):(0,c.toLogin)()},follow:function(){var t=this;(0,s.followStore)(this.id).then((function(e){200===e.status&&(t.store.care=!0),t.$util.Tips({title:e.message})}))},showMaoLocation:function(t,e){if(!t||!e)return this.$util.Tips({title:"请设置允许商城访问您的位置!"});!0===this.$wechat.isWeixin()?this.$wechat.seeLocation({latitude:Number(t),longitude:Number(e),name:this.store.mer_name,address:this.store.mer_address?this.store.mer_address:""}).then((function(t){})):uni.openLocation({latitude:parseFloat(t),longitude:parseFloat(e),scale:8,geocode:!0,name:this.store.mer_name,address:this.store.mer_address?this.store.mer_address:"",success:function(t){}})},unfollow:function(){var t=this;(0,s.unfollowStore)(this.id).then((function(e){200===e.status&&(t.store.care=!1),t.$util.Tips({title:e.message})}))},followToggle:function(){this.store.care?this.unfollow():this.follow()},getStoreCode:function(){var t=this;(0,s.merchantQrcode)(this.id,{}).then((function(e){t.storeCode=e.data.url})).catch((function(t){}))}}});e.default=d}}]); |