leave-unused/unpackage/dist/dev/.sourcemap/mp-weixin/components/swipers/swiper-pu.js.map

1 line
12 KiB
Plaintext

{"version":3,"sources":[null,"webpack:///D:/Lee/leave-unused/components/swipers/swiper-pu.vue?59b7","webpack:///D:/Lee/leave-unused/components/swipers/swiper-pu.vue?c76a","webpack:///D:/Lee/leave-unused/components/swipers/swiper-pu.vue?b73a","uni-app:///components/swipers/swiper-pu.vue","webpack:///D:/Lee/leave-unused/components/swipers/swiper-pu.vue?6050","webpack:///D:/Lee/leave-unused/components/swipers/swiper-pu.vue?f03d"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACqC;;;AAG7F;AAC6K;AAC7K,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;AAAwpB,CAAgB,qqBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACiB5qB;AACA,mBADA;AAEA;AACA;AACA,mBADA;AAEA,oBAFA,EADA;;AAKA;AACA,mBADA;AAEA,mBAFA,EALA;;AASA;AACA,iBADA;AAEA,iBAFA,EATA;;AAaA;AACA,kBADA;AAEA,uBAFA,EAbA;;AAiBA;AACA,kBADA;AAEA,sBAFA,EAjBA;;AAqBA;AACA,kBADA;AAEA,oBAFA,EArBA;;AAyBA;AACA,mBADA;AAEA,oBAFA,EAzBA;;AA6BA;AACA,kBADA;AAEA,oCAFA,EA7BA;;AAiCA;AACA,kBADA;AAEA,qCAFA,EAjCA,EAFA;;;AAwCA,MAxCA,kBAwCA;AACA;AACA,iBADA,EACA;AACA,wBAFA,EAEA;AACA,qBAHA,EAGA;AACA,6CAJA,CAIA;AAJA;AAMA,GA/CA;AAgDA;AACA;AACA,aAFA,qBAEA,KAFA,EAEA,GAFA,EAEA;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;AACA,gCADA;AAEA,0BAFA;;AAIA;AACA;AACA;AACA;AACA,8BADA;;AAGA;AACA;AACA,KAxCA;AAyCA;AACA,gBA1CA,wBA0CA,CA1CA,EA0CA;AACA,uCADA,CACA;AACA;AACA,KA7CA;AA8CA;AACA,aA/CA,qBA+CA,KA/CA,EA+CA;AACA;AACA,KAjDA,EAhDA,E;;;;;;;;;;;;;ACjBA;AAAA;AAAA;AAAA;AAAu9B,CAAgB,s8BAAG,EAAC,C;;;;;;;;;;;ACA3+B;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/swipers/swiper-pu.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./swiper-pu.vue?vue&type=template&id=4176028a&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=4176028a&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 \"4176028a\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/swipers/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=4176028a&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 class=\"banner-box\">\r\n\t\t<swiper :current=\"bcurrent\" @change=\"changeBanner\" :style=\"{height: newHeight}\" :autoplay=\"isplay\" :circular=\"true\" :interval=\"3000\" :duration=\"500\">\r\n\t\t\t<swiper-item v-for=\"(item,index) in bannerList\" :key=\"index\">\r\n\t\t\t\t<view @tap=\"chooseImg(index,item.url)\" class=\"img-box\">\r\n\t\t\t\t\t<image :style=\"{borderRadius:newRadius,height:newHeight}\" class=\"img animated fadeIn\" :src=\"item.imgSrc\" mode=\"widthFix\"></image>\r\n\t\t\t\t</view>\r\n\t\t\t</swiper-item>\r\n\t\t</swiper>\r\n\t\t<!-- 指示点 -->\r\n\t\t<view v-if=\"isDot\" class=\"dot-box\" :style=\"{bottom:newBottom}\">\r\n\t\t\t<view class=\"item-dot\" :style=\"{backgroundColor: bcurrent==indexd ? activec : defaultc}\" v-for=\"(itemd,indexd) in bannerList.length\" :key=\"indexd\" @tap=\"chooseDot(indexd)\"></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: []\r\n\t\t\t},\r\n\t\t\tnewHeight: { //swiper的高\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '320rpx'\r\n\t\t\t},\r\n\t\t\tnewBottom: { //指示点距离底部位置\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '20rpx'\r\n\t\t\t},\r\n\t\t\tnewRadius: { //图片圆角\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '0px'\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\tactivec: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'rgba(255,255,255,1)'\r\n\t\t\t},\r\n\t\t\tdefaultc: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'rgba(255,255,255,.3)'\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: uni.getStorageSync('is_vedio') // 是否是视频\r\n\t\t\t};\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 图片点击事件\r\n\t\t\tchooseImg(index, url) {\r\n\t\t\t\tconsole.log('当前banner图', index, url);\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\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}\r\n\t\t\t\tif (url) {\r\n\t\t\t\t\t// 有链接,跳转链接\r\n\t\t\t\t\tuni.navigateTo({\r\n\t\t\t\t\t\turl: `/${url}`\r\n\t\t\t\t\t})\r\n\t\t\t\t\tconsole.log(`/${url}`, '跳转链接');\r\n\t\t\t\t}\r\n\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\t// console.log(this.bcurrent);\r\n\t\t\t},\r\n\t\t\t// 点击当前指示点\r\n\t\t\tchooseDot(index) {\r\n\t\t\t\tthis.bcurrent = index;\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 {\r\n\t\twidth: calc(100% - 40rpx);\r\n\t\tmargin: 20rpx auto 0;\r\n\t\tborder-radius: 20rpx;\r\n\t\toverflow: hidden;\r\n\t\tposition: relative;\r\n\t}\r\n\r\n\t.img-box {\r\n\t\tposition: relative;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t}\r\n\r\n\t.img {\r\n\t\twidth: 100%;\r\n\t\tvertical-align: bottom;\r\n\t}\r\n\r\n\t.dot-box {\r\n\t\tposition: absolute;\r\n\t\tbottom: 20rpx;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\twidth: 100%;\r\n\t}\r\n\r\n\t.item-dot {\r\n\t\twidth: 20rpx;\r\n\t\theight: 20rpx;\r\n\t\tborder-radius: 100%;\r\n\t\tmargin: 0 6rpx;\r\n\t}\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=4176028a&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=4176028a&scoped=true&lang=css&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1669972941254\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":""}