1 line
14 KiB
Plaintext
1 line
14 KiB
Plaintext
{"version":3,"sources":["webpack:///D:/鲁班家具小程序/luban-mall/components/swipers/swiper-pu.vue?6352","webpack:///D:/鲁班家具小程序/luban-mall/components/swipers/swiper-pu.vue?0029","webpack:///D:/鲁班家具小程序/luban-mall/components/swipers/swiper-pu.vue?d817","webpack:///D:/鲁班家具小程序/luban-mall/components/swipers/swiper-pu.vue?4cd5","uni-app:///components/swipers/swiper-pu.vue","webpack:///D:/鲁班家具小程序/luban-mall/components/swipers/swiper-pu.vue?898a","webpack:///D:/鲁班家具小程序/luban-mall/components/swipers/swiper-pu.vue?8d9a"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACqC;;;AAG7F;AACoL;AACpL,gBAAgB,2LAAU;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;AAA2rB,CAAgB,yrBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACsB/sB;AACA,mBADA;AAEA;AACA;AACA,mBADA;AAEA,oBAFA,EADA;;AAKA;AACA,mBADA;AAEA,mBAFA,EALA;;AASA;AACA,iBADA;AAEA;AACA;AACA,2DADA;AAEA,iBAFA;AAGA,wBAHA;AAIA,oBAJA;;AAMA;AACA,2DADA;AAEA,iBAFA;AAGA,wBAHA;AAIA,oBAJA,EANA;;AAYA;AACA,2DADA;AAEA,iBAFA;AAGA,wBAHA;AAIA,oBAJA,EAZA;;;AAmBA,OAtBA,EATA;;AAiCA;AACA,kBADA;AAEA,sBAFA,EAjCA;;AAqCA;AACA,kBADA;AAEA,qBAFA,EArCA;;AAyCA;AACA,kBADA;AAEA,oBAFA,EAzCA;;AA6CA;AACA,mBADA;AAEA,oBAFA,EA7CA;;AAiDA;AACA,kBADA;AAEA,oCAFA,EAjDA;;AAqDA;AACA,kBADA;AAEA,qCAFA,EArDA,EAFA;;;AA4DA,MA5DA,kBA4DA;AACA;AACA,iBADA,EACA;AACA,wBAFA,EAEA;AACA,qBAHA,EAGA;AACA,6CAJA,CAIA;AAJA;AAMA,GAnEA;AAoEA;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;AAkDA,aAlDA,qBAkDA,KAlDA,EAkDA;AACA;AACA;AACA,mIADA;;AAGA,KAvDA,EApEA,E;;;;;;;;;;;;;ACtBA;AAAA;AAAA;AAAA;AAAwgC,CAAgB,k+BAAG,EAAC,C;;;;;;;;;;;ACA5hC;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-app开发版/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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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\"\r\n\t\t\t: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\"\r\n\t\t\t\t\t\t:src=\"item.imgSrc\" mode=\"aspectFill\"></image>\r\n\t\t\t\t\t<image @tap.stop=\"playVideo(index)\" v-if=\"item.isVideo && isVedio\" class=\"posia animated bounceIn\"\r\n\t\t\t\t\t\tstyle=\"width: 126rpx;height: 126rpx;z-index: 1;\" src=\"/static/public/video.png\" mode=\"\"></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}\"\r\n\t\t\t\tv-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: function() {\r\n\t\t\t\t\treturn [{\r\n\t\t\t\t\t\t\timgSrc: 'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',\r\n\t\t\t\t\t\t\turl: '',\r\n\t\t\t\t\t\t\tisVideo: false,\r\n\t\t\t\t\t\t\tposter: ''\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\timgSrc: 'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',\r\n\t\t\t\t\t\t\turl: '',\r\n\t\t\t\t\t\t\tisVideo: false,\r\n\t\t\t\t\t\t\tposter: ''\r\n\t\t\t\t\t\t},\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\timgSrc: 'https://s6.jpg.cm/2022/02/14/L4oDhy.jpg',\r\n\t\t\t\t\t\t\turl: '',\r\n\t\t\t\t\t\t\tisVideo: false,\r\n\t\t\t\t\t\t\tposter: ''\r\n\t\t\t\t\t\t},\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: '200px'\r\n\t\t\t},\r\n\t\t\tnewBottom: { //指示点距离底部位置\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '18px'\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\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 {\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: 36rpx;\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>\n","import mod from \"-!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../HBuilderX-app开发版/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../HBuilderX-app开发版/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 // 1658105779535\n var cssReload = require(\"D:/HBuilderX-app开发版/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":""} |