pages-index-detail~pages-index-index.7271e0dd.js 14.5 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-index-detail~pages-index-index"],{"2f2e":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-48f2f481], uni-scroll-view[data-v-48f2f481], uni-swiper-item[data-v-48f2f481]{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-48f2f481]{display:flex;flex-direction:row;justify-content:center;align-items:center;position:relative;overflow:hidden}.u-swiper__wrapper[data-v-48f2f481]{flex:1}.u-swiper__wrapper__item[data-v-48f2f481]{flex:1}.u-swiper__wrapper__item__wrapper[data-v-48f2f481]{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-48f2f481]{flex:1}.u-swiper__wrapper__item__wrapper__video[data-v-48f2f481]{flex:1}.u-swiper__wrapper__item__wrapper__title[data-v-48f2f481]{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-48f2f481]{position:absolute;bottom:10px}',""]),t.exports=e},"327a":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},4267:function(t,e,r){"use strict";var i=r("a7f7"),n=r.n(i);n.a},"56ff":function(t,e,r){"use strict";var i=r("8ddc"),n=r.n(i);n.a},"5f87":function(t,e,r){"use strict";r.r(e);var i=r("9ca9"),n=r("e27e");for(var a in n)"default"!==a&&function(t){r.d(e,t,(function(){return n[t]}))}(a);r("56ff");var o,u=r("f0c5"),s=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"48f2f481",null,!1,i["a"],o);e["default"]=s.exports},"60f5":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},"62c8":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-7bf5e5a3], uni-scroll-view[data-v-7bf5e5a3], uni-swiper-item[data-v-7bf5e5a3]{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-7bf5e5a3]{display:flex;flex-direction:row}.u-swiper-indicator__wrapper--line[data-v-7bf5e5a3]{border-radius:100px;height:4px}.u-swiper-indicator__wrapper--line__bar[data-v-7bf5e5a3]{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-7bf5e5a3]{width:5px;height:5px;border-radius:100px;margin:0 4px}.u-swiper-indicator__wrapper__dot--active[data-v-7bf5e5a3]{width:12px}',""]),t.exports=e},"67db":function(t,e,r){"use strict";var i=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(r("60f5")),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:{getItemType:function(t){return"string"===typeof t?uni.$u.test.video(this.getSource(t))?"video":"image":"object"===typeof t&&this.keyName?t.type?"image"===t.type?"image":"video"===t.type?"video":"image":uni.$u.test.video(this.getSource(t))?"video":"image":void 0},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},"744f":function(t,e,r){"use strict";r.r(e);var i=r("a110"),n=r("83b2");for(var a in n)"default"!==a&&function(t){r.d(e,t,(function(){return n[t]}))}(a);r("4267");var o,u=r("f0c5"),s=Object(u["a"])(n["default"],i["b"],i["c"],!1,null,"7bf5e5a3",null,!1,i["a"],o);e["default"]=s.exports},"83b2":function(t,e,r){"use strict";r.r(e);var i=r("95b5"),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},"8ddc":function(t,e,r){var i=r("2f2e");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("4f06").default;n("6dd6b891",i,!0,{sourceMap:!1,shadowMode:!1})},"95b5":function(t,e,r){"use strict";var i=r("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(r("327a")),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(uni.$u.addUnit(this.current*this.lineWidth),")"),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},"9ca9":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("0d9a").default,uSwiperIndicator:r("744f").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)]},["image"===t.getItemType(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(),"video"===t.getItemType(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=[]},a110: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=[]},a7f7:function(t,e,r){var i=r("62c8");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=r("4f06").default;n("5fd7a3e4",i,!0,{sourceMap:!1,shadowMode:!1})},d089:function(t,e,r){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.upload=e.user_cert=e.product_report=e.last_buy_data=e.report_list=e.product_favorite=e.product_buy=e.product_detail=e.product_list=e.arcList=e.sortList=e.getBanner=void 0;var i=r("14ba"),n=function(){return(0,i.request)({url:"index/banner",method:"post",data:{}})};e.getBanner=n;var a=function(t){return(0,i.request)({url:"index/sort_index",method:"post",data:{type:t}})};e.sortList=a;var o=function(){return(0,i.request)({url:"index/arc_list",method:"post",data:{}})};e.arcList=o;var u=function(t){return(0,i.request)({url:"product/product_list",method:"post",data:t})};e.product_list=u;var s=function(t){return(0,i.request)({url:"product/product_detail",method:"post",data:{product_id:t}})};e.product_detail=s;var d=function(t){return(0,i.request)({url:"product/product_buy",method:"post",data:t})};e.product_buy=d;var p=function(t){return(0,i.request)({url:"product/product_favorite",method:"post",data:{product_id:t}})};e.product_favorite=p;var c=function(t){return(0,i.request)({url:"product/report_list",method:"post",data:t})};e.report_list=c;var l=function(t){return(0,i.request)({url:"product/last_buy_data",method:"post",data:t})};e.last_buy_data=l;var f=function(t){return(0,i.request)({url:"product/product_report",method:"post",data:t})};e.product_report=f;var _=function(t){return(0,i.request)({url:"user/user_cert",method:"post",data:t})};e.user_cert=_;var v=function(t){return(0,i.request)({url:"common/upload",method:"post",data:t})};e.upload=v},e27e:function(t,e,r){"use strict";r.r(e);var i=r("67db"),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}}]);