1 |
- {"version":3,"sources":["uni-app:///main.js","webpack:///D:/yzm/worknew/wardrobe/pages/baocun/index.vue?0969","webpack:///D:/yzm/worknew/wardrobe/pages/baocun/index.vue?10c1","webpack:///D:/yzm/worknew/wardrobe/pages/baocun/index.vue?703d","webpack:///D:/yzm/worknew/wardrobe/pages/baocun/index.vue?ba26","uni-app:///pages/baocun/index.vue","webpack:///D:/yzm/worknew/wardrobe/pages/baocun/index.vue?5138","webpack:///D:/yzm/worknew/wardrobe/pages/baocun/index.vue?dc3b"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,8F,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,yQAEN;AACP,KAAK;AACL;AACA,aAAa,yNAEN;AACP,KAAK;AACL;AACA,aAAa,yQAEN;AACP,KAAK;AACL;AACA,aAAa,2RAEN;AACP,KAAK;AACL;AACA,aAAa,+NAEN;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,MAAM;AACN;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AC7EA;AAAA;AAAA;AAAA;AAAmvB,CAAgB,gwBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACoDvwB,+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eACA,EACA,IADA,kBACA,CACA,SACA,UADA,EAEA,aAFA,EAGA,cAHA,EAIA,MAJA,EAKA,cALA,EAMA,eANA,EAOA,SAPA,EAQA,YARA,EASA,eATA,EAUA,mBAVA,EAWA,QAXA,EAYA,UACA,8BADA,EAEA,iBAFA,EAGA,sBAHA,EAIA,KAJA,EAKA,MALA,EAMA,SANA,GAZA,EAoBA,aApBA,EAoBA;AACA,kBArBA,EAqBA;AACA,aAtBA,EAuBA,WAvBA,GAyBA,CA3BA,EA4BA,MA5BA,kBA4BA,CA5BA,EA4BA,CACA,+BADA,CACA;AACA,+BACA,oBACA,eACA,CAFA,MAEA,oBACA,eACA,CAFA,MAEA,oBACA,aACA,aACA,eACA,CACA,CAxCA,EAyCA,OAzCA,qBAyCA,CACA,mCACA,oBACA,CA5CA,EA6CA,WACA,KADA,mBACA,CACA,gBACA,0BACA,2BADA,EAEA,cAFA,EAGA,QAHA,IAIA,IAJA,CAIA,gBACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAZA,MAYA;AACA;AACA;AACA,OApBA;AAqBA,KAxBA;AAyBA,WAzBA,qBAyBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,kCADA;AAEA,yCAFA;AAGA,0CAHA;AAIA,qBAJA;AAKA,8BALA;AAMA,kBANA;AAOA,qBAPA;;AASA;AACA;AACA;AACA;AACA,KA5CA;AA6CA,YA7CA,oBA6CA,IA7CA,EA6CA;AACA;AACA;AACA,mEADA;;AAGA,KAlDA;AAmDA,WAnDA,qBAmDA;AACA;AACA;AACA,qDADA;AAEA,sBAFA;AAGA,sCAHA;AAIA,UAJA,CAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAbA,MAaA;;AAEA;AACA,OArBA;AAsBA,KA3EA;AA4EA,WA5EA,qBA4EA;AACA;AACA;AACA,2DADA;AAEA,sBAFA;AAGA,6BAHA;AAIA,UAJA,CAIA;;AAEA;AACA;AACA,0CADA,CACA;AACA;AACA,qDAHA,CAGA;AACA;AACA,sBADA;AAEA;AACA;AACA,eAJA;;AAMA,WAVA,EAUA,IAVA;AAWA;AACA,SAbA,MAaA;AACA;AACA;AACA,OAtBA;AAuBA,KArGA;AAsGA,gBAtGA,0BAsGA;AACA;AACA;AACA,8CADA;AAEA,sBAFA;AAGA,4DAHA;AAIA,UAJA,CAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAXA,MAWA;AACA;AACA;AACA,SAfA,MAeA;AACA;AACA;AACA,OAvBA;AAwBA,KAhIA;AAiIA,UAjIA,kBAiIA,CAjIA,EAiIA;AACA;AACA,KAnIA;AAoIA,SApIA,mBAoIA;AACA;AACA;AACA,oDADA;AAEA,sBAFA;AAGA,gBAHA;AAIA,UAJA,CAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAZA,MAYA;AACA;AACA;AACA,OApBA;AAqBA,KA3JA;AA4JA,UA5JA,oBA4JA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,gCADA;AAEA,0DAFA;AAGA,yCAHA;AAIA,uBAJA;AAKA,uDALA;;AAOA;AACA;AACA,OAVA,MAUA;AACA;AACA;AACA;AACA;AACA,gCADA;AAEA,0DAFA;AAGA,yCAHA;AAIA,qBAJA;AAKA,uDALA;AAMA,yBANA;;AAQA;AACA;AACA;AACA,gBADA;AAEA,sBAFA;AAGA,iBAHA;AAIA,UAJA,CAIA;AACA;AACA;AACA;AACA,0CADA,CACA;AACA,qDAFA,CAEA;AACA;AACA,sBADA;AAEA;AACA;AACA,eAJA;;AAMA,WATA,EASA,IATA;AAUA;AACA,SAZA,MAYA;AACA;AACA;AACA,OArBA;AAsBA;AACA,KAnNA;AAoNA,cApNA,sBAoNA,IApNA,EAoNA;AACA;AACA;AACA;AACA;AACA,KAzNA,EA7CA,E;;;;;;;;;;;;;ACrDA;AAAA;AAAA;AAAA;AAAk5C,CAAgB,m2CAAG,EAAC,C;;;;;;;;;;;ACAt6C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/baocun/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/baocun/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=3bce62b0&\"\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/baocun/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=3bce62b0&\"","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 tmForm: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-form/tm-form\" */ \"@/tm-vuetify/components/tm-form/tm-form.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 tmTabs: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-tabs/tm-tabs\" */ \"@/tm-vuetify/components/tm-tabs/tm-tabs.vue\"\n )\n },\n tmCartCellListFood: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-cartCellListFood/tm-cartCellListFood\" */ \"@/tm-vuetify/components/tm-cartCellListFood/tm-cartCellListFood.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 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 _vm.$mp.data = Object.assign(\n {},\n {\n $root: {\n g0: g0\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: 10px !important;\">\r\n\t\t\t\t<view style=\"width: 94%;margin:0 auto;\">\r\n\t\t\t\t\t<image class=\"chuanda\" src=\"/static/img/108.png\" mode=\"widthFix\"></image>\r\n\t\t\t\t\t<view class=\"shuru\">\r\n\t\t\t\t\t\t<tm-form>\r\n\t\t\t\t\t\t\t<view class=\"text-size-m text-white\">请输入搭配名称</view>\r\n\t\t\t\t\t\t\t<tm-input v-model=\"familyname\" name=\"title\" clear placeholder=\"出席重要场合\" clear></tm-input>\r\n\t\t\t\t\t\t</tm-form>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view>\r\n\t\t\t\t\t\t<view class=\"biaoti text-white mt-30 text-size-m\"><view class=\"mr-10\"></view>分类</view>\r\n\t\t\t\t\t\t<tm-tabs @change=\"fenlei\" class=\"C1b1b1b qiehuan\" color=\"white\" align=\"left\" v-model=\"activeIndex\" :list=\"listfl\" range-key=\"title\"></tm-tabs>\r\n\t\t\t\t\t\t<view class=\"biaoti text-white mt-30 text-size-m\"><view class=\"mr-10\"></view>场景</view>\r\n\t\t\t\t\t\t<tm-tabs class=\"C1b1b1b qiehuan\" color=\"white\" align=\"left\" v-model=\"activeIndex1\" :list=\"list1\" range-key=\"title\"></tm-tabs>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<!-- <view v-if=\"off==1\" class=\"text-align-center mt-20 text-white\">丝缎质感纹理风衣</view> -->\r\n\t\t\t\t\t<!-- <view v-if=\"off==1\" class=\"text-align-center mt-10 text-size-s\">丝滑如肌肤</view> -->\r\n\t\t\t\t</view>\r\n\t\t\t</tm-sheet>\r\n\t\t</div>\r\n\t\t<!-- <view class=\"goumai shangpin\" v-if=\"off==1\" >\r\n\t\t\t<view class=\"pt-20\"><text class=\"ml-20\">衣物名</text><text class=\"fr mr-20 text-gray text-size-s\">丝缎质感纹理风衣</text></view>\r\n\t\t\t<view class=\"pa-20\"><tm-cartCellListFood v-on:jiaruFun=\"jiarufuFun\" v-for=\"item in test1\" :typeclick=\"typeclick1\" :mdata=\"item\" :cart-num.sync=\"item.buy\"></tm-cartCellListFood></view>\r\n\t\t</view> -->\r\n\t\t<tm-sheet :shadow=\"24\" class=\"jiaoxi xiao\">\r\n\t\t\t<tm-tabs align=\"center\" class=\"qiehuan1\" v-model=\"activeIndex5\" :list=\"list5\" range-key=\"title\"></tm-tabs>\r\n\t\t</tm-sheet>\r\n\t\t<!-- 单品 -->\r\n\t\t<view class=\"zhuti shangpin\">\r\n\t\t\t<tm-sheet :padding=\"[0, 0]\" class=\"jiaoxi xiao\">\r\n\t\t\t\t<tm-cartCellListFood v-on:genghuan=\"genghuan\" v-for=\"item in test\" :typeclick=\"typeclick\" :mdata=\"item\" :cart-num.sync=\"item.buy\"></tm-cartCellListFood>\r\n\t\t\t</tm-sheet>\r\n\t\t</view>\r\n\t\t<!-- <tm-button :round=\"24\" class=\"sao mb-40 mt-40\" block>保存</tm-button> -->\r\n\t\t<view class=\"anniu\" v-if=\"off==2\">\r\n\t\t\t<tm-button @click=\"shanchu()\" :round=\"24\" theme=\"gray\" size=\"n\">删除</tm-button>\r\n\t\t\t<tm-button @click=\"baocun()\" :round=\"24\" class=\"fr\" theme=\"primary\" size=\"n\">保存</tm-button>\r\n\t\t</view>\r\n\t\t<view class=\"anniu\" v-if=\"off==1 || off==3\">\r\n\t\t\t<tm-button class=\"anniubaocun \" @click=\"baocun()\" :round=\"24\" theme=\"primary\" size=\"n\">保存</tm-button>\r\n\t\t</view>\r\n\t\t<view style=\"clear: both;\"></view>\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\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tlistfl:[],\r\n\t\t\tlistflall:[],\r\n\t\t\tfamilyname:'',\r\n\t\t\toff:1,\r\n\t\t\tactiveIndex:0,\r\n\t\t\tactiveIndex5:0,\r\n\t\t\tlist1:[],\r\n\t\t\tlist1all:[],\r\n\t\t\tactiveIndex1:0,\r\n\t\t\tlist5:[ '搭配内的购物清单'],\r\n\t\t\ttest: [],\r\n\t\t\ttest1: [{\r\n\t\t\t\timg: '../../static/img/83.png',\r\n\t\t\t\ttitle: '丝缎质感纹理风衣',\r\n\t\t\t\tlabel: '黑色 - 6518/320',\r\n\t\t\t\tid: 3,\r\n\t\t\t\tbuy: 0,\r\n\t\t\t\titemId: 0\r\n\t\t\t}],\r\n\t\t\ttypeclick1:6,//1加入购物车,2购物车,3前往购买,4,5\r\n\t\t\ttypeclick:7,//1加入购物车,2购物车,3前往购买,4,5\r\n\t\t\tids:[],\r\n\t\t\talldata:{}\r\n\t\t};\r\n\t},\r\n\tonLoad(e) {\r\n\t\tthis.off=e.type?e.type:1;//1修改单品返回此页面 2是修改该页面数据 3是新建\r\n\t\tthis.id=e.id?e.id:13;\r\n\t\tif(this.off==1){\r\n\t\t\tthis.huancun();\r\n\t\t}else if(this.off==2){\r\n\t\t\tthis.getDate();\r\n\t\t}else if(this.off==3){\r\n\t\t\tthis.getCj();\r\n\t\t\tthis.getFl();\r\n\t\t\tthis.huancun();\r\n\t\t}\r\n\t},\r\n\tcreated() {\r\n\t\tthis.sys = uni.getSystemInfoSync();\r\n\t\tthis.fenleichange();\r\n\t},\r\n\tmethods: {\r\n\t\tgetCj(){\r\n\t\t\tvar that=this;\r\n\t\t\tmyRequest({\r\n\t\t\t\turl: \"/api/Scene/sceneList\",\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\tif(res.data.data.length != 0){\r\n\t\t\t\t\t\t// that.listfl=['全部'];\r\n\t\t\t\t\t\tthat.list1=[];\r\n\t\t\t\t\t\tfor(let i=0;i<res.data.data.length;i++){\r\n\t\t\t\t\t\t\tthat.list1.push(res.data.data[i].scene_name)\r\n\t\t\t\t\t\t\tif(res.data.data[i].id==that.alldata.scene_id){\r\n\t\t\t\t\t\t\t\tthat.activeIndex1=i\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthat.list1all=res.data.data;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthat.list1=[];\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\thuancun(){\r\n\t\t\tvar ids=[];\r\n\t\t\tif(uni.getStorageSync(\"datalist\")){\r\n\t\t\t\tvar datalist=uni.getStorageSync(\"datalist\");\r\n\t\t\t\tthis.test=[];\r\n\t\t\t\tfor(let i=0;i<datalist.length;i++){\r\n\t\t\t\t\tthis.test.push({\r\n\t\t\t\t\t\timg: datalist[i].image,\r\n\t\t\t\t\t\ttitle: datalist[i].goods_name,\r\n\t\t\t\t\t\tlabel: datalist[i].description,\r\n\t\t\t\t\t\tprice: '',\r\n\t\t\t\t\t\tid: datalist[i].id,\r\n\t\t\t\t\t\tbuy: 0,\r\n\t\t\t\t\t\titemId: 0\r\n\t\t\t\t\t})\r\n\t\t\t\t\tids.push(datalist[i].id)\r\n\t\t\t\t}\r\n\t\t\t\tthis.ids=ids;\r\n\t\t\t}\r\n\t\t},\r\n\t\tgenghuan(data){\r\n\t\t\tvar that=this;\r\n\t\t\tuni.navigateTo({\r\n\t\t\t\turl: \"/pages/genghuan/index?type=tihuan&id=\"+data.data.id,\r\n\t\t\t})\r\n\t\t},\r\n\t\tgetDate(){\r\n\t\t\tvar that=this;\r\n\t\t\tmyRequest({\r\n\t\t\t\turl: \"/api/Collocation/matchingSchemeDetails\",\r\n\t\t\t\tmethod:'post',\r\n\t\t\t\tdata:{type:2,id:that.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.familyname=res.data.data.data.title;\r\n\t\t\t\t\tthat.alldata=res.data.data.data;\r\n\t\t\t\t\tvar datalist=res.data.data.details,datalist1=[];\r\n\t\t\t\t\tthat.datalistall=res.data.data.details;\r\n\t\t\t\t\tfor(let i=0;i<datalist.length;i++){\r\n\t\t\t\t\t\tdatalist1.push(datalist[i].goods)\r\n\t\t\t\t\t}\r\n\t\t\t\t\tuni.setStorageSync(\"datalist\",datalist1)\r\n\t\t\t\t\tconsole.log(\"111\")\r\n\t\t\t\t\tthat.huancun();\r\n\t\t\t\t\tthat.getFl();\r\n\t\t\t\t\tthat.getCj();\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\tshanchu(){\r\n\t\t\tvar that=this;\r\n\t\t\tmyRequest({\r\n\t\t\t\turl: \"/api/Collocation/customizedDeleteCollocation\",\r\n\t\t\t\tmethod:'post',\r\n\t\t\t\tdata:{id:that.id}\r\n\t\t\t}).then(res => {\r\n\t\t\t\t\r\n\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\tlet pages = getCurrentPages(); // 当前页面\r\n\t\t\t\t\t\tconsole.log(pages)\r\n\t\t\t\t\t\tlet beforePage = pages[pages.length - 2]; // 前一个页面\r\n\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\tdelta: 1,\r\n\t\t\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\t\t\tbeforePage.$vm.shuaxin()\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t},2000)\r\n\t\t\t\t\tthat.$refs.toast.show({model:'success',label:res.data.msg})\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\tfenleichange(){\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\tif(res.data.data.length != 0){\r\n\t\t\t\t\t\tvar wu=0;\r\n\t\t\t\t\t\tfor(let i=0;i<res.data.data.length;i++){\r\n\t\t\t\t\t\t\tif(res.data.data[i].checked==1){\r\n\t\t\t\t\t\t\t\twu=1;\r\n\t\t\t\t\t\t\t\tthat.itemuser=res.data.data[i];\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tif(wu==0){\r\n\t\t\t\t\t\t\tthat.itemuser=res.data.data[0];\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tthat.itemuser=0;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthat.itemuser=0;\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tfenlei(e){\r\n\t\t\tthis.activeIndex=e;\r\n\t\t},\r\n\t\tgetFl(){\r\n\t\t\tvar that=this;\r\n\t\t\tmyRequest({\r\n\t\t\t\turl: \"/api/Category/getCollocationClassList\",\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\tif(res.data.data.length != 0){\r\n\t\t\t\t\t\t// that.listfl=['全部'];\r\n\t\t\t\t\t\tthat.listfl=[];\r\n\t\t\t\t\t\tfor(let i=0;i<res.data.data.length;i++){\r\n\t\t\t\t\t\t\tthat.listfl.push(res.data.data[i].category_name)\r\n\t\t\t\t\t\t\tif(res.data.data[i].id==that.alldata.category_id){\r\n\t\t\t\t\t\t\t\tthat.activeIndex=i\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tthat.listflall=res.data.data;\r\n\t\t\t\t\t}\r\n\t\t\t\t}else{\r\n\t\t\t\t\tthat.listfl=[];\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t},\r\n\t\tbaocun(){\r\n\t\t\tvar that=this,newids=[];\r\n\t\t\tif(that.familyname==\"\"){\r\n\t\t\t\tthat.$refs.toast.show({model:'error',label:'请输入搭配名称'})\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\t// [{'id':1,'g_id':3},{'id':2,'g_id':4}]\r\n\t\t\tconsole.log(this.datalistall)\r\n\t\t\tif(this.off==1 || this.off==3){\r\n\t\t\t\tvar obj={\r\n\t\t\t\t\ttitle:that.familyname,\r\n\t\t\t\t\tcategory_id:that.listflall[that.activeIndex].id,\r\n\t\t\t\t\tmemberinfo_id:that.itemuser.id,\r\n\t\t\t\t\tids:that.ids,\r\n\t\t\t\t\tscene_id:that.list1all[that.activeIndex1].id\r\n\t\t\t\t}\r\n\t\t\t\t// 保存\r\n\t\t\t\tvar url=\"/api/Collocation/customizedCollocation\"\r\n\t\t\t}else{\r\n\t\t\t\tfor(let i=0;i<that.ids.length;i++){\r\n\t\t\t\t\tnewids.push({'id':that.datalistall[i].id,'g_id':that.ids[i]})\r\n\t\t\t\t}\r\n\t\t\t\tvar obj={\r\n\t\t\t\t\ttitle:that.familyname,\r\n\t\t\t\t\tcategory_id:that.listflall[that.activeIndex].id,\r\n\t\t\t\t\tmemberinfo_id:that.itemuser.id,\r\n\t\t\t\t\tids:newids,\r\n\t\t\t\t\tscene_id:that.list1all[that.activeIndex1].id,\r\n\t\t\t\t\tid:that.id*1\r\n\t\t\t\t}\r\n\t\t\t\tvar url=\"/api/Collocation/customizedUpdateCollocation\"\r\n\t\t\t}\r\n\t\t\tmyRequest({\r\n\t\t\t\turl: url,\r\n\t\t\t\tmethod:'post',\r\n\t\t\t\tdata:obj\r\n\t\t\t}).then(res => {\r\n\t\t\t\tconsole.log(res.data)\r\n\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\tsetTimeout(function(){\r\n\t\t\t\t\t\tlet pages = getCurrentPages(); // 当前页面\r\n\t\t\t\t\t\tlet beforePage = pages[pages.length - 2]; // 前一个页面\r\n\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\tdelta: 1,\r\n\t\t\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\t\t\tbeforePage.$vm.shuaxin()\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t});\r\n\t\t\t\t\t},2000)\r\n\t\t\t\t\tthat.$refs.toast.show({model:'success',label:res.data.msg})\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\tconsole.log(obj)\r\n\t\t},\r\n\t\tjiarufuFun(data){\r\n\t\t\t// uni.navigateTo({\r\n\t\t\t// \turl: \"/pages/shopdetail/index\",\r\n\t\t\t// })\r\n\t\t\tconsole.log(data)\r\n\t\t},\r\n\t},\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\">\r\n\t/deep/ .tm-menubars .body{\r\n\t\tbackground-color: #1b1b1b !important;\r\n\t}\r\n\t/deep/ .zhuti{padding: 10px 10px;}\r\n\t/deep/ .kuang{margin:0 !important;padding: 0px !important;}\r\n\t.chuanda{width: 100%;margin-top:10px;}\r\n\t.shuru{background: #0D0D0D;padding: 10px;margin-top: 20px;}\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/deep/ .qiehuan .tm-tabs-con-item-border{display: none;}\r\n\t/deep/ .qiehuan .tm-tabs-con-item-text{background: #303440;height: 26px;line-height: 26px;\r\n\tpadding-left: 14px;padding-right: 14px;margin-top: 17%;border-radius: 20px;margin-left: 10px;}\r\n\t/deep/ .qiehuan .text-white{\r\n\t\tfont-size: 14px;\r\n\t\tbackground: #0178FD;\r\n\t\theight: 26px;\r\n\t\tvertical-align: middle;\r\n\t\tline-height: 26px;\r\n\t\tborder-radius: 20px;\r\n\t\tpadding-left: 14px;\r\n\t\tpadding-right: 14px;\r\n\t\tmargin-top: 17%;\r\n\t}\r\n\t.biaoti view{width:5px;height:19px;background: #0178FD;float: left;border-radius: 10px;}\r\n\t/deep/ .qiehuan1 .text-primary{color: white !important;}\r\n\t/deep/ .jiaoxi{margin:0 !important;padding: 8px !important;}\r\n\t/deep/ .shangpin .white.bk{background-color:#1b1b1b!important;}\r\n\t/deep/ .shangpin .tm-cartCellListFood{padding: 0px 0px 5px 0px !important;\r\n\tmargin-top: 5px !important;border-bottom: 1px solid #1B1B1B;}\r\n\t/deep/ .shangpin .border-t-1.bk{border-top:1px solid #1b1b1b!important;}\r\n\t/deep/ .shangpin .round-3{width:120px !important;height:110px !important;}\r\n\t/deep/ .shangpin .tm-cartCellListFood-img{width:120px !important;height:110px !important;}\r\n\t/deep/ .shangpin .title{color: white !important;}\r\n\t/deep/ .shangpin .text-red{color: white !important;}\r\n\t.sao{width: 88%;display: block;margin: 0 auto;padding-bottom: 60px;margin-top: 20px;}\r\n\t.goumai{background: #1B1B1B;margin-bottom: 10px;}\r\n\t.anniu{width: 70%;margin: 0 auto;margin-top: 20px;padding-bottom: 30px;}\r\n\t/deep/ .anniubaocun{width: 100%;}\r\n\t/deep/ .anniubaocun .flex-center{width: 100% !important;}\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 // 1678780469606\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":""}
|