连云港陪玩陪聊
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.
chunwan/unpackage/dist/build/web/static/js/pages-users-qingshaonian-in...

1 line
8.9 KiB

1 month ago
(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);