pages-profile-personStatus.8a55cc33.js 13 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-profile-personStatus"],{"093a":function(t,e,a){"use strict";a.r(e);var r=a("378e"),o=a.n(r);for(var i in r)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return r[t]}))}(i);e["default"]=o.a},"1c5f":function(t,e,a){t.exports=a.p+"static/img/bg.30deae09.png"},"261c":function(t,e,a){"use strict";a.d(e,"b",(function(){return r})),a.d(e,"c",(function(){return o})),a.d(e,"a",(function(){}));var r=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("v-uni-view",{staticClass:"page flex-col"},[r("v-uni-view",{staticClass:"group_1 flex-col"},[r("v-uni-image",{staticStyle:{width:"100%",height:"100%"},attrs:{src:a("1c5f"),mode:""}}),r("v-uni-view",{staticClass:"box_3 flex-col"},[r("v-uni-text",{staticClass:"text_4"},[t._v("当前状态:"+t._s(t.list[1*t.info.status-1]||"暂无"))]),r("v-uni-view",{staticClass:"group_5 flex-col"}),t._l(t.list,(function(e,a){return r("v-uni-view",{key:a,staticClass:"text-wrapper_3 flex-col",class:{select:t.current==a},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.itemclick(a)}}},[r("v-uni-text",{staticClass:"text_6"},[t._v(t._s(e))])],1)})),r("v-uni-view",{staticClass:"text-wrapper_6 flex-col",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.confirm.apply(void 0,arguments)}}},[r("v-uni-text",{staticClass:"text_9"},[t._v("确认")])],1),r("v-uni-view",{staticClass:"group_6 flex-col"},[r("v-uni-view",{staticClass:"avatar"},[r("v-uni-image",{attrs:{src:t.info.headimg,mode:""}})],1)],1)],2)],1)],1)},o=[]},"378e":function(t,e,a){"use strict";a("7a82"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,a("e9c4");var r={onLoad:function(){this.info=JSON.parse(uni.getStorageSync("userInfo")),this.current=1*this.info.status-1},data:function(){return{list:["未婚","已婚","离异","丧偶"],current:0,info:{}}},methods:{confirm:function(){var t=this;uni.$u.http.post("/api/user/user_status",{status:1*this.current+1}).then((function(e){1==e.code&&(t.$u.toast(e.msg),t.getUserInfo())}))},getUserInfo:function(){var t=this;uni.$u.http.post("/api/user/userinfo").then((function(e){1==e.code&&(t.info=e.data,uni.setStorageSync("userInfo",JSON.stringify(e.data)))}))},itemclick:function(t){this.current!=t&&(this.current=t)}}};e.default=r},"5bdb":function(t,e,a){var r=a("b456");r.__esModule&&(r=r.default),"string"===typeof r&&(r=[[t.i,r,""]]),r.locals&&(t.exports=r.locals);var o=a("4f06").default;o("03224208",r,!0,{sourceMap:!1,shadowMode:!1})},"67dd":function(t,e,a){"use strict";var r=a("5bdb"),o=a.n(r);o.a},b456:function(t,e,a){var r=a("24fb");e=r(!1),e.push([t.i,'@charset "UTF-8";\r\n/**\r\n * 这里是uni-app内置的常用样式变量\r\n *\r\n * uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量\r\n * 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App\r\n *\r\n */\r\n/**\r\n * 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能\r\n *\r\n * 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件\r\n */.flex-row[data-v-26022ef2]{display:flex}.justify-between[data-v-26022ef2]{justify-content:space-between}.flex-col[data-v-26022ef2]{display:flex;flex-direction:column}.u-line-1[data-v-26022ef2]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:1;-webkit-box-orient:vertical!important}.u-line-2[data-v-26022ef2]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:2;-webkit-box-orient:vertical!important}.u-line-3[data-v-26022ef2]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:3;-webkit-box-orient:vertical!important}.u-line-4[data-v-26022ef2]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:4;-webkit-box-orient:vertical!important}.u-line-5[data-v-26022ef2]{display:-webkit-box!important;overflow:hidden;text-overflow:ellipsis;word-break:break-all;-webkit-line-clamp:5;-webkit-box-orient:vertical!important}.u-border[data-v-26022ef2]{border-width:.5px!important;border-color:#dadbde!important;border-style:solid}.u-border-top[data-v-26022ef2]{border-top-width:.5px!important;border-color:#dadbde!important;border-top-style:solid}.u-border-left[data-v-26022ef2]{border-left-width:.5px!important;border-color:#dadbde!important;border-left-style:solid}.u-border-right[data-v-26022ef2]{border-right-width:.5px!important;border-color:#dadbde!important;border-right-style:solid}.u-border-bottom[data-v-26022ef2]{border-bottom-width:.5px!important;border-color:#dadbde!important;border-bottom-style:solid}.u-border-top-bottom[data-v-26022ef2]{border-top-width:.5px!important;border-bottom-width:.5px!important;border-color:#dadbde!important;border-top-style:solid;border-bottom-style:solid}.u-reset-button[data-v-26022ef2]{padding:0;background-color:initial;font-size:inherit;line-height:inherit;color:inherit}.u-reset-button[data-v-26022ef2]::after{border:none}.u-hover-class[data-v-26022ef2]{opacity:.7}.u-primary-light[data-v-26022ef2]{color:#ecf5ff}.u-warning-light[data-v-26022ef2]{color:#fdf6ec}.u-success-light[data-v-26022ef2]{color:#f5fff0}.u-error-light[data-v-26022ef2]{color:#fef0f0}.u-info-light[data-v-26022ef2]{color:#f4f4f5}.u-primary-light-bg[data-v-26022ef2]{background-color:#ecf5ff}.u-warning-light-bg[data-v-26022ef2]{background-color:#fdf6ec}.u-success-light-bg[data-v-26022ef2]{background-color:#f5fff0}.u-error-light-bg[data-v-26022ef2]{background-color:#fef0f0}.u-info-light-bg[data-v-26022ef2]{background-color:#f4f4f5}.u-primary-dark[data-v-26022ef2]{color:#398ade}.u-warning-dark[data-v-26022ef2]{color:#f1a532}.u-success-dark[data-v-26022ef2]{color:#53c21d}.u-error-dark[data-v-26022ef2]{color:#e45656}.u-info-dark[data-v-26022ef2]{color:#767a82}.u-primary-dark-bg[data-v-26022ef2]{background-color:#398ade}.u-warning-dark-bg[data-v-26022ef2]{background-color:#f1a532}.u-success-dark-bg[data-v-26022ef2]{background-color:#53c21d}.u-error-dark-bg[data-v-26022ef2]{background-color:#e45656}.u-info-dark-bg[data-v-26022ef2]{background-color:#767a82}.u-primary-disabled[data-v-26022ef2]{color:#9acafc}.u-warning-disabled[data-v-26022ef2]{color:#f9d39b}.u-success-disabled[data-v-26022ef2]{color:#a9e08f}.u-error-disabled[data-v-26022ef2]{color:#f7b2b2}.u-info-disabled[data-v-26022ef2]{color:#c4c6c9}.u-primary[data-v-26022ef2]{color:#3c9cff}.u-warning[data-v-26022ef2]{color:#f9ae3d}.u-success[data-v-26022ef2]{color:#5ac725}.u-error[data-v-26022ef2]{color:#f56c6c}.u-info[data-v-26022ef2]{color:#909399}.u-primary-bg[data-v-26022ef2]{background-color:#3c9cff}.u-warning-bg[data-v-26022ef2]{background-color:#f9ae3d}.u-success-bg[data-v-26022ef2]{background-color:#5ac725}.u-error-bg[data-v-26022ef2]{background-color:#f56c6c}.u-info-bg[data-v-26022ef2]{background-color:#909399}.u-main-color[data-v-26022ef2]{color:#303133}.u-content-color[data-v-26022ef2]{color:#606266}.u-tips-color[data-v-26022ef2]{color:#909193}.u-light-color[data-v-26022ef2]{color:#c0c4cc}.u-safe-area-inset-top[data-v-26022ef2]{padding-top:0;padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.u-safe-area-inset-right[data-v-26022ef2]{padding-right:0;padding-right:constant(safe-area-inset-right);padding-right:env(safe-area-inset-right)}.u-safe-area-inset-bottom[data-v-26022ef2]{padding-bottom:0;padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.u-safe-area-inset-left[data-v-26022ef2]{padding-left:0;padding-left:constant(safe-area-inset-left);padding-left:env(safe-area-inset-left)}uni-toast[data-v-26022ef2]{z-index:10090}uni-toast .uni-toast[data-v-26022ef2]{z-index:10090}[data-v-26022ef2]::-webkit-scrollbar{display:none;width:0!important;height:0!important;-webkit-appearance:none;background:transparent}\r\n/* 颜色变量 */\r\n/* 行为相关颜色 */\r\n/* 文字基本颜色 */\r\n/* 背景颜色 */\r\n/* 边框颜色 */\r\n/* 尺寸变量 */\r\n/* 文字尺寸 */\r\n/* 图片尺寸 */\r\n/* Border Radius */\r\n/* 水平间距 */\r\n/* 垂直间距 */\r\n/* 透明度 */\r\n/* 文章场景相关 */.select[data-v-26022ef2]{background:linear-gradient(270deg,#a890fe,#ffaeae)}.select uni-text[data-v-26022ef2]{color:#fff}.avatar[data-v-26022ef2]{position:relative;z-index:999;margin:0 auto}.avatar uni-image[data-v-26022ef2]{width:%?172?%;height:%?172?%;border-radius:50%;border:%?4?% solid #fff}.page[data-v-26022ef2]{background-color:#fff;position:relative;width:%?750?%;overflow:hidden}.group_1[data-v-26022ef2]{position:relative;height:100vh;width:%?750?%}.group_10[data-v-26022ef2]{width:%?750?%;height:%?290?%}.box_5[data-v-26022ef2]{width:%?680?%;height:%?34?%;margin:%?30?% 0 0 %?42?%}.text-wrapper_8[data-v-26022ef2]{width:%?108?%;height:%?34?%;overflow-wrap:break-word;font-size:0;letter-spacing:-.2800000011920929px;font-family:Helvetica;text-align:center;white-space:nowrap;line-height:%?34?%}.text_12[data-v-26022ef2]{width:%?108?%;height:%?34?%;overflow-wrap:break-word;color:#000;font-size:%?28?%;font-family:Helvetica;text-align:left;white-space:nowrap;line-height:%?34?%}.text_13[data-v-26022ef2]{width:%?108?%;height:%?34?%;overflow-wrap:break-word;color:#000;font-size:%?28?%;font-family:Helvetica;text-align:left;white-space:nowrap;line-height:%?34?%}.group_11[data-v-26022ef2]{width:%?34?%;height:%?22?%;background-size:%?36?% %?24?%;margin:%?6?% 0 0 %?438?%}.group_12[data-v-26022ef2]{width:%?30?%;height:%?22?%;background-size:%?32?% %?24?%;margin:%?4?% 0 0 %?10?%}.group_13[data-v-26022ef2]{width:%?50?%;height:%?24?%;margin:%?4?% 0 0 %?10?%}.box_6[data-v-26022ef2]{width:%?706?%;height:%?74?%;margin:%?24?% 0 %?128?% %?30?%}.box_2[data-v-26022ef2]{width:%?64?%;height:%?64?%}.text_3[data-v-26022ef2]{width:%?146?%;height:%?50?%;overflow-wrap:break-word;color:#222;font-size:%?36?%;letter-spacing:.2266666740179062px;font-family:PingFangSC-Medium;text-align:right;white-space:nowrap;line-height:%?50?%;margin:%?22?% 0 0 %?208?%}.group_14[data-v-26022ef2]{width:%?168?%;height:%?60?%;margin:%?14?% 0 0 %?120?%}.box_3[data-v-26022ef2]{background-color:#fff;border-radius:20px 20px 0 0;position:absolute;left:0;top:%?151?%;width:%?750?%;height:%?1336?%}.text_4[data-v-26022ef2]{width:%?228?%;height:%?44?%;overflow-wrap:break-word;color:#222;font-size:%?32?%;letter-spacing:.20148147642612457px;font-family:PingFangSC-Medium;text-align:right;white-space:nowrap;line-height:%?44?%;margin:%?136?% 0 0 %?262?%}.group_5[data-v-26022ef2]{background-color:#f2f2f2;width:%?690?%;height:%?2?%;margin:%?40?% 0 0 %?30?%}.text-wrapper_2[data-v-26022ef2]{height:%?100?%;width:%?610?%;margin:%?64?% 0 0 %?70?%}.text_5[data-v-26022ef2]{width:%?66?%;height:%?44?%;overflow-wrap:break-word;color:#fff;font-size:%?32?%;letter-spacing:.20148147642612457px;font-family:PingFangSC-Medium;text-align:right;white-space:nowrap;line-height:%?44?%;margin:%?28?% 0 0 %?272?%}.text-wrapper_3[data-v-26022ef2]{background-color:#f3f4f6;border-radius:10px;height:%?100?%;width:%?610?%;margin:%?40?% 0 0 %?70?%}.text_6[data-v-26022ef2]{width:%?66?%;height:%?44?%;overflow-wrap:break-word;color:#222;font-size:%?32?%;letter-spacing:.20148147642612457px;font-family:PingFangSC-Medium;text-align:right;white-space:nowrap;line-height:%?44?%;margin:%?28?% 0 0 %?272?%}.text-wrapper_4[data-v-26022ef2]{background-color:#f3f4f6;border-radius:10px;height:%?100?%;width:%?610?%;margin:%?40?% 0 0 %?70?%}.text_7[data-v-26022ef2]{width:%?66?%;height:%?44?%;overflow-wrap:break-word;color:#222;font-size:%?32?%;letter-spacing:.20148147642612457px;font-family:PingFangSC-Medium;text-align:right;white-space:nowrap;line-height:%?44?%;margin:%?28?% 0 0 %?272?%}.text-wrapper_5[data-v-26022ef2]{background-color:#f3f4f6;border-radius:10px;height:%?100?%;width:%?610?%;margin:%?40?% 0 0 %?70?%}.text_8[data-v-26022ef2]{width:%?66?%;height:%?44?%;overflow-wrap:break-word;color:#222;font-size:%?32?%;letter-spacing:.20148147642612457px;font-family:PingFangSC-Medium;text-align:right;white-space:nowrap;line-height:%?44?%;margin:%?28?% 0 0 %?272?%}.text-wrapper_6[data-v-26022ef2]{position:fixed;bottom:%?84?%;left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%);background:linear-gradient(270deg,#a890fe,#ffaeae);height:%?92?%;width:%?650?%;border-radius:%?52?%}.text_9[data-v-26022ef2]{width:%?74?%;height:%?50?%;overflow-wrap:break-word;color:#fff;font-size:%?36?%;letter-spacing:.2266666740179062px;font-family:PingFangSC-Medium;text-align:right;white-space:nowrap;line-height:%?50?%;margin:%?22?% 0 0 %?288?%}.group_6[data-v-26022ef2]{position:absolute;left:%?290?%;top:%?-72?%;width:%?172?%;height:%?172?%}',""]),t.exports=e},c96c:function(t,e,a){"use strict";a.r(e);var r=a("261c"),o=a("093a");for(var i in o)["default"].indexOf(i)<0&&function(t){a.d(e,t,(function(){return o[t]}))}(i);a("67dd");var n=a("f0c5"),d=Object(n["a"])(o["default"],r["b"],r["c"],!1,null,"26022ef2",null,!1,r["a"],void 0);e["default"]=d.exports}}]);