You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
8.9 KiB
1 lines
8.9 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-qingshaonian-index"],{"12b4":function(n,i,t){"use strict";t.r(i);var e=t("12c4"),a=t("2fd5");for(var s in a)["default"].indexOf(s)<0&&function(n){t.d(i,n,(function(){return a[n]}))}(s);t("efd6");var o=t("828b"),d=Object(o["a"])(a["default"],e["b"],e["c"],!1,null,"d1171dc0",null,!1,e["a"],void 0);i["default"]=d.exports},"12c4":function(n,i,t){"use strict";t.d(i,"b",(function(){return a})),t.d(i,"c",(function(){return s})),t.d(i,"a",(function(){return e}));var e={uPopup:t("9f5d").default,uIcon:t("1a39").default},a=function(){var n=this,i=n.$createElement,e=n._self._c||i;return e("v-uni-view",{staticClass:"qingshaonian"},[e("v-uni-view",{staticClass:"bd"},[e("v-uni-image",{attrs:{src:t("eb75")}}),1==n.userInfo.teenageMode?e("v-uni-view",{staticClass:"title"},[n._v("青少年模式已开启")]):e("v-uni-view",{staticClass:"title"},[n._v("青少年模式未开启")]),1==n.userInfo.teenageMode?e("v-uni-view",{staticClass:"desc"},[n._v("关闭后,所有行为将不受限制")]):e("v-uni-view",{staticClass:"desc"},[n._v("开启时,以下行为会收到限制:")]),0==n.userInfo.teenageMode?e("v-uni-view",{staticClass:"item"},[e("v-uni-image",{attrs:{src:t("f54f")}}),n._v("无法进行充值")],1):n._e(),0==n.userInfo.teenageMode?e("v-uni-view",{staticClass:"item"},[e("v-uni-image",{attrs:{src:t("f54f")}}),n._v("部分功能无法使用")],1):n._e()],1),e("v-uni-view",{staticClass:"fd"},[0==n.userInfo.teenageMode?e("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=n.$handleEvent(i),n.openPage()}}},[n._v("开启青少年模式")]):e("v-uni-view",{staticClass:"btn",on:{click:function(i){arguments[0]=i=n.$handleEvent(i),n.isPopup=!0}}},[n._v("关闭")])],1),e("u-popup",{attrs:{mode:"center","border-radius":"20","mask-close-able":!1},model:{value:n.isPopup,callback:function(i){n.isPopup=i},expression:"isPopup"}},[e("v-uni-view",{staticClass:"qingshaonians"},[e("v-uni-view",{staticClass:"titles"},[n._v("输入密码"),e("v-uni-image",{attrs:{src:t("95e9")},on:{click:function(i){arguments[0]=i=n.$handleEvent(i),n.isPopup=!1}}})],1),e("v-uni-view",{staticClass:"contents"},[e("v-uni-view",{staticClass:"p"},[n._v("解除青少年模式密码")]),e("v-uni-view",{staticClass:"box"},[e("u-icon",{attrs:{name:"lock-fill"}}),e("v-uni-input",{attrs:{type:"password",placeholder:"输入密码"},model:{value:n.teenagePsw,callback:function(i){n.teenagePsw=i},expression:"teenagePsw"}})],1)],1),e("v-uni-view",{staticClass:"fds"},[e("v-uni-view",{staticClass:"btns",on:{click:function(i){arguments[0]=i=n.$handleEvent(i),n.toReg.apply(void 0,arguments)}}},[n._v("确定关闭")])],1)],1)],1)],1)},s=[]},"2fd5":function(n,i,t){"use strict";t.r(i);var e=t("5acd"),a=t.n(e);for(var s in e)["default"].indexOf(s)<0&&function(n){t.d(i,n,(function(){return e[n]}))}(s);i["default"]=a.a},"5acd":function(n,i,t){"use strict";t("6a54");var e=t("f5bd").default;Object.defineProperty(i,"__esModule",{value:!0}),i.default=void 0;var a=e(t("2634")),s=e(t("2fdc")),o={data:function(){return{isPopup:!1,userInfo:{},teenagePsw:""}},onShow:function(){this.userInfo=uni.getStorageSync("userInfo")},methods:{toReg:function(){var n=this;return(0,s.default)((0,a.default)().mark((function i(){var t,e,s;return(0,a.default)().wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(n.teenagePsw){i.next=3;break}return uni.showToast({title:"密码不能为空!",position:"bottom",icon:"none"}),i.abrupt("return");case 3:return n.isPopup=!1,i.next=6,n.$api.closeTeenageMode({teenagePsw:n.teenagePsw,userId:uni.getStorageSync("userInfo").id});case 6:t=i.sent,e=t.code,t.data,s=t.msg,200==e?(uni.showToast({title:"提交成功"}),setTimeout((function(){uni.navigateBack({delta:1})}),2e3)):uni.showToast({title:s,position:"bottom",icon:"none"});case 11:case"end":return i.stop()}}),i)})))()},openPage:function(){uni.navigateTo({url:"/pages/users/qingshaonian/detail"})}}};i.default=o},eb75:function(n,i,t){n.exports=t.p+"static/qingshaonian-san.png"},efd6:function(n,i,t){"use strict";var e=t("fda2"),a=t.n(e);a.a},f54f:function(n,i){n.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABsAAAAbCAYAAACN1PRVAAAAAXNSR0IArs4c6QAAA81JREFUSEu9ls+LI0UUx+u9qq509ySYGIchcdSotzm5RvAiuH+AKAiCV/UoHkQQD968CCIexKPrVfAgin/ACl4E2/WUmzrqmDCMMZFk0p3qqveketIhM2tmk5HdgqIDqa5Pv1/f90BstuAOx3iTay67pPzPP4vd7XbPnU+SxENWt2euBa+DlQD0AK3hmgT5mgBxHQQ8cnYj/yZY3HTsPjWGby3AtAK/zdiLsFUr0Dm3E4fBBwDwqhAC17iKmPnG5DR7W2s9TZJkFXjOyoswfyEeHBwgAFRr1fArIeCZTeIhBH83mWYvMPO01+t5YLmXr6/C/G8PksPhMHjowdbHAPDKZqCzU8z82R9/Dt5oNpt5r9dzC+DSunNJ0O125WAwCHZ360+CwG8BYJ3r/vMbmJlY0LMnJ+MfW61WniSJB5YJVGSZX/4pO52OUkrpUAcfAQgfp60Xs7iRmfxNa605PDy0QogSuIT5rJNHR0e60VAhU/Q9ADy+NenMlT8DqqdHo1G2v79vFtb5+J3Vj49Vp9MJvFXOuQhB/C6E0FeBCSEMsXhYSpkurMvL2JUw2W63tVKqEoZhnKWzX/4PLIzix7Ism1lr5/1+35SuLJVBnbmwERpjdtJ0dlMIfvRqlsGvURRf11qfrrjSx46XsDRNK9baUMp85++/Ju8T88tXgSHA5/c/UHvHueBUKZVFUTRPkmQ9bDLJnppOZ18s4rkNk6vV+KVaLfzhUtiqGyPE6tHJ8XvO0YvbkKTEL/d3995NiaZr3ehrbDVBvFRZa5uDQf8TInpiEyAi/tRqtV9XSg29ZK1NkIupr5TaQcSqc/NGv3/8ljH5c5e4lLUOvmm39z6UsjIioqm19nRd6vsPXynqRmitjaSUO1K6mIij0eifg/F48ry19hoR7RUvIB4rpW7V67WvG437eoiQOidnzjmfGOm6or5Nrpg51FpHvsCVoohIhAAQEKFCpEIviZAQyTJzjigyazH11hhjUgDILpOrsgQKIdZaawDwBR4SUSiEqHgYOqdIcgFDB0RSFjAhxBwRM7+YeW6MMZcJcWndssVEURRIKT202IgYKOckBQtYDmSldESUM7Px2zln0jTN79RiyoRbNs/xeKziOPZdIJjP5yoIAmWtlZVKIQRiPgdWSrk8z22l4vXA5rPZzNbrdbtJ81wVZj/c4HA4lGmaylqtJo0xMo5jJKIChog8m81Ia+0mk4mLosg1m023zVhQWnhu4PFQY4yfSaDZbBaw4XDIUkrWWtMC4pvkVgPPav3es1Huomjc9SF1E5Xa6sy/WsReOjKRlEMAAAAASUVORK5CYII="},f7f8:function(n,i,t){var e=t("c86c");i=e(!1),i.push([n.i,'@charset "UTF-8";\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/* 文章场景相关 */.qingshaonian[data-v-d1171dc0]{background-color:#fff;min-height:100vh;padding:0 %?25?%;overflow:hidden}.qingshaonian .qingshaonians[data-v-d1171dc0]{overflow:hidden;width:%?670?%;height:%?520?%;background:#fff;box-sizing:border-box}.qingshaonian .qingshaonians .titles[data-v-d1171dc0]{text-align:center;font-weight:500;font-size:%?36?%;color:#222;padding:%?40?% 0;border-bottom:1px solid #eaeaea}.qingshaonian .qingshaonians .titles uni-image[data-v-d1171dc0]{width:%?45?%;height:%?45?%;float:right;margin-right:%?20?%}.qingshaonian .qingshaonians .contents[data-v-d1171dc0]{padding:%?30?%}.qingshaonian .qingshaonians .contents .p[data-v-d1171dc0]{font-weight:500;font-size:%?30?%;color:#222}.qingshaonian .qingshaonians .contents .box[data-v-d1171dc0]{font-weight:500;display:flex;padding:%?30?% 0;align-items:center;border-bottom:1px solid #eaeaea;margin-top:%?20?%}.qingshaonian .qingshaonians .contents .box uni-input[data-v-d1171dc0]{flex:1;margin-left:%?30?%;font-size:%?30?%;color:#222}.qingshaonian .qingshaonians .btns[data-v-d1171dc0]{width:%?400?%;line-height:%?80?%;background:linear-gradient(0deg,#000,#3d3b38);box-shadow:0 %?4?% %?18?% 0 rgba(42,41,39,.34);border-radius:%?80?%;text-align:center;font-weight:500;font-size:%?26?%;color:#fff;margin:0 auto;margin-top:%?50?%}.qingshaonian .fd[data-v-d1171dc0]{width:100%;position:fixed;left:0;bottom:0;padding:%?25?%;overflow:hidden;z-index:22;box-sizing:border-box}.qingshaonian .fd .btn[data-v-d1171dc0]{width:100%;line-height:%?98?%;background:linear-gradient(0deg,#000,#3d3b38);box-shadow:0 %?4?% %?18?% 0 rgba(42,41,39,.34);border-radius:%?98?%;font-weight:400;font-size:%?30?%;color:#fff;text-align:center}.qingshaonian .bd[data-v-d1171dc0]{text-align:center;margin-top:%?130?%}.qingshaonian .bd uni-image[data-v-d1171dc0]{width:%?170?%;height:%?170?%}.qingshaonian .bd .title[data-v-d1171dc0]{font-weight:500;font-size:%?36?%;color:#222;margin-top:%?43?%}.qingshaonian .bd .desc[data-v-d1171dc0]{margin-top:%?100?%;font-weight:500;font-size:%?30?%;color:#222;margin-bottom:%?20?%}.qingshaonian .bd .item[data-v-d1171dc0]{display:flex;align-items:center;width:%?300?%;font-weight:500;font-size:%?30?%;color:#666;margin:0 auto;margin-top:%?20?%}.qingshaonian .bd .item uni-image[data-v-d1171dc0]{width:%?27?%;height:%?27?%;margin-right:%?10?%}',""]),n.exports=i},fda2:function(n,i,t){var e=t("f7f8");e.__esModule&&(e=e.default),"string"===typeof e&&(e=[[n.i,e,""]]),e.locals&&(n.exports=e.locals);var a=t("967d").default;a("0d3a9170",e,!0,{sourceMap:!1,shadowMode:!1})}}]); |