index.js.map 24 KB

1
  1. {"version":3,"sources":["uni-app:///main.js","webpack:///D:/yzm/worknew/wardrobe/pages/shouhuodi/index.vue?e325","webpack:///D:/yzm/worknew/wardrobe/pages/shouhuodi/index.vue?40bc","webpack:///D:/yzm/worknew/wardrobe/pages/shouhuodi/index.vue?d538","webpack:///D:/yzm/worknew/wardrobe/pages/shouhuodi/index.vue?edb1","uni-app:///pages/shouhuodi/index.vue","webpack:///D:/yzm/worknew/wardrobe/pages/shouhuodi/index.vue?6c0f","webpack:///D:/yzm/worknew/wardrobe/pages/shouhuodi/index.vue?4292"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page"],"mappings":";;;;;;;;;;kDAAA;;;AAGA;AACA,iG,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,yNAEN;AACP,KAAK;AACL;AACA,aAAa,mTAEN;AACP,KAAK;AACL;AACA,aAAa,+NAEN;AACP,KAAK;AACL;AACA,aAAa,2OAEN;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACkDvwB,+D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAGA,EACA,IADA,kBACA,CACA,SACA,SACA,UADA,IAEA,EACA,UADA,EAFA,EAIA,EACA,UADA,EAJA,CADA,EAQA,YARA,EASA,aATA,EAUA,SAVA,EAWA,OAXA,EAYA,SACA,QADA,EAEA,UAFA,EAGA,UAHA,EAIA,WAJA,EAKA,SALA,EAMA,YANA,EAZA,EAoBA,OApBA,EAqBA,KArBA,GAuBA,CAzBA,EA0BA,MA1BA,kBA0BA,EA1BA,EA0BA,CACA,kCACA,mBACA,sBACA,CACA,yBACA,CAhCA,EAiCA,OAjCA,qBAiCA,CACA,gBACA,wBACA,wCACA,iBACA,yBADA,IAGA,CACA,CANA,EAMA,IANA,EAOA,mCACA,oBACA,oBACA,CACA,CA9CA;AA+CA;AACA;AACA,aAFA,qBAEA,KAFA,EAEA;AACA;AACA;AACA;AACA,KANA;AAOA;AACA,UARA,oBAQA;;AAEA,KAVA;AAWA;AACA,YAZA,oBAYA,CAZA,EAYA;AACA;AACA;AACA,KAfA;AAgBA;AACA,YAjBA,sBAiBA;AACA;AACA;AACA,OAFA,MAEA;AACA;AACA;AACA,KAvBA;AAwBA;AACA,WAzBA,qBAyBA;AACA;AACA;AACA,0CADA;AAEA,qBAFA;AAGA;AACA,mCADA,EAHA;;AAMA,UANA,CAMA;AACA;AACA;AACA;AACA;AACA,6BADA;AAEA,+BAFA;;AAIA;AACA,0CADA,CACA;AACA,qDAFA,CAEA;AACA;AACA,sBADA;AAEA;AACA;AACA,eAJA;;AAMA,WATA,EASA,GATA;AAUA,SAfA,MAeA;AACA;AACA,0BADA;AAEA,+BAFA;;AAIA;AACA,OA9BA;AA+BA,KA1DA;AA2DA;AACA,WA5DA,qBA4DA;AACA;AACA;AACA;AACA;AACA;AACA,yBADA;AAEA,sBAFA;;AAIA,OALA,MAKA;AACA;AACA,2BADA;AAEA,sBAFA;;AAIA,OALA,MAKA;AACA;AACA,yBADA;AAEA,sBAFA;;AAIA,OALA,MAKA;AACA;AACA,2BADA;AAEA,sBAFA;;AAIA,OALA,MAKA;AACA;AACA;AACA;AACA;AACA;AACA,wCADA;AAEA,wBAFA;AAGA;AACA,iCADA;AAEA,qCAFA;AAGA,qCAHA;AAIA,uCAJA;AAKA,mCALA;AAMA,iDANA,EAHA;;AAWA,YAXA,CAWA;AACA;AACA;AACA;AACA;AACA,+BADA;AAEA,iCAFA;;AAIA;AACA,4CADA,CACA;AACA,uDAFA,CAEA;AACA;AACA,wBADA;AAEA;AACA;AACA,iBAJA;;AAMA,aATA,EASA,GATA;AAUA,WAfA,MAeA;AACA;AACA,4BADA;AAEA,iCAFA;;AAIA;AACA,SAnCA;AAoCA;AACA,KA9HA;;AAgIA;AACA,gBAjIA,0BAiIA;AACA;AACA;AACA,6CADA;AAEA,sBAFA;AAGA;AACA,2BADA,EAHA;;AAMA,UANA,CAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAJA;AAKA;AACA;AACA;AACA,SAhBA,MAgBA;AACA;AACA,0BADA;AAEA,+BAFA;;AAIA;AACA,OA9BA;AA+BA,KAlKA;AAmKA,UAnKA,oBAmKA;AACA;AACA;AACA,yCADA;AAEA,sBAFA;AAGA;AACA,2BADA;AAEA,+BAFA;AAGA,mCAHA;AAIA,mCAJA;AAKA,qCALA;AAMA,iCANA;AAOA,+CAPA,EAHA;;AAYA,UAZA,CAYA;AACA;AACA;AACA;AACA,+BADA;AAEA,2BAFA;;AAIA;AACA,0CADA,CACA;AACA,qDAFA,CAEA;AACA;AACA,sBADA;AAEA;AACA;AACA,eAJA;;AAMA,WATA,EASA,GATA;AAUA,SAfA,MAeA;AACA;AACA,0BADA;AAEA,+BAFA;;AAIA;AACA,OAnCA;AAoCA,KAzMA,EA/CA,E;;;;;;;;;;;;;ACrDA;AAAA;AAAA;AAAA;AAAk5C,CAAgB,m2CAAG,EAAC,C;;;;;;;;;;;ACAt6C;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/shouhuodi/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/shouhuodi/index.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./index.vue?vue&type=template&id=1a4e4df4&\"\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/shouhuodi/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=1a4e4df4&\"","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 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 tmPickersCity: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-pickersCity/tm-pickersCity\" */ \"@/tm-vuetify/components/tm-pickersCity/tm-pickersCity.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 tmListitem: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-listitem/tm-listitem\" */ \"@/tm-vuetify/components/tm-listitem/tm-listitem.vue\"\n )\n },\n tmSwitch: function() {\n return import(\n /* webpackChunkName: \"tm-vuetify/components/tm-switch/tm-switch\" */ \"@/tm-vuetify/components/tm-switch/tm-switch.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' }\" :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>\r\n\t\t\t<tm-sheet class=\"kuang\" style=\"padding-bottom: 40px !important;\">\r\n\t\t\t\t<view style=\"width: 94%;margin:0 auto;\">\r\n\t\t\t\t\t<tm-input title=\"收货人\" placeholder=\"请填写收货人姓名\" v-model=\"dizhi.name\"></tm-input>\r\n\t\t\t\t\t<tm-input title=\"手机号码\" placeholder=\"填写收件人手机号码\" v-model=\"dizhi.mobile\"></tm-input>\r\n\t\t\t\t\t<tm-pickersCity @confirm=\"dateSe_3\" :default-value=\"d_3\" btn-color=\"bg-gradient-deep-purple-accent\"\r\n\t\t\t\t\t\tstyle=\"margin:0 16px 0px;box-sizing: border-box;\">\r\n\t\t\t\t\t\t<tm-input :disabled=\"true\" style=\"padding: 0px 60px 0px 0px!important;margin-left: 0!important;\" title=\"所在地区\"\r\n\t\t\t\t\t\t\tplaceholder=\"省市区县、乡镇等\" v-model=\"dizhi.region\">\r\n\t\t\t\t\t\t</tm-input>\r\n\t\t\t\t\t</tm-pickersCity>\r\n\t\t\t\t\t<tm-input title=\"详细地址\" placeholder=\"街道、楼牌号等\" v-model=\"dizhi.address\"></tm-input>\r\n\t\t\t\t</view>\r\n\t\t\t</tm-sheet>\r\n\t\t\t<tm-sheet class=\"kuang\" style=\"padding-bottom: 20px !important;\">\r\n\t\t\t\t<view style=\"width: 94%;margin:0 auto;padding-top:15px;\">\r\n\t\t\t\t\t<view class=\"fl text-white mt-10\" style=\"width: 15%;\">标签</view>\r\n\t\t\t\t\t<view class=\"fl\" style=\"width: 80%;\">\r\n\t\t\t\t\t\t<!-- <tm-button class=\"ml-20\" :round=\"10\" theme=\"gray\" size=\"s\">{{dizhi.label}}</tm-button> -->\r\n\t\t\t\t\t\t<tm-button class=\"ml-20\" :round=\"10\" v-model=\"sel\" :theme=\"sel==index?'blue':'gray'\" size=\"s\"\r\n\t\t\t\t\t\t\tv-for=\"(item,index) in tags\" @click=\"selectTag(index)\">{{item.name}}</tm-button>\r\n\t\t\t\t\t\t<!-- <tm-button class=\"ml-20\" :round=\"10\" theme=\"gray\" size=\"s\" @click=\"addTag\">+</tm-button> -->\r\n\t\t\t\t\t</view>\r\n\t\t\t\t\t<view style=\"clear: both;\"></view>\r\n\t\t\t\t\t<tm-listitem title=\"设置为默认地址\" @click=\"btnClick\">\r\n\t\t\t\t\t\t<template v-slot:rightIcon=\"\">\r\n\t\t\t\t\t\t\t<tm-switch offBgcolor=\"yellow text-black\" :text=\"['','']\" color=\"primary\" v-model=\"on\">\r\n\t\t\t\t\t\t\t</tm-switch>\r\n\t\t\t\t\t\t</template>\r\n\t\t\t\t\t</tm-listitem>\r\n\t\t\t\t</view>\r\n\t\t\t</tm-sheet>\r\n\t\t\t<view class=\"anniu1\" v-if=\"isSave\">\r\n\t\t\t\t<!-- <tm-button :round=\"24\" class=\"sao mb-40 mt-40\" block @click=\"shanchu\">删除</tm-button>\r\n\t\t\t\t<tm-button :round=\"24\" class=\"sao mb-40 mt-40\" block @click=\"redact\">修改</tm-button> -->\r\n\t\t\t\t\r\n\t\t\t\t<tm-button @click=\"shanchu()\" theme=\"gray\" size=\"n\">删除</tm-button>\r\n\t\t\t\t<tm-button @click=\"redact()\" class=\"fr\" theme=\"primary\" size=\"n\">保存</tm-button>\r\n\t\t\t\t\r\n\t\t\t</view>\r\n\t\t\t<tm-button :round=\"24\" class=\"sao mb-40 mt-40\" block @click=\"saveAdd\" v-else>保存</tm-button>\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>\r\n<script>\r\n\timport {\r\n\t\tmyRequest\r\n\t} from '@/api/request.js'\r\n\texport default {\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttags: [{\r\n\t\t\t\t\tname: '家庭'\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname: '学校'\r\n\t\t\t\t}, {\r\n\t\t\t\t\tname: '公司'\r\n\t\t\t\t}],\r\n\t\t\t\tisAdd: false,\r\n\t\t\t\tisSave: false,\r\n\t\t\t\ton: false,\r\n\t\t\t\tsel: -1,\r\n\t\t\t\tdizhi: {\r\n\t\t\t\t\tname: '',\r\n\t\t\t\t\tmobile: '',\r\n\t\t\t\t\tregion: '',\r\n\t\t\t\t\taddress: '',\r\n\t\t\t\t\tlabel: '',\r\n\t\t\t\t\tisdefault: 0,\r\n\t\t\t\t},\r\n\t\t\t\td_3: [],\r\n\t\t\t\tfd:0\r\n\t\t\t};\r\n\t\t},\r\n\t\tonLoad(op) {\r\n\t\t\tif (Object.keys(op).length != 0) {\r\n\t\t\t\tthis.isSave = true;\r\n\t\t\t\tthis.dizhi.id = op.id;\r\n\t\t\t}\r\n\t\t\tconsole.log(this.isSave)\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tvar that = this;\r\n\t\t\tsetTimeout(function() {\r\n\t\t\t\tif (uni.getStorageSync(\"token\") == \"\") {\r\n\t\t\t\t\tuni.redirectTo({\r\n\t\t\t\t\t\turl: \"/pages/login/index\"\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t}, 1000)\r\n\t\t\tthis.sys = uni.getSystemInfoSync();\r\n\t\t\tif (that.dizhi.id) {\r\n\t\t\t\tthis.getAddDetail()\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\t// 选择标签\r\n\t\t\tselectTag(index) {\r\n\t\t\t\tthis.sel = index;\r\n\t\t\t\tthis.dizhi.label = this.tags[index].name;\r\n\t\t\t\tconsole.log(this.dizhi.label, '33');\r\n\t\t\t},\r\n\t\t\t// 新增标签\r\n\t\t\taddTag() {\r\n\r\n\t\t\t},\r\n\t\t\t// 选择地址\r\n\t\t\tdateSe_3(e) {\r\n\t\t\t\tthis.d_3 = e;\r\n\t\t\t\tthis.dizhi.region = this.d_3.join('');\r\n\t\t\t},\r\n\t\t\t// 设置默认地址\r\n\t\t\tbtnClick() {\r\n\t\t\t\tif (this.on) {\r\n\t\t\t\t\tthis.dizhi.isdefault = 1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tthis.dizhi.isdefault = 0;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//删除地址\r\n\t\t\tshanchu(){\r\n\t\t\t\tvar that=this;\r\n\t\t\t\tmyRequest({\r\n\t\t\t\t\turl: '/api/Address/delAddressInfo',\r\n\t\t\t\t\tmethod: 'get',\r\n\t\t\t\t\tdata: {\r\n\t\t\t\t\t\taddress_id:that.dizhi.id\r\n\t\t\t\t\t}\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tconsole.log(res.data);\r\n\t\t\t\t\tthat.fd=0;\r\n\t\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\t\tthat.$refs.toast.show({\r\n\t\t\t\t\t\t\tmodel: 'successs',\r\n\t\t\t\t\t\t\tlabel: res.data.msg\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\tlet pages = getCurrentPages(); // 当前页面\r\n\t\t\t\t\t\t\tlet beforePage = pages[pages.length - 2]; // 前一个页面\r\n\t\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\t\tdelta: 1,\r\n\t\t\t\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\t\t\t\tbeforePage.$vm.getAddList()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}, 800)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.$refs.toast.show({\r\n\t\t\t\t\t\t\tmodel: 'error',\r\n\t\t\t\t\t\t\tlabel: res.data.msg\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},\r\n\t\t\t// 保存地址\r\n\t\t\tsaveAdd() {\r\n\t\t\t\tlet that = this;\r\n\t\t\t\tlet phone = /^1[3456789]\\d{9}$/;\r\n\t\t\t\tlet reg = phone.test(that.dizhi.mobile);\r\n\t\t\t\tif (that.dizhi.name == '') {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '姓名不能为空',\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t} else if (that.dizhi.mobile == '' || reg == false) {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '手机号格式不正确',\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t} else if (that.dizhi.region == '') {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '地区不能为空',\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t} else if (that.dizhi.address == '') {\r\n\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\ttitle: '详细地址不能为空',\r\n\t\t\t\t\t\ticon: 'none'\r\n\t\t\t\t\t})\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif(that.fd==1){\r\n\t\t\t\t\t\treturn\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthat.fd=1;\r\n\t\t\t\t\tmyRequest({\r\n\t\t\t\t\t\turl: '/api/Address/addAddress',\r\n\t\t\t\t\t\tmethod: 'post',\r\n\t\t\t\t\t\tdata: {\r\n\t\t\t\t\t\t\tname: that.dizhi.name,\r\n\t\t\t\t\t\t\tmobile: that.dizhi.mobile,\r\n\t\t\t\t\t\t\tregion: that.dizhi.region,\r\n\t\t\t\t\t\t\taddress: that.dizhi.address,\r\n\t\t\t\t\t\t\tlabel: that.dizhi.label,\r\n\t\t\t\t\t\t\tdefault_address: that.dizhi.isdefault\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).then(res => {\r\n\t\t\t\t\t\tconsole.log(res.data);\r\n\t\t\t\t\t\tthat.fd=0;\r\n\t\t\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\t\t\tthat.$refs.toast.show({\r\n\t\t\t\t\t\t\t\tmodel: 'successs',\r\n\t\t\t\t\t\t\t\tlabel: res.data.msg\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\t\tlet pages = getCurrentPages(); // 当前页面\r\n\t\t\t\t\t\t\t\tlet beforePage = pages[pages.length - 2]; // 前一个页面\r\n\t\t\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\t\t\tdelta: 1,\r\n\t\t\t\t\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\t\t\t\t\tbeforePage.$vm.getAddList()\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}, 800)\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tthat.$refs.toast.show({\r\n\t\t\t\t\t\t\t\tmodel: 'error',\r\n\t\t\t\t\t\t\t\tlabel: res.data.msg\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},\r\n\r\n\t\t\t// 获取地址详情\r\n\t\t\tgetAddDetail() {\r\n\t\t\t\tlet that = this;\r\n\t\t\t\tmyRequest({\r\n\t\t\t\t\turl: '/api/Address/getAddressDetails',\r\n\t\t\t\t\tmethod: 'post',\r\n\t\t\t\t\tdata: {\r\n\t\t\t\t\t\tid: that.dizhi.id,\r\n\t\t\t\t\t}\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tconsole.log(res.data);\r\n\t\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\t\t// that.dizhi = res.data.data;\r\n\t\t\t\t\t\tthat.dizhi.name=res.data.data.name;\r\n\t\t\t\t\t\tthat.dizhi.mobile=res.data.data.mobile;\r\n\t\t\t\t\t\tthat.dizhi.region=res.data.data.region;\r\n\t\t\t\t\t\tthat.dizhi.address=res.data.data.address;\r\n\t\t\t\t\t\tthat.dizhi.label=res.data.data.label;\r\n\t\t\t\t\t\tthat.dizhi.isdefault=res.data.data.default_address;\r\n\t\t\t\t\t\tthis.tags.forEach((item, index) => {\r\n\t\t\t\t\t\t\tif (that.dizhi.label == item.name) {\r\n\t\t\t\t\t\t\t\tthat.sel = index;\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 (res.data.data.default_address == 1) {\r\n\t\t\t\t\t\t\tthat.on = true;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.$refs.toast.show({\r\n\t\t\t\t\t\t\tmodel: 'error',\r\n\t\t\t\t\t\t\tlabel: res.data.msg\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},\r\n\t\t\tredact() {\r\n\t\t\t\tlet that = this;\r\n\t\t\t\tmyRequest({\r\n\t\t\t\t\turl: '/api/Address/updateAddress',\r\n\t\t\t\t\tmethod: 'post',\r\n\t\t\t\t\tdata: {\r\n\t\t\t\t\t\tid: that.dizhi.id,\r\n\t\t\t\t\t\tname: that.dizhi.name,\r\n\t\t\t\t\t\tmobile: that.dizhi.mobile,\r\n\t\t\t\t\t\tregion: that.dizhi.region,\r\n\t\t\t\t\t\taddress: that.dizhi.address,\r\n\t\t\t\t\t\tlabel: that.dizhi.label,\r\n\t\t\t\t\t\tdefault_address: that.dizhi.isdefault\r\n\t\t\t\t\t}\r\n\t\t\t\t}).then(res => {\r\n\t\t\t\t\tconsole.log(res.data);\r\n\t\t\t\t\tif (res.data.code == 200) {\r\n\t\t\t\t\t\tuni.showToast({\r\n\t\t\t\t\t\t\ttitle: res.data.msg,\r\n\t\t\t\t\t\t\ticon: 'success'\r\n\t\t\t\t\t\t})\r\n\t\t\t\t\t\tsetTimeout(() => {\r\n\t\t\t\t\t\t\tlet pages = getCurrentPages(); // 当前页面\r\n\t\t\t\t\t\t\tlet beforePage = pages[pages.length - 2]; // 前一个页面\r\n\t\t\t\t\t\t\tuni.navigateBack({\r\n\t\t\t\t\t\t\t\tdelta: 1,\r\n\t\t\t\t\t\t\t\tsuccess: function() {\r\n\t\t\t\t\t\t\t\t\tbeforePage.$vm.getAddList()\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t}, 800)\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tthat.$refs.toast.show({\r\n\t\t\t\t\t\t\tmodel: 'error',\r\n\t\t\t\t\t\t\tlabel: res.data.msg\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}\r\n\t\t},\r\n\t}\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\r\n\t/deep/ .kuang {\r\n\t\tmargin: 0 !important;\r\n\t\tpadding: 0px !important;\r\n\t\tmargin-top: 10px !important;\r\n\t}\r\n\r\n\t/deep/ .border-grey-darken-4-b-1 {\r\n\t\tborder-bottom: solid 1px #303030 !important;\r\n\t}\r\n\r\n\t// /deep/.tm-button .tm-button-btn uni-button.wn[data-v-dae977ca] {\r\n\t// \tpadding-left: 0px !important;\r\n\t// }\r\n\r\n\t.sao {\r\n\t\twidth: 88%;\r\n\t\tmargin: 0 auto;\r\n\t\tmargin-top: 30px;\r\n\t}\r\n\r\n\t/deep/ .tm-button-label {\r\n\t\tcolor: white;\r\n\t}\r\n\r\n\t/deep/ .tm-listitem {\r\n\t\tborder-top: 1px solid #303030;\r\n\t\tmargin-top: 15px;\r\n\t}\r\n\t.anniu1{width: 75%;margin:0 auto;margin-top: 20px;padding: 0 !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 // 1678780469594\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":""}