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
10 KiB
1 lines
10 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-notice-index"],{2243:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uSwitch:n("66bc").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"yinsi"},[n("v-uni-view",{staticClass:"content"},[n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"a"},[e._v("新消息提示音")]),n("u-switch",{attrs:{"active-color":"#000000"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeChecked()}},model:{value:e.checked,callback:function(t){e.checked=t},expression:"checked"}})],1),n("v-uni-view",{staticClass:"item"},[n("v-uni-view",{staticClass:"a"},[e._v("新消息震动")]),n("u-switch",{attrs:{"active-color":"#000000"},on:{change:function(t){arguments[0]=t=e.$handleEvent(t),e.changeChecked1()}},model:{value:e.checked1,callback:function(t){e.checked1=t},expression:"checked1"}})],1)],1)],1)},o=[]},"2ae9":function(e,t,n){"use strict";n.r(t);var i=n("e5dd"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},"2fc2":function(e,t,n){"use strict";n.r(t);var i=n("6f96"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return i[e]}))}(o);t["default"]=a.a},"416b":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.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/* 文章场景相关 */.yinsi[data-v-6e9afe32]{padding:0 %?25?%;overflow:hidden}.yinsi .content[data-v-6e9afe32]{background:#fff;border-radius:%?20?%;margin-top:%?20?%;padding:0 %?20?%}.yinsi .content .item[data-v-6e9afe32]{display:flex;align-items:center;justify-content:space-between;box-sizing:border-box;width:100%;height:%?100?%;border-top:1px solid #eaeaea;font-weight:500;font-size:%?30?%;color:#222}.yinsi .content .item[data-v-6e9afe32]:first-child{border-top-color:#fff}',""]),e.exports=t},"5d88":function(e,t,n){var i=n("416b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("967d").default;a("38b297ae",i,!0,{sourceMap:!1,shadowMode:!1})},"66bc":function(e,t,n){"use strict";n.r(t);var i=n("a550"),a=n("2fc2");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("7920");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"73484189",null,!1,i["a"],void 0);t["default"]=s.exports},"6f1a":function(e,t,n){"use strict";n.r(t);var i=n("2243"),a=n("2ae9");for(var o in a)["default"].indexOf(o)<0&&function(e){n.d(t,e,(function(){return a[e]}))}(o);n("a9b2");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"6e9afe32",null,!1,i["a"],void 0);t["default"]=s.exports},"6f96":function(e,t,n){"use strict";n("6a54"),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,n("64aa");var i={name:"u-switch",emits:["update:modelValue","input","change"],props:{value:{type:Boolean,default:!1},modelValue:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:[Number,String],default:50},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#ffffff"},vibrateShort:{type:Boolean,default:!1},activeValue:{type:[Number,String,Boolean],default:!0},inactiveValue:{type:[Number,String,Boolean],default:!1}},data:function(){return{}},computed:{valueCom:function(){return this.value},switchStyle:function(){var e={};return e.fontSize=this.size+"rpx",e.backgroundColor=this.valueCom?this.activeColor:this.inactiveColor,e},loadingColor:function(){return this.valueCom?this.activeColor:null}},methods:{onClick:function(){var e=this;this.disabled||this.loading||(this.vibrateShort&&uni.vibrateShort(),this.$emit("input",!this.valueCom),this.$emit("update:modelValue",!this.valueCom),this.$nextTick((function(){e.$emit("change",e.valueCom?e.activeValue:e.inactiveValue)})))}}};t.default=i},7920:function(e,t,n){"use strict";var i=n("ee44"),a=n.n(i);a.a},"8bbf":function(e,t,n){var i=n("c86c");t=i(!1),t.push([e.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/* 文章场景相关 */.u-switch[data-v-73484189]{position:relative;display:inline-block;box-sizing:initial;width:2em;height:1em;background-color:#fff;border:1px solid rgba(0,0,0,.1);border-radius:1em;transition:background-color .3s;font-size:%?50?%}.u-switch__node[data-v-73484189]{display:flex;flex-direction:row;align-items:center;justify-content:center;position:absolute;top:0;left:0;border-radius:100%;z-index:1;background-color:#fff;background-color:#fff;box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);box-shadow:0 3px 1px 0 rgba(0,0,0,.05),0 2px 2px 0 rgba(0,0,0,.1),0 3px 3px 0 rgba(0,0,0,.05);transition:-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05),-webkit-transform .3s cubic-bezier(.3,1.05,.4,1.05);transition:-webkit-transform cubic-bezier(.3,1.05,.4,1.05);transition:transform cubic-bezier(.3,1.05,.4,1.05);transition:transform cubic-bezier(.3,1.05,.4,1.05),-webkit-transform cubic-bezier(.3,1.05,.4,1.05);transition:transform .3s cubic-bezier(.3,1.05,.4,1.05)}.u-switch__loading[data-v-73484189]{display:flex;flex-direction:row;align-items:center;justify-content:center}.u-switch--on[data-v-73484189]{background-color:#1989fa}.u-switch--on .u-switch__node[data-v-73484189]{-webkit-transform:translateX(100%);transform:translateX(100%)}.u-switch--disabled[data-v-73484189]{opacity:.4}',""]),e.exports=t},a550:function(e,t,n){"use strict";n.d(t,"b",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var i={uLoading:n("0296").default},a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("v-uni-view",{staticClass:"u-switch",class:[1==e.valueCom?"u-switch--on":"",e.disabled?"u-switch--disabled":""],style:[e.switchStyle],on:{click:function(t){arguments[0]=t=e.$handleEvent(t),e.onClick.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"u-switch__node node-class",style:{width:e.$u.addUnit(e.size),height:e.$u.addUnit(e.size)}},[n("u-loading",{staticClass:"u-switch__loading",attrs:{show:e.loading,size:.6*e.size,color:e.loadingColor}})],1)],1)},o=[]},a9b2:function(e,t,n){"use strict";var i=n("5d88"),a=n.n(i);a.a},e5dd:function(e,t,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=i(n("2634")),o=i(n("2fdc")),r={data:function(){return{checked:!1,checked1:!1}},onLoad:function(){this.getUserInfo()},methods:{getUserInfo:function(){var e=this;return(0,o.default)((0,a.default)().mark((function t(){var n,i,o,r;return(0,a.default)().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.findUserInfo({userId:uni.getStorageSync("userInfo").id});case 2:n=t.sent,i=n.code,o=n.data,r=n.msg,200==i?(e.checked=1==o.msgVoice,e.checked1=1==o.msgShock,uni.setStorageSync("userInfo",o)):uni.showToast({title:r,position:"bottom",icon:"none"});case 7:case"end":return t.stop()}}),t)})))()},changeChecked:function(e){var t=this;return(0,o.default)((0,a.default)().mark((function e(){var n,i,o;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.privacyConfig({userId:uni.getStorageSync("userInfo").id,msgVoice:t.checked?1:0});case 2:n=e.sent,i=n.code,n.data,o=n.msg,200==i?uni.showToast({title:"修改成功"}):uni.showToast({icon:"none",position:"bottom",title:o});case 7:case"end":return e.stop()}}),e)})))()},changeChecked1:function(e){var t=this;return(0,o.default)((0,a.default)().mark((function e(){var n,i,o;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.privacyConfig({userId:uni.getStorageSync("userInfo").id,msgShock:t.checked1?1:0});case 2:n=e.sent,i=n.code,n.data,o=n.msg,200==i?uni.showToast({title:"修改成功"}):uni.showToast({icon:"none",position:"bottom",title:o});case 7:case"end":return e.stop()}}),e)})))()}}};t.default=r},ee44:function(e,t,n){var i=n("8bbf");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[e.i,i,""]]),i.locals&&(e.exports=i.locals);var a=n("967d").default;a("b6780f72",i,!0,{sourceMap:!1,shadowMode:!1})}}]); |