index.js.map 27 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///D:/yzm/worknew/wardrobe/pages/luru/index.vue?f971","webpack:///D:/yzm/worknew/wardrobe/pages/luru/index.vue?9e70","webpack:///D:/yzm/worknew/wardrobe/pages/luru/index.vue?ae5d","webpack:///D:/yzm/worknew/wardrobe/pages/luru/index.vue?d11b","uni-app:///pages/luru/index.vue","webpack:///D:/yzm/worknew/wardrobe/pages/luru/index.vue?9c03","webpack:///D:/yzm/worknew/wardrobe/pages/luru/index.vue?afff"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,4F,8FAHA;AACAA,EAAE,CAACC,iCAAH,GAAuCC,mBAAvC,CAGAC,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACLA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AACgM;AAChM,gBAAgB,0MAAU;AAC1B,EAAE,2EAAM;AACR,EAAE,gFAAM;AACR,EAAE,yFAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,oFAAU;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,aAAa,2OAEN;AACP,KAAK;AACL;AACA,aAAa,yNAEN;AACP,KAAK;AACL;AACA,aAAa,+NAEN;AACP,KAAK;AACL;AACA,aAAa,qOAEN;AACP,KAAK;AACL;AACA,aAAa,yNAEN;AACP,KAAK;AACL;AACA,aAAa,iPAEN;AACP,KAAK;AACL;AACA,aAAa,2RAEN;AACP;AACA;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACrFA;AAAA;AAAA;AAAA;AAAmvB,CAAgB,gwBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoEvwB;AACA,gF;;AAEA;AACA;AACA,+BADA,EADA;;AAIA,MAJA,kBAIA;AACA;AACA,4BADA;AAEA,4BAFA;AAGA,0BAHA;AAIA,gBAJA;AAKA,iCALA;AAMA,eANA;AAOA,kBAPA;AAQA,gBARA;AASA,iBATA;AAUA,oBAVA;;AAYA,GAjBA;AAkBA,QAlBA,kBAkBA,CAlBA,EAkBA;AACA;AACA;AACA,GArBA;AAsBA,SAtBA,qBAsBA;AACA;AACA;AACA,GAzBA;AA0BA;AACA,WADA,mBACA,IADA,EACA;AACA;AACA,KAHA;AAIA;AACA,sBALA,gCAKA;AACA;AACA,KAPA;AAQA;AACA,kBATA,0BASA,KATA,EASA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAtBA;AAuBA;AACA;AACA,GAzBA;AA0BA,MA1BA,EA0BA;AACA;AACA;AACA;AACA;AACA;AACA,GAhCA;AAiCA;AACA;AACA;AACA,4CADA;AAEA,oBAFA;AAGA,0DAHA;AAIA,QAJA,CAIA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KAVA;AAWA,GA9CA;AA+CA,GA/CA,EA+CA;AACA;AACA;AACA;AACA;AACA;AACA,GArDA;AAsDA,GAtDA,EAsDA;AACA;AACA;AACA;AACA;AACA;AACA,GA5DA;AA6DA,GA7DA,EA6DA;AACA;AACA;AACA;AACA;AACA;AACA,GAnEA;AAoEA;AACA;AACA,GAtEA;AAuEA;AACA;AACA,kCADA;AAEA;AACA;AACA;AACA;AACA;AACA,OAPA;;AASA,GAjFA;AAkFA;AACA;AACA;AACA,cADA,EACA;AACA,0CAFA,EAEA;AACA,qCAHA,EAGA;AACA;AACA,4CADA,CACA;AACA,kCAFA,CAEA;AACA;AACA;AACA;AACA,OAVA;;AAYA,GAhGA;AAiGA,GAjGA,EAiGA;AACA;AACA;AACA;AACA;AACA;AACA,GAvGA;AAwGA;AACA;AACA;AACA,oCADA;AAEA,oBAFA;AAGA,cAHA;AAIA,QAJA,CAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mCADA;AAEA,wBAFA;AAGA,kBAHA;AAIA,YAJA,CAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,yFADA;AAEA,gGAFA;;AAIA;AACA;AACA;AACA,WAhBA,MAgBA;;AAEA;AACA,SAxBA;;AA0BA,OAzCA,MAyCA;;AAEA;AACA,KAjDA;AAkDA,GA5JA;AA6JA,MA7JA,EA6JA;AACA;AACA;AACA,QADA,CACA;AACA;AACA,KAHA;AAIA,SAJA,CAIA;AACA;AACA,KANA;AAOA,GAtKA;AAuKA,KAvKA,EAuKA;AACA;AACA;AACA;AACA,iEADA;AAEA,oBAFA;AAGA;AACA,mEADA;AAEA,wDAFA,EAHA;;AAOA;AACA,kBADA,EAPA;;AAUA;AACA;AACA;AACA,OAbA;AAcA;AACA;AACA,OAhBA;;AAkBA,GA5LA;AA6LA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCADA;AAEA,oBAFA;AAGA;AACA,gBADA;AAEA,2BAFA;AAGA,yBAHA;AAIA,mCAJA,EAHA;;AASA,QATA,CASA;AACA;AACA,gBADA;AAEA,2BAFA;AAGA,yBAHA;AAIA,mCAJA;;AAMA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KArBA;AAsBA,GA9OA,YA1BA,E;;;;;;;;;;;;;ACvEA;AAAA;AAAA;AAAA;AAAk5C,CAAgB,m2CAAG,EAAC,C;;;;;;;;;;;ACAt6C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/luru/index.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/luru/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=052ecc48&\"\nvar renderjs\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../exe/HBuilderX.3.4.7.20220422/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 null,\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/luru/index.vue\"\nexport default component.exports","export * from \"-!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=template&id=052ecc48&\"","var components\ntry {\n components = {\n tmMenubars: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-menubars/tm-menubars\" */ \"@/tm-vuetify/components/tm-menubars/tm-menubars.vue\"\n )\n },\n tmSheet: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-sheet/tm-sheet\" */ \"@/tm-vuetify/components/tm-sheet/tm-sheet.vue\"\n )\n },\n tmButton: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-button/tm-button\" */ \"@/tm-vuetify/components/tm-button/tm-button.vue\"\n )\n },\n tmPickers: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-pickers/tm-pickers\" */ \"@/tm-vuetify/components/tm-pickers/tm-pickers.vue\"\n )\n },\n tmInput: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-input/tm-input\" */ \"@/tm-vuetify/components/tm-input/tm-input.vue\"\n )\n },\n tmTranslate: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-translate/tm-translate\" */ \"@/tm-vuetify/components/tm-translate/tm-translate.vue\"\n )\n },\n tmMessage: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-message/tm-message\" */ \"@/tm-vuetify/components/tm-message/tm-message.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 g0 = _vm.$tm.vx.state()\n var l0 =\n _vm.active == 2\n ? _vm.__map(_vm.arrbig, function(item, index) {\n var $orig = _vm.__get_orig(item)\n\n var m0 = item.type == \"select\" ? _vm.getshow(item) : null\n return {\n $orig: $orig,\n m0: m0\n }\n })\n : null\n _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0,\n l0: l0\n }\n }\n )\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view :style=\"{ minHeight: sys.windowHeight + 'px' }\"\r\n\t\t:class=\"[$tm.vx.state().tmVuetify.black ? 'black' : ' ']\">\r\n\t\t<tm-menubars title=\"衣物录入\" :shadow=\"0\" :showback=\"true\"></tm-menubars>\r\n\t\t<div class=\"zhuti\">\r\n\t\t\t<tm-sheet class=\"kuang\" style=\"padding-bottom: 70px !important;\">\r\n\t\t\t\t<image v-if=\"active==1\" class=\"jindu\" src=\"/static/img/49.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t<image v-if=\"active==2\" class=\"jindu\" src=\"/static/img/50.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t<image v-if=\"active==3\" class=\"jindu\" src=\"/static/img/51.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t<view class=\"wenzi flex-between flex-center\" style=\"margin-top: 10px;\">\r\n\t\t\t\t\t<view>\r\n\t\t\t\t\t\t<text class=\"text-white text-size-m\">衣物拍照</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view>\r\n\t\t\t\t\t\t<text class=\"text-white text-size-m\">确认衣物属性</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view>\r\n\t\t\t\t\t\t<text class=\"text-white text-size-m\">入库成功</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view v-if=\"active==1\">\r\n\t\t\t\t\t<view class=\"mt-20 ml-15\">\r\n\t\t\t\t\t\t<text class=\"text-white text-size-m\">*衣物拍照实例图</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<image block class=\"zhanshi\" mode=\"widthFix\" src=\"/static/img/48.png\"></image>\r\n\t\t\t\t\t<tm-button :round=\"24\" class=\"mb-40\" @click=\"paizhao()\" block>拍照录入</tm-button>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view v-if=\"active==2\">\r\n\t\t\t\t\t<image v-if=\"alldata\" block class=\"nicheng\" mode=\"widthFix\" :src=\"alldata.img\"></image>\r\n\t\t\t\t\t<view class=\"you black mt-30\">\r\n\t\t\t\t\t\t<view v-for=\"(item,index) in arrbig\">\r\n\t\t\t\t\t\t\t<tm-pickers :default-value=\"getshow(item)\" class=\"tan\" v-if=\"item.type=='select'\" @confirm=\"xuanze\" :indexfu=\"item.name\" :list=\"item.value\">\r\n\t\t\t\t\t\t\t\t<tm-input :title=\"item.name\" align=\"right\" :placeholder=\"'请选择'+item.name\" v-model=\"item.choosevalue\" disabled right-icon=\"icon-angle-right\"></tm-input>\r\n\t\t\t\t\t\t\t</tm-pickers>\r\n\t\t\t\t\t\t\t<tm-input v-if=\"item.type=='text' && item.name !='颜色'\" :title=\"item.name\" v-model=\"item.choosevalue\" align=\"right\"></tm-input>\r\n\t\t\t\t\t\t\t<view class=\"border-b-0 border-grey-darken-4-b-1 py-24 flex-between\" v-if=\"item.name=='颜色'\">\r\n\t\t\t\t\t\t\t\t<text class=\"text-size-n \">{{item.name}}</text>\r\n\t\t\t\t\t\t\t\t<view>\r\n\t\t\t\t\t\t\t\t\t<view class=\"seka\" :style=\"{'backgroundColor':item.choosevalue}\" @tap=\"showPickerColorPop\"></view>\r\n\t\t\t\t\t\t\t\t\t<picker-color :isShow=\"showPickerColor\" :bottom=\"bottomPickerColor\" @callback='getPickerColor' />\r\n\t\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<tm-button :round=\"24\" class=\"sao mb-40 mt-40\" @click=\"chuangjianFun()\" block>提交</tm-button>\r\n\t\t\t\t</view>\r\n\t\t\t\t<view v-if=\"active==3\">\r\n\t\t\t\t\t<tm-translate ref=\"a_1\" :auto=\"true\" animation-name=\"zoomIn\">\r\n\t\t\t\t\t\t<image block class=\"nicheng\" mode=\"widthFix\" src=\"/static/img/52.png\"></image>\r\n\t\t\t\t\t</tm-translate>\r\n\t\t\t\t\t<view class=\"text-align-center mt-20\">\r\n\t\t\t\t\t\t<text class=\"text-size-m text-white\">衣物添加成功!</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"text-align-center mb-40\">\r\n\t\t\t\t\t\t<text class=\"text-size-m\">您可以在我的衣柜中添加或删除衣物</text>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"px-24\">\r\n\t\t\t\t\t\t<tm-button @click=\"jixu()\" :round=\"24\" block class=\"mt-50 logincla\">继续添加衣物</tm-button>\r\n\t\t\t\t\t\t<tm-button @click=\"quindex()\" theme=\"primary\" :round=\"24\" block class=\"mt-30 quindex\">进入衣柜</tm-button>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</tm-sheet>\r\n\t\t</div>\r\n\t\t<!-- 弹出层消息 -->\r\n\t\t<tm-message ref=\"toast\"></tm-message>\r\n\t</view>\r\n</template>\t\r\n<script>\r\nimport{myRequest} from '@/api/request.js'\r\nimport { pathToBase64, base64ToPath } from '@/js_sdk/mmmm-image-tools/index.js'\r\nimport pickerColor from \"@/components/helang-pickerColor/helang-pickerColor.vue\"\r\nexport default {\r\n\tcomponents: {\r\n\t\t\"picker-color\":pickerColor,\r\n\t},\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tbuttonColor:\"#0099FF\",\r\n\t\t\tshowPickerColor:false,\r\n\t\t\tbottomPickerColor:0,\r\n\t\t\tarrbig:[],\r\n\t\t\tkoutu:'/static/img/53.png',\r\n\t\t\tactive:1,\r\n\t\t\trole_arr:[],\r\n\t\t\tfenlei:[],\r\n\t\t\talldata:{},\r\n\t\t\tlable_code:''\r\n\t\t};\r\n\t},\r\n\tonLoad(e) {\r\n\t\tconsole.log(e)\r\n\t\tthis.lable_code=e.lable_code;\r\n\t},\r\n\tcreated() {\r\n\t\tthis.sys = uni.getSystemInfoSync();\r\n\t\tthis.getCY();\r\n\t},\r\n\tmethods: {\r\n\t\tgetshow(data){\r\n\t\t\treturn [data.choosevalue]\r\n\t\t},\r\n\t\t/* 显示获取颜色选择弹窗 */\r\n\t\tshowPickerColorPop(){\r\n\t\t\tthis.showPickerColor=true;\r\n\t\t},\r\n\t\t/* 获取颜色选择回调 */\r\n\t\tgetPickerColor(color){\r\n\t\t\t/* 隐藏弹窗 */\r\n\t\t\tthis.showPickerColor=false;\r\n\t\t\t/* 判断颜色值是否有效 */\r\n\t\t\tif(color){\r\n\t\t\t\tthis.buttonColor=color;\r\n\t\t\t\tvar xunhuan=this.arrbig;\r\n\t\t\t\tfor(let i=0;i<xunhuan.length;i++){\r\n\t\t\t\t\tif(xunhuan[i].name==\"颜色\"){\r\n\t\t\t\t\t\txunhuan[i].choosevalue=color\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tshowPickerColorPop(){\r\n\t\t\tthis.showPickerColor=true;\r\n\t\t},\r\n\t\txuanze(data){\r\n\t\t\tfor(let i=0;i<this.arrbig.length;i++){\r\n\t\t\t\tif(this.arrbig[i].name==data[0].name){\r\n\t\t\t\t\tthis.arrbig[i].choosevalue=data[0].data\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tgetCY(){\r\n\t\t\tvar that=this;\r\n\t\t\tmyRequest({\r\n\t\t\t\turl: \"/api/MemberInfo/getFamilyMember\",\r\n\t\t\t\tmethod:'post',\r\n\t\t\t\tdata:{family_id:uni.getStorageSync(\"family_id\")}\r\n\t\t\t}).then(res => {\r\n\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\tthat.role_arr=res.data.data;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthat.role_arr=[];\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tobTstr1(o){\r\n\t\t\tif(Array.isArray(o)){\r\n\t\t\t\tif(o.length.length===0) return \"\";\r\n\t\t\t\treturn o[0]?.category_name??\"\"\r\n\t\t\t}\r\n\t\t\treturn ''\r\n\t\t},\r\n\t\tobTstr2(o){\r\n\t\t\tif(Array.isArray(o)){\r\n\t\t\t\tif(o.length.length===0) return \"\";\r\n\t\t\t\treturn o[0]?.title??\"\"\r\n\t\t\t}\r\n\t\t\treturn ''\r\n\t\t},\r\n\t\tobTstr3(o){\r\n\t\t\tif(Array.isArray(o)){\r\n\t\t\t\tif(o.length.length===0) return \"\";\r\n\t\t\t\treturn o[0]?.username??\"\"\r\n\t\t\t}\r\n\t\t\treturn ''\r\n\t\t},\r\n\t\tjixu(){\r\n\t\t\tthis.active=1;\r\n\t\t},\r\n\t\tquindex(){\r\n\t\t\tuni.switchTab({\r\n\t\t\t\turl: \"/pages/wardrobe/index\",\r\n\t\t\t\tsuccess: function (e) {\r\n\t\t\t\t\tvar page = getCurrentPages()[0]\r\n\t\t\t\t\tconsole.log(getCurrentPages())\r\n\t\t\t\t\tif (page == undefined || page == null) return;\r\n\t\t\t\t\tpage.shuaxin(); \r\n\t\t\t\t }\r\n\t\t\t})\r\n\t\t},\r\n\t\tpaizhao(){\r\n\t\t\tvar that=this;\r\n\t\t\tuni.chooseImage({ //uni官方api,用于选取本地图片\r\n\t\t\t\tcount: 1, //默认9\r\n\t\t\t\tsizeType: ['original', 'compressed'], //可以指定是原图还是压缩图,默认二者都有\r\n\t\t\t\tsourceType: ['album','camera'], //从相册选择\r\n\t\t\t\tsuccess: function (res) {\r\n\t\t\t\t\tthat.imgpath = res.tempFilePaths[0] //先获得本地文件的路径列表,存储到数组\r\n\t\t\t\t\tconsole.log(that.imgpath) //注意该api会将路径转换为blob格式\r\n\t\t\t\t\t// that.getBase64Image(that.imgpath);\r\n\t\t\t\t\t// 调脚本接口\r\n\t\t\t\t\tthat.jiaobenFun()\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tobTstrnew(o){\r\n\t\t\tif(Array.isArray(o)){\r\n\t\t\t\tif(o.length.length===0) return \"\";\r\n\t\t\t\treturn o[0]?.category_name??\"\"\r\n\t\t\t}\r\n\t\t\treturn ''\r\n\t\t},\r\n\t\tjiaobenFun(){\r\n\t\t\tvar that=this;\r\n\t\t\tmyRequest({\r\n\t\t\t\turl: \"/api/Goods/selectScript\",\r\n\t\t\t\tmethod:'post',\r\n\t\t\t\tdata:''\r\n\t\t\t}).then(res => {\r\n\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\t// var arrbig=[\r\n\t\t\t\t\t// \t{name:\"名称\",value:\"羽绒服\",choosevalue:'',type:'text'},\r\n\t\t\t\t\t// \t{name:\"颜色\",value:\"#b1b1b1\",choosevalue:'',type:'text'},\r\n\t\t\t\t\t// \t{name:\"尺码\",value:[\"S\",\"L\",\"M\"],choosevalue:'L',type:'select'},\r\n\t\t\t\t\t// \t{name:\"材质\",value:[\"牛仔\",\"纯棉\",\"羊毛\"],choosevalue:'纯棉',type:'select'}\r\n\t\t\t\t\t// ]\r\n\t\t\t\t\tthat.alldata=res.data.data;\r\n\t\t\t\t\tthat.arrbig=res.data.data.parm;\r\n\t\t\t\t\t// var xunhuan=that.arrbig;\r\n\t\t\t\t\t// for(let i=0;i<xunhuan.length;i++){\r\n\t\t\t\t\t// \tif(xunhuan[i].name==\"颜色\"){\r\n\t\t\t\t\t// \t\tthat.buttonColor=\"#\"+xunhuan[i].choosevalue\r\n\t\t\t\t\t// \t}\r\n\t\t\t\t\t// }\r\n\t\t\t\t\tmyRequest({\r\n\t\t\t\t\t\turl: \"/api/Category/list\",\r\n\t\t\t\t\t\tmethod:'post',\r\n\t\t\t\t\t\tdata:''\r\n\t\t\t\t\t}).then(res => {\r\n\t\t\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\t\t\tvar valuearr=[],rolevaluearr=[];\r\n\t\t\t\t\t\t\tfor(let i=0;i<res.data.data.length;i++){\r\n\t\t\t\t\t\t\t\tvaluearr.push(res.data.data[i].category_name)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tfor(let i=0;i<that.role_arr.length;i++){\r\n\t\t\t\t\t\t\t\trolevaluearr.push(that.role_arr[i].username)\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tvar arrsmall=[\r\n\t\t\t\t\t\t\t\t{name:\"分类\",value:valuearr,choosevalue:'',type:'select',classid:''},\r\n\t\t\t\t\t\t\t\t{name:\"所属成员\",value:rolevaluearr,choosevalue:'',type:'select',memberid:''},\r\n\t\t\t\t\t\t\t];\r\n\t\t\t\t\t\t\tthat.arrbig=arrsmall.concat(that.arrbig)\r\n\t\t\t\t\t\t\tthat.fenlei=res.data.data;\r\n\t\t\t\t\t\t\tthat.active=2;\r\n\t\t\t\t\t\t}else{\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\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tgetBase64Image(path){\r\n\t\t\tvar that=this;\r\n\t\t\tpathToBase64(path)\r\n\t\t\t .then(base64 => {\r\n\t\t\t that.shibie(base64)\r\n\t\t\t })\r\n\t\t\t .catch(error => {\r\n\t\t\t console.error(error)\r\n\t\t\t })\r\n\t\t},\r\n\t\tshibie(src){\r\n\t\t\tvar that=this;\r\n\t\t\t// 抠图\r\n\t\t\tuni.request({\r\n\t\t\t\turl: 'https://objseg.market.alicloudapi.com/commonseg/rgba',\r\n\t\t\t\tmethod : \"post\",\r\n\t\t\t\theader: {\r\n\t\t\t\t\t'Authorization':'APPCODE a4a922a41afa43a0bbca6c831a13bf43',\r\n\t\t\t\t\t\"Content-Type\":\"application/json;charset=UTF-8\"\r\n\t\t\t\t},\r\n\t\t\t\tdata:{\r\n\t\t\t\t\tphoto:src\r\n\t\t\t\t},\r\n\t\t\t\tsuccess : function(data) {\r\n\t\t\t\t\tthat.koutu=data.data.data.result;\r\n\t\t\t\t\tthat.active=2;\r\n\t\t\t\t},\r\n\t\t\t\terror : function(e) {\r\n\t\t\t\t\tthat.$refs.toast.show({model:'error',label:\"网络异常,请重试\"})\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t},\r\n\t\tchuangjianFun(){\r\n\t\t\tvar that=this;\r\n\t\t\tfor(let i=0;i<that.arrbig.length;i++){\r\n\t\t\t\tif(that.arrbig[i].choosevalue==\"\"){\r\n\t\t\t\t\tthat.$refs.toast.show({model:'warn',label:'请将数据填写完整'})\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// 分类id\r\n\t\t\tfor(let i=0;i<that.fenlei.length;i++){\r\n\t\t\t\tif(that.fenlei[i].category_name==that.arrbig[0].choosevalue){\r\n\t\t\t\t\tthat.arrbig[0].classid=that.fenlei[i].id\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// 成员id\r\n\t\t\tconsole.log(that.role_arr)\r\n\t\t\tfor(let i=0;i<that.role_arr.length;i++){\r\n\t\t\t\tif(that.role_arr[i].username==that.arrbig[1].choosevalue){\r\n\t\t\t\t\tthat.arrbig[1].memberid=that.role_arr[i].id\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// 去掉图片的头\r\n\t\t\tvar img=\"\"\r\n\t\t\tif(that.alldata.img){\r\n\t\t\t\tvar oldimg=that.alldata.img;\r\n\t\t\t\timg=oldimg.substr(24)\r\n\t\t\t}\r\n\t\t\tmyRequest({\r\n\t\t\t\turl: \"/api/Goods/addGodds\",\r\n\t\t\t\tmethod:'post',\r\n\t\t\t\tdata:{\r\n\t\t\t\t\timg:img,\r\n\t\t\t\t\tid:that.alldata.id,\r\n\t\t\t\t\tparm:that.arrbig,\r\n\t\t\t\t\tlable_code:that.lable_code\r\n\t\t\t\t}\r\n\t\t\t}).then(res => {\r\n\t\t\t\tconsole.log({\r\n\t\t\t\t\timg:img,\r\n\t\t\t\t\tid:that.alldata.id,\r\n\t\t\t\t\tparm:that.arrbig,\r\n\t\t\t\t\tlable_code:that.lable_code\r\n\t\t\t\t})\r\n\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\tthat.active=3;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthat.$refs.toast.show({model:'error',label:res.data.msg})\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t}\r\n\t},\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t.zhanshi{\r\n\t\twidth: 100%;\r\n\t\tmargin: 0 auto;\r\n\t\tmargin-top: 10px;\r\n\t\tmargin-bottom: 40px;\r\n\t}\r\n\t/deep/ .tm-menubars .body{\r\n\t\tbackground-color: #1b1b1b !important;\r\n\t}\r\n\t/deep/ .kuang{margin:0 !important;padding: 14px !important;margin-bottom: 40px !important;}\r\n\t// /deep/ .kuang uni-button{background-color: #303440 !important;}\r\n\t.jindu{width: 90%;margin: 0 auto;display: block;}\r\n\t.wenzi{width: 94%;margin: 0 auto;}\r\n\t.nicheng{width: 60%;display: block;margin:0 auto;margin-top: 50px;}\r\n\t/deep/ .shuru .grey-darken-5{\r\n\t\tbackground-color: #0d0d0d!important;\r\n\t\tpadding: 0px !important;\r\n\t}\r\n\t.shuru{border:1px solid #303030;border-radius: 10px;}\r\n\t/deep/ .shuru .text-primary.bk{color:#303030 !important;}\r\n\t/deep/ .shuru .border-grey-darken-4-b-1{border-bottom:none !important;}\r\n\t.zuo image{width:60px;display: block;}\r\n\t.you{border:1px solid #303030;border-radius: 10px;padding:10px;}\r\n\t/deep/ .you .grey-darken-5{\r\n\t\tbackground-color: #0d0d0d!important;\r\n\t\tpadding: 0px !important;\r\n\t}\r\n\t/deep/ .you .text-red{color: white;}\r\n\t/deep/ .tan .active{background-color: #AAAAAA !important;}\r\n\t/deep/ .tan .tm-poups .grey-darken-5{background-color: gray !important;}\r\n\t/deep/ .tan uni-input{text-align: right;}\r\n\t/deep/ .you .border-grey-darken-4-b-1 {\r\n\t border-bottom: solid 1px #313131 !important;\r\n\t}\r\n\t/deep/ .tm--badges{position: absolute;top: 0px;right:6px}\r\n\t.logincla{margin-top: 100px;}\r\n\t/deep/ .logincla .primary{background-color: #303440 !important;}\r\n\t/deep/ .quindex uni-button{background-color: #0A84FF !important;}\r\n\t.seka{width: 40px;height: 20px;border:1px solid white;}\r\n</style>\r\n","import mod from \"-!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss&\"; export default mod; export * from \"-!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../exe/HBuilderX.3.4.7.20220422/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./index.vue?vue&type=style&index=0&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1678780469845\n var cssReload = require(\"D:/yzm/exe/HBuilderX.3.4.7.20220422/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":""}