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.
 
 
 
 
 
huazhiyu/unpackage/dist/dev/.sourcemap/mp-weixin/pages/AddressEdit/AddressEdit.js.map

1 lines
16 KiB

{"version":3,"sources":["uni-app:///main.js","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/AddressEdit/AddressEdit.vue?d448","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/AddressEdit/AddressEdit.vue?c548","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/AddressEdit/AddressEdit.vue?5d1c","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/AddressEdit/AddressEdit.vue?f2a2","uni-app:///pages/AddressEdit/AddressEdit.vue","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/AddressEdit/AddressEdit.vue?488d","webpack:////Users/seep/Documents/liuqingProject/hezhiying/pages/AddressEdit/AddressEdit.vue?4098"],"names":["wx","__webpack_require_UNI_MP_PLUGIN__","__webpack_require__","createPage","Page","data","addressType","show","columns","defaultIds","areaList","form","id","consignee","mobile","province_name","city_name","district_name","address","is_default","addressText","defaultNames","methods","confirmAddress","getAreaHandle","submitHandle","params","uni","url","getAddrDescHandle","console","Object","onLoad","title"],"mappings":";;;;;;;;;;;;;AAAA;AAGA;AACA;AAHA;AACAA,EAAE,CAACC,iCAAiC,GAAGC,mBAAmB;AAG1DC,UAAU,CAACC,oBAAI,CAAC,C;;;;;;;;;;;;;ACLhB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAoI;AACpI;AAC+D;AACL;AACsC;;;AAGhG;AACgN;AAChN,gBAAgB,iNAAU;AAC1B,EAAE,iFAAM;AACR,EAAE,kGAAM;AACR,EAAE,2GAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,sGAAU;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,wUAEN;AACP,KAAK;AACL;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;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;AChDA;AAAA;AAAA;AAAA;AAAy0B,CAAgB,yyBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;AC8D71B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAEA;EACAC;IACA;MACAC;MACAC;MACAC;MACAC;MACAC;MACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;QACAC;MACA;MACAC;MACAC;IAEA;EACA;EACAC;IACAC;MACA;MACA;MACA;MACA;MACA;MACA;IACA;IACAC;MAAA;MACA;QACA;MACA;IACA;IACAC;MAEA;MACA;QACAC;MACA;QACAA;MACA;MACA;QACA;UACA;YACAC;cACAC;YACA;UACA;QACA;MACA;MACA;QACA;UACA;YACAD;cACAC;YACA;UACA;QACA;MACA;IAEA;IACAC;MAAA;MACA;QAAAjB;MAAA;QACAkB;QACAC;UACA;QACA;QACA;QACA;MACA;IACA;EACA;EACAC;IACAF;IACA;IACAH;MACAM;IACA;IACA;MACA;IACA;IACA;EACA;AACA;AAAA,2B;;;;;;;;;;;;;ACvJA;AAAA;AAAA;AAAA;AAAgkD,CAAgB,g8CAAG,EAAC,C;;;;;;;;;;;ACAplD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"pages/AddressEdit/AddressEdit.js","sourcesContent":["import 'uni-pages';\n// @ts-ignore\nwx.__webpack_require_UNI_MP_PLUGIN__ = __webpack_require__;\nimport Vue from 'vue'\nimport Page from './pages/AddressEdit/AddressEdit.vue'\ncreatePage(Page)","import { render, staticRenderFns, recyclableRender, components } from \"./AddressEdit.vue?vue&type=template&id=404abaf8&scoped=true&\"\nvar renderjs\nimport script from \"./AddressEdit.vue?vue&type=script&lang=js&\"\nexport * from \"./AddressEdit.vue?vue&type=script&lang=js&\"\nimport style0 from \"./AddressEdit.vue?vue&type=style&index=0&id=404abaf8&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/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 \"404abaf8\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"pages/AddressEdit/AddressEdit.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./AddressEdit.vue?vue&type=template&id=404abaf8&scoped=true&\"","var components\ntry {\n components = {\n dataPicker: function () {\n return import(\n /* webpackChunkName: \"uni_modules/data-picker/components/data-picker/data-picker\" */ \"@/uni_modules/data-picker/components/data-picker/data-picker.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 if (!_vm._isMounted) {\n _vm.e0 = function ($event) {\n _vm.show = true\n }\n _vm.e1 = function ($event) {\n $event.stopPropagation()\n _vm.show = true\n }\n _vm.e2 = function ($event) {\n _vm.show = false\n }\n _vm.e3 = function ($event) {\n _vm.show = false\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./AddressEdit.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./AddressEdit.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"page\">\n\t\t<view class=\"address-input\">\n\t\t\t<view class=\"list-input\">\n\t\t\t\t<view class=\"title\">\n\t\t\t\t\t<text>收货人</text>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"content\">\n\t\t\t\t\t<input type=\"text\" v-model=\"form.consignee\" placeholder=\"请填写收货人姓名\">\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t<view class=\"list-input\">\n\t\t\t\t<view class=\"title\">\n\t\t\t\t\t<text>手机号</text>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"content\">\n\t\t\t\t\t<input type=\"tel\" v-model=\"form.mobile\" placeholder=\"请填写收货人手机号\">\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t<view class=\"list-input\" @click=\"show=true\">\n\t\t\t\t<view class=\"title\">\n\t\t\t\t\t<text>所在地区</text>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"content\" style=\"color:#aaaaaa\" @click.native.stop=\"show=true\"> \n\t\t\t\t\t<!-- 省市区县/乡镇等 -->\n\t\t\t\t\t<input type=\"text\" v-model=\"addressText\" style=\"pointer-events:none\" placeholder=\"省市区县/乡镇等\">\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t\t<view class=\"list-textarea\">\n\t\t\t\t<view class=\"title\">\n\t\t\t\t\t<text>详细地址</text>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"content\">\n\t\t\t\t\t<textarea v-model=\"form.address\" type=\"tel\" placeholder=\"街道/楼牌号等\" />\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"tag-default\">\n\t\t\t\n\t\t\t<view class=\"default-address\">\n\t\t\t\t<view class=\"title\">\n\t\t\t\t\t<text>默认地址</text>\n\t\t\t\t</view>\n\t\t\t\t<view class=\"switch-default\">\n\t\t\t\t\t<switch class=\"red sm\" color=\"#236030 !important\" :checked=\"form.is_default\"></switch>\n\t\t\t\t</view>\n\t\t\t</view>\n\t\t</view>\n\t\t<view class=\"footer-btn\" @click=\"submitHandle\">\n\t\t\t<view class=\"btn\">\n\t\t\t\t<text>确认</text>\n\t\t\t</view>\n\t\t</view>\n\n\t\t<data-picker :show=\"show\" @confirm='confirmAddress' @cancel='show=false'\n\t\t\t@close='show = false' :defaultNames=\"defaultNames\" :sourceData=\"areaList\" :showToolbar=\"false\" :showBottombar=\"true\"\n\t\t\t:labelName=\"'name'\"></data-picker>\n\t\t\n\t</view>\n</template>\n\n<script>\n\timport {getArea,addAddr,editAddr,getAddrDesc} from '@/common/api.js'\n\t\n\texport default {\n\t\tdata() {\n\t\t\treturn {\n\t\t\t\taddressType: '2',\n\t\t\t\tshow: false,\n\t\t\t\tcolumns:[],\n\t\t\t\tdefaultIds:[],\n\t\t\t\tareaList:[],\n\t\t\t\tform:{\n\t\t\t\t\tid:null,\n\t\t\t\t\tconsignee:null,\n\t\t\t\t\tmobile:null,\n\t\t\t\t\tprovince_name:null,\n\t\t\t\t\tcity_name:null,\n\t\t\t\t\tdistrict_name:null,\n\t\t\t\t\taddress:null,\n\t\t\t\t\tis_default:true,\n\t\t\t\t},\n\t\t\t\taddressText:'',\n\t\t\t\tdefaultNames:[]\n\t\t\t\n\t\t\t};\n\t\t},\n\t\tmethods:{\n\t\t\tconfirmAddress(val) {\n\t\t\t\tthis.addressText = [...new Set(val.value)].join('')\n\t\t\t\tlet value = val.value;\n\t\t\t\tthis.form.province_name=value[0];\n\t\t\t\tthis.form.city_name=value[1];\n\t\t\t\tthis.form.district_name=value[2];\n\t\t\t\tthis.show = false\n\t\t\t},\n\t\t\tgetAreaHandle(){\n\t\t\t\tgetArea().then(res=>{\n\t\t\t\t\tthis.areaList = res.data;\n\t\t\t\t})\n\t\t\t},\n\t\t\tsubmitHandle(){\n\t\t\t\t\n\t\t\t\tlet params=JSON.parse(JSON.stringify(this.form))\n\t\t\t\tif(params.is_default){\n\t\t\t\t\tparams.is_default = 1;\n\t\t\t\t}else{\n\t\t\t\t\tparams.is_default = 0;\n\t\t\t\t}\n\t\t\t\tif(this.addressType==2){\n\t\t\t\t\taddAddr(params).then(res=>{\n\t\t\t\t\t\tif(res.code==1){\n\t\t\t\t\t\t\tuni.navigateTo({\n\t\t\t\t\t\t\t\turl:'/pages/AddressList/AddressList'\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\tif(this.addressType==1){\n\t\t\t\t\teditAddr(params).then(res=>{\n\t\t\t\t\t\tif(res.code==1){\n\t\t\t\t\t\t\tuni.navigateTo({\n\t\t\t\t\t\t\t\turl:'/pages/AddressList/AddressList'\n\t\t\t\t\t\t\t})\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t}\n\t\t\t\t\n\t\t\t},\n\t\t\tgetAddrDescHandle(id){\n\t\t\t\tgetAddrDesc({id:id}).then(res=>{\n\t\t\t\t\tconsole.log(res)\n\t\t\t\t\tObject.keys(this.form).forEach(item=>{\n\t\t\t\t\t\tthis.form[item]=res.data[item]\n\t\t\t\t\t})\n\t\t\t\t\tthis.defaultNames.push(this.form.province_name,this.form.city_name,this.form.district_name)\n\t\t\t\t\tthis.addressText = this.form.province_name+this.form.city_name+this.form.district_name\n\t\t\t\t})\n\t\t\t}\n\t\t},\n\t\tonLoad(params) {\n\t\t\tconsole.log(params)\n\t\t\tthis.addressType = params.type||'2';\n\t\t\tuni.setNavigationBarTitle({\n\t\t\t\ttitle: this.addressType === '1' ? '编辑收货地址':'新建收货地址'\n\t\t\t})\n\t\t\tif(params.item&&params.item!='null'){\n\t\t\t\tthis.getAddrDescHandle(JSON.parse(params.item).id)\n\t\t\t}\n\t\t\tthis.getAreaHandle()\n\t\t}\n\t}\n</script>\n\n<style scoped lang=\"scss\">\n\t@import 'AddressEdit.scss';\n\t\n</style>\n","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./AddressEdit.vue?vue&type=style&index=0&id=404abaf8&scoped=true&lang=scss&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./AddressEdit.vue?vue&type=style&index=0&id=404abaf8&scoped=true&lang=scss&\"","// extracted by mini-css-extract-plugin\n if(module.hot) {\n // 1697873050653\n var cssReload = require(\"/Applications/HBuilderX.app/Contents/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":""}