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.
1 line
12 KiB
1 line
12 KiB
5 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["technician-pages-shop-detail"],{"0d73":function(n,t,e){"use strict";e("7a82");var i=e("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(e("c7eb")),o=i(e("1da1")),s=i(e("5530"));e("99af");var r=e("26cb"),u=i(e("a38d")),c=i(e("df52")),d=i(e("c7b4")),l={components:{parser:u.default,shopBanner:c.default},data:function(){return{isLoad:!1,options:{},shopInfo:{},isShare:!1}},computed:(0,r.mapState)({primaryColor:function(n){return n.config.configInfo.primaryColor},subColor:function(n){return n.config.configInfo.subColor},configInfo:function(n){return n.config.configInfo},userInfo:function(n){return n.user.userInfo},isGzhLogin:function(n){return n.user.isGzhLogin}}),onLoad:function(n){n.pid&&(this.isShare=!0),this.options=n,this.initIndex()},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onShareAppMessage:function(){var n=this.userInfo.id,t=void 0===n?0:n,e=this.shopInfo,i=e.id,a=e.name,o=e.cover,s="/technician/pages/shop/detail?id=".concat(i,"&pid=").concat(t);return{title:a,imageUrl:o,path:s}},methods:(0,s.default)((0,s.default)({},(0,r.mapActions)(["getConfigInfo","getUserInfo"])),{},{initRefresh:function(){this.initIndex(!0)},initIndex:function(){var n=arguments,t=this;return(0,o.default)((0,a.default)().mark((function e(){var i,o,s,r,u,c;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(i=n.length>0&&void 0!==n[0]&&n[0],o=t.options.pid,s=void 0===o?0:o,r=t.isGzhLogin,u=t.userInfo.id,c=void 0===u?0:u,s&&!c&&(r?setTimeout((function(){t.getUserInfo()}),1e3):t.getUserInfo()),t.configInfo.id&&!i){e.next=8;break}return e.next=8,t.getConfigInfo();case 8:return e.next=10,t.goodsInfoCall();case 10:if(!t.$jweixin.isWechat()){e.next=14;break}return e.next=13,t.$jweixin.initJssdk();case 13:setTimeout((function(){t.toAppShare()}),1200);case 14:case"end":return e.stop()}}),e)})))()},goodsInfoCall:function(){var n=this;return(0,o.default)((0,a.default)().mark((function t(){var e;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return n.$util.showLoading(),e=n.options.id,t.next=4,n.$api.technician.goodsInfo({id:e});case 4:n.shopInfo=t.sent,n.isLoad=!0,n.$util.hideAll();case 7:case"end":return t.stop()}}),t)})))()},swiperChange:function(n){},linkpress:function(n){},toAppShare:function(){var n=this,t=this.userInfo.id,e=void 0===t?0:t,i=this.shopInfo,a=i.id,o=i.name,s=i.cover,r=d.default.siteroot,u=r.split("/index.php")[0],c="".concat(u,"/h5/#/technician/pages/shop/detail?id=").concat(a,"&pid=").concat(e);this.$jweixin.wxReady((function(){n.$jweixin.showOptionMenu(),n.$jweixin.shareAppMessage(o,"",c,s),n.$jweixin.shareTimelineMessage(o,c,s)}))}})};t.default=l},2652:function(n,t,e){var i=e("24fb");t=i(!1),t.push([n.i,".home-return-btn[data-v-510f511d]{margin-top:%?10?%;margin-left:%?24?%;width:%?60?%;height:%?60?%;border:none;background-color:rgba(0,0,0,.3)}.video-box[data-v-510f511d]{position:relative;width:100%;height:%?500?%}.my-video[data-v-510f511d]{position:absolute;left:0;top:0;width:100%;height:80%;align-items:center;margin-top:%?120?%}.banner[data-v-510f511d]{position:relative}.banner-swiper[data-v-510f511d]{width:%?750?%;height:%?564?%}.banner-img[data-v-510f511d]{width:100%;height:100%}.banner-taglist[data-v-510f511d]{display:flex;align-items:center;justify-content:center;position:absolute;bottom:%?32?%;width:100%}.banner-tagitem[data-v-510f511d]{display:flex;align-items:center;justify-content:center;width:%?90?%;height:%?42?%;border-radius:%?21?%;background:hsla(0,0%,100%,.8);color:#2b2b2b;font-size:%?22?%;margin-left:%?32?%}.banner-tagitem[data-v-510f511d]:nth-child(1){margin-left:0}.banner-tagitem_count[data-v-510f511d]{background:rgba(0,0,0,.5);color:#fff;position:absolute;bottom:%?32?%;right:%?32?%;z-index:10}.banner-tagitem_active[data-v-510f511d]{background:#19c865;color:#fff}",""]),n.exports=t},"36be":function(n,t,e){"use strict";e.d(t,"b",(function(){return i})),e.d(t,"c",(function(){return a})),e.d(t,"a",(fun
|