1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-zbs-addAddress-addAddress"],{28613:function(e,t,a){var i=a("8a3d");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var n=a("4f06").default;n("1330e6a7",i,!0,{sourceMap:!1,shadowMode:!1})},"2f8c":function(e,t,a){"use strict";a.r(t);var i=a("ad3c"),n=a.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return i[e]}))}(o);t["default"]=n.a},"33e3":function(e,t,a){"use strict";a.r(t);var i=a("fdec"),n=a("2f8c");for(var o in n)["default"].indexOf(o)<0&&function(e){a.d(t,e,(function(){return n[e]}))}(o);a("610f");var r=a("f0c5"),s=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"2ae2836e",null,!1,i["a"],void 0);t["default"]=s.exports},"610f":function(e,t,a){"use strict";var i=a("28613"),n=a.n(i);n.a},7930:function(e,t,a){"use strict";a("7a82");var i=a("4ea4").default;Object.defineProperty(t,"__esModule",{value:!0}),t.notGiftOrder=t.api_submitExchange=t.api_record=t.api_getExchangeList=t.api_getAddress=t.api_UpdateAddAddress=t._API_UnbindBank=t._API_QuickBankSms=t._API_QuickBankPay=t._API_QuickBankConfirm=t._API_QuickBankApply=t._API_HuiFuCheck=t._API_CheckStatus=t._API_BankInfo=t.GetInte=void 0;var n=i(a("ef1d"));t._API_HuiFuCheck=function(e){return n.default.get("/HuiFu/check",e)};t._API_QuickBankApply=function(e){return n.default.post("/HuiFu/QuickBankApply",e)};t._API_QuickBankConfirm=function(e){return n.default.post("/HuiFu/QuickBankConfirm",e)};t._API_QuickBankPay=function(e){return n.default.post("/HuiFu/QuickBankPay",e)};t._API_QuickBankSms=function(e){return n.default.post("/HuiFu/QuickBankSms",e)};t._API_CheckStatus=function(e){return n.default.post("/HuiFu/CheckStatus",e)};t._API_UnbindBank=function(e){return n.default.post("/HuiFu/UnbindBank",e)};t._API_BankInfo=function(e){return n.default.post("/HuiFu/BankInfo",e)};t.GetInte=function(e){return n.default.post("/gift/GetInte",e)};t.api_getExchangeList=function(e){return n.default.post("/gift/gift_list",e)};t.api_submitExchange=function(e){return n.default.post("/gift/exchange",e)};t.api_record=function(e){return n.default.post("/gift/record_detail",e)};t.notGiftOrder=function(e){return n.default.post("/gift/destory_order",e)};t.api_getAddress=function(e){return n.default.post("/gift/address",e)};t.api_UpdateAddAddress=function(e){return n.default.post("/gift/UpdateAddAddress",e)}},"8a3d":function(e,t,a){var i=a("24fb");t=i(!1),t.push([e.i,'@charset "UTF-8";.app-item[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;min-height:%?90?%;justify-content:space-between;padding:0 %?30?%;margin-bottom:%?2?%}.app-item.item-space[data-v-2ae2836e]{margin-top:%?10?%}.app-item uni-input[data-v-2ae2836e], .app-item uni-picker[data-v-2ae2836e], .app-item uni-textarea[data-v-2ae2836e]{height:100%;width:%?521?%;font-size:%?26?%;text-align:left;color:#999}.kingkong[data-v-2ae2836e]{height:%?346?%;margin-top:%?10?%}.kingkong uni-navigator[data-v-2ae2836e]{width:25%;height:50%;float:left;display:flex;align-items:center;flex-direction:column}.kingkong uni-navigator uni-image[data-v-2ae2836e]{width:%?88?%;height:%?88?%;margin-top:%?30?%;border-radius:50%}.kingkong uni-navigator uni-text[data-v-2ae2836e]{font-size:%?32?%;margin-top:%?12?%}.big-btn[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?630?%;height:%?88?%;font-size:%?34?%;margin:%?88?% auto 0;border-radius:%?44?%;color:#f76454;border:2px solid #f76454}.big-btn.bg[data-v-2ae2836e]{color:#fff;background:#f76454}.small-btn[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;padding:0 %?14?%;font-size:%?26?%;margin-left:%?10?%;color:#f76454;height:%?48?%!important;min-width:%?106?%!important;border:%?2?% solid #f76454}.small-btn.dank[data-v-2ae2836e]{color:#999;border-color:#999}.login-btn[data-v-2ae2836e]{flex:1;width:100%;height:100%;background:#fff}.login-btn uni-navigator[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;top:50%;left:50%;width:%?400?%;height:%?88?%;color:#fff;position:fixed;font-size:%?32?%;border-radius:%?10?%;background:#f76454;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ellipsis[data-v-2ae2836e]{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.icon-right[data-v-2ae2836e]{margin-right:%?20?%}.border-right[data-v-2ae2836e]{border-right:%?1?% solid #f2f2f2}.level-name[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?130?%;height:%?36?%;color:#fff;font-size:%?16?%!important;border-radius:%?18?%;background:#f76454}.level-name .cuIcon-crownfill[data-v-2ae2836e]{margin-right:%?6?%}.position-center[data-v-2ae2836e]{left:50%;top:50%;position:absolute;-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.data-card[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?336?%;position:relative;background:#f2f2f2}.data-card uni-image[data-v-2ae2836e]{z-index:0;width:%?706?%;height:%?316?%}.data-card .data-card-text[data-v-2ae2836e]{width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column}.data-card .data-card-text .text[data-v-2ae2836e]{color:#fff;font-size:%?32?%}.data-card .data-card-text .num[data-v-2ae2836e]{color:#fff;font-size:%?70?%;margin-top:%?60?%}.basecolor[data-v-2ae2836e]{color:#f76454}.swiper-nav[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:100%;height:%?84?%;color:#666;font-size:%?32?%;position:relative;background:#fff;box-sizing:border-box;border-bottom:%?1?% solid #f2f2f2}.swiper-nav .item[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%}.swiper-nav .item.active[data-v-2ae2836e]{color:#f76454}.swiper-nav .moveBar[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;bottom:0;height:%?6?%;position:absolute}.swiper-nav .moveBar > uni-text[data-v-2ae2836e]{width:100%;height:100%;border-radius:%?3?%;background:#f76454}.swiper-area[data-v-2ae2836e]{flex:1;width:100%}.swiper-area uni-swiper[data-v-2ae2836e]{width:100%;height:100%}.article-header[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?120?%;justify-content:space-between;border-bottom:%?1?% solid #f2f2f2}.article-header .head-pic[data-v-2ae2836e]{width:%?80?%;height:%?80?%;border-radius:50%}.article-header .name[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:100%;margin-left:%?20?%;justify-content:flex-start}.article-header .name .identity[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;width:%?56?%;height:%?28?%;color:#fff;font-size:%?20?%;margin-left:%?20?%;border-radius:%?8?%;background:#f76454}.article-header .time[data-v-2ae2836e]{font-size:%?24?%;color:#999}.article-header .time.justnow[data-v-2ae2836e]{color:#f76454}.article-footer[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;height:%?90?%;border-top:%?1?% solid #f2f2f2}.article-footer .footer-item[data-v-2ae2836e]{display:flex;align-items:center;justify-content:center;flex-direction:row;flex:1;height:%?40?%}.article-footer .footer-item.center[data-v-2ae2836e]{border-left:%?1?% solid #ccc;border-right:%?1?% solid #ccc}.article-footer .footer-item .icon-right[data-v-2ae2836e]{font-size:%?40?%}.article-footer .footer-item .icon-right.fill[data-v-2ae2836e]{color:#f76454}\n/*主题色及按钮渐变背景*/\n/**\n * 这里是uni-app内置的常用样式变量\n *\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\n *\n */\n/**\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\n *\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\n */\n/* 颜色变量 */\n/* 行为相关颜色 */\n/* 文字基本颜色 */\n/* 背景颜色 */\n/* 边框颜色 */\n/* 尺寸变量 */\n/* 文字尺寸 */\n/* 图片尺寸 */\n/* Border Radius */\n/* 水平间距 */\n/* 垂直间距 */\n/* 透明度 */\n/* 文章场景相关 */uni-page-body[data-v-2ae2836e]{background-color:#fff}body.?%PAGE?%[data-v-2ae2836e]{background-color:#fff}.address[data-v-2ae2836e]{width:100%;height:100%}.address .form[data-v-2ae2836e]{width:100%;margin-top:%?30?%}.address .form .form_item[data-v-2ae2836e]{width:%?690?%;margin:0 auto}.address .form .form_item .star[data-v-2ae2836e]{color:red;margin-left:%?10?%}.address .form .form_item .label[data-v-2ae2836e]{font-size:%?36?%;font-weight:700;margin-top:%?24?%}.address .form .form_item uni-input[data-v-2ae2836e]{width:100%;height:%?88?%;font-size:%?34?%;border-bottom:%?2?% solid #e9e9e9;color:#333}.address .form .form_item .picker_box[data-v-2ae2836e]{display:flex;justify-content:space-between;align-items:center;border-bottom:%?2?% solid #e9e9e9;min-height:%?88?%}.address .form .form_item .picker_box uni-picker[data-v-2ae2836e]{width:100%}.address .form .form_item .picker_box uni-picker .cuIcon-right[data-v-2ae2836e]{font-size:%?45?%;color:#999}.address .form .form_item .picker_box uni-picker .picker[data-v-2ae2836e]{width:100%;display:flex;justify-content:space-between;align-items:center;font-size:%?34?%}.address .sub_btn[data-v-2ae2836e]{width:%?570?%;height:%?88?%;margin:%?60?% auto;background:linear-gradient(93deg,#f97c55,#f44545);opacity:1;border-radius:%?44?%;color:#fff;font-size:%?32?%;text-align:center;line-height:%?88?%}.address .ads_box[data-v-2ae2836e]{margin-top:%?30?%}.address .ads_box .box_item[data-v-2ae2836e]{padding:%?24?%;box-sizing:border-box;background:#fff;width:%?702?%;background:#fff;border-radius:%?16?%;margin:%?24?% auto 0}.address .ads_box .box_item .user_name[data-v-2ae2836e]{font-size:%?34?%;font-weight:700;margin-right:%?10?%}.address .ads_box .box_item .user_phone[data-v-2ae2836e]{font-size:%?32?%;color:#999}.address .ads_box .box_item .user_ads[data-v-2ae2836e]{margin:%?24?% 0;font-size:%?32?%;color:#333}.address .ads_box .box_item .opera_box[data-v-2ae2836e]{width:100%;display:flex;justify-content:flex-end;align-items:center}.address .ads_box .box_item .opera_box uni-view[data-v-2ae2836e]{width:%?120?%;height:%?60?%;background:#f8f8f8;border-radius:%?30?%;opacity:1;display:flex;align-items:center;justify-content:center}',""]),e.exports=t},ad3c:function(e,t,a){"use strict";(function(e){a("7a82"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,a("ac1f"),a("466d"),a("d3b7");var i=a("7930"),n={data:function(){return{region:[],adsInfo:{username:"",mobile:"",province:"",city:"",area:"",address:""},isAdd:!1,isPoint:!0}},computed:{userServerInfo:function(){return this.$store.state.userinfo}},onShow:function(){var t=this;(0,i.api_getAddress)({user_id:this.userServerInfo.id}).then((function(a){if(200===a.code){if(a.data&&"null"!=a.data){var i=a.data,n=i.province,o=i.city,r=i.area;t.adsInfo=a.data,e.log(t.adsInfo,"info"),t.region=[n,o,r]}}else t.$refs.toast.hover(a.msg||"获取地址失败")}))},methods:{RegionChange:function(e){this.region=e.detail.value},saveAds:function(){var t=this;if(e.log("提交"),this.isPoint){var a=this.adsInfo,n=a.username,o=a.mobile,r=a.address;n.match(/^[\u4E00-\u9FA5\uf900-\ufa2d·s]{2,20}$/)?o&&11==o.length?0!==this.region.length?r?(this.isPoint=!1,this.adsInfo.province=this.region[0],this.adsInfo.city=this.region[1],this.adsInfo.area=this.region[2],this.adsInfo.user_id=this.userServerInfo.id,(0,i.api_UpdateAddAddress)(this.adsInfo).then((function(e){200===+e.code?(t.$refs.toast.hover("保存成功"),t.isAdd=!1,t.pageTitle="地址管理"):t.$refs.toast.hover(e.msg||"保存失败")})).catch((function(e){t.isPoint=!0,uni.hideLoading()})).finally((function(){uni.hideLoading(),setTimeout((function(){t.isPoint=!0}),2e3)}))):this.$refs.toast.hover("详细地址不能为空"):this.$refs.toast.hover("请选择地址"):this.$refs.toast.hover("手机号格式不正确"):this.$refs.toast.hover("真实姓名不符合要求")}else uni.showModal({content:"请稍后重试~",showCancel:!1})}}};t.default=n}).call(this,a("5a52")["default"])},fdec:function(e,t,a){"use strict";a.d(t,"b",(function(){return i})),a.d(t,"c",(function(){return n})),a.d(t,"a",(function(){}));var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("v-uni-view",{staticClass:"address"},[a("custom-toast",{ref:"toast"}),a("v-uni-view",[a("v-uni-view",{staticClass:"form"},[a("v-uni-view",{staticClass:"form_item"},[a("v-uni-view",{staticClass:"label"},[a("v-uni-text",[e._v("收货人")]),a("v-uni-text",{staticClass:"star"},[e._v("*")])],1),a("v-uni-input",{attrs:{type:"text",placeholder:"请填写真实姓名"},model:{value:e.adsInfo.username,callback:function(t){e.$set(e.adsInfo,"username",t)},expression:"adsInfo.username"}})],1),a("v-uni-view",{staticClass:"form_item"},[a("v-uni-view",{staticClass:"label"},[a("v-uni-text",[e._v("手机号")]),a("v-uni-text",{staticClass:"star"},[e._v("*")])],1),a("v-uni-input",{attrs:{type:"text",placeholder:"请填写手机号",maxlength:"11"},model:{value:e.adsInfo.mobile,callback:function(t){e.$set(e.adsInfo,"mobile",t)},expression:"adsInfo.mobile"}})],1),a("v-uni-view",{staticClass:"form_item"},[a("v-uni-view",{staticClass:"label"},[a("v-uni-text",[e._v("省市县区")]),a("v-uni-text",{staticClass:"star"},[e._v("*")])],1),a("v-uni-view",{staticClass:"picker_box"},[a("v-uni-picker",{attrs:{mode:"region",value:e.region},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.RegionChange.apply(void 0,arguments)}}},[a("v-uni-view",{staticClass:"picker"},[a("v-uni-text",{style:{color:e.adsInfo&&e.adsInfo.area?"#333":"#999"}},[e._v(e._s(0==e.region.length?"请点击选择地址":e.region[0]+"-"+e.region[1]+"-"+e.region[2]))]),a("v-uni-text",{staticClass:"cuIcon-right"})],1)],1)],1)],1),a("v-uni-view",{staticClass:"form_item"},[a("v-uni-view",{staticClass:"label"},[a("v-uni-text",[e._v("详细地址")]),a("v-uni-text",{staticClass:"star"},[e._v("*")])],1),a("v-uni-input",{attrs:{type:"text",placeholder:"请填写详细地址"},model:{value:e.adsInfo.address,callback:function(t){e.$set(e.adsInfo,"address",t)},expression:"adsInfo.address"}})],1)],1),a("v-uni-view",{staticClass:"sub_btn",on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.saveAds.apply(void 0,arguments)}}},[e._v("保存地址")])],1)],1)},n=[]}}]);
|