bztang-admin/addons/yun_shop/static/app/js/chunk-6ff88c84.096352ab.js

1 line
14 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6ff88c84"],{"0dcb":function(t,e,a){var i=a("ebf2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("05d7b510",i,!0,{sourceMap:!1,shadowMode:!1})},"2fbd":function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#pop-up .head{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.75rem}#pop-up .head .cancel{line-height:1.5rem;letter-spacing:0;color:#aaaab3}#pop-up .head .confirm,#pop-up .head .title{line-height:1.5rem;letter-spacing:0;color:#3b3b4a}#pop-up .content{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:wrap;-ms-flex-flow:wrap;flex-flow:wrap;padding-left:.3rem;padding-right:.3rem;margin-bottom:3.438rem}#pop-up .content .list{padding:.53rem .96rem;border-radius:.938rem;margin-top:1rem;margin-left:1.3rem}",""]),t.exports=e},"4dc3f":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"new_info_v2"}},[a("c-title",{attrs:{hide:!1,text:"我的信息"}}),a("div",{staticClass:"content"},[a("van-cell",{attrs:{"is-link":""},nativeOn:{click:function(e){return t.editUserInformation.apply(null,arguments)}},scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticStyle:{display:"flex"}},[a("div",[a("img",{staticStyle:{width:"2.5rem",height:"2.5rem","border-radius":"50%"},attrs:{src:t.dataList.avatar}})]),a("div",{staticStyle:{"margin-left":"0.625rem"}},[a("div",[t._v(t._s(t.dataList.nickname))]),a("div",{staticStyle:{color:"#9a9a9a","font-size":"0.75rem","line-height":"1.5rem"}},[t._v("ID:"+t._s(t.dataList.uid))])])])]},proxy:!0}])}),void 0!=t.dataList.mobile?a("van-cell",{staticStyle:{"margin-top":"0.625rem"},attrs:{title:"手机号:"+t.dataList.mobile,"is-link":"",value:""==t.dataList.mobile?"完善":"修改"},nativeOn:{click:function(e){return t.bindTel.apply(null,arguments)}}}):t._e(),void 0!=t.dataList.alipay?a("van-cell",{staticStyle:{"margin-top":"0.625rem"},attrs:{title:"支付宝:"+t.dataList.alipay,"is-link":"",value:""==t.dataList.alipay?"完善":"修改"},on:{click:function(e){return t.openPopUp("alipay")}}}):t._e(),void 0!=t.dataList.wechat?a("van-cell",{staticStyle:{"margin-top":"0.625rem"},attrs:{title:"微信号:"+t.dataList.wechat,"is-link":"",value:""==t.dataList.wechat?"完善":"修改"},on:{click:function(e){return t.openPopUp("weChat")}}}):t._e(),a("van-cell",{staticClass:"bankCard",staticStyle:{"margin-top":"0.625rem"},attrs:{title:null==t.dataList.bank_card?"银行卡:":"银行卡:"+t.dataList.bank_card,"is-link":"",value:null==t.dataList.bank_card?"完善":"修改"},nativeOn:{click:function(e){return t.editBank.apply(null,arguments)}}}),t.dataList.pay_state?a("van-cell",{staticStyle:{"margin-top":"0.625rem"},attrs:{title:"支付密码","is-link":"",value:""},nativeOn:{click:function(e){return t.paymentCode.apply(null,arguments)}}}):t._e(),t.dataList.converge_pay?a("van-cell",{staticStyle:{"margin-top":"0.625rem"},attrs:{title:"汇聚结算卡","is-link":"",value:""},nativeOn:{click:function(e){return t.convergenceSettlementCard.apply(null,arguments)}}}):t._e(),a("van-cell",{staticStyle:{"margin-top":"0.625rem"},attrs:{title:"收货地址管理","is-link":"",value:""},nativeOn:{click:function(e){return t.address.apply(null,arguments)}}}),t.dataList.member_cancel?a("van-cell",{staticStyle:{"margin-top":"0.625rem"},attrs:{title:"账号注销","is-link":"",value:""},nativeOn:{click:function(e){return t.memberCancel.apply(null,arguments)}}}):t._e(),t.dataList.register_agreement&&t.dataList.register_agreement.status?a("van-cell",{staticStyle:{"margin-top":"0.625rem"},attrs:{title:"用户协议","is-link":"",value:""},nativeOn:{click:function(e){return t.toUserAgreement.apply(null,arguments)}}}):t._e(),t.dataList.platform_agreement&&t.dataList.platform_agreement.status?a("van-cell",{staticStyle:{"margin-top":"0.625rem"},attrs:{title:"平台协议","is-link":"",value:""},nativeOn:{click:function(e){t.openPlatformAgreement=!0}}}):t._e()],1),1!=t.fun.getTyep()&&2!=t.fun.getTyep()||t.wechat_login_mode?a("div",{staticClass:"foot"},[a("van-button",{style:t.cssVars,attrs:{type:"primary",round:!0},on:{click:function(e){return t.outInfo()}}},[t._v("退出登录")])],1):t._e(),a("van-action-sheet",{model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("div",{staticClass:"head"},[a("div",{staticClass:"cancel",on:{click:function(e){t.show=!1}}},[t._v("取消")]),a("div",{staticClass:"title"},[t._v(t._s(t.popUpTitle))]),a("div",{staticClass:"confirm",on:{click:t.confirm}},[t._v("确定")])])]),a("popUp",{ref:"popUp"}),a("van-popup",{staticStyle:{"border-radius":"0.656rem"},model:{value:t.openPlatformAgreement,callback:function(e){t.openPlatformAgreement=e},expression:"openPlatformAgreement"}},[a("div",{staticClass:"city-info"},[a("van-nav-bar",{attrs:{title:t.platformAgreement.title,fixed:""}}),a("div",{staticStyle:{height:"2.5rem",clear:"both"}}),a("div",{attrs:{id:"a_content"},domProps:{innerHTML:t._s(t.platformAgreement.content)}}),a("div",{staticStyle:{width:"12.75rem",height:"2.313rem","background-color":"#f04d4d","border-radius":"0.188rem",display:"flex","align-items":"center","justify-content":"center",color:"#fff","font-size":"1.193rem",margin:"0 auto","margin-top":"1.5rem","margin-bottom":"1.063rem"},on:{click:function(e){t.openPlatformAgreement=!1}}},[t._v(" 确定 ")])],1)])],1)},n=[],r=(a("ac1f"),a("5319"),a("6968")),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{id:"pop-up"}},[a("van-action-sheet",{model:{value:t.show,callback:function(e){t.show=e},expression:"show"}},[a("div",{staticClass:"head"},[a("div",{staticClass:"cancel",on:{click:function(e){t.show=!1}}},[t._v("取消")]),a("div",{staticClass:"title"},[t._v(t._s(t.popUpTitle))]),a("div",{staticClass:"confirm",on:{click:t.confirm}},[t._v("确定")])]),a("div",{staticClass:"content"},["alipay"==t.popUpType?a("van-field",{attrs:{label:"账号",placeholder:"请输入账号","input-align":"right"},model:{value:t.alipayForm.alipay,callback:function(e){t.$set(t.alipayForm,"alipay","string"===typeof e?e.trim():e)},expression:"alipayForm.alipay"}}):a("van-field",{attrs:{label:"账号",placeholder:"请输入账号","input-align":"right"},model:{value:t.weChatForm.wechat,callback:function(e){t.$set(t.weChatForm,"wechat","string"===typeof e?e.trim():e)},expression:"weChatForm.wechat"}}),"alipay"==t.popUpType?a("van-field",{attrs:{label:"姓名",placeholder:"请输入姓名","input-align":"right"},model:{value:t.alipayForm.alipayname,callback:function(e){t.$set(t.alipayForm,"alipayname","string"===typeof e?e.trim():e)},expression:"alipayForm.alipayname"}}):t._e()],1)])],1)},s=[],l=(a("d3b7"),a("159b"),{props:["type"],data:function(){return{show:!1,popUpType:"",popUpTitle:"",dataList:[],alipayForm:{alipay:"",alipayname:""},weChatForm:{wechat:""}}},methods:{checkShow:function(){this.show=!0},stateChanges:function(t){"alipay"==t?(this.popUpType=t,this.popUpTitle="支付宝账号"):"weChat"==t&&(this.popUpType=t,this.popUpTitle="微信号")},confirm:function(){var t=this,e="",a={};if("alipay"==this.popUpType){if(this.fun.isTextEmpty(this.alipayForm.alipay))return void t.$dialog.alert({message:"请输入账号"});if(this.fun.isTextEmpty(this.alipayForm.alipayname))return void t.$dialog.alert({message:"请输入姓名"});e="member.member-info.change-alipay-info",a=this.alipayForm}else if("weChat"==this.popUpType){if(this.fun.isTextEmpty(this.weChatForm.wechat))return void t.$dialog.alert({message:"请输入账号"});e="member.member-info.change-wechat",a=this.weChatForm}$http.post(e,a,"正在提交数据...").then((function(e){1==e.result?(t.$dialog.alert({message:e.msg}),t.$parent.getData(),t.show=!1):t.$dialog.alert({message:e.msg})}),(function(e){t.$dialog.alert({message:e.msg})}))},SelectLabel:function(t){var e=this;if("checkbox"==this.popUpType){var a=this.dataList[t].checked=!0;this.$set(this.dataList[t],t,a)}else this.dataList.forEach((function(a,i){if(t==i){var n=e.dataList[t].checked=!0;e.$set(e.dataList[t],t,n)}else{var r=e.dataList[i].checked=!1;e.$set(e.dataList[i],i,r)}}))}}}),c=l,p=(a("a4fa"),a("2877")),d=Object(p["a"])(c,o,s,!1,null,null,null),m=d.exports,f={data:function(){return{show:!1,dataList:"",openPlatformAgreement:!1,userAgreement:"",platformAgreement:"",wechat_login_mode:!1}},activated:function(){this.getData()},methods:{confirm:function(){this.show=!1},openPopUp:function(t){this.$refs.popUp.checkShow(),this.$refs.popUp.stateChanges(t)},getData:function(){var t=this,e=/^(\d{6})\d+(\d{4})$/;$http.get("member.member-info.user-info-update-page").then((function(a){var i,n,r;1==a.result&&(t.dataList=a.data,t.fun.isTextEmpty(t.dataList.bank_card)||(t.dataList.bank_card=t.dataList.bank_card.replace(e,"$1******$2")),t.$refs.popUp.alipayForm.alipay=null===(i=a.data)||void 0===i?void 0:i.alipay,t.$refs.popUp.alipayForm.alipayname=null===(n=a.data)||void 0===n?void 0:n.alipayname,t.$refs.popUp.weChatForm.wechat=null===(r=a.data)||void 0===r?void 0:r.wechat,t.agreementContent())}),(function(t){}))},getMemberData:function(){var t=this;$http.post("member.member.member-data",{v:2,basic_info:1}," ").then((function(e){1===e.result&&(t.wechat_login_mode=e.data.setting.wechat_login_mode)}))},outInfo:function(){var t=this;$http.get("member.logout.index").then((function(e){if(1==e.result){if(window.localStorage.setItem("isWxLogin",-1),t.$store.commit("savemodel",{}),localStorage.setItem("token",""),localStorage.setItem("loginUid",""),window.firstLogin=0,clearLoginData(),t.fun.isCPS()&&t.fun.isCPSAPPI())return void("ios"===t.fun.isIosOrAndroid()?toQuitIOS({body:"toQuitIOS"}):toQuitAndroid());t.$dialog.alert({message:e.msg}).then((function(){t.$router.push(t.fun.getUrl("login"))})).catch((function(){}))}}),(function(t){}))},bindTel:function(){this.$router.push(this.fun.getUrl("editmobile",{num:this.dataList.mobile,myparent:this},{is_edit:"1"})),sessionStorage.setItem("isset",1)},openOpenPlatformAgreement:function(){this.fun.isPc()?this.$router.push(this.fun.getUrl("registerAgreement")):this.openPlatformAgreement=!0},agreementContent:function(){var t=this;this.dataList.platform_agreement.status&&$http.get("member.member-info.platform-agreement").then((function(e){1==e.result&&(t.platformAgreement=e.data)}),(function(t){}))},editBank:function(){this.$router.push(this.fun.getUrl("memberBank",{}))},convergenceSettlementCard:function(){this.$router.push(this.fun.getUrl("bankCardInformation",{}))},address:function(){this.$router.push(this.fun.getUrl("address",{}))},paymentCode:function(){var t=this;$http.get("member.balance-password.is-has-password",{},"").then((function(e){1==e.result?e.data.is_has?t.$router.push(t.fun.getUrl("balance_password",{})):t.$router.push(t.fun.getUrl("set_balance_password",{})):t.$dialog.alert({message:e.msg})}),(function(e){t.$dialog.alert({message:e.msg})}))},toUserAgreement:function(){this.$router.push(this.fun.getUrl("registration_platform_agreement",{},{show:"user"}))},memberCancel:function(){this.$router.push(this.fun.getUrl("MemberCancel",{}))},editUserInformation:function(){this.$router.push(this.fun.getUrl("userinfo",{},{pageType:"UserInformation"}))}},components:{cTitle:r["a"],popUp:m}},u=f,h=u,g=(a("bbe7"),Object(p["a"])(h,i,n,!1,null,"302aec6a",null));e["default"]=g.exports},a4fa:function(t,e,a){"use strict";a("fefc")},bbe7:function(t,e,a){"use strict";a("0dcb")},ebf2:function(t,e,a){var i=a("24fb");e=i(!1),e.push([t.i,"#new_info_v2[data-v-302aec6a]{text-align:left}#new_info_v2 .head[data-v-302aec6a]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-webkit-justify-content:space-between;-ms-flex-pack:justify;justify-content:space-between;padding:.75rem}#new_info_v2 .head .cancel[data-v-302aec6a]{line-height:1.5rem;letter-spacing:0;color:#aaaab3}#new_info_v2 .head .confirm[data-v-302aec6a],#new_info_v2 .head .title[data-v-302aec6a]{line-height:1.5rem;letter-spacing:0;color:#3b3b4a}#new_info_v2 .content[data-v-302aec6a]{margin:.6rem}#new_info_v2 .content .bankCard[data-v-302aec6a] .van-cell__value{-webkit-flex:none}#new_info_v2 .foot[data-v-302aec6a]{position:fixed;bottom:0;height:3.125rem;background-color:#fff;padding:.46rem 1.53rem;-webkit-box-shadow:-.009rem -.125rem .406rem 0 hsla(0,0%,83.5%,.59);box-shadow:-.009rem -.125rem .406rem 0 hsla(0,0%,83.5%,.59)}#new_info_v2 .city-info[data-v-302aec6a]{border-radius:.656rem;width:20rem;height:32rem;margin:0 auto;background:#fff}#new_info_v2 .city-info header[data-v-302aec6a]{border-radius:.656rem .656rem 0 0}#new_info_v2 .city-info #a_content[data-v-302aec6a]{margin:.5rem .9rem;height:24rem;overflow-y:scroll}#new_info_v2 .city-info #a_content[data-v-302aec6a] ::v-deepimg{max-width:100%;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}[data-v-302aec6a] .van-button--primary{width:20.313rem;height:2.188rem;background-color:var(--themeBaseColor);border:1px solid var(--themeBaseColor);border-radius:1.094rem}[data-v-302aec6a] .van-cell--clickable{border-radius:.313rem}[data-v-302aec6a] .van-cell{-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center}[data-v-302aec6a] [data-v-5c9a24d8] .van-cell{padding:9px 6px}[data-v-302aec6a] .van-nav-bar__title{font-weight:700;font-size:14px;color:#666}",""]),t.exports=e},fefc:function(t,e,a){var i=a("2fbd");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var n=a("499e").default;n("51bc523a",i,!0,{sourceMap:!1,shadowMode:!1})}}]);