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
9.2 KiB
1 lines
9.2 KiB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-yinsi-index"],{"1b01":function(t,e,n){"use strict";n.r(e);var i=n("6593"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},"28b1":function(t,e,n){var i=n("dbc2");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("1e90b7d8",i,!0,{sourceMap:!1,shadowMode:!1})},"2fc2":function(t,e,n){"use strict";n.r(e);var i=n("6f96"),a=n.n(i);for(var o in i)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e["default"]=a.a},6593:function(t,e,n){"use strict";n("6a54");var i=n("f5bd").default;Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a=i(n("2634")),o=i(n("2fdc")),r={data:function(){return{checked:!1}},onLoad:function(){this.getUserInfo()},methods:{getUserInfo:function(){var t=this;return(0,o.default)((0,a.default)().mark((function e(){var n,i,o,r;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.findUserInfo({userId:uni.getStorageSync("userInfo").id});case 2:n=e.sent,i=n.code,o=n.data,r=n.msg,200==i?(t.city_hide=0==o.cityHide,uni.setStorageSync("userInfo",o)):uni.showToast({title:r,position:"bottom",icon:"none"});case 7:case"end":return e.stop()}}),e)})))()},changeChecked:function(t){var e=this;return(0,o.default)((0,a.default)().mark((function n(){var i,o,r;return(0,a.default)().wrap((function(n){while(1)switch(n.prev=n.next){case 0:return e.checked=t,console.log(t),n.next=4,e.$api.privacyConfig({userId:uni.getStorageSync("userInfo").id,cityHide:e.checked?1:0});case 4:i=n.sent,o=i.code,i.data,r=i.msg,200==o?uni.showToast({title:"修改成功"}):uni.showToast({icon:"none",position:"bottom",title:r});case 9:case"end":return n.stop()}}),n)})))()}}};e.default=r},"66bc":function(t,e,n){"use strict";n.r(e);var i=n("a550"),a=n("2fc2");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(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);e["default"]=s.exports},"6f96":function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.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 t={};return t.fontSize=this.size+"rpx",t.backgroundColor=this.valueCom?this.activeColor:this.inactiveColor,t},loadingColor:function(){return this.valueCom?this.activeColor:null}},methods:{onClick:function(){var t=this;this.disabled||this.loading||(this.vibrateShort&&uni.vibrateShort(),this.$emit("input",!this.valueCom),this.$emit("update:modelValue",!this.valueCom),this.$nextTick((function(){t.$emit("change",t.valueCom?t.activeValue:t.inactiveValue)})))}}};e.default=i},"76a8":function(t,e,n){"use strict";n.r(e);var i=n("a235"),a=n("1b01");for(var o in a)["default"].indexOf(o)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(o);n("fe34");var r=n("828b"),s=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"133686c1",null,!1,i["a"],void 0);e["default"]=s.exports},7920:function(t,e,n){"use strict";var i=n("ee44"),a=n.n(i);a.a},"8bbf":function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.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}',""]),t.exports=e},a235:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uSwitch:n("66bc").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;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"},[t._v("隐藏我的城市")]),n("u-switch",{attrs:{"active-color":"#000000"},on:{change:function(e){arguments[0]=e=t.$handleEvent(e),t.changeChecked.apply(void 0,arguments)}},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}})],1)],1)],1)},o=[]},a550:function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));var i={uLoading:n("0296").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-switch",class:[1==t.valueCom?"u-switch--on":"",t.disabled?"u-switch--disabled":""],style:[t.switchStyle],on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"u-switch__node node-class",style:{width:t.$u.addUnit(t.size),height:t.$u.addUnit(t.size)}},[n("u-loading",{staticClass:"u-switch__loading",attrs:{show:t.loading,size:.6*t.size,color:t.loadingColor}})],1)],1)},o=[]},dbc2:function(t,e,n){var i=n("c86c");e=i(!1),e.push([t.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-133686c1]{padding:0 %?25?%;overflow:hidden}.yinsi .content[data-v-133686c1]{background:#fff;border-radius:%?20?%;margin-top:%?20?%}.yinsi .content .item[data-v-133686c1]{display:flex;align-items:center;justify-content:space-between;padding:0 %?20?%;box-sizing:border-box;width:100%;height:%?100?%;box-sizing:border-box;font-weight:500;font-size:%?30?%;color:#222}',""]),t.exports=e},ee44:function(t,e,n){var i=n("8bbf");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("b6780f72",i,!0,{sourceMap:!1,shadowMode:!1})},fe34:function(t,e,n){"use strict";var i=n("28b1"),a=n.n(i);a.a}}]); |