1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-point"],{"0e93":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.getPoint)({page:1,limit:100}).then((function(e){var a=e.data;console.log(a.data,"point++++++++++++++++"),t.addressList=a.data}))},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.delPoint)({},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/pointManage?type=".concat(t,"&data=").concat(JSON.stringify(e))})},refreshList:function(){this.loadAddress()}}};e.default=n},"274b":function(t,e,a){"use strict";a.r(e);var i=a("0e93"),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},"44f4":function(t,e,a){var i=a("ae9e");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("36eeeee4",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=o,e.getUserInfo=s,e.spreadBanner=r,e.getAddressList=c,e.addressEdit=l,e.addressDel=u,e.setAddressDefault=f,e.getCartList=p,e.getCartNum=b,e.cartDel=v,e.getcollectList=g,e.delcollect=m,e.upload=x,e.getSpreadPeople=h,e.getSpreadCount=w,e.bindAdmin=k,e.orderVerific=y,e.getOrderList=_,e.getAllList=C,e.getPoint=A,e.delPoint=L,e.editPoint=P;var n=i(a("bc58"));function d(t){return(0,n.default)({url:"/api/user/edit",method:"post",data:t})}function o(t){return(0,n.default)({url:"/api/order/data",method:"get",data:t})}function s(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 p(t){return(0,n.default)({url:"/api/cart/list",method:"get",data:t})}function b(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 x(t){return(0,n.upFilse)({url:"/api/upload/image",method:"post",data:t})}function h(t){return(0,n.default)({url:"/api/spread/people",method:"post",data:t})}function w(t,e){return(0,n.default)({url:"/api/spread/count/"+e,method:"get",data:t})}function k(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 P(t,e){return(0,n.default)({url:"/api/admin/point/"+e,method:"post",data:t})}},"8c17":function(t,e,a){"use strict";var i=a("44f4"),n=a.n(i);n.a},"8c88":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.name))])],1),a("v-uni-view",{staticClass:"u-box"},[a("v-uni-text",{staticClass:"address"},[t._v("地址:"+t._s(e.address)+" "+t._s(e.detailed_address))])],1),a("v-uni-view",{staticClass:"u-box"},[a("v-uni-text",{staticClass:"address"},[t._v("电话:"+t._s(e.phone))])],1)],1),a("v-uni-view",{staticClass:"buttom"},[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=[]},a433:function(t,e,a){"use strict";a.r(e);var i=a("8c88"),n=a("274b");for(var d in n)"default"!==d&&function(t){a.d(e,t,(function(){return n[t]}))}(d);a("8c17");var o,s=a("f0c5"),r=Object(s["a"])(n["default"],i["b"],i["c"],!1,null,"fdac815c",null,!1,i["a"],o);e["default"]=r.exports},ae9e: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-fdac815c]{padding-bottom:%?120?%;padding-top:%?20?%;background-color:#f8f6f6}.content[data-v-fdac815c]{position:relative}.list[data-v-fdac815c]{-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-fdac815c]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end;padding-top:%?10?%}.list .buttom .checkbox[data-v-fdac815c]{font-size:%?44?%;line-height:1;padding:%?4?%;color:#c0c4cc;background:#fff;border-radius:50px}.list .buttom .checkbox.checked[data-v-fdac815c]{color:#921a23}.list .buttom .default-buttom[data-v-fdac815c]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.list .buttom .operation[data-v-fdac815c]{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-fdac815c]{width:%?30?%}.list .buttom .text[data-v-fdac815c]{padding-left:%?10?%;font-size:%?24?%;color:#666}.wrapper[data-v-fdac815c]{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-fdac815c]{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-fdac815c]{font-size:%?30?%;color:#303133}.address-box .mobile[data-v-fdac815c]{font-size:%?28?%;color:#333}.u-box[data-v-fdac815c]{font-size:%?28?%;color:#909399;margin-top:%?16?%}.u-box .name[data-v-fdac815c]{margin-right:%?30?%}.icon-bianji[data-v-fdac815c]{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-fdac815c]{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-fdac815c]{background-color:#f8f6f6}',""]),t.exports=e}}]);
|