You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
14 KiB
1 lines
14 KiB
{"version":3,"sources":["webpack:///G:/web/中龙小程序/zhonglmini/components/hx-preview-img/hx-preview-img.vue?b042","webpack:///G:/web/中龙小程序/zhonglmini/components/hx-preview-img/hx-preview-img.vue?2d2e","webpack:///G:/web/中龙小程序/zhonglmini/components/hx-preview-img/hx-preview-img.vue?d2ab","webpack:///G:/web/中龙小程序/zhonglmini/components/hx-preview-img/hx-preview-img.vue?24be","uni-app:///components/hx-preview-img/hx-preview-img.vue","webpack:///G:/web/中龙小程序/zhonglmini/components/hx-preview-img/hx-preview-img.vue?e8ac","webpack:///G:/web/中龙小程序/zhonglmini/components/hx-preview-img/hx-preview-img.vue?80cf"],"names":["name","props","current","type","default","list","start","data","picList","indicatorDots","autoplay","duration","circular","currentIndex","isShowSwiper","showBox","watch","created","methods","clickPic","picListInit","console","changeSwiper","mpClear","e","close"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAuI;AACvI;AACkE;AACL;AACsC;;;AAGnG;AACqL;AACrL,gBAAgB,0LAAU;AAC1B,EAAE,oFAAM;AACR,EAAE,qGAAM;AACR,EAAE,8GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,yGAAU;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;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA,OAAO;AACP;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrBA;AAAA;AAAA;AAAA;AAAwrB,CAAgB,yrBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBCkB5sB;EACAA;EACAC;IACAC;MACAC;MACAC;IACA;IACAC;MACAF;MACAC;QACA;MACA;IACA;IACA;IACAE;MACAH;MACAC;IACA;EAEA;EAEAG;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;IACA;EACA;EACAC;IACAX,0BAEA;IACAH,gCAEA;IACAI;MACA;MACA;IACA;EACA;EACAW,6BAEA;EACAC;IACAC;MACA;MACA;IACA;IACAC;MACA;MACA;QACA;MACA;MACA;QACA;UACA;UACA;QACA;MACA;MAEAC;MACA;IAEA;IACAC;MACA;IACA;IACAC;MACA;MACAC;IACA;IACAC;MACA;IACA;EACA;AACA;AAAA,4B;;;;;;;;;;;;AClGA;AAAA;AAAA;AAAA;AAA2zC,CAAgB,ovCAAG,EAAC,C;;;;;;;;;;;ACA/0C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"components/hx-preview-img/hx-preview-img.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./hx-preview-img.vue?vue&type=template&id=0d046524&scoped=true&\"\nvar renderjs\nimport script from \"./hx-preview-img.vue?vue&type=script&lang=js&\"\nexport * from \"./hx-preview-img.vue?vue&type=script&lang=js&\"\nimport style0 from \"./hx-preview-img.vue?vue&type=style&index=0&id=0d046524&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!F:\\\\软件\\\\HBuilder X\\\\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 \"0d046524\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/hx-preview-img/hx-preview-img.vue\"\nexport default component.exports","export * from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./hx-preview-img.vue?vue&type=template&id=0d046524&scoped=true&\"","var components\nvar render = function () {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var g0 = _vm.showBox ? _vm.picList.length : null\n var m0 = _vm.showBox && g0 > 0 ? Number(_vm.currentIndex) : null\n var g1 = _vm.showBox && g0 > 0 ? _vm.picList.length : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n m0: m0,\n g1: g1,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./hx-preview-img.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./hx-preview-img.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"previewImg\" v-if=\"showBox\" @touchmove.stop.prevent=\"mpClear\">\r\n\t\t<view class=\"close\" @click=\"close\">\r\n\t\t\t<text>关闭</text>\r\n\t\t</view>\r\n\t\t<view class=\"mask\">\r\n\t\t\t\r\n\t\t\t<swiper @change=\"changeSwiper\" class=\"my_swiper\" :current=\"currentIndex\" :circular=\"circular\" :indicator-dots=\"indicatorDots\" :autoplay=\"autoplay\" :duration=\"duration\">\r\n\t\t\t\t<swiper-item v-for=\"(src, y) in picList\" :key=\"y\">\r\n\t\t\t\t\t<view class=\"bg_img\" :style=\"{ backgroundImage: 'url('+ src +')'}\"></view>\r\n\t\t\t\t</swiper-item>\r\n\t\t\t</swiper>\r\n\t\t</view>\r\n\t\t<view class=\"pagebox\" v-if=\"picList.length>0\">{{ Number(currentIndex) + 1 }} / {{ picList.length }}</view>\r\n\t</view>\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tname: 'hx-preview-img',\r\n\t\tprops: {\r\n\t\t\tcurrent: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tlist: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault: function(){\r\n\t\t\t\t\treturn new Array();\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//开始\r\n\t\t\tstart: {\r\n\t\t\t type: Number,\r\n\t\t\t\tdefault: 0\r\n\t\t\t},\r\n\t\t\t\r\n\t\t},\r\n\t\t\t\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tpicList: [],\r\n\t\t\t\tindicatorDots: false,\r\n\t\t\t\tautoplay: false,\r\n\t\t\t\tduration: 500,\r\n\t\t\t\tcircular: true,\r\n\t\t\t\tcurrentIndex: 0,\r\n\t\t\t\tisShowSwiper: false,\r\n\t\t\t\tshowBox: false\r\n\t\t\t};\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tlist(val) {\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tcurrent(val){\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tstart(val,oldVal) {\r\n\t\t\t\tvar that = this;\r\n\t\t\t\tthis.picListInit();\r\n\t\t\t}\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\t\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tclickPic(index) {\r\n\t\t\t\tthis.currentIndex = index;\r\n\t\t\t\tthis.isShowSwiper = true;\r\n\t\t\t},\r\n\t\t\tpicListInit() {\r\n\t\t\t\tthis.showBox = true;\r\n\t\t\t\tif(!this.current || !this.list){\r\n\t\t\t\t\treturn;\r\n\t\t\t\t}\r\n\t\t\t\tfor(var i in this.list){\r\n\t\t\t\t\tif(this.current == this.list[i]){\r\n\t\t\t\t\t\tthis.currentIndex = i;\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tconsole.log(this.currentIndex);\r\n\t\t\t\tthis.picList=this.list;\r\n\t\t\t\t\r\n\t\t\t},\r\n\t\t\tchangeSwiper(e) {\r\n\t\t\t\tthis.currentIndex = e.target.current;\r\n\t\t\t},\r\n\t\t\tmpClear(e) {\r\n\t\t\t\t// TODO nvue 取消冒泡\r\n\t\t\t\te.stopPropagation()\r\n\t\t\t},\r\n\t\t\tclose(){\r\n\t\t\t\tthis.showBox = false;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.previewImg {\r\n\tposition: fixed;\r\n\ttop: 0;\r\n\tleft: 0;\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tz-index: 99999999;\r\n\t\r\n\t.close{\r\n\t\tposition: absolute;\r\n\t\ttop: calc(0px + 15px);\r\n\t\tleft: 15px;\r\n\t\tz-index: 6;\r\n\t\tcolor: #ffffff;\r\n\t\tfont-size: 14px;\r\n\t\tbackground-color: rgba(255, 255, 255, 0.4);\r\n\t\tpadding: 0 9px;\r\n\t\tborder-radius: 4px;\r\n\t\ttext-align: center;\r\n\t\tdisplay: flex;\r\n\t\talign-items: center;\r\n\t\theight: 27px;\r\n\r\n\t}\r\n\t.pagebox{\r\n\t\tposition: absolute;\r\n\t\tz-index: 6;\r\n\t\tcolor: #fff;\r\n\t\tbottom: 20rpx;\r\n\t\ttext-align: center;\r\n\t\twidth: 100%;\r\n\t}\r\n\t.mask {\r\n\t\tposition: absolute;\r\n\t\ttop: 0;\r\n\t\tleft: 0;\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tdisplay: flex;\r\n\t\tjustify-content: center;\r\n\t\talign-items: center;\r\n\t\tbackground-color: #000;\r\n\t\tz-index: 5;\r\n\t\t> .my_swiper {\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 60vh;\r\n\t\t\t.bg_img {\r\n\t\t\t\tbackground-size: 100% auto;\r\n\t\t\t\tbackground-repeat: no-repeat;\r\n\t\t\t\tbackground-position:center;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\theight: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t.pic_list {\r\n\t\tdisplay: flex;\r\n\t\tflex-flow: row wrap;\r\n\t\t> view {\r\n\t\t\tflex: 0 0 33.3vw;\r\n\t\t\theight: 33.3vw;\r\n\t\t\tpadding: 1vw;\r\n\t\t\t> image {\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\theight: 100%;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n}\r\n\r\n</style>\r\n","import mod from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./hx-preview-img.vue?vue&type=style&index=0&id=0d046524&lang=scss&scoped=true&\"; export default mod; export * from \"-!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!F:\\\\软件\\\\HBuilder X\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./hx-preview-img.vue?vue&type=style&index=0&id=0d046524&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1720092621317\n var cssReload = require(\"F:/软件/HBuilder X/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":""}
|