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
24 KiB
1 lines
24 KiB
{"version":3,"sources":["uni-app:///main.js","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/temp/index.vue?8e4d","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/temp/index.vue?2399","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/temp/index.vue?77b5","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/temp/index.vue?e894","uni-app:///pages/life/temp/index.vue","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/temp/index.vue?6a85","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/pages/life/temp/index.vue?2312"],"names":["createPage","Page"],"mappings":";;;;;;;;;;kDAAA;AACA;AACA,iG;AACAA,UAAU,CAACC,cAAD,CAAV,C;;;;;;;;;;;;;ACHA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAkH;AAClH;AACyD;AACL;AACc;;;AAGlE;AAC+M;AAC/M,gBAAgB,uNAAU;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,wLAEN;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;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAizB,CAAgB,i0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACyFr0B,sD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAHA,mB,koBAKA,gBACA,EACA,UADA,EAEA,KAFA,EAGA,SAHA,EAIA,gBAJA,EAKA,QALA,EAMA,iBANA,EAOA,gBAPA,EAQA,WARA,EASA,WATA,EAUA,WACA,EACA,wBADA,EAEA,cAFA,EAGA,UAHA,EAIA,MAJA,EAKA,SALA,EAMA,gBANA,EAOA,QAPA,EAQA,iBARA,EASA,gBATA,EAUA,WAVA,EAWA,WAXA,EADA,CAVA,EADA,EA2BA,EACA,wBADA,EAEA,WACA,EACA,wBADA,EAEA,cAFA,EAGA,cAHA,EAIA,MAJA,EAKA,SALA,EAMA,gBANA,EAOA,QAPA,EAQA,iBARA,EASA,oBATA,EAUA,YAVA,EAWA,eAXA,EADA,EAcA,EACA,wBADA,EAEA,cAFA,EAGA,cAHA,EAIA,MAJA,EAKA,SALA,EAMA,gBANA,EAOA,QAPA,EAQA,iBARA,EASA,mBATA,EAUA,WAVA,EAWA,eAXA,EAdA,CAFA,EA8BA,cA9BA,EA+BA,KA/BA,EAgCA,SAhCA,EAiCA,gBAjCA,EAkCA,QAlCA,EAmCA,iBAnCA,EAoCA,gBApCA,EAqCA,WArCA,EAsCA,WAtCA,EA3BA,EAoEA,SACA,EACA,SACA,EACA,YADA,EAEA,UAFA,EADA,CADA,EAOA,kBAPA,EAQA,QARA,EASA,QATA,EAUA,YAVA,EAWA,iBAXA,EADA,E,eAeA;AACA,0DADA;AAEA,MAFA,kBAEA;AACA;AACA,mBADA;AAEA,gBAFA;AAGA,kBAHA;AAIA,cAJA;AAKA,aALA;AAMA,wBANA;AAOA,oBAPA;AAQA,qBARA;;AAUA,GAbA;AAcA,SAdA,qBAcA;AACA;AACA;AACA;AACA,KAHA;AAIA,GAnBA;AAoBA;AACA,eADA,uBACA,CADA,EACA;AACA;AACA,KAHA;AAIA,gBAJA,wBAIA,CAJA,EAIA;AACA;AACA,KANA;AAOA,uBAPA,+BAOA,GAPA,EAOA;AACA;AACA;AACA,KAVA;AAWA;AACA,YAZA,sBAYA;AACA;AACA,KAdA;AAeA,eAfA,uBAeA,GAfA,EAeA;AACA;AACA;AACA,KAlBA;AAmBA;AACA,eApBA,uBAoBA,CApBA,EAoBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,2BADA;AAEA,iCAFA;AAGA,wBAHA;;AAKA;AACA,SARA,MAQA;AACA;AACA;AACA;AACA,qCADA;;AAGA;AACA,WANA;AAOA;AACA;AACA;AACA;AACA;AACA,WALA;AAMA;AACA,OAxBA;AAyBA;AACA;AACA;AACA,oBADA;AAEA,4BAFA;AAGA,gBAHA;AAIA,gBAJA;AAKA,oBALA;AAMA,yBANA;AAOA,0BAPA;;AASA;AACA,KAhEA;AAiEA;AACA,cAlEA,sBAkEA,CAlEA,EAkEA;AACA;;AAEA,KArEA;AAsEA,UAtEA,oBAsEA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA,OAHA,MAGA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA;;AAGA;AACA;AACA,OAPA;AAQA;AACA,KA1FA;AA2FA,gBA3FA,wBA2FA,GA3FA,EA2FA;AACA;AACA,kBADA;AAEA,oBAFA;;AAIA,KAhGA,EApBA,E;;;;;;;;;;;;;AC9KA;AAAA;AAAA;AAAA;AAAi+C,CAAgB,y7CAAG,EAAC,C;;;;;;;;;;;ACAr/C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/life/temp/index.js","sourcesContent":["import 'uni-pages';\nimport Vue from 'vue'\nimport Page from './pages/life/temp/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=4b546361&\"\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=less&\"\n\n\n/* normalize component */\nimport normalizer from \"!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\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/life/temp/index.vue\"\nexport default component.exports","export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\templateLoader.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--16-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\template.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-uni-app-loader\\\\page-meta.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=template&id=4b546361&\"","var components\ntry {\n components = {\n tkiTree: function() {\n return import(\n /* webpackChunkName: \"components/tki-tree/tki-tree\" */ \"@/components/tki-tree/tki-tree.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}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\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 \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\babel-loader\\\\lib\\\\index.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--12-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\script.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\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 class=\"templates-box\">\r\n\t\t<view class=\"templates-name\">\r\n\t\t\t<input type=\"text\" v-model=\"name\"placeholder=\"请输入模板名称\" />\r\n\t\t</view>\r\n\t\t<view class=\"charge-type acea-row row-around\">\r\n\t\t\t<radio-group @change=\"radioChange\">\r\n\t\t\t\t<label> <radio :value=\"0\" :checked=\"type == 0\" /><text>件数</text> </label>\r\n\t\t\t\t<label> <radio :value=\"1\" :checked=\"type == 1\" /> <text>重量</text> </label>\r\n\t\t\t</radio-group>\r\n\t\t</view>\r\n\t\t<view class=\"default-tempalte\">\r\n\t\t\t<view>{{templateList[0].regionName}}</view>\r\n\t\t\t<view class=\"m28 acea-row row-between\">\r\n\t\t\t\t<view>运费</view>\r\n\t\t\t\t<view class=\"acea-row row-middle\">\r\n\t\t\t\t\t<text>¥</text>\r\n\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0].price\" />\r\n\t\t\t\t\t<text>/{{type == 0 ? '件' : 'kg' }}</text>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t\t<view class=\"step-freight-box\">\r\n\t\t\t\t<view class=\"acea-row row-between\">\r\n\t\t\t\t\t<view>阶梯运费</view>\r\n\t\t\t\t\t<switch :checked=\"setpFreight\" color=\"#FF6D31\" style=\"transform:scale(0.7)\" @change=\"switchChange\" />\r\n\t\t\t\t</view>\r\n\t\t\t\t<view class=\"step-box\" v-show=\"setpFreight\">\r\n\t\t\t\t\t<view class=\"acea-row row-middle row-center\">\r\n\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0].first\" />\r\n\t\t\t\t\t\t<text>{{type == 0 ? '件' : 'kg' }}内(含)¥</text>\r\n\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0].price\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"acea-row row-middle row-center\">\r\n\t\t\t\t\t\t<text>每增加</text>\r\n\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0]._continue\" />\r\n\t\t\t\t\t\t<text>{{type == 0 ? '件' : 'kg' }},</text>\r\n\t\t\t\t\t\t<text>运费增加</text>\r\n\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"templateList[0].continue_price\" />\r\n\t\t\t\t\t</view>\r\n\t\t\t\t</view>\r\n\t\t\t</view>\r\n\t\t</view>\r\n\t\t<view class=\"add-appoint-btn\" @tap=\"showTree\">添加指定地区设置</view>\r\n\t\t<view class=\"appoint-template-box\">\r\n\t\t\t<block v-for=\"(item,index) in templateList\" :key=\"index\">\r\n\t\t\t\t<view class=\"default-tempalte\" v-if=\"index > 0\">\r\n\t\t\t\t<view class=\"close-btn\" @tap=\"delTempItem(index)\">×</view>\r\n\t\t\t\t\t<view>{{item.regionName}}</view>\r\n\t\t\t\t\t<view class=\"m28 acea-row row-between\">\r\n\t\t\t\t\t\t<view>运费</view>\r\n\t\t\t\t\t\t<view class=\"acea-row row-middle\">\r\n\t\t\t\t\t\t\t<text>¥</text>\r\n\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item.price\" />\r\n\t\t\t\t\t\t\t<text>/{{type == 0 ? '件' : 'kg' }}</text>\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view class=\"step-freight-box\">\r\n\t\t\t\t\t\t<view class=\"acea-row row-between\">\r\n\t\t\t\t\t\t\t<view>阶梯运费</view>\r\n\t\t\t\t\t\t\t<switch :checked=\"item.setpFreight\" color=\"#FF6D31\" style=\"transform:scale(0.7)\" @change=\"appointSwitchChange(index)\" />\r\n\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t<view class=\"step-box\" v-show=\"item.setpFreight\">\r\n\t\t\t\t\t\t\t<view class=\"acea-row row-middle row-center\">\r\n\t\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item.first\" />\r\n\t\t\t\t\t\t\t\t<text>{{type == 0 ? '件' : 'kg' }}内(含)¥</text>\r\n\t\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item.price\" />\r\n\t\t\t\t\t\t\t</view>\r\n\t\t\t\t\t\t\t<view class=\"acea-row row-middle row-center\">\r\n\t\t\t\t\t\t\t\t<text>每增加</text>\r\n\t\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item._continue\" />\r\n\t\t\t\t\t\t\t\t<text>{{type == 0 ? '件' : 'kg' }},</text>\r\n\t\t\t\t\t\t\t\t<text>运费增加</text>\r\n\t\t\t\t\t\t\t\t<input class=\"inp-price\" type=\"text\" v-model=\"item.continue_price\" />\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</view>\r\n\t\t\t</block>\r\n\t\t</view>\r\n\t\t<view class=\"submit-btn\" @click=\"submit\">确认提交</view>\r\n\t\t<tki-tree ref=\"tkitree\" :multiple=\"true\" :range=\"list\" selectParent=\"true\" :foldAll=\"true\" rangeKey=\"name\" @confirm=\"treeConfirm\"\r\n\t\t @cancel=\"treeCancel\"></tki-tree>\r\n\t</view>\r\n</template>\r\n\r\n<script>\nconst app = getApp();\r\nimport selectTree from \"@/components/select-tree/select-tree\"\r\nimport tkiTree from \"@/components/tki-tree/tki-tree.vue\"\r\nimport { getCity, citys, addTemp } from \"@/api/user\";\r\n\r\nlet testList = [\r\n\t{\r\n\t\t\tcity_id: 1,\r\n\t\t\tid: 1,\r\n\t\t\tisShow: 1,\r\n\t\t\tlat: \"39.904030\",\r\n\t\t\tlevel: 0,\r\n\t\t\tlng: \"116.407526\",\r\n\t\t\tmergerName: \"北京\",\r\n\t\t\tname: \"北京市\",\r\n\t\t\tparentId: 0,\r\n\t\t\tchildren: [\r\n\t\t\t\t{\r\n\t\t\t\t\tareaCode: \"110100000000\",\r\n\t\t\t\t\tchildren: null,\r\n\t\t\t\t\tcity_id: 2,\r\n\t\t\t\t\tid: 35,\r\n\t\t\t\t\tisShow: 1,\r\n\t\t\t\t\tlat: \"39.904030\",\r\n\t\t\t\t\tlevel: 1,\r\n\t\t\t\t\tlng: \"116.407526\",\r\n\t\t\t\t\tmergerName: \"北京\",\r\n\t\t\t\t\tname: \"北京市\",\r\n\t\t\t\t\tparentId: 1,\r\n\t\t\t\t}, \r\n\t\t\t]\r\n\t\t},\r\n\t\t{\r\n\t\t\tareaCode: \"130000000000\",\r\n\t\t\tchildren: [\r\n\t\t\t\t{\r\n\t\t\t\t\tareaCode: \"130100000000\",\n\t\t\t\t\tchildren: null,\n\t\t\t\t\tcity_id: 13268,\n\t\t\t\t\tid: 37,\n\t\t\t\t\tisShow: 1,\n\t\t\t\t\tlat: \"38.042306\",\n\t\t\t\t\tlevel: 1,\n\t\t\t\t\tlng: \"114.514859\",\n\t\t\t\t\tmergerName: \"河北,石家庄\",\n\t\t\t\t\tname: \"石家庄市\",\n\t\t\t\t\tparentId: 13267,\r\n\t\t\t\t},\r\n\t\t\t\t{\r\n\t\t\t\t\tareaCode: \"130200000000\",\r\n\t\t\t\t\tchildren: null,\r\n\t\t\t\t\tcity_id: 18128,\r\n\t\t\t\t\tid: 38,\r\n\t\t\t\t\tisShow: 1,\r\n\t\t\t\t\tlat: \"39.630867\",\r\n\t\t\t\t\tlevel: 1,\r\n\t\t\t\t\tlng: \"118.180193\",\r\n\t\t\t\t\tmergerName: \"河北,唐山\",\r\n\t\t\t\t\tname: \"唐山市\",\r\n\t\t\t\t\tparentId: 13267,\r\n\t\t\t\t}\r\n\t\t\t],\r\n\t\t\tcity_id: 13267,\r\n\t\t\tid: 3,\r\n\t\t\tisShow: 1,\r\n\t\t\tlat: \"38.037057\",\r\n\t\t\tlevel: 0,\r\n\t\t\tlng: \"114.468664\",\r\n\t\t\tmergerName: \"河北\",\r\n\t\t\tname: \"河北省\",\r\n\t\t\tparentId: 0,\r\n\t\t}\r\n\t]\r\nvar g = [\n\t{\n\t\tregion: [\n\t\t\t{\n\t\t\t\tname: '默认全国',\n\t\t\t\tcity_id: 0\n\t\t\t}\n\t\t],\n\t\tregionName: '默认全国',\n\t\tfirst: 1,\n\t\tprice: 0,\n\t\t_continue: 1,\n\t\tcontinue_price: 0\n\t}\n]\r\nexport default {\r\n\tcomponents:{ selectTree, tkiTree },\n data() {\n return {\r\n\t\t\tprice: '0.00',\r\n\t\t\tstepNum: 0,\r\n\t\t\tstepPrice: 0,\r\n\t\t\tname: \"\",\r\n\t\t\ttype:0,\r\n\t\t\tsetpFreight: false,\r\n\t\t\tlist: testList,\r\n\t\t\ttemplateList: g\n };\n },\n\tmounted(){\r\n\t\tcitys().then((res)=>{\r\n\t\t\tlet data = res.data;\r\n\t\t\tthis.list = data\r\n\t\t})\r\n\t},\n methods: {\r\n\t\tradioChange(e){\r\n\t\t\tthis.type = e.detail.value\r\n\t\t},\r\n\t\tswitchChange(e){\r\n\t\t\tthis.setpFreight = e.detail.value\r\n\t\t},\r\n\t\tappointSwitchChange(idx){\r\n\t\t\tthis.$set(this.templateList[idx], 'setpFreight', !this.templateList[idx].setpFreight)\r\n\t\t\tconsole.log(this.templateList)\r\n\t\t},\r\n\t\t// 显示树形选择器\r\n\t\tshowTree() {\r\n\t\t\tthis.$refs.tkitree._show();\r\n\t\t},\r\n\t\tdelTempItem(idx){\r\n\t\t\tconsole.log(idx)\r\n\t\t\tthis.templateList.splice(idx,1)\r\n\t\t},\r\n\t\t// 确定回调事件\r\n\t\ttreeConfirm(e) {\r\n\t\t\t// console.log(e,'确认')\r\n\t\t\t// console.log(this.list,'列表')\r\n\t\t\tlet list = this.list;\r\n\t\t\tlet selectCity = e;\r\n\t\t\tlet selectName = [];\r\n\t\t\tlet data = [];\r\n\t\t\tselectCity.forEach((item,index)=> {\r\n\t\t\t\tif(item.parentId == 0){ //省份\r\n\t\t\t\t\tselectName.push(item.name)\r\n\t\t\t\t\tlet j = {\r\n\t\t\t\t\t\tname: item.name,\r\n\t\t\t\t\t\tcity_id: item.city_id,\r\n\t\t\t\t\t\tchildren: []\r\n\t\t\t\t\t}\r\n\t\t\t\t\tdata.push(j)\r\n\t\t\t\t} else{ //城市\r\n\t\t\t\t\tdata.forEach((c,i)=> {\r\n\t\t\t\t\t\tif(item.parentId == c.city_id){\r\n\t\t\t\t\t\t\tc.children.push({\r\n\t\t\t\t\t\t\t\tcity_id: item.city_id\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\tlist.forEach((city,idx)=> {\r\n\t\t\t\t\t\tif(item.parentId == list[idx].city_id){\r\n\t\t\t\t\t\t\t// console.log(list[idx],'对应省份')\r\n\t\t\t\t\t\t\tselectName.push(list[idx].name)\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}\n\t\t\t});\r\n\t\t\t// console.log(data,'data')\r\n\t\t\tlet cityName = [...new Set(selectName)].join(';')\r\n\t\t\tthis.templateList.push({\r\n\t\t\t\tregion: data,\r\n\t\t\t\tregionName: cityName,\r\n\t\t\t\tfirst: 1,\r\n\t\t\t\tprice: 0,\r\n\t\t\t\t_continue: 1,\r\n\t\t\t\tcontinue_price: 0,\r\n\t\t\t\tsetpFreight:false\r\n\t\t\t});\r\n\t\t\t// console.log(this.templateList,'templateList')\r\n\t\t},\r\n\t\t// 取消回调事件\r\n\t\ttreeCancel(e) {\r\n\t\t\tconsole.log(e)\r\n\t\t\t\r\n\t\t},\r\n\t\tsubmit(){\r\n\t\t\tlet form = {}\r\n\t\t\tform.name = this.name\r\n\t\t\tform.type = this.type\r\n\t\t\tform.region_info = this.templateList\r\n\t\t\tif(form.name == '' ){\r\n\t\t\t\treturn this.alertMessage('请填写模板名字')\r\n\t\t\t\t\r\n\t\t\t} else if(form.region_info.length == 0){\r\n\t\t\t\t// if(form.region_info[0].)\r\n\t\t\t}\r\n\t\t\taddTemp(form).then((res)=>{\r\n\t\t\t\tif(res.success){\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '添加成功'\r\n\t\t\t\t\t})\r\n\t\t\t\t\tthis.$yrouter.back()\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tconsole.log(form)\r\n\t\t},\r\n\t\talertMessage(msg){\r\n\t\t\tuni.showToast({\r\n\t\t\t\ttitle: msg,\r\n\t\t\t\ticon: 'none'\r\n\t\t\t})\r\n\t\t}\r\n\t}\n};\r\n</script>\r\n<style lang=\"less\">\r\n\tpage{\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tbackground: #F5F6F7;\r\n\t}\r\n\t.templates-box{\r\n\t\twidth: 670rpx;\r\n\t\theight: 100vh;\r\n\t\tmargin: 0 auto;\r\n\t\tpadding: 20rpx 0;\r\n\t\t.templates-name{\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 76rpx;\r\n\t\t\tline-height: 76rpx;\r\n\t\t\tfont-size: 28rpx;\r\n\t\t\tcolor: #000000;\r\n\t\t\tbackground: #fff;\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t\tmargin: 0 auto;\r\n\t\t\tpadding-left: 12rpx;\r\n\t\t\tinput{\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\t.charge-type{\r\n\t\t\twidth: 100%;\r\n\t\t\tmargin: 20rpx 0;\r\n\t\t\tlabel{\r\n\t\t\t\tmargin-left: 20rpx;\r\n\t\t\t}\r\n\t\t}\r\n\t\t.default-tempalte{\r\n\t\t\tpadding: 12rpx 24rpx;\r\n\t\t\tbackground: #fff;\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t\tmargin-bottom: 20rpx;\r\n\t\t\tposition: relative;\r\n\t\t\t.inp-price{\r\n\t\t\t\twidth: 80rpx;\r\n\t\t\t\tborder-bottom: 1px solid #000;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t}\r\n\t\t\t.close-btn{\r\n\t\t\t\tcolor: #fff;\r\n\t\t\t\tfont-size: 38rpx;\r\n\t\t\t\tposition: absolute;\r\n\t\t\t\tright: -16rpx;\r\n\t\t\t\ttop: -22rpx;\r\n\t\t\t\tborder-radius: 50%;\r\n\t\t\t\tline-height: 40rpx;\r\n\t\t\t\twidth: 46rpx;\r\n\t\t\t\theight: 46rpx;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tbackground: #FF5E16;\r\n\t\t\t\tborder-radius: 50%;\r\n\t\t\t}\r\n\t\t}\r\n\t\t.add-appoint-btn{\r\n\t\t\twidth: 100%;\r\n\t\t\theight: 76rpx;\r\n\t\t\tline-height: 76rpx;\r\n\t\t\ttext-align: center;\r\n\t\t\t// border: 1px solid #000000;\r\n\t\t\tborder-radius: 8rpx;\r\n\t\t\tmargin: 30rpx auto;\r\n\t\t\tbackground: #fff;\r\n\t\t}\r\n\t}\r\n\t.submit-btn{\r\n\t\twidth: 690rpx;\r\n\t\theight: 80rpx;\r\n\t\tline-height: 80rpx;\r\n\t\ttext-align: center;\r\n\t\tcolor: #fff;\r\n\t\tfont-size: 38rpx;\r\n\t\tbackground: linear-gradient(134deg, #FFA782 0%, #FF6D31 100%);\r\n\t\tborder-radius: 40rpx;\r\n\t\tposition: absolute;\r\n\t\tbottom: 100rpx;\r\n\t\tleft: 50%;\r\n\t\ttransform: translateX(-50%);\r\n\t}\r\n\t.mask-box{\r\n\t\twidth: 100%;\r\n\t\theight: 100%;\r\n\t\tbackground: rgba(0,0,0,0.7);\r\n\t\tposition: fixed;\r\n\t\ttop: 0;\r\n\t\tleft: 0;\r\n\t\t.selectTree-box{\r\n\t\t\twidth: 90%;\r\n\t\t\theight: 90%;\r\n\t\t\toverflow-y: scroll;\r\n\t\t\tpadding: 20rpx;\r\n\t\t\tbackground: #fff;\r\n\t\t\tposition: absolute;\r\n\t\t\ttop: 50%;\r\n\t\t\tleft: 50%;\r\n\t\t\ttransform: translate(-50%,-50%);\r\n\t\t\t.select-ok-btn{\r\n\t\t\t\twidth: 80%;\r\n\t\t\t\theight: 76rpx;\r\n\t\t\t\tline-height: 76rpx;\r\n\t\t\t\ttext-align: center;\r\n\t\t\t\tborder: 1px solid #000000;\r\n\t\t\t\tborder-radius: 8rpx;\r\n\t\t\t\tmargin: 300rpx auto;\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n\t\r\n\t.m28{\r\n\t\tmargin: 28rpx 0;\r\n\t}\r\n</style>","import mod from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--10-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--10-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\less-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-4!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-5!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=less&\"; export default mod; export * from \"-!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\mini-css-extract-plugin\\\\dist\\\\loader.js??ref--10-oneOf-1-0!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\css-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-1!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\loaders\\\\stylePostLoader.js!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-2!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\postcss-loader\\\\src\\\\index.js??ref--10-oneOf-1-3!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\less-loader\\\\dist\\\\cjs.js??ref--10-oneOf-1-4!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\webpack-preprocess-loader\\\\index.js??ref--10-oneOf-1-5!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\vue-cli-plugin-uni\\\\packages\\\\vue-loader\\\\lib\\\\index.js??vue-loader-options!D:\\\\Program Files\\\\HBuilderX.3.1.13.20210514\\\\HBuilderX\\\\plugins\\\\uniapp-cli\\\\node_modules\\\\@dcloudio\\\\webpack-uni-mp-loader\\\\lib\\\\style.js!./index.vue?vue&type=style&index=0&lang=less&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1635494604214\n var cssReload = require(\"D:/Program Files/HBuilderX.3.1.13.20210514/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":""} |