hengmei-two/unpackage/dist/dev/.sourcemap/mp-weixin/components/swiper-pu.js.map

1 line
12 KiB
Plaintext

{"version":3,"sources":["webpack:///D:/chenq/chen/hengmei/hengmei/components/swiper-pu.vue?1ee8","webpack:///D:/chenq/chen/hengmei/hengmei/components/swiper-pu.vue?2ef1","webpack:///D:/chenq/chen/hengmei/hengmei/components/swiper-pu.vue?0894","webpack:///D:/chenq/chen/hengmei/hengmei/components/swiper-pu.vue?6319","uni-app:///components/swiper-pu.vue","webpack:///D:/chenq/chen/hengmei/hengmei/components/swiper-pu.vue?f863","webpack:///D:/chenq/chen/hengmei/hengmei/components/swiper-pu.vue?95b2"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACqC;;;AAG7F;AACgL;AAChL,gBAAgB,uLAAU;AAC1B,EAAE,+EAAM;AACR,EAAE,gGAAM;AACR,EAAE,yGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oGAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAuqB,CAAgB,qqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoB3rB;AACA,mBADA;AAEA;AACA;AACA,mBADA;AAEA,oBAFA,EADA;;AAKA;AACA,mBADA;AAEA,mBAFA,EALA;;AASA;AACA,iBADA;AAEA;AACA;AACA,oFADA;AAEA,oFAFA;;AAIA,OAPA,EATA;;AAkBA;AACA,kBADA;AAEA,oBAFA,EAlBA;;AAsBA;AACA,kBADA;AAEA,mBAFA,EAtBA;;AA0BA;AACA,kBADA;AAEA,kBAFA,EA1BA;;AA8BA;AACA,mBADA;AAEA,oBAFA,EA9BA,EAFA;;;AAqCA,MArCA,kBAqCA;AACA;AACA,iBADA;AAEA,wBAFA;AAGA,qBAHA;AAIA,oBAJA;;AAMA,GA5CA;AA6CA,SA7CA,qBA6CA;AACA;AACA;AACA,KAFA;AAGA,GAjDA;AAkDA;AACA,aADA,qBACA,KADA,EACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,uBADA;AAEA,oDAFA;AAGA,iCAHA;;AAKA,WAPA,MAOA;AACA;AACA;AACA,uBADA;AAEA,2BAFA;AAGA,iCAHA;;AAKA;AACA;AACA,SAnBA;AAoBA;AACA,gCADA;AAEA,0BAFA;;AAIA,OA1BA,MA0BA;AACA;AACA,yCADA;;AAGA;AACA,KAnCA;AAoCA,gBApCA,wBAoCA,CApCA,EAoCA;AACA,uCADA,CACA;AACA,KAtCA;AAuCA,aAvCA,qBAuCA,KAvCA,EAuCA;AACA;AACA;AACA,mIADA;;AAGA,KA5CA,EAlDA,E;;;;;;;;;;;;;ACpBA;AAAA;AAAA;AAAA;AAA4+B,CAAgB,s8BAAG,EAAC,C;;;;;;;;;;;ACAhgC;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/swiper-pu.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./swiper-pu.vue?vue&type=template&id=3c2e1862&scoped=true&\"\nvar renderjs\nimport script from \"./swiper-pu.vue?vue&type=script&lang=js&\"\nexport * from \"./swiper-pu.vue?vue&type=script&lang=js&\"\nimport style0 from \"./swiper-pu.vue?vue&type=style&index=0&id=3c2e1862&scoped=true&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3c2e1862\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/swiper-pu.vue\"\nexport default component.exports","export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./swiper-pu.vue?vue&type=template&id=3c2e1862&scoped=true&\"","var components\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./swiper-pu.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./swiper-pu.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view>\r\n\t\t<view v-if=\"isDot\" class=\"banner-box\">\r\n\t\t\t<swiper :current=\"bcurrent\" @change=\"changeBanner\" :style=\"{height: newHeight+'px'}\" :autoplay=\"isplay\" :circular=\"true\" :interval=\"3000\" :duration=\"500\">\r\n\t\t\t\t<swiper-item v-for=\"(item,index) in bannerList\" :key=\"index\">\r\n\t\t\t\t\t<view @tap=\"chooseImg(index)\" class=\"posir\">\r\n\t\t\t\t\t\t<image lazy-load :style=\"{borderRadius:newRadius+'px',height:newHeight+'px'}\" class=\"img\" :src=\"item.imgSrc\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t\t<image lazy-load @tap.stop=\"playVideo(index)\" v-if=\"item.isVideo && isVedio\" class=\"posia\" style=\"top: 50%;left: 50%;transform: translate(-50%,-50%);width: 126rpx;height: 126rpx;z-index: 1;\" src=\"/static/public/video.png\" mode=\"\"></image>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</swiper-item>\r\n\t\t\t</swiper>\r\n\t\t\t<!-- 指示点 -->\r\n\t\t\t<view class=\"dot-box\" :style=\"{bottom:newBottom+'px'}\">\r\n\t\t\t\t<view :class=\"bcurrent==indexd ? 'dotActive' : 'dotMo'\" v-for=\"(itemd,indexd) in bannerList.length\" :key=\"indexd\"></view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tname:\"swiper-pu\",\r\n\t\tprops:{\r\n\t\t\tisplay:{\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:false\r\n\t\t\t},\r\n\t\t\tisDot:{//是否显示指示点\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:true\r\n\t\t\t},\r\n\t\t\tbannerList:{//默认轮播图片\r\n\t\t\t\ttype:Array,\r\n\t\t\t\tdefault:function(){\r\n\t\t\t\t\treturn [\r\n\t\t\t\t\t\t{imgSrc:'/static/public/banner.png',url:'',isVideo:false,poster:''},\r\n\t\t\t\t\t\t{imgSrc:'/static/public/banner.png',url:'',isVideo:false,poster:''},\r\n\t\t\t\t\t]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tnewHeight:{//swiper的高\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:'200'\r\n\t\t\t},\r\n\t\t\tnewBottom:{//指示点距离底部位置\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:'18'\r\n\t\t\t},\r\n\t\t\tnewRadius:{//图片圆角\r\n\t\t\t\ttype:String,\r\n\t\t\t\tdefault:'0'\r\n\t\t\t},\r\n\t\t\tbrowseP:{\r\n\t\t\t\ttype:Boolean,\r\n\t\t\t\tdefault:false\r\n\t\t\t}\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tbcurrent:0,\r\n\t\t\t\tisShowVideo:false,\r\n\t\t\t\tautoplay:false,\r\n\t\t\t\tisVedio:false\r\n\t\t\t};\r\n\t\t},\r\n\t\tmounted() {\r\n\t\t\tthis.$requst.get('index/base-config').then(res=>{\r\n\t\t\t\tres.data.v==0 ? this.isVedio = false : this.isVedio = true;\r\n\t\t\t})\r\n\t\t},\r\n\t\tmethods:{\r\n\t\t\tchooseImg(index){\r\n\t\t\t\t// console.log('当前banner图',index);\r\n\t\t\t\tthis.bcurrent = index\r\n\t\t\t\tif(this.browseP){\r\n\t\t\t\t\tlet imgList = []\r\n\t\t\t\t\tthis.bannerList.forEach(item=>{\r\n\t\t\t\t\t\tlet nurl = ''\r\n\t\t\t\t\t\tlet obj = {}\r\n\t\t\t\t\t\tif(this.isVedio) {\r\n\t\t\t\t\t\t\titem.url=='' ? nurl = item.imgSrc : nurl = item.url\r\n\t\t\t\t\t\t\tobj = {\r\n\t\t\t\t\t\t\t\turl:nurl,\r\n\t\t\t\t\t\t\t\ttype:item.isVideo?'video':'image',\r\n\t\t\t\t\t\t\t\tposter:item.poster\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tnurl = item.imgSrc\r\n\t\t\t\t\t\t\tobj = {\r\n\t\t\t\t\t\t\t\turl:nurl,\r\n\t\t\t\t\t\t\t\ttype:'image',\r\n\t\t\t\t\t\t\t\tposter:item.poster\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\timgList.push(obj)\r\n\t\t\t\t\t})\r\n\t\t\t\t\tuni.previewMedia({\r\n\t\t\t\t\t\tcurrent:this.bcurrent,\r\n\t\t\t\t\t\tsources:imgList\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl:this.bannerList[index].url\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tchangeBanner(e){\r\n\t\t\t\tthis.bcurrent = e.detail.current//当前的指示点下标\r\n\t\t\t},\r\n\t\t\tplayVideo(index){\r\n\t\t\t\t// console.log('播放视频');\r\n\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\turl:`/pagesB/video/playVideo?src=${this.bannerList[index].url}&posterSrc=${this.bannerList[index].poster}`\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped>\r\n\t.banner-box{position: relative;}\r\n\t.img{width:100%;}\r\n\t.dot-box{position: absolute;bottom: 36rpx;display: flex;justify-content: center;width: 100%;}\r\n\t.dotActive{width: 22rpx;height: 12rpx;margin-right: 10rpx;border-radius: 20rpx; background-color: rgba(56, 117, 246, .5);}\r\n\t.dotMo{width: 12rpx;height: 12rpx;margin-right: 10rpx;border-radius: 100%;background-color: rgba(191, 191, 191, 0.5);}\r\n</style>\r\n","import mod from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./swiper-pu.vue?vue&type=style&index=0&id=3c2e1862&scoped=true&lang=css&\"; export default mod; export * from \"-!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./swiper-pu.vue?vue&type=style&index=0&id=3c2e1862&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1660123646078\n var cssReload = require(\"D:/HbuilderX/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n module.hot.dispose(cssReload);\n module.hot.accept(undefined, cssReload);\n }\n "],"sourceRoot":""}