1 line
13 KiB
Plaintext
1 line
13 KiB
Plaintext
{"version":3,"sources":["webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/components/swiper-pu.vue?c377","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/components/swiper-pu.vue?a482","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/components/swiper-pu.vue?5d6e","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/components/swiper-pu.vue?de9d","uni-app:///components/swiper-pu.vue","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/components/swiper-pu.vue?1314","webpack:////Users/Ian/dnmp/www/frontend/hengmei-mp/components/swiper-pu.vue?4ef9"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkI;AAClI;AAC6D;AACL;AACqC;;;AAG7F;AACgN;AAChN,gBAAgB,iNAAU;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;AAAu0B,CAAgB,uyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoB31B;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;AAA4sC,CAAgB,4nCAAG,EAAC,C;;;;;;;;;;;ACAhuC;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 \"!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./swiper-pu.vue?vue&type=script&lang=js&\"","<template>\n\t<view>\n\t\t<view v-if=\"isDot\" class=\"banner-box\">\n\t\t\t<swiper :current=\"bcurrent\" @change=\"changeBanner\" :style=\"{height: newHeight+'px'}\" :autoplay=\"isplay\" :circular=\"true\" :interval=\"3000\" :duration=\"500\">\n\t\t\t\t<swiper-item v-for=\"(item,index) in bannerList\" :key=\"index\">\n\t\t\t\t\t<view @tap=\"chooseImg(index)\" class=\"posir\">\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>\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>\n\t\t\t\t\t</view>\n\t\t\t\t</swiper-item>\n\t\t\t</swiper>\n\t\t\t<!-- 指示点 -->\n\t\t\t<view class=\"dot-box\" :style=\"{bottom:newBottom+'px'}\">\n\t\t\t\t<view :class=\"bcurrent==indexd ? 'dotActive' : 'dotMo'\" v-for=\"(itemd,indexd) in bannerList.length\" :key=\"indexd\"></view>\n\t\t\t</view>\n\t\t</view>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tname:\"swiper-pu\",\n\t\tprops:{\n\t\t\tisplay:{\n\t\t\t\ttype:Boolean,\n\t\t\t\tdefault:false\n\t\t\t},\n\t\t\tisDot:{//是否显示指示点\n\t\t\t\ttype:Boolean,\n\t\t\t\tdefault:true\n\t\t\t},\n\t\t\tbannerList:{//默认轮播图片\n\t\t\t\ttype:Array,\n\t\t\t\tdefault:function(){\n\t\t\t\t\treturn [\n\t\t\t\t\t\t{imgSrc:'/static/public/banner.png',url:'',isVideo:false,poster:''},\n\t\t\t\t\t\t{imgSrc:'/static/public/banner.png',url:'',isVideo:false,poster:''},\n\t\t\t\t\t]\n\t\t\t\t}\n\t\t\t},\n\t\t\tnewHeight:{//swiper的高\n\t\t\t\ttype:String,\n\t\t\t\tdefault:'200'\n\t\t\t},\n\t\t\tnewBottom:{//指示点距离底部位置\n\t\t\t\ttype:String,\n\t\t\t\tdefault:'18'\n\t\t\t},\n\t\t\tnewRadius:{//图片圆角\n\t\t\t\ttype:String,\n\t\t\t\tdefault:'0'\n\t\t\t},\n\t\t\tbrowseP:{\n\t\t\t\ttype:Boolean,\n\t\t\t\tdefault:false\n\t\t\t}\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\tbcurrent:0,\n\t\t\t\tisShowVideo:false,\n\t\t\t\tautoplay:false,\n\t\t\t\tisVedio:false\n\t\t\t};\n\t\t},\n\t\tmounted() {\n\t\t\tthis.$requst.get('index/base-config').then(res=>{\n\t\t\t\tres.data.v==0 ? this.isVedio = false : this.isVedio = true;\n\t\t\t})\n\t\t},\n\t\tmethods:{\n\t\t\tchooseImg(index){\n\t\t\t\t// console.log('当前banner图',index);\n\t\t\t\tthis.bcurrent = index\n\t\t\t\tif(this.browseP){\n\t\t\t\t\tlet imgList = []\n\t\t\t\t\tthis.bannerList.forEach(item=>{\n\t\t\t\t\t\tlet nurl = ''\n\t\t\t\t\t\tlet obj = {}\n\t\t\t\t\t\tif(this.isVedio) {\n\t\t\t\t\t\t\titem.url=='' ? nurl = item.imgSrc : nurl = item.url\n\t\t\t\t\t\t\tobj = {\n\t\t\t\t\t\t\t\turl:nurl,\n\t\t\t\t\t\t\t\ttype:item.isVideo?'video':'image',\n\t\t\t\t\t\t\t\tposter:item.poster\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tnurl = item.imgSrc\n\t\t\t\t\t\t\tobj = {\n\t\t\t\t\t\t\t\turl:nurl,\n\t\t\t\t\t\t\t\ttype:'image',\n\t\t\t\t\t\t\t\tposter:item.poster\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\timgList.push(obj)\n\t\t\t\t\t})\n\t\t\t\t\tuni.previewMedia({\n\t\t\t\t\t\tcurrent:this.bcurrent,\n\t\t\t\t\t\tsources:imgList\n\t\t\t\t\t})\n\t\t\t\t} else {\n\t\t\t\t\tuni.navigateTo({\n\t\t\t\t\t\turl:this.bannerList[index].url\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t},\n\t\t\tchangeBanner(e){\n\t\t\t\tthis.bcurrent = e.detail.current//当前的指示点下标\n\t\t\t},\n\t\t\tplayVideo(index){\n\t\t\t\t// console.log('播放视频');\n\t\t\t\tuni.navigateTo({\n\t\t\t\t\turl:`/pagesB/video/playVideo?src=${this.bannerList[index].url}&posterSrc=${this.bannerList[index].poster}`\n\t\t\t\t})\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style scoped>\n\t.banner-box{position: relative;}\n\t.img{width:100%;}\n\t.dot-box{position: absolute;bottom: 36rpx;display: flex;justify-content: center;width: 100%;}\n\t.dotActive{width: 22rpx;height: 12rpx;margin-right: 10rpx;border-radius: 20rpx; background-color: rgba(56, 117, 246, .5);}\n\t.dotMo{width: 12rpx;height: 12rpx;margin-right: 10rpx;border-radius: 100%;background-color: rgba(191, 191, 191, 0.5);}\n</style>\n","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--6-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/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 // 1653900081820\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""} |