-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpages-index-index~subpkg-goods_detail-goods_detail.b9288eb9.js
1 lines (1 loc) · 13.8 KB
/
pages-index-index~subpkg-goods_detail-goods_detail.b9288eb9.js
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-index~subpkg-goods_detail-goods_detail"],{"03ea":function(t,e,r){"use strict";r("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{length:{type:[String,Number],default:uni.$u.props.swiperIndicator.length},current:{type:[String,Number],default:uni.$u.props.swiperIndicator.current},indicatorActiveColor:{type:String,default:uni.$u.props.swiperIndicator.indicatorActiveColor},indicatorInactiveColor:{type:String,default:uni.$u.props.swiperIndicator.indicatorInactiveColor},indicatorMode:{type:String,default:uni.$u.props.swiperIndicator.indicatorMode}}};e.default=i},"29f0":function(t,e,r){"use strict";var i=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(r("03ea")),a={name:"u-swiper-indicator",mixins:[uni.$u.mpMixin,uni.$u.mixin,n.default],data:function(){return{lineWidth:22}},computed:{lineStyle:function(){var t={};return t.width=uni.$u.addUnit(this.lineWidth),t.transform="translateX(".concat(this.current*this.lineWidth,"px)"),t.backgroundColor=this.indicatorActiveColor,t},dotStyle:function(){var t=this;return function(e){var r={};return r.backgroundColor=e===t.current?t.indicatorActiveColor:t.indicatorInactiveColor,r}}}};e.default=a},"35c06":function(t,e,r){"use strict";var i=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.getProductByCategoryName=e.getProductByCategoryID=e.getCategory=e.getProductByGoodsID=void 0;var n=i(r("d0bb")),a=function(t){return(0,n.default)({url:"/goods/getProductByGoodsID",method:"POST",data:{id:t}})};e.getProductByGoodsID=a;var o=function(){return(0,n.default)({url:"/category/allCategory",method:"GET"})};e.getCategory=o;var u=function(t){return(0,n.default)({url:"/goods/getProductByCategoryID",method:"POST",data:{id:t}})};e.getProductByCategoryID=u;var s=function(t){return(0,n.default)({url:"/goods/getProductByCategoryName",method:"POST",data:{cateName:t}})};e.getProductByCategoryName=s},"41ba":function(t,e,r){var i=r("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-49a10f3c], uni-scroll-view[data-v-49a10f3c], uni-swiper-item[data-v-49a10f3c]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-swiper[data-v-49a10f3c]{display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative;overflow:hidden}.u-swiper__wrapper[data-v-49a10f3c]{flex:1}.u-swiper__wrapper__item[data-v-49a10f3c]{flex:1}.u-swiper__wrapper__item__wrapper[data-v-49a10f3c]{display:flex;flex-direction:row;position:relative;overflow:hidden;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s;flex:1}.u-swiper__wrapper__item__wrapper__image[data-v-49a10f3c]{flex:1}.u-swiper__wrapper__item__wrapper__video[data-v-49a10f3c]{flex:1}.u-swiper__wrapper__item__wrapper__title[data-v-49a10f3c]{position:absolute;background-color:rgba(0,0,0,.3);bottom:0;left:0;right:0;font-size:%?28?%;padding:%?12?% %?24?%;color:#fff;flex:1}.u-swiper__indicator[data-v-49a10f3c]{position:absolute;bottom:10px}',""]),t.exports=e},4275:function(t,e,r){"use strict";var i=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(r("8329")),a={name:"u-swiper",mixins:[uni.$u.mpMixin,uni.$u.mixin,n.default],data:function(){return{currentIndex:0}},watch:{current:function(t,e){t!==e&&(this.currentIndex=t)}},computed:{itemStyle:function(){var t=this;return function(e){var r={};return t.nextMargin&&t.previousMargin&&(r.borderRadius=uni.$u.addUnit(t.radius),e!==t.currentIndex&&(r.transform="scale(0.92)")),r}}},methods:{getSource:function(t){return"string"===typeof t?t:"object"===typeof t&&this.keyName?t[this.keyName]:(uni.$u.error("请按格式传递列表参数"),"")},change:function(t){var e=t.detail.current;this.pauseVideo(this.currentIndex),this.currentIndex=e,this.$emit("change",t.detail)},pauseVideo:function(t){var e=this.getSource(this.list[t]);if(uni.$u.test.video(e)){var r=uni.createVideoContext("video-".concat(t),this);r.pause()}},getPoster:function(t){return"object"===typeof t&&t.poster?t.poster:""},clickHandler:function(t){this.$emit("click",t)}}};e.default=a},"4f4c":function(t,e,r){var i=r("a93c");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("4f06").default;n("09012926",i,!0,{sourceMap:!1,shadowMode:!1})},7294:function(t,e,r){"use strict";var i;r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return i}));var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"u-swiper-indicator"},["line"===t.indicatorMode?r("v-uni-view",{staticClass:"u-swiper-indicator__wrapper",class:["u-swiper-indicator__wrapper--"+t.indicatorMode],style:{width:t.$u.addUnit(t.lineWidth*t.length),backgroundColor:t.indicatorInactiveColor}},[r("v-uni-view",{staticClass:"u-swiper-indicator__wrapper--line__bar",style:[t.lineStyle]})],1):t._e(),"dot"===t.indicatorMode?r("v-uni-view",{staticClass:"u-swiper-indicator__wrapper"},t._l(t.length,(function(e,i){return r("v-uni-view",{key:i,staticClass:"u-swiper-indicator__wrapper__dot",class:[i===t.current&&"u-swiper-indicator__wrapper__dot--active"],style:[t.dotStyle(i)]})})),1):t._e()],1)},a=[]},8329:function(t,e,r){"use strict";r("a9e3"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i={props:{list:{type:Array,default:uni.$u.props.swiper.list},indicator:{type:Boolean,default:uni.$u.props.swiper.indicator},indicatorActiveColor:{type:String,default:uni.$u.props.swiper.indicatorActiveColor},indicatorInactiveColor:{type:String,default:uni.$u.props.swiper.indicatorInactiveColor},indicatorStyle:{type:[String,Object],default:uni.$u.props.swiper.indicatorStyle},indicatorMode:{type:String,default:uni.$u.props.swiper.indicatorMode},autoplay:{type:Boolean,default:uni.$u.props.swiper.autoplay},current:{type:[String,Number],default:uni.$u.props.swiper.current},currentItemId:{type:String,default:uni.$u.props.swiper.currentItemId},interval:{type:[String,Number],default:uni.$u.props.swiper.interval},duration:{type:[String,Number],default:uni.$u.props.swiper.duration},circular:{type:Boolean,default:uni.$u.props.swiper.circular},previousMargin:{type:[String,Number],default:uni.$u.props.swiper.previousMargin},nextMargin:{type:[String,Number],default:uni.$u.props.swiper.nextMargin},acceleration:{type:Boolean,default:uni.$u.props.swiper.acceleration},displayMultipleItems:{type:Number,default:uni.$u.props.swiper.displayMultipleItems},easingFunction:{type:String,default:uni.$u.props.swiper.easingFunction},keyName:{type:String,default:uni.$u.props.swiper.keyName},imgMode:{type:String,default:uni.$u.props.swiper.imgMode},height:{type:[String,Number],default:uni.$u.props.swiper.height},bgColor:{type:String,default:uni.$u.props.swiper.bgColor},radius:{type:[String,Number],default:uni.$u.props.swiper.radius},loading:{type:Boolean,default:uni.$u.props.swiper.loading},showTitle:{type:Boolean,default:uni.$u.props.swiper.showTitle}}};e.default=i},8391:function(t,e,r){"use strict";r.d(e,"b",(function(){return n})),r.d(e,"c",(function(){return a})),r.d(e,"a",(function(){return i}));var i={uLoadingIcon:r("59d9").default,uSwiperIndicator:r("c54e").default},n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"u-swiper",style:{backgroundColor:t.bgColor,height:t.$u.addUnit(t.height),borderRadius:t.$u.addUnit(t.radius)}},[t.loading?r("v-uni-view",{staticClass:"u-swiper__loading"},[r("u-loading-icon",{attrs:{mode:"circle"}})],1):r("v-uni-swiper",{staticClass:"u-swiper__wrapper",style:{height:t.$u.addUnit(t.height)},attrs:{circular:t.circular,interval:t.interval,duration:t.duration,autoplay:t.autoplay,current:t.current,currentItemId:t.currentItemId,previousMargin:t.$u.addUnit(t.previousMargin),nextMargin:t.$u.addUnit(t.nextMargin),acceleration:t.acceleration,displayMultipleItems:t.displayMultipleItems,easingFunction:t.easingFunction},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.change.apply(void 0,arguments)}}},t._l(t.list,(function(e,i){return r("v-uni-swiper-item",{key:i,staticClass:"u-swiper__wrapper__item"},[r("v-uni-view",{staticClass:"u-swiper__wrapper__item__wrapper",style:[t.itemStyle(i)]},[t.$u.test.image(t.getSource(e))?r("v-uni-image",{staticClass:"u-swiper__wrapper__item__wrapper__image",style:{height:t.$u.addUnit(t.height),borderRadius:t.$u.addUnit(t.radius)},attrs:{src:t.getSource(e),mode:t.imgMode},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler(i)}}}):t._e(),t.$u.test.video(t.getSource(e))?r("v-uni-video",{staticClass:"u-swiper__wrapper__item__wrapper__video",style:{height:t.$u.addUnit(t.height)},attrs:{id:"video-"+i,"enable-progress-gesture":!1,src:t.getSource(e),poster:t.getPoster(e),title:t.showTitle&&t.$u.test.object(e)&&e.title?e.title:"",controls:!0},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.clickHandler(i)}}}):t._e(),t.showTitle&&t.$u.test.object(e)&&e.title&&t.$u.test.image(t.getSource(e))?r("v-uni-text",{staticClass:"u-swiper__wrapper__item__wrapper__title u-line-1"},[t._v(t._s(e.title))]):t._e()],1)],1)})),1),r("v-uni-view",{staticClass:"u-swiper__indicator",style:[t.$u.addStyle(t.indicatorStyle)]},[t._t("indicator",[t.loading||!t.indicator||t.showTitle?t._e():r("u-swiper-indicator",{attrs:{indicatorActiveColor:t.indicatorActiveColor,indicatorInactiveColor:t.indicatorInactiveColor,length:t.list.length,current:t.currentIndex,indicatorMode:t.indicatorMode}})])],2)],1)},a=[]},a93c:function(t,e,r){var i=r("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */uni-view[data-v-c032e4a2], uni-scroll-view[data-v-c032e4a2], uni-swiper-item[data-v-c032e4a2]{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-swiper-indicator__wrapper[data-v-c032e4a2]{display:flex;flex-direction:row}.u-swiper-indicator__wrapper--line[data-v-c032e4a2]{border-radius:100px;height:4px}.u-swiper-indicator__wrapper--line__bar[data-v-c032e4a2]{width:22px;height:4px;border-radius:100px;background-color:#fff;transition:-webkit-transform .3s;transition:transform .3s;transition:transform .3s,-webkit-transform .3s}.u-swiper-indicator__wrapper__dot[data-v-c032e4a2]{width:5px;height:5px;border-radius:100px;margin:0 4px}.u-swiper-indicator__wrapper__dot--active[data-v-c032e4a2]{width:12px}',""]),t.exports=e},b8f7:function(t,e,r){"use strict";r.r(e);var i=r("29f0"),n=r.n(i);for(var a in i)"default"!==a&&function(t){r.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a},bdb6:function(t,e,r){"use strict";var i=r("cbc3"),n=r.n(i);n.a},c54e:function(t,e,r){"use strict";r.r(e);var i=r("7294"),n=r("b8f7");for(var a in n)"default"!==a&&function(t){r.d(e,t,(function(){return n[t]}))}(a);r("d239");var o,u=r("f0c5"),s=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"c032e4a2",null,!1,i["a"],o);e["default"]=s.exports},cbc3:function(t,e,r){var i=r("41ba");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("4f06").default;n("fd713684",i,!0,{sourceMap:!1,shadowMode:!1})},d0bb:function(t,e,r){"use strict";function i(t){return new Promise((function(e,r){var i=localStorage.getItem("token");uni.request({url:t.url,method:t.method,data:t.data,header:{Authorization:"Bearer "+i},success:function(t){e(t)},fail:function(t){r(t)},complete:function(){}})}))}r("d3b7"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=i},d239:function(t,e,r){"use strict";var i=r("4f4c"),n=r.n(i);n.a},d748:function(t,e,r){"use strict";r.r(e);var i=r("8391"),n=r("fbb0");for(var a in n)"default"!==a&&function(t){r.d(e,t,(function(){return n[t]}))}(a);r("bdb6");var o,u=r("f0c5"),s=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"49a10f3c",null,!1,i["a"],o);e["default"]=s.exports},fbb0:function(t,e,r){"use strict";r.r(e);var i=r("4275"),n=r.n(i);for(var a in i)"default"!==a&&function(t){r.d(e,t,(function(){return i[t]}))}(a);e["default"]=n.a}}]);