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
38 KiB
1 line
38 KiB
5 months ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["dynamic-pages-detail"],{"08b7":function(t,i,e){"use strict";var a=e("2c10"),n=e.n(a);n.a},1622:function(t,i,e){"use strict";e.r(i);var a=e("72f2"),n=e.n(a);for(var o in a)["default"].indexOf(o)<0&&function(t){e.d(i,t,(function(){return a[t]}))}(o);i["default"]=n.a},"2c10":function(t,i,e){var a=e("a5f9");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e("4f06").default;n("7ef7a1b6",a,!0,{sourceMap:!1,shadowMode:!1})},"72f2":function(t,i,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("99af"),e("ac1f"),e("d81d"),e("a434"),e("14d9"),e("caad"),e("c740"),e("2532");var n=a(e("5530")),o=a(e("c7eb")),s=a(e("1da1")),c=e("26cb"),l=a(e("c7b4")),r={data:function(){return{iconType:{1:"icon-kefuwu",2:"iconjishifuwu",3:"iconkeyuyue",4:"iconkeyuyue"},textType:{1:"可服务",2:"服务中",3:"可预约",4:"不可预约"},options:{},detail:{},videoNavHeight:"15px",showText:!1,loading:!0,param:{page:1},list:{data:[]},serviceList:[],videoContexts:null,isPlay:!1,scrollTop:0,pageScrollTop:0,showComment:!1,inputFocus:!1,subForm:{text:""},rule:[{name:"text",checkType:"isNotNull",errorMsg:"请输入评论内容",regType:2}],popupInfo:{},lockTap:!1}},computed:(0,c.mapState)({primaryColor:function(t){return t.config.configInfo.primaryColor},subColor:function(t){return t.config.configInfo.subColor},configInfo:function(t){return t.config.configInfo},userInfo:function(t){return t.user.userInfo},location:function(t){return t.user.location},isGzhLogin:function(t){return t.user.isGzhLogin},carList:function(t){return t.order.carList}}),onLoad:function(t){var i=this;return(0,s.default)((0,o.default)().mark((function e(){return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return i.$util.showLoading(),i.options=t,i.param.dynamic_id=t.id,i.$util.showLoading(),e.next=6,i.initIndex();case 6:case"end":return e.stop()}}),e)})))()},onUnload:function(){console.log("====onUnload"),this.isPlay&&this.videoContexts.pause()},onPageScroll:function(t){var i=t.scrollTop;this.pageScrollTop=i},onPullDownRefresh:function(){uni.showNavigationBarLoading(),this.initRefresh(),uni.stopPullDownRefresh()},onReachBottom:function(){this.list.current_page>=this.list.last_page||this.loading||(this.param.page=this.param.page+1,this.loading=!0,this.getList())},onShareAppMessage:function(t){var i=this.userInfo.id,e=void 0===i?0:i,a=this.detail,n=a.id,o=a.title,s=a.cover,c="/dynamic/pages/detail?pid=".concat(e,"&id=").concat(n);return this.$util.log(c),{title:o,imageUrl:s,path:c}},methods:(0,n.default)((0,n.default)((0,n.default)({},(0,c.mapActions)(["getConfigInfo","getUserInfo","getCarList","getServiceCoachList"])),(0,c.mapMutations)(["updateUserItem"])),{},{initIndex:function(){var t=arguments,i=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n,s,c;return(0,o.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=t.length>0&&void 0!==t[0]&&t[0],i.configInfo.id&&!a){e.next=4;break}return e.next=4,i.getConfigInfo();case 4:if(n=i.userInfo.id,s=void 0===n?0:n,c=i.isGzhLogin,c&&!s?setTimeout((function(){i.getDetail(a)}),1e3):i.getDetail(a),i.configInfo.navBarHeight,i.detail.type,a||!i.$jweixin.isWechat()){e.next=13;break}return e.next=12,i.$jweixin.initJssdk();case 12:setTimeout((function(){i.toAppShare()}),1200);case 13:i.$util.setNavigationBarColor({bg:i.primaryColor});case 14:case"end":return e.stop()}}),e)})))()},initRefresh:function(){this.param.page=1,this.initIndex(!0)},toAppShare:function(){var t=this,i=this.userInfo.id,e=void 0===i?0:i,a=this.detail,n=a.id,o=a.title,s=a.cover,c=l.default.siteroot,r=c.split("/index.php")[0],d="".concat(r,"/h5/#/dynamic/pages/detail?id=").concat(n,"&pid=").concat(e);this.$jweixin.wxReady((function(){t.$jweixin.showOptionMenu(),t.$jweixin.shareAppMessage(o,"",d,s),t.$jweixin.shareTimelineMessage(o,d,s)}))},getDetail:function(){var t=arguments,i=this;return(0,s.default)((0,o.default)().mark((function e(){var a,n,s
|