zx/public/static/js/pages-store-detail-index.d2...

1 line
20 KiB
JavaScript
Raw Normal View History

2024-07-02 15:32:59 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-store-detail-index"],{"0d9e":function(t,e,n){var a=n("7f7c");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var o=n("967d").default;o("1d697fd0",a,!0,{sourceMap:!1,shadowMode:!1})},"16b0":function(t,e,n){"use strict";var a=n("0d9e"),o=n.n(a);o.a},"2eb6":function(t,e,n){"use strict";n("6a54");var a=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("e838"),n("c223"),n("64aa");var o=a(n("9b1b")),i=n("8f59"),r=n("96e0"),s=n("7e00"),u=n("aa10"),c=n("e44d"),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},"2ec5":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)}},"35f6":function(t,e,n){"use strict";n.r(e);var a=n("3b68"),o=n("b66e");for(var i in o)["default"].indexOf(i)<0&&function(t){n.d(e,t,(function(){return o[t]}))}(i);n("16b0");var r=n("828b"),s=Object(r["a"])(o["default"],a["b"],a["c"],!1,null,"4ea3405b",null,!1,a["a"],void 0);e["default"]=s.exports},"3b68":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