1 |
- {"version":3,"sources":["webpack:///E:/工作1/project_order/components/specSelect.vue?ee71","webpack:///E:/工作1/project_order/components/specSelect.vue?b161","webpack:///E:/工作1/project_order/components/specSelect.vue?0d9a","webpack:///E:/工作1/project_order/components/specSelect.vue?3b6f","uni-app:///components/specSelect.vue","webpack:///E:/工作1/project_order/components/specSelect.vue?9cb6"],"names":["renderjs","component","options","__file","components","uButton","e","message","indexOf","console","error","render","_vm","this","_h","$createElement","l1","_self","_c","__map","newList","item","index","$orig","__get_orig","l0","params","v","i","g0","featureType","inputValue","tagKey","g1","$mp","data","Object","assign","$root","recyclableRender","staticRenderFns","_withStripped","name","props","list","type","default","watch","handler","immediate","deep","methods","handleSelect","submit","selectData"],"mappings":"sHAAA,oIACIA,EADJ,QASIC,EAAY,qBACd,aACA,YACA,sBACA,EACA,KACA,WACA,MACA,EACA,gBACAD,GAGFC,EAAUC,QAAQC,OAAS,4BACZ,aAAAF,E,0CCvBf,uQ,iCCAA,IAAIG,EAAJ,0LACA,IACEA,EAAa,CACXC,QAAS,WACP,OAAO,sHAKX,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,SAAS,SAAUC,EAAMC,GAC9C,IAAIC,EAAQX,EAAIY,WAAWH,GACvBI,EAAKb,EAAIO,MAAME,EAAKK,QAAQ,SAAUC,EAAGC,GAC3C,IAAIL,EAAQX,EAAIY,WAAWG,GACvBE,EAA4B,IAArBR,EAAKS,YACZT,EAAKU,WAAWvB,QAAQmB,EAAEK,QAC1B,KACAC,EAA4B,IAArBZ,EAAKS,YACZT,EAAKU,WAAWvB,QAAQmB,EAAEK,QAC1B,KACJ,MAAO,CACLT,MAAOA,EACPM,GAAIA,EACJI,GAAIA,MAGR,MAAO,CACLV,MAAOA,EACPE,GAAIA,OAGRb,EAAIsB,IAAIC,KAAOC,OAAOC,OACpB,GACA,CACEC,MAAO,CACLtB,GAAIA,MAKRuB,GAAmB,EACnBC,EAAkB,GACtB7B,EAAO8B,eAAgB,G,iCC9DvB,yHAAonB,eAAG,G,8sBC0BvnB,CACAC,kBACAC,OACAC,MACAC,WACAC,aAIAX,gBACA,OACAf,aAGA2B,OACAH,MACAI,oBACA,WACA,iBAIAC,aACAC,UAGAC,SACAC,2BACA,oBACA,wBACA/B,sBAEAA,oBAEA,CACA,sCACA,KACAA,4BAEAA,2BAIAgC,kBACA,oCACA,cACAhC,OACAiC,wCACA,wBACA,uBAGA,wCAMA,gCAGA,a,iCCvFA,yHAAurC,eAAG,G","file":"components/specSelect.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./specSelect.vue?vue&type=template&id=bbbdd6dc&scoped=true&\"\nvar renderjs\nimport script from \"./specSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./specSelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./specSelect.vue?vue&type=style&index=0&id=bbbdd6dc&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\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 \"bbbdd6dc\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/specSelect.vue\"\nexport default component.exports","export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--17-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./specSelect.vue?vue&type=template&id=bbbdd6dc&scoped=true&\"","var components\ntry {\n components = {\n uButton: function () {\n return import(\n /* webpackChunkName: \"uni_modules/uview-ui/components/u-button/u-button\" */ \"@/uni_modules/uview-ui/components/u-button/u-button.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 l1 = _vm.__map(_vm.newList, function (item, index) {\n var $orig = _vm.__get_orig(item)\n var l0 = _vm.__map(item.params, function (v, i) {\n var $orig = _vm.__get_orig(v)\n var g0 = !(item.featureType === 1)\n ? item.inputValue.indexOf(v.tagKey)\n : null\n var g1 = !(item.featureType === 1)\n ? item.inputValue.indexOf(v.tagKey)\n : null\n return {\n $orig: $orig,\n g0: g0,\n g1: g1,\n }\n })\n return {\n $orig: $orig,\n l0: l0,\n }\n })\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n l1: l1,\n },\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./specSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--13-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./specSelect.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"spec-select-conetnt\">\r\n\t\t<view class=\"spec-select\" v-for=\"(item,index) in newList\" :key=\"item.key\">\r\n\t\t\t<view class=\"spec-select-title\">\r\n\t\t\t\t<text class=\"title-1\">{{item.shopSpec}}</text>\r\n\t\t\t\t<text class=\"title-2\">【{{item.featureType==1?'单选':'多选'}}】</text>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"spec-select-list\">\r\n\t\t\t\t<view v-for=\"(v,i) in item.params\" :key=\"i\"\r\n\t\t\t\t\t:class=\"item.featureType === 1 ? (item.inputValue == v.tagKey ? 'active' : 'list__item') : (item.inputValue.indexOf(v.tagKey) !==-1 ? 'active' : 'list__item')\"\r\n\t\t\t\t\t@click=\"handleSelect(item,v)\">\r\n\t\t\t\t\t{{v.name}}\r\n\t\t\t\t\t<image\r\n\t\t\t\t\t\tv-if=\"item.featureType === 1 ? (item.inputValue == v.tagKey ? 'active' : 'list__item') : (item.inputValue.indexOf(v.tagKey) !==-1 ? 'active' : 'list__item')\"\r\n\t\t\t\t\t\tsrc=\"../static/xuanzhong.png\" class=\"image_active\">\r\n\t\t\t\t\t</image>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"spec-btn\">\r\n\t\t\t<u-button type=\"primary\" text=\"确定\" @click=\"submit\"></u-button>\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: \"specSelect\",\r\n\t\tprops: {\r\n\t\t\tlist: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault: {}\r\n\t\t\t},\r\n\t\t},\r\n\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tnewList: []\r\n\t\t\t};\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\tlist: {\r\n\t\t\t\thandler(value) {\r\n\t\t\t\t\tif (!!value.length) {\r\n\t\t\t\t\t\tthis.newList = value\r\n\t\t\t\t\t\t// console.log(value.length)\r\n\t\t\t\t\t}\r\n\t\t\t\t},\r\n\t\t\t\timmediate: true,\r\n\t\t\t\tdeep: true\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\thandleSelect(item, value) {\r\n\t\t\t\tif (item.featureType == 1) {\r\n\t\t\t\t\tif (item.inputValue !== value.tagKey) {\r\n\t\t\t\t\t\titem.inputValue = value.tagKey\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\titem.inputValue = ''\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tconst index = item.inputValue.indexOf(value.tagKey)\r\n\t\t\t\t\tif (index == -1) {\r\n\t\t\t\t\t\titem.inputValue.push(value.tagKey);\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\titem.inputValue.splice(index, 1);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tsubmit() {\r\n\t\t\t\tconst values = this.newList.map(item => {\r\n\t\t\t\t\treturn {\r\n\t\t\t\t\t\t...item,\r\n\t\t\t\t\t\tselectData: item.params.filter(v => {\r\n\t\t\t\t\t\t\tif (item.featureType == 1) {\r\n\t\t\t\t\t\t\t\treturn v.tagKey == item.inputValue;\r\n\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t// console.log(item, v);\r\n\t\t\t\t\t\t\t\treturn item.inputValue.includes(v.tagKey);\r\n\t\t\t\t\t\t\t}\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\t// console.log(values)\r\n\t\t\t\tthis.$emit('changeSelect', values)\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\t.spec-select-conetnt {\r\n\t\tpadding: 4px;\r\n\r\n\t\t.spec-select {\r\n\t\t\t.spec-select-title {\r\n\t\t\t\t.title-1 {\r\n\t\t\t\t\tcolor: #333;\r\n\t\t\t\t\tfont-size: 17px;\r\n\t\t\t\t\tfont-weight: 500;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.title-2 {\r\n\t\t\t\t\tcolor: #606266;\r\n\t\t\t\t\tfont-size: 15px;\r\n\t\t\t\t\tfont-weight: 400;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t.spec-select-list {\r\n\t\t\t\tdisplay: flex;\r\n\t\t\t\tjustify-content: space-between;\r\n\t\t\t\talign-items: center;\r\n\t\t\t\twidth: 100%;\r\n\t\t\t\tflex-wrap: wrap;\r\n\t\t\t\tmargin-top: 5.5px;\r\n\r\n\t\t\t\t.list__item {\r\n\t\t\t\t\twidth: 158px;\r\n\t\t\t\t\tline-height: 43px;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\theight: 43px;\r\n\t\t\t\t\tborder-radius: 8px;\r\n\t\t\t\t\tbackground: #F3F4F6;\r\n\t\t\t\t\tmargin-bottom: 12px;\r\n\t\t\t\t\tcolor: #333;\r\n\t\t\t\t\tfont-size: 15px;\r\n\t\t\t\t\tfont-weight: 400;\r\n\t\t\t\t\toverflow: hidden;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t.active {\r\n\t\t\t\t\twidth: 155px;\r\n\t\t\t\t\theight: 40px;\r\n\t\t\t\t\tline-height: 40px;\r\n\t\t\t\t\ttext-align: center;\r\n\t\t\t\t\tborder-radius: 8px;\r\n\t\t\t\t\tborder: 1.5px solid #4C96FF;\r\n\t\t\t\t\tposition: relative;\r\n\t\t\t\t\tbackground: #F3F4F6;\r\n\t\t\t\t\tmargin-bottom: 12px;\r\n\t\t\t\t\tcolor: #333;\r\n\t\t\t\t\tfont-size: 15px;\r\n\t\t\t\t\tfont-weight: 400;\r\n\t\t\t\t\toverflow: hidden;\r\n\r\n\t\t\t\t\t.image_active {\r\n\t\t\t\t\t\twidth: 20px;\r\n\t\t\t\t\t\theight: 16px;\r\n\t\t\t\t\t\tposition: absolute;\r\n\t\t\t\t\t\tright: 0;\r\n\t\t\t\t\t\tbottom: 0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t.spec-btn {\r\n\t\t\tpadding: 0 10px;\r\n\t\t\tmargin-top: 112px;\r\n\t\t\tmargin-bottom: 32px;\r\n\t\t}\r\n\t}\r\n</style>","import mod from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./specSelect.vue?vue&type=style&index=0&id=bbbdd6dc&lang=scss&scoped=true&\"; export default mod; export * from \"-!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--8-oneOf-1-0!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-1!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-2!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--8-oneOf-1-3!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\sass-loader\\\\dist\\\\cjs.js??ref--8-oneOf-1-4!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--8-oneOf-1-5!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./specSelect.vue?vue&type=style&index=0&id=bbbdd6dc&lang=scss&scoped=true&\""],"sourceRoot":""}
|