(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-address-manage-address-manage"],{"1f93":function(e,t,i){t=e.exports=i("2350")(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-cec2fd4e]{margin-top:%?10?%}.app-item uni-input[data-v-cec2fd4e], .app-item uni-picker[data-v-cec2fd4e], .app-item uni-textarea[data-v-cec2fd4e]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-cec2fd4e]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-cec2fd4e]{width:25%;height:50%;float:left;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.kingkong uni-navigator uni-image[data-v-cec2fd4e]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-cec2fd4e]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-cec2fd4e]{color:#fff;background:#f76454}.small-btn[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-cec2fd4e]{color:#999;border-color:#999}.login-btn[data-v-cec2fd4e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-cec2fd4e]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-cec2fd4e]{margin-right:%?20?%}.border-right[data-v-cec2fd4e]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?20?%;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-cec2fd4e]{margin-right:%?6?%}.position-center[data-v-cec2fd4e]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-cec2fd4e]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-cec2fd4e]{width:100%;height:100%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.data-card .data-card-text .text[data-v-cec2fd4e]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-cec2fd4e]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-cec2fd4e]{color:#f76454}.swiper-nav[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%}.swiper-nav .item.active[data-v-cec2fd4e]{color:#f76454}.swiper-nav .moveBar[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-cec2fd4e]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-cec2fd4e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%}.swiper-area uni-swiper[data-v-cec2fd4e]{width:100%;height:100%}.article-header[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?120?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-cec2fd4e]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;margin-left:%?20?%;-webkit-box-pack:start;-webkit-justify-content:flex-start;justify-content:flex-start}.article-header .name .identity[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-cec2fd4e]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-cec2fd4e]{color:#f76454}.article-footer[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;-webkit-box-flex:1;-webkit-flex:1;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-cec2fd4e]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-cec2fd4e]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-cec2fd4e]{color:#f76454}\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */.address-manage[data-v-cec2fd4e]{height:100%;box-sizing:border-box;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;background:#f2f2f2}.address-manage .content[data-v-cec2fd4e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;position:relative;box-sizing:border-box}.address-manage .content .item[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;min-height:%?250?%;background:#fff;border-bottom:%?10?% solid #f2f2f2;box-sizing:border-box;padding:%?30?% %?30?% 0}.address-manage .content .item .name-phone[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;width:100%;height:%?66?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.address-manage .content .item .name-phone .name[data-v-cec2fd4e]{font-size:%?32?%}.address-manage .content .item .name-phone .phone[data-v-cec2fd4e]{font-size:%?26?%}.address-manage .content .item .address[data-v-cec2fd4e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;width:100%;font-size:%?26?%;color:#999}.address-manage .content .item .status[data-v-cec2fd4e]{width:100%;height:%?76?%;line-height:%?76?%;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;border-top:%?2?% solid #f2f2f2}.address-manage .content .item .status .edit-del[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;float:right;height:100%;width:%?268?%;color:#999;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.address-manage .content .item .status .edit-del .edit[data-v-cec2fd4e], .address-manage .content .item .status .edit-del .del[data-v-cec2fd4e]{-webkit-box-flex:1;-webkit-flex:1;flex:1;height:100%;text-align:center}.address-manage .content .item .status .edit-del .edit.del[data-v-cec2fd4e], .address-manage .content .item .status .edit-del .del.del[data-v-cec2fd4e]{text-align:right}.address-manage .content .bottom[data-v-cec2fd4e]{height:%?88?%}.address-manage .noaddress[data-v-cec2fd4e]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;flex-direction:row;height:100%;color:#999}.address-manage .add-address[data-v-cec2fd4e]{left:0;bottom:0;margin:0;width:100%;position:fixed;border-radius:0}',""])},"3f14":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=i("4e45"),o={data:function(){return{title:"地址管理"}},computed:{list:function(){return this.$store.state.address.list}},created:function(){uni.$on("ADDRESS",function(e){uni.toast(e)})},methods:{editAddress:function(e){uni.navigateTo({url:"../add-address/add-address?index=".concat(e)})},delAddress:function(e){var t=this;this.$refs.ltm.modal("提示",["确定要删除这个地址"]).then(function(){uni.showLoading({mask:!0}),(0,n._API_AddressDel)({id:t.list[e].id}).then(function(i){t.$store.commit("address/DEL",e)})}).catch(function(){uni.toast("取消删除")})},chooseAddress:function(e){"选择地址"===this.title&&(this.$store.commit("address/CHOOSEADDRESS",e),uni.navigateBack())}},onShow:function(){var e=this;setTimeout(function(){uni.showLoading({mask:!0}),(0,n._API_AddressGet)().then(function(t){e.$store.commit("address/GET_ADDRESS",t.data.list)})},333)},onLoad:function(e){e.choose&&(this.title="选择地址")}};t.default=o},"4e45":function(e,t,i){"use strict";var n=i("288e");Object.defineProperty(t,"__esModule",{value:!0}),t._API_AddressGet=t._API_AddressUpdata=t._API_AddressDel=t._API_AddressAdd=void 0;var o=n(i("23aa")),a=function(e){return o.default.post("/user/add_address",e)};t._API_AddressAdd=a;var r=function(e){return o.default.get("/user/del_address",e)};t._API_AddressDel=r;var c=function(e){return o.default.post("/user/update_address",e)};t._API_AddressUpdata=c;var d=function(e){return o.default.get("/user/show_address",e)};t._API_AddressGet=d},"80e4":function(e,t,i){"use strict";var n,o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"address-manage"},[i("custom-nav",{ref:"ltm",attrs:{noback:"noback",transparent:"transparent",title:" "}}),e.list.length?i("v-uni-view",{staticClass:"content"},[e._l(e.list,function(t,n){return i("v-uni-view",{key:n,staticClass:"item",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.chooseAddress(n)}}},[i("v-uni-view",{staticClass:"name-phone"},[i("v-uni-text",{staticClass:"name"},[e._v("收货人: "+e._s(t.con_name))]),i("v-uni-text",{staticClass:"phone"},[e._v(e._s(t.con_mobile))])],1),i("v-uni-view",{staticClass:"address"},[e._v(e._s(e._f("getAddressString")(t)))]),i("v-uni-view",{staticClass:"status"},[i("v-uni-view",{staticClass:"edit-del"},[i("v-uni-text",{staticClass:"edit",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.editAddress(n)}}},[i("v-uni-text",{staticClass:"cuIcon-post icon-right"}),e._v("编辑")],1),i("v-uni-text",{staticClass:"del",on:{click:function(t){t.stopPropagation(),arguments[0]=t=e.$handleEvent(t),e.delAddress(n)}}},[i("v-uni-text",{staticClass:"cuIcon-delete icon-right"}),e._v("删除")],1)],1)],1)],1)}),i("v-uni-view",{staticClass:"bottom"})],2):i("v-uni-view",{staticClass:"noaddress"},[e._v("还没有地址呢")]),i("v-uni-navigator",{staticClass:"add-address big-btn bg",attrs:{url:"../add-address/add-address"}},[e._v("新增地址")])],1)},a=[];i.d(t,"b",function(){return o}),i.d(t,"c",function(){return a}),i.d(t,"a",function(){return n})},"93df":function(e,t,i){var n=i("1f93");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var o=i("4f06").default;o("b78aa178",n,!0,{sourceMap:!1,shadowMode:!1})},"95c1":function(e,t,i){"use strict";i.r(t);var n=i("3f14"),o=i.n(n);for(var a in n)"default"!==a&&function(e){i.d(t,e,function(){return n[e]})}(a);t["default"]=o.a},bb5b:function(e,t,i){"use strict";i.r(t);var n=i("80e4"),o=i("95c1");for(var a in o)"default"!==a&&function(e){i.d(t,e,function(){return o[e]})}(a);i("f315");var r,c=i("f0c5"),d=Object(c["a"])(o["default"],n["b"],n["c"],!1,null,"cec2fd4e",null,!1,n["a"],r);t["default"]=d.exports},f315:function(e,t,i){"use strict";var n=i("93df"),o=i.n(n);o.a}}]);