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.0 KiB
1 line
7.0 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-views-user-address-edit"],{"0546":function(t,e,a){"use strict";a.r(e);var i=a("fec8"),n=a.n(i);for(var s in i)"default"!==s&&function(t){a.d(e,t,(function(){return i[t]}))}(s);e["default"]=n.a},"20b1":function(t,e,a){"use strict";var i;a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return s})),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",[a("v-uni-view",{staticClass:"editaddress"},[a("v-uni-view",{staticClass:"content"},[a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"nominal"},[t._v("收件人")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"请输入收件人姓名",type:"text"},model:{value:t.addressData.name,callback:function(e){t.$set(t.addressData,"name",e)},expression:"addressData.name"}})],1)],1),a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"nominal"},[t._v("电话号码")]),a("v-uni-view",{staticClass:"input"},[a("v-uni-input",{attrs:{placeholder:"请输入收件人电话号码",type:"number",maxlength:"11"},model:{value:t.addressData.phone,callback:function(e){t.$set(t.addressData,"phone",e)},expression:"addressData.phone"}})],1)],1),a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"nominal"},[t._v("所在地区")]),a("v-uni-view",{staticClass:"input selectcity",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.openPicker.apply(void 0,arguments)}}},[a("v-uni-input",{attrs:{placeholder:"请选择省市区",disabled:!0,type:"text"},model:{value:t.addressData.address,callback:function(e){t.$set(t.addressData,"address",e)},expression:"addressData.address"}}),a("v-uni-image",{staticClass:"rights",attrs:{src:"/static/images/home/right.png"}})],1)],1),a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"nominal"},[t._v("详细地址")]),a("v-uni-view",{staticClass:"input"},[0==t.show?a("v-uni-textarea",{staticStyle:{"font-size":"28upx"},attrs:{"auto-height":"true",placeholder:"输入详细地址"},model:{value:t.addressData.moreAddres,callback:function(e){t.$set(t.addressData,"moreAddres",e)},expression:"addressData.moreAddres"}}):t._e()],1)],1),a("v-uni-view",{staticClass:"row"},[a("v-uni-view",{staticClass:"nominal",staticStyle:{color:"#999","margin-top":"10upx"}},[t._v("设为默认地址")]),a("v-uni-view",{staticClass:"input switch"},[a("v-uni-switch",{staticStyle:{transform:"scale(0.8)"},attrs:{color:t.colors,checked:1==t.addressData.isdefult},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.switchChange.apply(void 0,arguments)}}})],1)],1)],1),a("v-uni-view",{staticClass:"save"},[a("v-uni-view",{staticClass:"btn",style:"background:"+t.colors},[t._v("保存地址")])],1),a("setcity",{attrs:{show:t.show},on:{sureSelectArea:function(e){arguments[0]=e=t.$handleEvent(e),t.onsetCity.apply(void 0,arguments)},hideShow:function(e){arguments[0]=e=t.$handleEvent(e),t.onhideShow.apply(void 0,arguments)}}})],1),1==t.isShow?a("loading"):t._e()],1)},s=[]},6294:function(t,e,a){"use strict";a.r(e);var i=a("20b1"),n=a("0546");for(var s in n)"default"!==s&&function(t){a.d(e,t,(function(){return n[t]}))}(s);a("e1cb");var o,c=a("f0c5"),r=Object(c["a"])(n["default"],i["b"],i["c"],!1,null,"3aaf4f86",null,!1,i["a"],o);e["default"]=r.exports},a532:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,".save[data-v-3aaf4f86]{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-3aaf4f86]{display:-webkit-box;display:-webkit-flex;display:flex}.save .btn[data-v-3aaf4f86]{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?%}.save .btn .icon[data-v-3aaf4f86]{height:%?80?%;color:#fff;font-size:%?30?%;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.content[data-v-3aaf4f86]{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-flex-wrap:wrap;flex-wrap:wrap;margin-top:%?40?%}.content uni-view[data-v-3aaf4f86]{display:-webkit-box;display:-webkit-flex;display:flex}.content .row[data-v-3aaf4f86]{width:92%;margin:0 4%;border-bottom:solid %?1?% #eee}.content .row .nominal[data-v-3aaf4f86]{width:30%;height:%?80?%;font-size:%?28?%;font-family:Droid Sans Fallback;font-weight:400;color:#333;-webkit-box-align:center;-webkit-align-items:center;align-items:center}.content .row .input[data-v-3aaf4f86]{width:70%;padding:%?20?% 0;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?28?%}.content .row .input uni-input[data-v-3aaf4f86]{font-size:%?28?%;color:#333}.content .row .switch[data-v-3aaf4f86]{-webkit-box-pack:end;-webkit-justify-content:flex-end;justify-content:flex-end}.content .row .input uni-textarea[data-v-3aaf4f86]{min-height:%?40?%;line-height:%?40?%}.content .del_box[data-v-3aaf4f86]{width:100%;display:block;overflow:hidden;margin-right:%?30?%}.content .del[data-v-3aaf4f86]{width:%?240?%;height:%?80?%;float:right;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;align-items:center;font-size:%?28?%;color:#f23a3a;margin:0 auto;margin-top:%?50?%;border-radius:%?38?%;background-color:rgba(255,0,0,.05);border-bottom:solid %?1?% #eee}.selectcity uni-input[data-v-3aaf4f86]{width:90%}.selectcity uni-image[data-v-3aaf4f86]{width:%?40?%;height:%?40?%;float:right}",""]),t.exports=e},e1cb:function(t,e,a){"use strict";var i=a("f6ec"),n=a.n(i);n.a},f6ec:function(t,e,a){var i=a("a532");"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("4f06").default;n("ac4ec0fa",i,!0,{sourceMap:!1,shadowMode:!1})},fec8:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("bcb1")),s=i(a("8e5a")),o=getApp(),c={data:function(){return{colors:"",show:!1,addressData:{name:"",phone:"",address:"",moreAddres:"",isdefult:0},isShow:!0}},components:{setcity:n.default,loading:s.default},props:{},onLoad:function(t){var e=this;"edit"==t.type&&(this.addressData=JSON.parse(t.address)),setTimeout((function(){e.setData({isShow:!1,colors:o.globalData.newColor})}),500)},onReady:function(){},onShow:function(){},onHide:function(){},onUnload:function(){},onPullDownRefresh:function(){},onReachBottom:function(){},onShareAppMessage:function(){},methods:{openPicker:function(){console.log("执行"),this.show=!0},onhideShow:function(){this.show=!1,console.log("执行了")},onsetCity:function(t){var e=t.detail.target.dataset,a=e.province+e.city+e.area;this.show=!1,this.addressData.address=a},switchChange:function(t){this.setData({checked:t.detail.value})}}};e.default=c}}]); |