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

1 line
59 KiB
JavaScript
Raw Normal View History

2023-05-26 10:00:37 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-goods_details-index"],{"0f36":function(t,i,e){"use strict";(function(t){e("7a82");var o=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("99af"),e("ac1f"),e("fb6a"),e("14d9"),e("a434"),e("d81d"),e("d401"),e("d3b7"),e("25f0"),e("acd8"),e("c975"),e("5319");var a=o(e("6888")),n=(o(e("645c")),e("b907")),s=e("2110"),r=(e("bed0"),e("b68d")),c=e("1939"),d=e("2110"),u=e("26cb"),l=e("ee69"),p=o(e("d8e9")),f=o(e("bca5")),h=o(e("f89d")),v=o(e("0fc5")),g=o(e("cb9b")),m=o(e("b7f1")),w=(e("bec6"),o(e("1d6b"))),b=getApp(),y={components:{productConSwiper:p.default,couponListWindow:f.default,productWindow:h.default,userEvaluation:v.default,shareRedPackets:g.default,home:m.default,"jyf-parser":w.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,u.mapGetters)(["isLogin","uid","chatUrl"]),watch:{isLogin:{handler:function(t,i){1==t&&(this.getCouponList(),this.getCartCount())},deep:!0},productInfo:{handler:function(){this.$nextTick((function(){}))},immediate:!0}},onLoad:function(t){var i=this,e=getCurrentPages();if(i.returnShow=1!==e.length,e.length<=1&&(i.retunTop=!1),i.navH=b.globalData.navHeight,(0,d.computeUser)(),uni.getSystemInfo({success:function(t){i.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=i.$util.getUrlParams(decodeURIComponent(t.scene)),a=i.$util.formatMpQrCodeData(o);b.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?i.type="normal":i.type=t.type,i.$store.commit("PRODUCT_TYPE",i.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,i){}})},kefuClick:function(){location.href=this.chatUrl},closeChange:function(){this.$set(this.sharePacket,"isState",!0)},goActivity:function(t){var i=t;"1"===i.type?uni.navigateTo({url:"/pages/activity/goods_seckill_details/index?id=".concat(i.id)}):"2"===i.type?uni.navigateTo({url:"/pages/activity/goods_bargain_details/index?id=".concat(i.id,"&startBargainUid=").concat(this.uid)}):uni.navigateTo({url:"/pages/activity/goods_combination_details/index?id=".concat(i.id)})},iptCartNum:function(t){this.$set(this.attr.productSelect,"cart_num",t||1)},returns:function(){uni.navigateBack()},tap:function(t){var i="past"+t;t=t;this.$set(this,"toView",i),this.$set(this,"navActive",t),this.$set(this,"lock",!0),this.$set(this,"scrollTop",t>0?this.topArr[t]-b.globalData.navHeight/2:this.topArr[t])},scroll:function(t){var i=t.detail.scrollTop,e=i/200;if(e=e>1?1:e,this.$set(thi