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.
huazhiyu/unpackage/dist/build/h5/static/js/pages-GoodsDetails-GoodsDet...

1 line
46 KiB

1 year ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-GoodsDetails-GoodsDetails"],{1007:function(t,i,e){"use strict";e.d(i,"b",(function(){return a})),e.d(i,"c",(function(){return n})),e.d(i,"a",(function(){}));var a=function(){var t=this,i=t.$createElement,e=t._self._c||i;return e("v-uni-view",{staticClass:"cu-modal bottom-modal",class:{show:t.isShow},on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.hide.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"cu-dialog"},[e("v-uni-view",{staticClass:"goods-data"},[e("v-uni-view",{staticClass:"thumb"},[e("v-uni-image",{attrs:{src:"/static/image/x.png",mode:"aspectFill"}})],1),e("v-uni-view",{staticClass:"item"},[e("v-uni-view",{staticClass:"title"},[e("v-uni-text")],1),e("v-uni-view",{staticClass:"price"},[e("v-uni-text",{staticClass:"min"},[t._v("¥")]),e("v-uni-text",{staticClass:"max"},[t._v("99")]),e("v-uni-text",{staticClass:"min"},[t._v(".00")])],1),e("v-uni-view",{staticClass:"inventory"},[e("v-uni-text",[t._v("库存:1")])],1)],1)],1),e("v-uni-view",{staticClass:"attr-size"},[e("v-uni-view",{staticClass:"attr-number",on:{click:function(i){i.stopPropagation(),arguments[0]=i=t.$handleEvent(i),t.onStop.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"tit"},[t._v("数量")]),e("v-uni-view",{staticClass:"number"},[e("v-uni-text",{staticClass:"iconfont icon-jian"}),e("v-uni-input",{attrs:{type:"tel",value:"1",maxlength:"8"}}),e("v-uni-text",{staticClass:"iconfont icon-jia"})],1)],1)],1),e("v-uni-view",{staticClass:"attr-btn"},[1===t.BuyType?e("v-uni-view",{staticClass:"add-cart",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onConfirm(t.BuyType)}}},[t._v("加入购物车")]):t._e(),1===t.BuyType?e("v-uni-view",{staticClass:"add-buy",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onConfirm(t.BuyType)}}},[t._v("立即购买")]):t._e(),2===t.BuyType||3===t.BuyType?e("v-uni-view",{staticClass:"confirm",on:{click:function(i){arguments[0]=i=t.$handleEvent(i),t.onConfirm(t.BuyType)}}},[t._v("确定")]):t._e()],1)],1)],1)},n=[]},1839:function(t,i,e){"use strict";e("7a82");var a=e("4ea4").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0,e("14d9"),e("ac1f");var n=a(e("7324")),o=a(e("a318")),s=a(e("a6f0")),c={components:{GoodsServe:n.default,GoodsCoupon:o.default,GoodsAttr:s.default},data:function(){return{TabShow:0,isMore:!1,AttentionShow:0,swiperList:[],web_content:'<div class="m-img"><img src="https://zhedplus.oss-cn-hangzhou.aliyuncs.com/content_img/20191118/1fb5ff162f25fd4c7383bd998ff2fde9.jpg"><div class="tools" hidden><i class="fa fa-arrow-up move-up"></i><i class="fa fa-arrow-down move-down"></i><em class="move-remove" hidden ><i class="fa fa-times" aria-hidden="true"></i> 移除</em><div class="cover"></div></div></div>',PageScrollTop:0,type:0}},onLoad:function(t){console.log(t),this.type=t.type||0,this.swiperList.push({id:0,type:"image",url:t.item})},onPageScroll:function(t){this.PageScrollTop=t.scrollTop},methods:{onBack:function(){uni.navigateBack()},onTab:function(t){var i=this;switch(this.TabShow=t,t){case 0:uni.pageScrollTo({scrollTop:0,duration:300});break;case 1:uni.createSelectorQuery().select(".evaluate-data").boundingClientRect((function(t){uni.pageScrollTo({scrollTop:i.PageScrollTop+t.top-50,duration:300})})).exec();break;case 2:uni.createSelectorQuery().select(".products-introduction").boundingClientRect((function(t){uni.pageScrollTo({scrollTop:i.PageScrollTop+t.top-50,duration:300})})).exec();break}},onToCart:function(){uni.switchTab({url:"/pages/cart/cart"})},onDepreciate:function(){uni.showToast({title:"降价通知提醒成功",icon:"success"})},onAttention:function(){0===this.AttentionShow?(this.AttentionShow=1,uni.showToast({title:"关注成功",icon:"none"})):(this.AttentionShow=0,uni.showToast({title:"取消成功",icon:"none"}))},onEvaluate:function(){uni.navigateTo({url:"/pages/GoodsEvaluateList/GoodsEvaluateList"})}}};i.default=c},3032:function(t,i,e){var a=e("dcbf");a.__esModule&&(a=a.default),"string"===typeof a&&(a=[[t.i,a,""]]),a.locals&&(t.exports=a.locals);var n=e(