pages-set-address.0287295e.js 9.0 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-address"],{"014f":function(t,e,a){"use strict";a.r(e);var i=a("44a7"),n=a("a289");for(var d in n)"default"!==d&&function(t){a.d(e,t,(function(){return n[t]}))}(d);a("bac5");var s,o=a("f0c5"),r=Object(o["a"])(n["default"],i["b"],i["c"],!1,null,"fedcabc6",null,!1,i["a"],s);e["default"]=r.exports},"2fab":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/uni-page-body[data-v-fedcabc6]{padding-bottom:%?120?%;padding-top:%?20?%;background-color:#f8f6f6}.content[data-v-fedcabc6]{position:relative}.list[data-v-fedcabc6]{-webkit-box-align:center;-webkit-align-items:center;align-items:center;padding:%?20?% %?30?%;background:#fff;margin:%?20?%;margin-top:0}.list .buttom[data-v-fedcabc6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between;padding-top:%?10?%}.list .buttom .checkbox[data-v-fedcabc6]{font-size:%?44?%;line-height:1;padding:%?4?%;color:#c0c4cc;background:#fff;border-radius:50px}.list .buttom .checkbox.checked[data-v-fedcabc6]{color:#921a23}.list .buttom .default-buttom[data-v-fedcabc6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.list .buttom .operation[data-v-fedcabc6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.list .buttom .operation .blank[data-v-fedcabc6]{width:%?30?%}.list .buttom .text[data-v-fedcabc6]{padding-left:%?10?%;font-size:%?24?%;color:#666}.wrapper[data-v-fedcabc6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-webkit-flex:1;flex:1;border-bottom:1px solid #f0f0f0;padding-bottom:%?20?%}.address-box[data-v-fedcabc6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;justify-content:space-between}.address-box .address[data-v-fedcabc6]{font-size:%?30?%;color:#303133}.address-box .mobile[data-v-fedcabc6]{font-size:%?28?%;color:#333}.u-box[data-v-fedcabc6]{font-size:%?28?%;color:#909399;margin-top:%?16?%}.u-box .name[data-v-fedcabc6]{margin-right:%?30?%}.icon-bianji[data-v-fedcabc6]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;height:%?80?%;font-size:%?40?%;color:#909399;padding-left:%?30?%}.add-btn[data-v-fedcabc6]{position:fixed;left:%?30?%;right:%?30?%;bottom:%?16?%;z-index:95;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;width:%?690?%;height:%?80?%;font-size:%?32?%;color:#fff;background-color:#921a23;border-radius:%?10?%}body.?%PAGE?%[data-v-fedcabc6]{background-color:#f8f6f6}',""]),t.exports=e},"44a7":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return d})),a.d(e,"a",(function(){return i}));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,i){return a("v-uni-view",{key:i,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,i)}}},[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)},d=[]},"67a0":function(t,e,a){var i=a("2fab");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("02b36461",i,!0,{sourceMap:!1,shadowMode:!1})},"735f":function(t,e,a){"use strict";var i=a("dbce");Object.defineProperty(e,"__esModule",{value:!0}),e.edit=d,e.orderData=s,e.getUserInfo=o,e.spreadBanner=r,e.getAddressList=c,e.addressEdit=l,e.addressDel=u,e.setAddressDefault=f,e.getCartList=b,e.getCartNum=p,e.cartDel=v,e.getcollectList=g,e.delcollect=m,e.upload=h,e.getSpreadPeople=x,e.getSpreadCount=k,e.bindAdmin=w,e.orderVerific=y,e.getOrderList=_,e.getAllList=C,e.getPoint=A,e.delPoint=L,e.editPoint=j;var n=i(a("bc58"));function d(t){return(0,n.default)({url:"/api/user/edit",method:"post",data:t})}function s(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function o(t){return(0,n.default)({url:"/api/userinfo",method:"get",data:t})}function r(t){return(0,n.default)({url:"/api/spread/banner",method:"get",data:t})}function c(t){return(0,n.default)({url:"/api/address/list",method:"get",data:t})}function l(t){return(0,n.default)({url:"/api/address/edit",method:"post",data:t})}function u(t){return(0,n.default)({url:"/api/address/del",method:"post",data:t})}function f(t){return(0,n.default)({url:"/api/address/default/set",method:"post",data:t})}function b(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function p(t){return(0,n.default)({url:"/api/cart/num",method:"post",data:t})}function v(t){return(0,n.default)({url:"/api/cart/del",method:"post",data:t})}function g(t){return(0,n.default)({url:"/api/collect/user",method:"get",data:t})}function m(t){return(0,n.default)({url:"/api/collect/del",method:"post",data:t})}function h(t){return(0,n.upFilse)({url:"/api/upload/image",method:"post",data:t})}function x(t){return(0,n.default)({url:"/api/spread/people",method:"post",data:t})}function k(t,e){return(0,n.default)({url:"/api/spread/count/"+e,method:"get",data:t})}function w(t){return(0,n.default)({url:"/api/bind_admin",method:"post",data:t})}function y(t){return(0,n.default)({url:"/api/order/order_verific",method:"post",data:t})}function _(t){return(0,n.default)({url:"/api/order/order_verific",method:"post",data:t})}function C(t){return(0,n.default)({url:"/api/admin/order/list",method:"get",data:t})}function A(t){return(0,n.default)({url:"/api/admin/point",method:"get",data:t})}function L(t,e){return(0,n.default)({url:"/api/admin/point/"+e,method:"delete",data:t})}function j(t,e){return(0,n.default)({url:"/api/admin/point/"+e,method:"post",data:t})}},"7cc6":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 i=a("735f"),n={data:function(){return{source:0,addressList:[]}},onLoad:function(t){this.source=t.source||0,this.loadAddress()},methods:{loadAddress:function(){var t=this;(0,i.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,i.setAddressDefault)({id:t.id}).then((function(t){t.data;a.loadAddress()})).catch((function(t){console.log(t)}))},delAddress:function(t){var e=this;(0,i.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,console.log(this.$api.prePage().addressData,"99999999+++++++++99999999999"),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},a289:function(t,e,a){"use strict";a.r(e);var i=a("7cc6"),n=a.n(i);for(var d in i)"default"!==d&&function(t){a.d(e,t,(function(){return i[t]}))}(d);e["default"]=n.a},bac5:function(t,e,a){"use strict";var i=a("67a0"),n=a.n(i);n.a}}]);