cyywl_shop_app/dist/static/js/pages-goods_details-index.8...

1 line
59 KiB
JavaScript
Raw Permalink Normal View History

2023-06-21 12:00:02 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods_details-index"],{"0f36":function(t,e,i){"use strict";(function(t){i("7a82");var o=i("4ea4").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,i("99af"),i("ac1f"),i("fb6a"),i("14d9"),i("a434"),i("d81d"),i("d401"),i("d3b7"),i("25f0"),i("acd8"),i("c975"),i("5319");var a=o(i("6888")),n=(o(i("645c")),i("b907")),s=i("2110"),r=(i("bed0"),i("b68d")),c=i("1939"),u=i("2110"),d=i("26cb"),l=i("ee69"),p=o(i("d8e9")),f=o(i("bca5")),h=o(i("f89d")),v=o(i("0fc5")),g=o(i("cb9b")),b=o(i("b7f1")),m=(i("bec6"),o(i("1d6b"))),w=getApp(),y={components:{productConSwiper:p.default,couponListWindow:f.default,productWindow:h.default,userEvaluation:v.default,shareRedPackets:g.default,home:b.default,"jyf-parser":m.default},data:function(){return{coupon:{coupon:!1,type:1,list:[],count:[]},attrTxt:"请选择",attrValue:"",animated:!1,id:0,replyCount:0,reply:[],productInfo:{},productValue:[],couponList:[],cart_num:1,isAuto:!1,isShowAuth:!1,isOpen:!1,actionSheetHidden:!0,storeImage:"",PromotionCode:"",posterbackgd:"/static/images/posterbackgd.png",sharePacket:{isState:!0},circular:!1,autoplay:!1,interval:3e3,duration:500,clientHeight:"",systemStore:{},good_list:[],replyChance:0,CartCount:0,isDown:!0,posters:!1,weixinStatus:!1,attr:{cartAttr:!1,productAttr:[],productSelect:{}},description:"",navActive:0,H5ShareBox:!1,activityH5:[],retunTop:!0,navH:"",navList:[],opacity:0,scrollY:0,topArr:[],toView:"",height:0,heightArr:[],lock:!1,scrollTop:0,tagStyle:{img:"width:100%;display:block;",table:"width:100%",video:"width:100%"},sliderImage:[],qrcodeSize:600,canvasStatus:!1,imagePath:"",imgTop:"",errT:"",homeTop:20,navbarRight:0,userCollect:!1,returnShow:!0,type:""}},computed:(0,d.mapGetters)(["isLogin","uid","chatUrl"]),watch:{isLogin:{handler:function(t,e){1==t&&(this.getCouponList(),this.getCartCount())},deep:!0},productInfo:{handler:function(){this.$nextTick((function(){}))},immediate:!0}},onLoad:function(t){var e=this,i=getCurrentPages();if(e.returnShow=1!==i.length,i.length<=1&&(e.retunTop=!1),e.navH=w.globalData.navHeight,(0,u.computeUser)(),uni.getSystemInfo({success:function(t){e.height=t.windowHeight}}),!t.scene&&!t.id)return this.showSkeleton=!1,void this.$util.Tips({title:"缺少参数无法查看商品"},{url:"/pages/index/index"});if(t.hasOwnProperty("id")||t.scene){if(t.scene){var o=e.$util.getUrlParams(decodeURIComponent(t.scene)),a=e.$util.formatMpQrCodeData(o);w.globalData.spread=a.spread,this.id=a.id,setTimeout((function(){(0,s.spread)(a.spread).then((function(t){})).catch((function(t){}))}),2e3)}else this.id=t.id;void 0==t.type||null==t.type?e.type="normal":e.type=t.type,e.$store.commit("PRODUCT_TYPE",e.type)}this.getGoodsDetails(),this.getCouponList(),this.getProductReplyList(),this.getProductReplyCount(),this.getGoods()},onReady:function(){this.$nextTick((function(){}))},show:function(){},methods:{getChat:function(t){window.yzf&&window.yzf.init({sign:"37ef9b97872756ce2a1596ec4fe9b66b0b4cbeec7b36239a65924fa6cbd5c29ac6b013c274511b2eee929e72312baeeeb97aae86",token:"",userAvator:"",userNick:"",uid:t,title:"",isRMB:"",data:{c1:"",c2:"",c3:"",c4:"",c5:""},selector:"chat-btn",callback:function(t,e){}})},kefuClick:function(){location.href=this.chatUrl},closeChange:function(){this.$set(this.sharePacket,"isState",!0)},goActivity:function(t){var e=t;"1"===e.type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(e.id)}):"2"===e.type?uni.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(e.id,"&startBargainUid=").concat(this.uid)}):uni.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(e.id)})},iptCartNum:function(t){this.$set(this.attr.productSelect,"cart_num",t||1)},returns:function(){uni.navigateBack()},tap:function(t){var e="past"+t;t=t;this.$set(this,"toView",e),this.$set(this,"navActive",t),this.$set(this,"lock",!0),this.$set(this,"scrollTop",t>0?this.topArr[t]-w.globalData.navHeight/2:this.topArr[t])},scroll:function(t){var e=t.detail.scrollTop,i=e/200;if(i=i>1?1:i,this.$set(thi