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:///D:/Uni-App/HBuilderProjects/Test/components/NeedsSelect/NeedsSelect.vue?975e","webpack:///D:/Uni-App/HBuilderProjects/Test/components/NeedsSelect/NeedsSelect.vue?1004","uni-app:///components/NeedsSelect/NeedsSelect.vue","webpack:///D:/Uni-App/HBuilderProjects/Test/components/NeedsSelect/NeedsSelect.vue?a990","webpack:///D:/Uni-App/HBuilderProjects/Test/components/NeedsSelect/NeedsSelect.vue?b1e2"],"names":["renderjs","component","options","__file","components","uLine","uGap","uGrid","uGridItem","e","message","indexOf","console","error","render","_vm","this","_h","$createElement","l0","_self","_c","__map","allneeds","item","index","$orig","__get_orig","a0","width","height","m0","isSelected","$mp","data","Object","assign","$root","staticRenderFns","_withStripped"],"mappings":"mIAAA,yHACIA,EADJ,OASIC,EAAY,eACd,aACA,OACA,QACA,EACA,KACA,WACA,MACA,EACA,OACAD,GAGFC,EAAUC,QAAQC,OAAS,yCACZ,aAAAF,E,0CCvBf,8GAAuoB,eAAG,G,yGCoC1oB,CACA,mBAEA,OACA,UACA,WACA,UACA,SACA,SACA,WAKA,KAdA,WAeA,OACA,uBAGA,SAEA,KAFA,WAKA,IAFA,SACA,yBACA,oBACA,OACA,UACA,0BAEA,UAGA,UAGA,WAhBA,SAgBA,GACA,uCAGA,kBAKA,eAzBA,SAyBA,GACA,uBACA,oBACA,2CAGA,gBA/BA,WAgCA,kDACA,uDAGA,oBApCA,WAqCA,kDACA,8C,oEC7FA,sBAAstC,EAAG,G,iCCAztC,IAAIG,E,sGACJ,IACEA,EAAa,CACXC,MAAO,WACL,OAAO,iHAITC,KAAM,WACJ,OAAO,+GAITC,MAAO,WACL,OAAO,iHAITC,UAAW,WACT,OAAO,4HAKX,MAAOC,GACP,IAC+C,IAA7CA,EAAEC,QAAQC,QAAQ,wBACa,IAA/BF,EAAEC,QAAQC,QAAQ,QAWlB,MAAMF,EATNG,QAAQC,MAAMJ,EAAEC,SAChBE,QAAQC,MAAM,mBACdD,QAAQC,MACN,uFAEFD,QAAQC,MACN,mDAMN,IAAIC,EAAS,WACX,IAAIC,EAAMC,KACNC,EAAKF,EAAIG,eAETC,GADKJ,EAAIK,MAAMC,GACVN,EAAIO,MAAMP,EAAIQ,UAAU,SAASC,EAAMC,GAC9C,IAAIC,EAAQX,EAAIY,WAAWH,GAEvBI,EAAK,CACPC,MAAO,SACPC,OAAQ,UAENC,EAAKhB,EAAIiB,WAAWP,GACxB,MAAO,CACLC,MAAOA,EACPE,GAAIA,EACJG,GAAIA,OAIRhB,EAAIkB,IAAIC,KAAOC,OAAOC,OACpB,GACA,CACEC,MAAO,CACLlB,GAAIA,MAMRmB,EAAkB,GACtBxB,EAAOyB,eAAgB","file":"components/NeedsSelect/NeedsSelect.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./NeedsSelect.vue?vue&type=template&id=ca618090&scoped=true&\"\nvar renderjs\nimport script from \"./NeedsSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./NeedsSelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NeedsSelect.vue?vue&type=style&index=0&id=ca618090&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../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 \"ca618090\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/NeedsSelect/NeedsSelect.vue\"\nexport default component.exports","import mod from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./NeedsSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./NeedsSelect.vue?vue&type=script&lang=js&\"","<!--需求选择弹出-->\r\n<template>\n\t<view class=\"main\">\n\t\t<view class=\"top\">\r\n\t\t\t<view class=\"button_box_left\" @click=\"onClickButtonCancel\">\r\n\t\t\t\t<text class=\"cancel_text\">取消</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"button_box_right\" @click=\"onClickButtonOk\">\r\n\t\t\t\t<text class=\"ok_text\">确定</text>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<u-line color=\"#E2E2E2\" length=\"750rpx\" customStyle=\"position: relative;border: 1px solid #E2E2E2;\" :hairline=\"true\" margin=\"99rpx 0 0 0\"></u-line>\r\n\t\t<text class=\"duoxuan_text\">支持多选</text>\r\n\t\t<u-gap height=\"40rpx\"/>\r\n\t\t<u-grid\r\n\t\t\tcol=\"3\"\r\n\t\t>\r\n\t\t\t<u-grid-item \r\n\t\t\t:customStyle=\"{width:250+'rpx',height:100+'rpx'}\"\r\n\t\t\t\tv-for=\"(item,index) in allneeds\" :key=\"item.key\"\r\n\t\t\t\t@click=\"onClickOneItem\"\r\n\t\t\t>\r\n\t\t\t\t<view class=\"out_box\">\r\n\t\t\t\t\t<view v-if=\"isSelected(index)\" class=\"selected_box\" :key=\"item.key\">\r\n\t\t\t\t\t\t<text class=\"selected_text\">{{item.name}}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view v-else class=\"unselected_box\" :key=\"item.key\">\r\n\t\t\t\t\t\t<text class=\"unselected_text\">{{item.name}}</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</u-grid-item>\r\n\t\t</u-grid>\n\t</view>\n</template>\n\n<script>\n\texport default {\n\t\tname:\"NeedsSelect\",\r\n\t\t\r\n\t\tprops:{\r\n\t\t\tselected :{\r\n\t\t\t\ttype : Array,\r\n\t\t\t\tdefault : [\r\n\t\t\t\t\tfalse,false,false,\r\n\t\t\t\t\tfalse,false,false,\r\n\t\t\t\t\tfalse,false,false,\r\n\t\t\t\t],\r\n\t\t\t}\r\n\t\t},\r\n\t\t\n\t\tdata() {\n\t\t\treturn {\r\n\t\t\t\tallneeds : this.init(),\n\t\t\t};\n\t\t},\r\n\t\tmethods:{\r\n\t\t\t\r\n\t\t\tinit(){\r\n\t\t\t\tvar allneeds = [];\r\n\t\t\t\tvar names = this.$Define.UserNeeds;\r\n\t\t\t\tfor(var i = 0;i<names.length;i++){\r\n\t\t\t\t\tvar into = {\r\n\t\t\t\t\t\tname : names[i],\r\n\t\t\t\t\t\tkey : new Date().getTime(),\r\n\t\t\t\t\t};\r\n\t\t\t\t\tallneeds.push(into);\r\n\t\t\t\t}\r\n\t\t\t\t//console.log(allneeds);\r\n\t\t\t\treturn allneeds;\r\n\t\t\t},\r\n\t\t\t///检查传递进来的index是否被选中了\r\n\t\t\tisSelected(index){\r\n\t\t\t\tif(index < 0 || index >= this.selected.length){\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}\r\n\t\t\t\treturn this.selected[index];\r\n\t\t\t},\r\n\t\t\t/**\r\n\t\t\t * @param {number} index 点中哪一个需求了 \r\n\t\t\t */\r\n\t\t\tonClickOneItem(index){\r\n\t\t\t\tvar indo = this.selected[index];\r\n\t\t\t\tthis.selected[index] \t\t= !indo;\r\n\t\t\t\tthis.allneeds[index].key \t= new Date().getTime();\r\n\t\t\t},\r\n\t\t\t///点击确认\r\n\t\t\tonClickButtonOk(){\r\n\t\t\t\tvar key = this.$Define.FireKeys.NeedsSelectedCallback;\r\n\t\t\t\tthis.$fire.fire(key,{status:true,selected : this.selected});\r\n\t\t\t},\r\n\t\t\t///点击取消\r\n\t\t\tonClickButtonCancel(){\r\n\t\t\t\tvar key = this.$Define.FireKeys.NeedsSelectedCallback;\r\n\t\t\t\tthis.$fire.fire(key,{status:false,selected : []});\r\n\t\t\t},\r\n\t\t},\n\t}\n</script>\n\t\n<style lang=\"scss\" scoped>\n\t.main {\r\n\t\twidth: 750rpx;\r\n\t\theight: 512rpx;\r\n\t\tbackground: #FFFFFF;\r\n\t\tborder: 1rpx solid #E2E2E2;\r\n\t\topacity: 1;\r\n\t\tborder-radius: 20rpx;\r\n\t\tposition: relative;\r\n\t}\r\n\t.top{\r\n\t\tposition: absolute;\r\n\t\theight: 94rpx;\r\n\t\twidth: 100%;\r\n\t\t//background-color: #0081FF;\r\n\t\ttop: 0;\r\n\t}\r\n\t.button_box_left{\r\n\t\tposition: absolute;\r\n\t\tleft: 10rpx;\r\n\t\twidth: 100rpx;\r\n\t\theight: 94rpx;\r\n\t\ttop: 0;\r\n\t\t//background-color: #39B54A;\r\n\t}\r\n\t\r\n\t.button_box_right{\r\n\t\tposition: absolute;\r\n\t\tright: 10rpx;\r\n\t\twidth: 100rpx;\r\n\t\theight: 94rpx;\r\n\t\ttop: 0;\r\n\t\t//background-color: #39B54A;\r\n\t}\r\n\t\r\n\t.cancel_text{\r\n\t\twidth: 64rpx;\r\n\t\theight: 45rpx;\r\n\t\tfont-size: 32rpx;\r\n\t\tfont-family: PingFang SC;\r\n\t\tfont-weight: 400;\r\n\t\tcolor: #666666;\r\n\t\topacity: 1;\r\n\t\tposition: absolute;\r\n\t\ttop: 25rpx;\r\n\t\tleft: 24rpx;\r\n\t}\r\n\t.ok_text{\r\n\t\twidth: 64rpx;\r\n\t\theight: 45rpx;\r\n\t\tfont-size: 32rpx;\r\n\t\tfont-family: PingFang SC;\r\n\t\tfont-weight: 400;\r\n\t\tcolor: #41CF41;\r\n\t\topacity: 1;\r\n\t\tposition: absolute;\r\n\t\ttop: 25rpx;\r\n\t\tright: 24rpx;\r\n\t}\r\n\t\r\n\t.duoxuan_text{\r\n\t\twidth: 112rpx;\r\n\t\theight: 40rpx;\r\n\t\tfont-size: 28rpx;\r\n\t\tfont-weight: 400;\r\n\t\tcolor: #999999;\r\n\t\topacity: 1;\r\n\t\tposition: relative;\r\n\t\tleft: 24rpx;\r\n\t\ttop: 30rpx;\r\n\t}\r\n\t.unselected_box{\r\n\t\twidth: 180rpx;\r\n\t\theight: 70rpx;\r\n\t\tbackground: #FFFFFF;\r\n\t\tborder: 1rpx solid #E2E2E2;\r\n\t\topacity: 1;\r\n\t\tborder-radius: 10rpx;\r\n\t\tposition: absolute;\r\n\t\ttop: 5rpx;\r\n\t\talign-items: center;\r\n\t\ttext-align: center;\r\n\t}\r\n\t\r\n\t.out_box{\r\n\t\twidth: 234rpx;\r\n\t\theight: 80rpx;\r\n\t\t//background-color: #1CBBB4;\r\n\t\tposition: relative;\r\n\t\talign-items: center;\r\n\t}\r\n\t\r\n\t.selected_box{\r\n\t\twidth: 180rpx;\r\n\t\theight: 70rpx;\r\n\t\tbackground: #FFFFFF;\r\n\t\tborder: 1rpx solid #D49B4B;\r\n\t\topacity: 1;\r\n\t\tborder-radius: 10rpx;\r\n\t\tposition: absolute;\r\n\t\ttop: 5rpx;\r\n\t\talign-items: center;\r\n\t\ttext-align: center;\r\n\t}\r\n\t\r\n\t.selected_text{\r\n\t\theight: 70rpx;\r\n\t\tfont-size: 28rpx;\r\n\t\tfont-weight: 400;\r\n\t\tcolor: #D49B4B;\r\n\t\topacity: 1;\r\n\t\tposition: absolute;\r\n\t\tvertical-align: middle;\r\n\t\tline-height: 70rpx;\r\n\t\tdisplay: inline-block;\r\n\t}\r\n\t\r\n\t.unselected_text{\r\n\t\t///字体高度需要和外框一致,居中才好弄\r\n\t\theight: 70rpx;\r\n\t\tfont-size: 28rpx;\r\n\t\tfont-weight: 400;\r\n\t\tcolor: #999999;\r\n\t\topacity: 1;\r\n\t\tposition: absolute;\r\n\t\tvertical-align: middle;\r\n\t\tline-height: 70rpx;\r\n\t\tdisplay: inline-block;\r\n\t}\n</style>\n","import mod from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./NeedsSelect.vue?vue&type=style&index=0&id=ca618090&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./NeedsSelect.vue?vue&type=style&index=0&id=ca618090&lang=scss&scoped=true&\"","var components\ntry {\n components = {\n uLine: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-line/u-line\" */ \"@/uni_modules/uview-ui/components/u-line/u-line.vue\"\n )\n },\n uGap: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-gap/u-gap\" */ \"@/uni_modules/uview-ui/components/u-gap/u-gap.vue\"\n )\n },\n uGrid: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-grid/u-grid\" */ \"@/uni_modules/uview-ui/components/u-grid/u-grid.vue\"\n )\n },\n uGridItem: function() {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-grid-item/u-grid-item\" */ \"@/uni_modules/uview-ui/components/u-grid-item/u-grid-item.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n var l0 = _vm.__map(_vm.allneeds, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var a0 = {\n width: 250 + \"rpx\",\n height: 100 + \"rpx\"\n }\n var m0 = _vm.isSelected(index)\n return {\n $orig: $orig,\n a0: a0,\n m0: m0\n }\n })\n\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l0: l0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }"],"sourceRoot":""}
|