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 line
7.9 KiB
1 line
7.9 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-views-user-myaddress"],{"114f":function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,".myaddress[data-v-7e605dbe]{padding:%?10?% 4%;padding-bottom:%?140?%;margin-top:%?10?%}.order_address[data-v-7e605dbe]{height:%?180?%;width:100%;background-color:#fff;border-radius:%?10?%;position:relative;box-shadow:%?0?% %?0?% %?10?% #ddd;margin-bottom:%?20?%}.order_address uni-image[data-v-7e605dbe]{width:100%;height:100%;display:block;position:absolute;top:0;left:0;z-index:10}.address_box[data-v-7e605dbe]{width:100%;height:100%;display:block;z-index:10;box-sizing:border-box;padding:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.weizhi_icon uni-text[data-v-7e605dbe]{font-size:%?40?%;margin-left:%?10?%}.address_box .center[data-v-7e605dbe]{margin-left:%?20?%}.address_box .center .name[data-v-7e605dbe]{height:%?60?%;line-height:%?60?%}.address_box .center .name .text1[data-v-7e605dbe]{font-size:%?26?%;font-weight:700;color:#333;display:inline-block;margin-right:%?20?%}.phones[data-v-7e605dbe]{font-size:%?24?%;color:#999;z-index:0}.address_box .address_name[data-v-7e605dbe]{font-size:%?26?%;font-weight:700;color:#333}.noaddress[data-v-7e605dbe]{margin-left:%?40?%;font-weight:700;color:#333;font-size:%?26?%}.caozuo[data-v-7e605dbe]{position:absolute;right:%?20?%;display:-webkit-box;display:-webkit-flex;display:flex;top:%?20?%}.caozuo uni-view[data-v-7e605dbe]{font-size:%?24?%;color:#666;margin-left:%?30?%}.caozuo uni-view uni-text[data-v-7e605dbe]{font-size:%?24?%}.moren[data-v-7e605dbe]{position:absolute;top:0;left:0}.moren uni-text[data-v-7e605dbe]{font-size:%?60?%}.save[data-v-7e605dbe]{position:fixed;bottom:0;width:100%;height:%?120?%;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.save uni-view[data-v-7e605dbe]{display:-webkit-box;display:-webkit-flex;display:flex}.save .btn[data-v-7e605dbe]{box-shadow:%?0?% %?5?% %?10?% rgba(0,0,0,.4);width:70%;height:%?80?%;border-radius:%?80?%;background-color:#f23a3a;color:#fff;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?30?%}",""]),e.exports=t},1582:function(e,t,i){var n=i("cbcb");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("4dc9d326",n,!0,{sourceMap:!1,shadowMode:!1})},"20bb":function(e,t,i){"use strict";i.r(t);var n=i("ef00"),a=i("8fa8");for(var s in a)"default"!==s&&function(e){i.d(t,e,(function(){return a[e]}))}(s);i("3b59");var o,d=i("f0c5"),r=Object(d["a"])(a["default"],n["b"],n["c"],!1,null,"7e605dbe",null,!1,n["a"],o);t["default"]=r.exports},"3b59":function(e,t,i){"use strict";var n=i("5dfd"),a=i.n(n);a.a},"3c6b":function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={data:function(){return{}},components:{},props:{},methods:{}};t.default=n},"3f7a":function(e,t,i){"use strict";var n=i("1582"),a=i.n(n);a.a},"5dfd":function(e,t,i){var n=i("114f");"string"===typeof n&&(n=[[e.i,n,""]]),n.locals&&(e.exports=n.locals);var a=i("4f06").default;a("fb281e4c",n,!0,{sourceMap:!1,shadowMode:!1})},7878:function(e,t,i){"use strict";i.r(t);var n=i("3c6b"),a=i.n(n);for(var s in n)"default"!==s&&function(e){i.d(t,e,(function(){return n[e]}))}(s);t["default"]=a.a},"8e5a":function(e,t,i){"use strict";i.r(t);var n=i("c788"),a=i("7878");for(var s in a)"default"!==s&&function(e){i.d(t,e,(function(){return a[e]}))}(s);i("3f7a");var o,d=i("f0c5"),r=Object(d["a"])(a["default"],n["b"],n["c"],!1,null,"11850556",null,!1,n["a"],o);t["default"]=r.exports},"8fa8":function(e,t,i){"use strict";i.r(t);var n=i("f97a"),a=i.n(n);for(var s in n)"default"!==s&&function(e){i.d(t,e,(function(){return n[e]}))}(s);t["default"]=a.a},c788:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",{staticClass:"loading"},[i("v-uni-view",{staticClass:"bg-white"},[i("v-uni-image",{staticClass:"gif-white response",attrs:{src:"https://image.weilanwl.com/gif/loading-white.gif",mode:"aspectFit"}})],1)],1)},s=[]},cbcb:function(e,t,i){var n=i("24fb");t=n(!1),t.push([e.i,".loading[data-v-11850556]{width:100%;height:100%;position:fixed;top:0;left:0;z-index:999;background-color:#fff;opacity:.9}.bg-white[data-v-11850556]{width:100%;height:100%}.bg-white uni-image[data-v-11850556]{width:100%;height:60%;display:block}",""]),e.exports=t},ef00:function(e,t,i){"use strict";var n;i.d(t,"b",(function(){return a})),i.d(t,"c",(function(){return s})),i.d(t,"a",(function(){return n}));var a=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("v-uni-view",[i("v-uni-view",{staticClass:"myaddress"},[e._l(e.addressList,(function(t,n){return i("v-uni-view",{key:n,staticClass:"order_address"},[i("v-uni-view",{staticClass:"address_box"},[i("v-uni-view",{staticClass:"weizhi_icon"},[i("v-uni-text",{staticClass:"iconfont icon-dizhi",style:"color:"+e.colors})],1),i("v-uni-view",{on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.onsetAddress(t)}}},[i("v-uni-view",{staticClass:"center"},[1==t.isdefult?i("v-uni-view",{staticClass:"moren"},[i("v-uni-text",{staticClass:"iconfont icon-moren",style:"color:"+e.colors})],1):e._e(),i("v-uni-view",{staticClass:"name"},[i("v-uni-text",{staticClass:"text1"},[e._v(e._s(t.name))]),i("v-uni-text",{staticClass:"phones"},[e._v(e._s(t.phone))])],1),i("v-uni-view",{staticClass:"address_name"},[e._v(e._s(t.address)+e._s(t.moreAddres))])],1)],1),i("v-uni-view",{staticClass:"caozuo"},[i("v-uni-view",{staticClass:"del",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.delAddress(t,n)}}},[i("v-uni-text",{staticClass:"iconfont icon-shanchu"}),e._v("删除")],1),i("v-uni-view",{staticClass:"edit",on:{click:function(i){arguments[0]=i=e.$handleEvent(i),e.editAddress(t)}}},[i("v-uni-text",{staticClass:"iconfont icon-bianji"}),e._v("编辑")],1)],1)],1)],1)})),0==e.addressList.length?i("nodata",{attrs:{colors:e.colors,title:"暂无收货地址"}}):e._e()],2),i("v-uni-view",{staticClass:"save"},[i("v-uni-view",{staticClass:"btn",style:"background:"+e.colors,on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.addAddress.apply(void 0,arguments)}}},[e._v("添加收货地址")])],1),1==e.isShow?i("loading"):e._e()],1)},s=[]},f97a:function(e,t,i){"use strict";var n=i("4ea4");i("a434"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=n(i("8e5a")),s=i("a8b2"),o=getApp(),d={data:function(){return{colors:"",addressList:[{name:"张三",phone:"12345678915",address:"北京市海淀区",moreAddres:"苏家坨乡前沙涧村15号",isdefult:1,id:1},{name:"李四",phone:"12345678915",address:"北京市海淀区",moreAddres:"苏家坨乡前沙涧村15号",isdefult:0,id:2}],isShow:!0,type:""}},components:{loading:a.default},props:{},onLoad:function(e){var t=this,i=e.type||"";this.setData({colors:o.globalData.newColor,type:i}),setTimeout((function(){t.setData({isShow:!1})}),600)},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{editAddress:function(e){uni.navigateTo({url:"/pages/views/user/address/edit?type=edit&address="+JSON.stringify(e)})},addAddress:function(){uni.navigateTo({url:"/pages/views/user/address/edit?type=add"})},onsetAddress:function(e){(this.type="select")&&((0,s.setAddress)(e),uni.navigateBack(-1))},delAddress:function(e,t){var i=this;uni.showModal({title:"提示",content:"确认要删除该地址吗?",confirmText:"删除",confirmColor:this.colors,success:function(e){e.confirm&&(uni.showToast({title:"删除成功~",icon:"none"}),i.addressList.splice(t,1))}})}}};t.default=d}}]); |