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
8.0 KiB

{"version":3,"sources":["webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/AddressWindow.vue?0d2b","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/AddressWindow.vue?4e7a","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/AddressWindow.vue?028b","webpack:///F:/zhaoshang/zhaoshangMiniApp_uni/components/AddressWindow.vue?e905","uni-app:///components/AddressWindow.vue"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAA0H;AAC1H;AACiE;AACL;;;AAG5D;AAC+M;AAC/M,gBAAgB,uNAAU;AAC1B,EAAE,mFAAM;AACR,EAAE,wFAAM;AACR,EAAE,iGAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,4FAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAAyzB,CAAgB,y0BAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACsC70B,sD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAEA,EACA,qBADA,EAEA,SACA,cADA,EAEA,eAFA,EAFA,EAMA,uBACA,SACA,eADA,EAEA,UAFA,EAGA,SAHA,EAIA,SAJA,EAKA,WALA,GAOA,CAdA,EAeA,8BAfA,EAgBA,WACA,2CACA,gBACA,iDACA,4BACA,CAFA,EAGA,CANA,EAOA,YAPA,0BAOA,CACA,2BACA,CATA,EAUA,2CACA,yEACA,uBACA,CAbA,EAcA,wCACA,+CACA,2BACA,CAjBA,EAhBA,E","file":"components/AddressWindow.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./AddressWindow.vue?vue&type=template&id=784c8c8e&\"\nvar renderjs\nimport script from \"./AddressWindow.vue?vue&type=script&lang=js&\"\nexport * from \"./AddressWindow.vue?vue&type=script&lang=js&\"\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 = \"components/AddressWindow.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!./AddressWindow.vue?vue&type=template&id=784c8c8e&\"","var components\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!./AddressWindow.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!./AddressWindow.vue?vue&type=script&lang=js&\"","<template>\r\n <view>\r\n <view class=\"address-window\" :class=\"value === true ? 'on' : ''\">\r\n <view class=\"title\">\r\n 选择地址\r\n <text class=\"iconfont icon-guanbi\" @click=\"closeAddress\"></text>\r\n </view>\r\n <view class=\"list\" v-if=\"addressList.length\">\r\n <view\r\n class=\"item acea-row row-between-wrapper\"\r\n :class=\"item.id === checked ? 'font-color-red' : ''\"\r\n v-for=\"(item, addressIndex) in addressList\"\r\n @click=\"tapAddress(addressIndex)\"\r\n :key=\"addressIndex\"\r\n >\r\n <text class=\"iconfont icon-ditu\" :class=\"item.id === checked ? 'font-color-red' : ''\"></text>\r\n <view class=\"addressTxt\">\r\n <view class=\"name\" :class=\"item.id === checked ? 'font-color-red' : ''\">\r\n {{ item.realName }}\r\n <text class=\"phone\">{{ item.phone }}</text>\r\n </view>\r\n <view class=\"line1\">\r\n {{ item.province }}{{ item.city }}{{ item.district\r\n }}{{ item.detail }}\r\n </view>\r\n </view>\r\n <text class=\"iconfont icon-complete\" :class=\"item.id === checked ? 'font-color-red' : ''\"></text>\r\n </view>\r\n </view>\r\n <view class=\"pictrue\" v-if=\"addressList.length < 1\">\r\n <image :src=\"`${$VUE_APP_RESOURCES_URL}/images/noAddress.png`\" class=\"image\" />\r\n </view>\r\n <view class=\"addressBnt bg-color-red\" @click=\"goAddressPages\">新加地址</view>\r\n </view>\r\n <view class=\"mask\" @touchmove.prevent :hidden=\"value === false\" @click=\"closeAddress\"></view>\r\n </view>\r\n</template>\r\n<script>\r\nimport { getAddressList } from \"@/api/user\";\r\n\r\nexport default {\r\n name: \"AddressWindow\",\r\n props: {\r\n value: Boolean,\r\n checked: Number\r\n },\r\n data: function() {\r\n return {\r\n addressList: [],\r\n current: 0,\r\n cartId: 0,\r\n pinkId: 0,\r\n couponId: 0\r\n };\r\n },\r\n mounted: function() {},\r\n methods: {\r\n getAddressList: function() {\r\n let that = this;\r\n getAddressList().then(res => {\r\n that.addressList = res.data;\r\n });\r\n },\r\n closeAddress() {\r\n this.$emit(\"input\", false);\r\n },\r\n goAddressPages: function() {\r\n this.$yrouter.push('/pagesB/pages/user/address/AddressManagement/index')\r\n this.$emit(\"redirect\");\r\n },\r\n tapAddress: function(index) {\r\n this.$emit(\"checked\", this.addressList[index]);\r\n this.$emit(\"input\", false);\r\n }\r\n }\r\n};\r\n</script>\r\n"],"sourceRoot":""}