1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-address"],{"0578":function(t,e,a){"use strict";a("99af"),a("c975"),a("d81d"),a("a434"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var d=a("b726"),n={data:function(){return{source:0,addressList:[]}},onLoad:function(t){this.source=t.source||0,this.loadAddress()},methods:{loadAddress:function(){var t=this;(0,d.getAddressList)({page:1,limit:100}).then((function(e){var a=e.data;t.addressList=a}))},defaultUp:function(t,e){var a=this;this.addressList=this.addressList.map((function(t){return t.is_default=0,t})),this.addressList[e].is_default=1,(0,d.setAddressDefault)({id:t.id}).then((function(t){t.data;a.loadAddress()})).catch((function(t){console.log(t)}))},delAddress:function(t){var e=this;(0,d.addressDel)({id:t.id}).then((function(t){t.data;e.$api.msg("删除成功")}));var a=this.addressList.indexOf(t);this.addressList.splice(a,1)},checkAddress:function(t){1==this.source&&(this.$api.prePage().addressData=t,uni.navigateBack())},addAddress:function(t,e){uni.navigateTo({url:"/pages/set/addressManage?type=".concat(t,"&data=").concat(JSON.stringify(e))})},refreshList:function(){this.loadAddress()}}};e.default=n},"7165a":function(t,e,a){var d=a("24fb");e=d(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-1d0b5f19]{padding-bottom:%?120?%;padding-top:%?20?%;background-color:#f8f8f8}.content[data-v-1d0b5f19]{position:relative}.list[data-v-1d0b5f19]{align-items:center;padding:%?20?% %?30?%;background:#fff;margin:%?20?%;margin-top:0}.list .buttom[data-v-1d0b5f19]{display:flex;align-items:center;justify-content:space-between;padding-top:%?10?%}.list .buttom .checkbox[data-v-1d0b5f19]{font-size:%?44?%;line-height:1;padding:%?4?%;color:#c0c4cc;background:#fff;border-radius:50px}.list .buttom .checkbox.checked[data-v-1d0b5f19]{color:#f65067}.list .buttom .default-buttom[data-v-1d0b5f19]{display:flex;align-items:center}.list .buttom .operation[data-v-1d0b5f19]{display:flex;align-items:center}.list .buttom .operation .blank[data-v-1d0b5f19]{width:%?30?%}.list .buttom .text[data-v-1d0b5f19]{padding-left:%?10?%;font-size:%?24?%;color:#666}.wrapper[data-v-1d0b5f19]{display:flex;flex-direction:column;flex:1;border-bottom:1px solid #f0f0f0;padding-bottom:%?20?%}.address-box[data-v-1d0b5f19]{display:flex;align-items:center;justify-content:space-between}.address-box .address[data-v-1d0b5f19]{font-size:%?30?%;color:#303133}.address-box .mobile[data-v-1d0b5f19]{font-size:%?28?%;color:#333}.u-box[data-v-1d0b5f19]{font-size:%?28?%;color:#909399;margin-top:%?16?%}.u-box .name[data-v-1d0b5f19]{margin-right:%?30?%}.icon-bianji[data-v-1d0b5f19]{display:flex;align-items:center;height:%?80?%;font-size:%?40?%;color:#909399;padding-left:%?30?%}.add-btn[data-v-1d0b5f19]{position:fixed;left:%?30?%;right:%?30?%;bottom:%?16?%;z-index:95;display:flex;align-items:center;justify-content:center;width:%?690?%;height:%?80?%;font-size:%?32?%;color:#fff;background-color:#f65067;border-radius:%?10?%}body.?%PAGE?%[data-v-1d0b5f19]{background-color:#f8f8f8}',""]),t.exports=e},"7b2d":function(t,e,a){"use strict";a.r(e);var d=a("d5a1"),n=a("e506");for(var i in n)"default"!==i&&function(t){a.d(e,t,(function(){return n[t]}))}(i);a("8194");var s,r=a("f0c5"),o=Object(r["a"])(n["default"],d["b"],d["c"],!1,null,"1d0b5f19",null,!1,d["a"],s);e["default"]=o.exports},8194:function(t,e,a){"use strict";var d=a("a3f6"),n=a.n(d);n.a},a3f6:function(t,e,a){var d=a("7165a");"string"===typeof d&&(d=[[t.i,d,""]]),d.locals&&(t.exports=d.locals);var n=a("4f06").default;n("131a0406",d,!0,{sourceMap:!1,shadowMode:!1})},b726:function(t,e,a){"use strict";var d=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.lookSubpoints=i,e.lookOneself=s,e.spread=r,e.myspread=o,e.orderData=u,e.getUserInfo=c,e.userinfo=l,e.spreadBanner=f,e.getAddressList=p,e.addressEdit=v,e.addressDel=b,e.setAddressDefault=h,e.getCartList=g,e.getCartNum=m,e.cartDel=x,e.getcollectList=k,e.delcollect=w,e.transfer=y,e.yuetransfer=_,e.cashtransfer=C,e.share=A;var n=d(a("c9b6"));function i(t,e){return(0,n.default)({url:"/api/tree/children/"+e,method:"get",data:t})}function s(t){return(0,n.default)({url:"/api/tree/points",method:"get",data:t})}function r(t){return(0,n.default)({url:"/api/user/spread",method:"post",data:t})}function o(t){return(0,n.default)({url:"/api/spread/people",method:"POST",data:t})}function u(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function f(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function p(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})}function v(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})}function b(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function h(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function g(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function m(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function x(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})}function k(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})}function w(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function y(t){return(0,n.default)({url:"/api/trade",method:"post",data:t})}function _(t){return(0,n.default)({url:"/api/yue/trade",method:"post",data:t})}function C(t){return(0,n.default)({url:"/api/cash/trade",method:"post",data:t})}function A(t){return(0,n.default)({url:"/api/game",method:"get",data:t})}},d5a1:function(t,e,a){"use strict";var d;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){return d}));var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-uni-view",{staticClass:"content b-t"},[t._l(t.addressList,(function(e,d){return a("v-uni-view",{key:d,staticClass:"list",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.checkAddress(e)}}},[a("v-uni-view",{staticClass:"wrapper"},[a("v-uni-view",{staticClass:"address-box"},[a("v-uni-text",{staticClass:"name"},[t._v(t._s(e.real_name))]),a("v-uni-text",{staticClass:"mobile"},[t._v(t._s(e.phone))])],1),a("v-uni-view",{staticClass:"u-box"},[a("v-uni-text",{staticClass:"address"},[t._v(t._s(e.province+e.city+e.district)+" "+t._s(e.detail))])],1)],1),a("v-uni-view",{staticClass:"buttom"},[a("v-uni-view",{staticClass:"default-buttom",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.defaultUp(e,d)}}},[a("v-uni-view",{staticClass:"iconfont iconroundcheckfill checkbox",class:{checked:1==e.is_default}}),a("v-uni-text",{staticClass:"text"},[t._v("设为默认地址")])],1),a("v-uni-view",{staticClass:"operation"},[a("v-uni-view",{on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.addAddress("edit",e)}}},[a("v-uni-text",{staticClass:"iconfont iconedit"}),a("v-uni-text",{staticClass:"text"},[t._v("编辑")])],1),a("v-uni-view",{staticClass:"blank"}),a("v-uni-view",{on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.delAddress(e)}}},[a("v-uni-text",{staticClass:"iconfont icondelete"}),a("v-uni-text",{staticClass:"text"},[t._v("删除")])],1)],1)],1)],1)})),a("v-uni-button",{staticClass:"add-btn",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.addAddress("add")}}},[t._v("新增地址")])],2)},i=[]},e506:function(t,e,a){"use strict";a.r(e);var d=a("0578"),n=a.n(d);for(var i in d)"default"!==i&&function(t){a.d(e,t,(function(){return d[t]}))}(i);e["default"]=n.a}}]);
|