bztang-admin/addons/yun_shop/static/app/js/chunk-380255e6.f8a9d4cd.js

1 line
17 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-380255e6"],{3798:function(e,t,i){var o=i("8d52");o.__esModule&&(o=o.default),"string"===typeof o&&(o=[[e.i,o,""]]),o.locals&&(e.exports=o.locals);var a=i("499e").default;a("32525e5c",o,!0,{sourceMap:!1,shadowMode:!1})},7378:function(e,t,i){"use strict";var o=i("5530"),a=(i("d3b7"),i("49af"));axios.defaults.headers.post["Content-Type"]="application/x-www-form-urlencoded";var s=a["a"].getKeyByI(),n=window.localStorage.uuid;n||(n=0);var r=a["a"].getSiteRoot()+"/addons/yun_shop/?menu#/subplatformLogin?i="+a["a"].getKeyByI()+"&type="+a["a"].getTyep();t["a"]={post:function(e,t,i,n){var l=n||a["a"].getTyep(),c="/addons/yun_shop/api.php?i="+s+"&type="+l+"&route=";return e=c+e,new Promise((function(i,a){axios.post(e,Object(o["a"])({},t)).then((function(e){var t=e.data;t.result?i(t):a(Object(o["a"])(Object(o["a"])({},t),{},{loginUrl:r}))})).catch((function(e){a(e)}))}))},pc_post:function(e,t,i,n){var l=n||a["a"].getTyep(),c="/addons/yun_shop/api.php?i="+s+"&type="+l+"&route=";return e=c+e,new Promise((function(i,a){axios.post(e,Object(o["a"])({},t)).then((function(e){var t=e.data;t.result?i(t):i(Object(o["a"])(Object(o["a"])({},t),{},{loginUrl:r}))})).catch((function(e){a(e)}))}))},get:function(e,t,i,n){var l=n||a["a"].getTyep(),c="/addons/yun_shop/api.php?i="+s+"&type="+l+"&route=";return e=c+e,new Promise((function(i,a){axios.get(e,Object(o["a"])({},t)).then((function(e){var t=e.data;t.result?i(t):a(Object(o["a"])(Object(o["a"])({},t),{},{loginUrl:r}))})).catch((function(e){a(e)}))}))}}},"8d52":function(e,t,i){var o=i("24fb");t=o(!1),t.push([e.i,".right[data-v-59e9e234]{padding:30px;width:1200px;margin:0 auto;overflow:auto;background-color:#fff;height:100%}.right .right-head[data-v-59e9e234]{line-height:50px;border-bottom:1px solid #ccc;margin-bottom:15px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.right .right-head .right-head-con[data-v-59e9e234]{display:inline-block;padding-right:20px;font-size:16px;color:#888}.right .box[data-v-59e9e234]{margin-bottom:30px}.right .template-box[data-v-59e9e234]{padding:0 40px;font-size:15px}.right .img-box[data-v-59e9e234],.right .template-box[data-v-59e9e234]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex}.right .img-box[data-v-59e9e234]{width:120px;height:120px;-webkit-box-flex:0;-webkit-flex:0 0 120px;-ms-flex:0 0 120px;flex:0 0 120px;position:relative;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-radius:4px}.right .img-box img[data-v-59e9e234]{width:100%}.right .text-box[data-v-59e9e234]{display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;-ms-flex-direction:column;flex-direction:column;text-align:left;margin-left:20px;padding:10px}.right .text-box p[data-v-59e9e234]{margin-bottom:20px}.right .text-box .link[data-v-59e9e234]{color:#409eff;cursor:pointer}.right .text-box .link[data-v-59e9e234]:hover{color:#2b82ff}.right .flex[data-v-59e9e234]{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-webkit-flex-direction:row;-ms-flex-direction:row;flex-direction:row;width:70%}.right .flex p[data-v-59e9e234]{-webkit-box-flex:1;-webkit-flex:1;-ms-flex:1;flex:1}.dialog-box .phone[data-v-59e9e234]{width:450px;margin:0 auto;text-align:left;font-size:16px}.dialog-box .send-code[data-v-59e9e234]{position:relative;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;width:450px;margin:30px auto}.dialog-box .code-title[data-v-59e9e234]{-webkit-box-flex:0;-webkit-flex:0 0 100px;-ms-flex:0 0 100px;flex:0 0 100px;-webkit-align-self:center;-ms-flex-item-align:center;align-self:center}.scan-box[data-v-59e9e234]{text-align:center}.scan-box .img-box1[data-v-59e9e234]{width:220px;height:220px;display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;border-radius:4px;margin:20px auto}.scan-box .img-box1 img[data-v-59e9e234]{width:100%}.imgCode[data-v-59e9e234]{position:absolute;top:0;right:0;cursor:pointer;height:100%}#qrccode-canvas[data-v-59e9e234]{width:220px!important;height:220px!important}",""]),e.exports=t},9268:function(e,t,i){"use strict";i("3798")},a6f6:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return e.info?i("div",{staticStyle:{margin:"0 auto","background-color":"#fff",height:"95%"}},[i("div",{staticClass:"right",attrs:{id:"information"}},[i("div",{staticClass:"box"},[e._m(0),i("div",{staticClass:"template-box"},[e._m(1),e.userInfo?i("div",{staticClass:"text-box",staticStyle:{"padding-top":"35px"}},[i("p",[e._v("用户ID "+e._s(e.userInfo.uid))]),i("p",[e._v("昵称: "+e._s(e.userInfo.nickname))])]):e._e()])]),i("div",{staticClass:"box"},[e._m(2),i("div",{staticClass:"template-box"},[i("div",{staticClass:"text-box"},[i("p",[e._v("手机号:"+e._s(e.userInfo.mobile))]),i("p",[e._v("登录密码 "),i("el-button",{staticStyle:{color:"#29ba9c !important",background:"#eaf8f5 !important","border-color":"#a9e3d7 !important"},attrs:{type:"primary",round:"",plain:""},on:{click:function(t){e.dialogFormVisible=!0}}},[e._v("设置")])],1)])])]),i("el-dialog",{attrs:{title:"设置密码",visible:e.dialogFormVisible,width:"600px"},on:{"update:visible":function(t){e.dialogFormVisible=t}}},[i("div",{staticClass:"dialog-box"},[i("p",{staticClass:"phone"},[e._v("手机号码: "+e._s(e.userInfo.mobile))]),e.imgcode?i("div",{staticClass:"send-code"},[i("p",{staticClass:"code-title"},[e._v("图形验证码:")]),i("el-input",{staticStyle:{"margin-right":"20px"},model:{value:e.form.captcha,callback:function(t){e.$set(e.form,"captcha","string"===typeof t?t.trim():t)},expression:"form.captcha"}}),i("img",{staticClass:"imgCode",attrs:{src:e.imgcode},on:{click:e.getimgdata}})],1):e._e(),i("div",{staticClass:"send-code"},[i("p",{staticClass:"code-title"},[e._v("输入验证码:")]),i("el-input",{staticStyle:{"margin-right":"20px"},model:{value:e.form.code,callback:function(t){e.$set(e.form,"code","string"===typeof t?t.trim():t)},expression:"form.code"}}),0==e.count?i("el-button",{staticStyle:{"background-color":"#29ba9c !important","border-color":"#29ba9c !important"},attrs:{type:"primary",size:"small"},on:{click:e.sendCode}},[e._v("获取手机验证码")]):e._e(),0!=e.count?i("el-button",{staticStyle:{"background-color":"#29ba9c !important","border-color":"#29ba9c !important"},attrs:{type:"primary",disabled:"",size:"small"}},[e._v(e._s(e.count)+" 秒后重新获取")]):e._e()],1),i("div",{staticClass:"send-code"},[i("p",{staticClass:"code-title"},[e._v("新密码:")]),i("el-input",{staticStyle:{"margin-right":"20px"},attrs:{type:"password"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password","string"===typeof t?t.trim():t)},expression:"form.password"}})],1),i("div",{staticClass:"send-code"},[i("p",{staticClass:"code-title"},[e._v("确认密码:")]),i("el-input",{staticStyle:{"margin-right":"20px"},attrs:{type:"password"},model:{value:e.form.confirm_password,callback:function(t){e.$set(e.form,"confirm_password","string"===typeof t?t.trim():t)},expression:"form.confirm_password"}})],1)]),i("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[i("el-button",{on:{click:function(t){e.dialogFormVisible=!1}}},[e._v("取 消")]),i("el-button",{staticStyle:{"background-color":"#29ba9c !important","border-color":"#29ba9c !important"},attrs:{type:"primary"},on:{click:e.changePwd}},[e._v("确 定")])],1)]),i("el-dialog",{attrs:{title:"",visible:e.dialogBuyVisible,width:"500px"},on:{"update:visible":function(t){e.dialogBuyVisible=t}}},[i("div",{staticClass:"scan-box"},[i("div",{staticClass:"img-box1"},[i("p",{directives:[{name:"show",rawName:"v-show",value:!e.qrSuccess,expression:"!qrSuccess"}]},[e._v("正在生成二维码")]),i("canvas",{directives:[{name:"show",rawName:"v-show",value:e.qrSuccess,expression:"qrSuccess"}],attrs:{id:"qrccode-canvas"}})]),i("div",[e._v("使用微信扫描二维码,前往商城购买合同")])])])],1)]):e._e()},a=[function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"right-head"},[i("div",{staticClass:"right-head-con"},[e._v("基本信息")])])},function(){var e=this,t=e.$createElement,o=e._self._c||t;return o("div",{staticClass:"img-box"},[o("img",{attrs:{src:i("d6ba"),alt:""}})])},function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"right-head"},[i("div",{staticClass:"right-head-con"},[e._v("登录设置")])])}],s=i("c7eb"),n=i("1da1"),r=(i("0fb7"),i("450d"),i("f529c")),l=i.n(r),c=(i("1951"),i("eedf")),d=i.n(c),p=(i("a7cc"),i("df33")),u=i.n(p),f=i("7378"),m=i("d055"),h=i.n(m);Vue.use(d.a).use(u.a),Vue.prototype.$message=l.a;var g="",b={data:function(){return{person:{},count:0,timer:null,qrSuccess:!1,dialogBuyVisible:!1,dialogFormVisible:!1,formLabelWidth:"120px",showDialog:!1,imgcode:"",form:{captcha:"",code:"",password:"",confirm_password:""},userInfo:{},info:!1}},activated:function(){this.getimgdata(),this.getUserInfo()},created:function(){},mounted:function(){this.$nextTick((function(){g=document.getElementById("qrccode-canvas")}))},methods:{getUserInfo:function(){var e=this;return Object(n["a"])(Object(s["a"])().mark((function t(){var i,o,a,n,r;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,f["a"].get("member.member-info.user-info-update-page",{});case 3:i=t.sent,o=i.data,a=i.result,n=i.msg,a?(e.userInfo=o,e.info=!0):e.$message.error(n),t.next=16;break;case 10:t.prev=10,t.t0=t["catch"](0),t.t0.data,t.t0.result,r=t.t0.msg,e.$message.error(r);case 16:case"end":return t.stop()}}),t,null,[[0,10]])})))()},getimgdata:function(){var e=this;f["a"].get("home-page.getCaptcha").then((function(t){t.data.captcha&&(e.imgcode=t.data.captcha.img)})).catch((function(t){t.data,t.result;var i=t.msg;e.$message.error(i)}))},createQrc:function(){var e=this;this.dialogBuyVisible=!0;var t=this.person.goods_list_url;this.$nextTick((function(){g=document.getElementById("qrccode-canvas")})),setTimeout((function(){h.a.toCanvas(g,t,(function(t){e.qrSuccess=!t}))}),1e3)},changePwd:function(){var e=this;this.form.code?this.form.password?this.form.confirm_password?this.form.confirm_password===this.form.password?f["a"].post("member.register.changePassword",{mobile:this.userInfo.mobile,code:this.form.code,password:this.form.password,confirm_password:this.form.confirm_password},"提交中").then((function(t){1===t.result?(e.dialogFormVisible=!1,e.form={code:"",password:"",confirm_password:""},e.$message.success("修改成功!")):(e.form={code:"",password:"",confirm_password:""},e.$message.error(t.msg))})).catch((function(t){t.data,t.result;var i=t.msg;e.form={code:"",password:"",confirm_password:""},e.$message.error(i)})):this.$message.error("两次输入密码不一致!"):this.$message.error("请再次输入密码"):this.$message.error("请输入新密码!"):this.$message.error("请输入验证码!")},sendCode:function(){var e=this;this.form.captcha||!this.imgcode?f["a"].post("member.register.sendCodeV2",{mobile:this.userInfo.mobile,reset:"1",sms_type:2,captcha:this.form.captcha}," ").then((function(t){if(1===t.result){e.$message.success("发送成功");var i=60;e.timer||(e.count=i,e.timer=setInterval((function(){e.count>0&&e.count<=i?e.count--:(clearInterval(e.timer),e.timer=null)}),1e3))}else e.$message.error(t.msg)})).catch((function(t){t.data,t.result;var i=t.msg;e.$message.error(i)})):this.$message.error("请先填写图形验证码")},getData:function(){var e=this;f["a"].get("plugin.yun-sign.frontend.person.get-person-info").then((function(t){1===t.result?e.person=t.data:e.$message.error(t.msg)})).catch((function(t){t.data,t.result;var i=t.msg;e.$message.error(i)}))}}},x=b,v=(i("9268"),i("2877")),y=Object(v["a"])(x,o,a,!1,null,"59e9e234",null);t["default"]=y.exports},d6ba:function(e,t,i){e.exports=i.p+"static/app/img/yht_index_mingpinimg.ddf94c4f.png"},df33:function(e,t,i){var o=i("7037").default;i("a4d3"),i("e01a"),i("d3b7"),i("944a"),i("0c47"),i("23dc"),i("99af"),i("b0c0"),e.exports=function(e){var t={};function i(o){if(t[o])return t[o].exports;var a=t[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,i),a.l=!0,a.exports}return i.m=e,i.c=t,i.d=function(e,t,o){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:o})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===o(e)&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(a,s,function(t){return e[t]}.bind(null,s));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/dist/",i(i.s=82)}({0:function(e,t,i){"use strict";function o(e,t,i,o,a,s,n,r){var l,c="function"===typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=i,c._compiled=!0),o&&(c.functional=!0),s&&(c._scopeId="data-v-"+s),n?(l=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),a&&a.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(n)},c._ssrRegister=l):a&&(l=r?function(){a.call(this,this.$root.$options.shadowRoot)}:a),l)if(c.functional){c._injectStyles=l;var d=c.render;c.render=function(e,t){return l.call(t),d(e,t)}}else{var p=c.beforeCreate;c.beforeCreate=p?[].concat(p,l):[l]}return{exports:e,options:c}}i.d(t,"a",(function(){return o}))},11:function(e,t){e.exports=i("2bb5")},13:function(e,t){e.exports=i("5128")},4:function(e,t){e.exports=i("d010")},82:function(e,t,i){"use strict";i.r(t);var o=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("transition",{attrs:{name:"dialog-fade"},on:{"after-enter":e.afterEnter,"after-leave":e.afterLeave}},[i("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"el-dialog__wrapper",on:{click:function(t){return t.target!==t.currentTarget?null:e.handleWrapperClick(t)}}},[i("div",{key:e.key,ref:"dialog",class:["el-dialog",{"is-fullscreen":e.fullscreen,"el-dialog--center":e.center},e.customClass],style:e.style,attrs:{role:"dialog","aria-modal":"true","aria-label":e.title||"dialog"}},[i("div",{staticClass:"el-dialog__header"},[e._t("title",[i("span",{staticClass:"el-dialog__title"},[e._v(e._s(e.title))])]),e.showClose?i("button",{staticClass:"el-dialog__headerbtn",attrs:{type:"button","aria-label":"Close"},on:{click:e.handleClose}},[i("i",{staticClass:"el-dialog__close el-icon el-icon-close"})]):e._e()],2),e.rendered?i("div",{staticClass:"el-dialog__body"},[e._t("default")],2):e._e(),e.$slots.footer?i("div",{staticClass:"el-dialog__footer"},[e._t("footer")],2):e._e()])])])},a=[];o._withStripped=!0;var s=i(13),n=i.n(s),r=i(11),l=i.n(r),c=i(4),d=i.n(c),p={name:"ElDialog",mixins:[n.a,d.a,l.a],props:{title:{type:String,default:""},modal:{type:Boolean,default:!0},modalAppendToBody:{type:Boolean,default:!0},appendToBody:{type:Boolean,default:!1},lockScroll:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},showClose:{type:Boolean,default:!0},width:String,fullscreen:Boolean,customClass:{type:String,default:""},top:{type:String,default:"15vh"},beforeClose:Function,center:{type:Boolean,default:!1},destroyOnClose:Boolean},data:function(){return{closed:!1,key:0}},watch:{visible:function(e){var t=this;e?(this.closed=!1,this.$emit("open"),this.$el.addEventListener("scroll",this.updatePopper),this.$nextTick((function(){t.$refs.dialog.scrollTop=0})),this.appendToBody&&document.body.appendChild(this.$el)):(this.$el.removeEventListener("scroll",this.updatePopper),this.closed||this.$emit("close"),this.destroyOnClose&&this.$nextTick((function(){t.key++})))}},computed:{style:function(){var e={};return this.fullscreen||(e.marginTop=this.top,this.width&&(e.width=this.width)),e}},methods:{getMigratingConfig:function(){return{props:{size:"size is removed."}}},handleWrapperClick:function(){this.closeOnClickModal&&this.handleClose()},handleClose:function(){"function"===typeof this.beforeClose?this.beforeClose(this.hide):this.hide()},hide:function(e){!1!==e&&(this.$emit("update:visible",!1),this.$emit("close"),this.closed=!0)},updatePopper:function(){this.broadcast("ElSelectDropdown","updatePopper"),this.broadcast("ElDropdownMenu","updatePopper")},afterEnter:function(){this.$emit("opened")},afterLeave:function(){this.$emit("closed")}},mounted:function(){this.visible&&(this.rendered=!0,this.open(),this.appendToBody&&document.body.appendChild(this.$el))},destroyed:function(){this.appendToBody&&this.$el&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el)}},u=p,f=i(0),m=Object(f["a"])(u,o,a,!1,null,null,null);m.options.__file="packages/dialog/src/component.vue";var h=m.exports;h.install=function(e){e.component(h.name,h)};t["default"]=h}})}}]);