1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-set-userinfo"],{"03f1":function(t,a,e){"use strict";var n=e("e506"),o=e.n(n);o.a},"08e8":function(t,a,e){"use strict";var n=e("b3ba"),o=e.n(n);o.a},"0bfc":function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.uni-popup[data-v-697b345a]{position:fixed;top:var(--window-top);bottom:0;left:0;right:0;z-index:99}.uni-popup__mask[data-v-697b345a]{position:absolute;top:0;bottom:0;left:0;right:0;background-color:rgba(0,0,0,.4);opacity:0}.mask-ani[data-v-697b345a]{transition-property:opacity;transition-duration:.2s}.uni-top-mask[data-v-697b345a]{opacity:1}.uni-bottom-mask[data-v-697b345a]{opacity:1}.uni-center-mask[data-v-697b345a]{opacity:1}.uni-popup__wrapper[data-v-697b345a]{display:block;position:absolute}.top[data-v-697b345a]{top:0;left:0;right:0;-webkit-transform:translateY(-500px);transform:translateY(-500px)}.bottom[data-v-697b345a]{bottom:0;left:0;right:0;-webkit-transform:translateY(500px);transform:translateY(500px)}.center[data-v-697b345a]{display:flex;flex-direction:column;bottom:0;left:0;right:0;top:0;justify-content:center;align-items:center;-webkit-transform:scale(1.2);transform:scale(1.2);opacity:0}.uni-popup__wrapper-box[data-v-697b345a]{display:block;position:relative}.content-ani[data-v-697b345a]{transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform;transition-duration:.2s}.uni-top-content[data-v-697b345a]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-bottom-content[data-v-697b345a]{-webkit-transform:translateY(0);transform:translateY(0)}.uni-center-content[data-v-697b345a]{-webkit-transform:scale(1);transform:scale(1);opacity:1}',""]),t.exports=a},"0d5f":function(t,a,e){"use strict";var n;e.d(a,"b",(function(){return o})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){return n}));var o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.isShow?e("v-uni-view",{ref:"ani",staticClass:"uni-transition",class:[t.ani.in],style:"transform:"+t.transform+";"+t.stylesObject,on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.change.apply(void 0,arguments)}}},[t._t("default")],2):t._e()},i=[]},1068:function(t,a,e){var n=e("aa8f");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("00d7442c",n,!0,{sourceMap:!1,shadowMode:!1})},"2f1a":function(t,a,e){"use strict";var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.userEdit=i,a.logout=r,a.registerReset=s,a.binding=u;var o=n(e("6150"));function i(t){return(0,o.default)({url:"/api/user/edit",method:"post",data:t})}function r(t){return(0,o.default)({url:"/api/logout",method:"get",data:t})}function s(t){return(0,o.default)({url:"/api/register/reset",method:"post",data:t})}function u(t){return(0,o.default)({url:"/api/binding",method:"post",data:t})}},"3fcce":function(t,a,e){"use strict";e.r(a);var n=e("0d5f"),o=e("c26f");for(var i in o)"default"!==i&&function(t){e.d(a,t,(function(){return o[t]}))}(i);e("a8cc");var r,s=e("f0c5"),u=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"016ede03",null,!1,n["a"],r);a["default"]=u.exports},"47e7":function(t,a,e){"use strict";e.r(a);var n=e("c424"),o=e("820c");for(var i in o)"default"!==i&&function(t){e.d(a,t,(function(){return o[t]}))}(i);e("03f1");var r,s=e("f0c5"),u=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"2843a0e2",null,!1,n["a"],r);a["default"]=u.exports},"820c":function(t,a,e){"use strict";e.r(a);var n=e("fccb"),o=e.n(n);for(var i in n)"default"!==i&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=o.a},a200:function(t,a,e){"use strict";e.r(a);var n=e("f09b"),o=e("d1d3");for(var i in o)"default"!==i&&function(t){e.d(a,t,(function(){return o[t]}))}(i);e("08e8");var r,s=e("f0c5"),u=Object(s["a"])(o["default"],n["b"],n["c"],!1,null,"697b345a",null,!1,n["a"],r);a["default"]=u.exports},a8cc:function(t,a,e){"use strict";var n=e("1068"),o=e.n(n);o.a},aa8f:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,".uni-transition[data-v-016ede03]{transition-timing-function:ease;transition-duration:.3s;transition-property:opacity,-webkit-transform;transition-property:transform,opacity;transition-property:transform,opacity,-webkit-transform}.fade-in[data-v-016ede03]{opacity:0}.fade-active[data-v-016ede03]{opacity:1}.slide-top-in[data-v-016ede03]{\n\t/* transition-property: transform, opacity; */-webkit-transform:translateY(-100%);transform:translateY(-100%)}.slide-top-active[data-v-016ede03]{-webkit-transform:translateY(0);transform:translateY(0)\n\t/* opacity: 1; */}.slide-right-in[data-v-016ede03]{-webkit-transform:translateX(100%);transform:translateX(100%)}.slide-right-active[data-v-016ede03]{-webkit-transform:translateX(0);transform:translateX(0)}.slide-bottom-in[data-v-016ede03]{-webkit-transform:translateY(100%);transform:translateY(100%)}.slide-bottom-active[data-v-016ede03]{-webkit-transform:translateY(0);transform:translateY(0)}.slide-left-in[data-v-016ede03]{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.slide-left-active[data-v-016ede03]{-webkit-transform:translateX(0);transform:translateX(0);opacity:1}.zoom-in-in[data-v-016ede03]{-webkit-transform:scale(.8);transform:scale(.8)}.zoom-out-active[data-v-016ede03]{-webkit-transform:scale(1);transform:scale(1)}.zoom-out-in[data-v-016ede03]{-webkit-transform:scale(1.2);transform:scale(1.2)}",""]),t.exports=a},b3ba:function(t,a,e){var n=e("0bfc");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("374748ce",n,!0,{sourceMap:!1,shadowMode:!1})},b83f:function(t,a,e){"use strict";var n=e("dbce");Object.defineProperty(a,"__esModule",{value:!0}),a.confirm=i,a.couponsOrder=r,a.getCouponsList=s,a.order_comment=u,a.product=c,a.express_query=d,a.upload=f,a.orderList=l,a.orderDetail=p,a.orderCancel=m,a.orderDel=h,a.refund=v,a.refundReason=b,a.orderTake=w,a.orderPay=g,a.createOrderkey=y,a.computedOrderkey=k;var o=n(e("6150"));function i(t){return(0,o.default)({url:"/api/order/confirm",method:"post",data:t})}function r(t,a){return(0,o.default)({url:"/api/coupons/order/"+a,method:"get",data:t})}function s(t,a){return(0,o.default)({url:"/api/coupons/user/"+a,method:"get",data:t})}function u(t){return(0,o.default)({url:"/api/order/comment",method:"post",data:t})}function c(t){return(0,o.default)({url:"/api/order/product",method:"post",data:t})}function d(t){return(0,o.default)({url:"/api/order/express_query",method:"get",data:t})}function f(t){return(0,o.upFilse)({url:"/api/upload/image",method:"post",data:t})}function l(t){return(0,o.default)({url:"/api/order/list",method:"get",data:t})}function p(t,a){return(0,o.default)({url:"/api/order/detail/"+a,method:"get",data:t})}function m(t){return(0,o.default)({url:"/api/order/cancel",method:"post",data:t})}function h(t){return(0,o.default)({url:"/api/order/del",method:"get",data:t})}function v(t){return(0,o.default)({url:"/api/order/refund/verify",method:"post",data:t})}function b(t){return(0,o.default)({url:"/api/order/refund/reason",method:"get",data:t})}function w(t){return(0,o.default)({url:"/api/order/take",method:"post",data:t})}function g(t){return(0,o.default)({url:"/api/order/pay",method:"post",data:t})}function y(t,a){return(0,o.default)({url:"/api/order/create/"+a,method:"post",data:t})}function k(t){return(0,o.default)({url:"/api/order/computed/"+t.orderkey,method:"post",data:t})}},c26f:function(t,a,e){"use strict";e.r(a);var n=e("c6c5"),o=e.n(n);for(var i in n)"default"!==i&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=o.a},c424:function(t,a,e){"use strict";e.d(a,"b",(function(){return o})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){return n}));var n={uniPopup:e("a200").default},o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("v-uni-view",{staticClass:"content"},[e("v-uni-view",{staticClass:"row1"},[e("v-uni-text",{staticClass:"tit"},[t._v("头像")]),e("v-uni-view",{staticClass:"background-img",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.imgsub.apply(void 0,arguments)}}},[e("v-uni-image",{staticClass:"background-img",attrs:{src:t.userInfo.avatar,mode:"aspectFill"},model:{value:t.userInfo.avatar,callback:function(a){t.$set(t.userInfo,"avatar",a)},expression:"userInfo.avatar"}})],1)],1),e("v-uni-view",{staticClass:"row"},[e("v-uni-text",{staticClass:"tit"},[t._v("昵称")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text","placeholder-class":"placeholder"},model:{value:t.userInfo.nickname,callback:function(a){t.$set(t.userInfo,"nickname",a)},expression:"userInfo.nickname"}})],1),e("v-uni-view",{staticClass:"row"},[e("v-uni-text",{staticClass:"tit"},[t._v("ID")]),e("v-uni-input",{staticClass:"input",attrs:{type:"text",disabled:"true","placeholder-class":"placeholder"},model:{value:t.userInfo.uid,callback:function(a){t.$set(t.userInfo,"uid",a)},expression:"userInfo.uid"}})],1),e("v-uni-view",{staticClass:"add-btn",on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.confirm.apply(void 0,arguments)}}},[t._v("提交")]),e("uni-popup",{ref:"popup",attrs:{type:"center"}},[e("v-uni-view",{staticClass:"psw-wrapper"},[e("v-uni-view",{staticClass:"psw-title"},[t._v("请输入自己的账户")]),e("v-uni-input",{staticClass:"psw-ipt",attrs:{type:"text"},model:{value:t.password,callback:function(a){t.password=a},expression:"password"}}),e("v-uni-view",{staticClass:"psw-btn"},[e("v-uni-text",{on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.qx.apply(void 0,arguments)}}},[t._v("取消")]),e("v-uni-text",{staticClass:"psw-qd",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.pswQd.apply(void 0,arguments)}}},[t._v("确定")])],1)],1)],1)],1)},i=[]},c6c5:function(t,a,e){"use strict";var n=e("4ea4");e("4160"),e("a9e3"),e("ac1f"),e("5319"),e("159b"),Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=n(e("5530")),i={name:"uniTransition",props:{show:{type:Boolean,default:!1},modeClass:{type:Array,default:function(){return[]}},duration:{type:Number,default:300},styles:{type:Object,default:function(){return{}}}},data:function(){return{isShow:!1,transform:"",ani:{in:"",active:""}}},watch:{show:{handler:function(t){t?this.open():this.close()},immediate:!0}},computed:{stylesObject:function(){var t=(0,o.default)((0,o.default)({},this.styles),{},{"transition-duration":this.duration/1e3+"s"}),a="";for(var e in t){var n=this.toLine(e);a+=n+":"+t[e]+";"}return a}},created:function(){},methods:{change:function(){this.$emit("click",{detail:this.isShow})},open:function(){var t=this;for(var a in clearTimeout(this.timer),this.isShow=!0,this.transform="",this.ani.in="",this.getTranfrom(!1))"opacity"===a?this.ani.in="fade-in":this.transform+="".concat(this.getTranfrom(!1)[a]," ");this.$nextTick((function(){setTimeout((function(){t._animation(!0)}),50)}))},close:function(t){clearTimeout(this.timer),this._animation(!1)},_animation:function(t){var a=this,e=this.getTranfrom(t);for(var n in this.transform="",e)"opacity"===n?this.ani.in="fade-".concat(t?"out":"in"):this.transform+="".concat(e[n]," ");this.timer=setTimeout((function(){t||(a.isShow=!1),a.$emit("change",{detail:a.isShow})}),this.duration)},getTranfrom:function(t){var a={transform:""};return this.modeClass.forEach((function(e){switch(e){case"fade":a.opacity=t?1:0;break;case"slide-top":a.transform+="translateY(".concat(t?"0":"-100%",") ");break;case"slide-right":a.transform+="translateX(".concat(t?"0":"100%",") ");break;case"slide-bottom":a.transform+="translateY(".concat(t?"0":"100%",") ");break;case"slide-left":a.transform+="translateX(".concat(t?"0":"-100%",") ");break;case"zoom-in":a.transform+="scale(".concat(t?1:.8,") ");break;case"zoom-out":a.transform+="scale(".concat(t?1:1.2,") ");break}})),a},_modeClassArr:function(t){var a=this.modeClass;if("string"!==typeof a){var e="";return a.forEach((function(a){e+=a+"-"+t+","})),e.substr(0,e.length-1)}return a+"-"+t},toLine:function(t){return t.replace(/([A-Z])/g,"-$1").toLowerCase()}}};a.default=i},d1d3:function(t,a,e){"use strict";e.r(a);var n=e("f7d2"),o=e.n(n);for(var i in n)"default"!==i&&function(t){e.d(a,t,(function(){return n[t]}))}(i);a["default"]=o.a},e506:function(t,a,e){var n=e("e707");"string"===typeof n&&(n=[[t.i,n,""]]),n.locals&&(t.exports=n.locals);var o=e("4f06").default;o("1b43f987",n,!0,{sourceMap:!1,shadowMode:!1})},e707:function(t,a,e){var n=e("24fb");a=n(!1),a.push([t.i,'@charset "UTF-8";\n/* 页面左右间距 */\n/* 文字尺寸 */\n/*文字颜色*/\n/* 边框颜色 */\n/*颜色*/\n/* 图片加载中颜色 */\n/* 行为相关颜色 */\n/* 功能栏字体大小 */\n/*功能栏左侧小图标*/.row1[data-v-2843a0e2]{display:flex;align-items:center;justify-content:space-between;position:relative;padding:0 %?30?%;height:%?110?%;background:#fff;margin-bottom:%?20?%}.row1 .tit[data-v-2843a0e2]{flex-shrink:0;width:%?120?%;font-size:%?32?%;color:#303133}.row1 .background-img[data-v-2843a0e2]{width:%?80?%;height:%?80?%;border-radius:50%;background:#f2f2f2}.row[data-v-2843a0e2]{display:flex;align-items:center;padding:0 %?30?%;height:%?110?%;background:#fff}.row .tit[data-v-2843a0e2]{flex-shrink:0;width:%?120?%;font-size:%?32?%;color:#303133}.row .input[data-v-2843a0e2]{flex:1;text-align:right;font-size:%?28?%;color:#999}.add-btn[data-v-2843a0e2]{display:flex;align-items:center;justify-content:center;margin:%?158?% auto %?30?%;width:%?560?%;height:%?80?%;background:linear-gradient(0deg,#2e58ff,#32c6ff);border-radius:40px;color:#fff}.out[data-v-2843a0e2]{display:flex;align-items:center;justify-content:center;margin:0 auto %?30?%;width:%?560?%;height:%?80?%;border:1px solid #32c6ff;background:#fff;border-radius:40px;color:#32c6ff}.psw-wrapper[data-v-2843a0e2]{width:%?548?%;height:%?344?%;background-color:#fff}.psw-wrapper .psw-title[data-v-2843a0e2]{width:100%;font-size:%?35?%;padding:%?43?% 0 %?49?%;text-align:center;font-weight:800}.psw-wrapper .psw-ipt[data-v-2843a0e2]{display:block;background-color:#dce3ed;height:%?90?%;width:%?464?%;padding-left:%?30?%;margin:0 auto;font-size:%?80?%}.psw-wrapper .psw-btn uni-text[data-v-2843a0e2]{display:inline-block;text-align:center;width:50%;padding-top:%?29?%;font-size:%?35?%}.psw-wrapper .psw-qd[data-v-2843a0e2]{color:#32c6ff}',""]),t.exports=a},f09b:function(t,a,e){"use strict";e.d(a,"b",(function(){return o})),e.d(a,"c",(function(){return i})),e.d(a,"a",(function(){return n}));var n={uniTransition:e("3fcce").default},o=function(){var t=this,a=t.$createElement,e=t._self._c||a;return t.showPopup?e("v-uni-view",{staticClass:"uni-popup",on:{touchmove:function(a){a.stopPropagation(),a.preventDefault(),arguments[0]=a=t.$handleEvent(a),t.clear.apply(void 0,arguments)}}},[e("uni-transition",{attrs:{"mode-class":["fade"],styles:t.maskClass,duration:t.duration,show:t.showTrans},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onTap.apply(void 0,arguments)}}}),e("uni-transition",{attrs:{"mode-class":t.ani,styles:t.transClass,duration:t.duration,show:t.showTrans},on:{click:function(a){arguments[0]=a=t.$handleEvent(a),t.onTap.apply(void 0,arguments)}}},[e("v-uni-view",{staticClass:"uni-popup__wrapper-box",on:{click:function(a){a.stopPropagation(),arguments[0]=a=t.$handleEvent(a),t.clear.apply(void 0,arguments)}}},[t._t("default")],2)],1)],1):t._e()},i=[]},f7d2:function(t,a,e){"use strict";var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=n(e("3fcce")),i={name:"UniPopup",components:{uniTransition:o.default},props:{animation:{type:Boolean,default:!0},type:{type:String,default:"center"},maskClick:{type:Boolean,default:!0}},data:function(){return{duration:300,ani:[],showPopup:!1,showTrans:!1,maskClass:{position:"fixed",bottom:0,top:0,left:0,right:0,backgroundColor:"rgba(0, 0, 0, 0.4)"},transClass:{position:"fixed",left:0,right:0}}},watch:{type:{handler:function(t){switch(this.type){case"top":this.ani=["slide-top"],this.transClass={position:"fixed",left:0,right:0};break;case"bottom":this.ani=["slide-bottom"],this.transClass={position:"fixed",left:0,right:0,bottom:0};break;case"center":this.ani=["zoom-out","fade"],this.transClass={position:"fixed",display:"flex",flexDirection:"column",bottom:0,left:0,right:0,top:0,justifyContent:"center",alignItems:"center"};break}},immediate:!0}},created:function(){this.animation?this.duration=300:this.duration=0},methods:{clear:function(t){t.stopPropagation()},open:function(){var t=this;this.showPopup=!0,this.$nextTick((function(){clearTimeout(t.timer),t.timer=setTimeout((function(){t.showTrans=!0}),50)})),this.$emit("change",{show:!0})},close:function(t){var a=this;this.showTrans=!1,this.$nextTick((function(){clearTimeout(a.timer),a.timer=setTimeout((function(){a.$emit("change",{show:!1}),a.showPopup=!1}),300)}))},onTap:function(){this.maskClick&&this.close()}}};a.default=i},fccb:function(t,a,e){"use strict";var n=e("4ea4");Object.defineProperty(a,"__esModule",{value:!0}),a.default=void 0;var o=n(e("5530")),i=n(e("9f98")),r=e("26cb"),s=e("b83f"),u=e("2f1a"),c={data:function(){return{show:!1,password:"",AuthoriZation:""}},components:{jinEdit:i.default},onLoad:function(){this.AuthoriZation="Bearer "+uni.getStorageSync("token"),console.log(this.userInfo)},computed:(0,o.default)({},(0,r.mapState)("user",["userInfo"])),methods:(0,o.default)((0,o.default)({editOk:function(t){console.log(t)}},(0,r.mapMutations)("user",["logout"])),{},{imgsub:function(){var t=this;console.log("上传头像"),(0,s.upload)({filename:""}).then((function(a){console.log("data",a),t.userInfo.avatar=a[0].url}))},confirm:function(){var t=this;(0,u.userEdit)({avatar:this.userInfo.avatar,nickname:this.userInfo.nickname}).then((function(a){t.$api.msg("修改成功"),setTimeout((function(){uni.switchTab({url:"/pages/user/user"})}),1e3),console.log(a)})).catch((function(t){console.log(t)}))},toLogout:function(){var t=this;uni.showModal({content:"确定要退出登录么",success:function(a){a.confirm&&((0,u.logout)({}).then((function(t){uni.navigateBack()})).catch((function(t){console.log(t)})),t.logout())}})},cancel:function(){this.$refs.popup.open()},qx:function(){this.password="",this.$refs.popup.close()},pswQd:function(){if(this.password!=this.userInfo.phone)return this.$refs.popup.close(),this.password="",void this.$api.msg("请输入自己的账户");this.$refs.popup.close(),this.password="",this.$api.msg("申请注销成功,请耐心等待审核")}})};a.default=c}}]);
|