连云港陪玩陪聊
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-meiyan-index.bf...

1 lines
12 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["pages-users-meiyan-index"],{"0298":function(t,e,n){"use strict";n.r(e);var i=n("9864"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},"14cb":function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){}));var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"u-slider",class:[t.disabled?"u-slider--disabled":""],style:{backgroundColor:t.inactiveColor},on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.onClick.apply(void 0,arguments)}}},[n("v-uni-view",{staticClass:"u-slider__gap",style:[t.barStyle,{height:t.height+"rpx",backgroundColor:t.activeColor}]},[n("v-uni-view",{staticClass:"u-slider__button-wrap",on:{touchstart:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchStart.apply(void 0,arguments)},touchmove:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchMove.apply(void 0,arguments)},touchend:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchEnd.apply(void 0,arguments)},touchcancel:function(e){arguments[0]=e=t.$handleEvent(e),t.onTouchEnd.apply(void 0,arguments)}}},[t.$slots.default||t.$slots.$default?t._t("default"):n("v-uni-view",{staticClass:"u-slider__button",style:[t.blockStyle,{height:t.blockWidth+"rpx",width:t.blockWidth+"rpx",backgroundColor:t.blockColor}]})],2)],1)],1)},a=[]},"3dac":function(t,e,n){var i=n("c15b");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("82b0539a",i,!0,{sourceMap:!1,shadowMode:!1})},4688:function(t,e,n){"use strict";n.r(e);var i=n("940b"),a=n("0298");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("ffaf");var r=n("828b"),o=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"036b0bea",null,!1,i["a"],void 0);e["default"]=o.exports},"826d":function(t,e,n){"use strict";n.r(e);var i=n("d550"),a=n.n(i);for(var s in i)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return i[t]}))}(s);e["default"]=a.a},"940b":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"a",(function(){return i}));var i={uSlider:n("e7d2").default},a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("v-uni-view",{staticClass:"meiyan"},[n("v-uni-view",{staticClass:"meiyan-hd"},[n("v-uni-video",{attrs:{src:"https://zego-public.oss-cn-shanghai.aliyuncs.com/sdk-doc/doc/video/Express_Video_SDK/ExpressBeauty.mp4",muted:!0,loop:!0,autoplay:!0,"object-fit":"cover",controls:!1}})],1),n("v-uni-view",{staticClass:"meiyan-bd"},[n("v-uni-view",{staticClass:"a"},[n("u-slider",{attrs:{"inactive-color":"#E8EAEB","active-color":"#000000",min:"0",max:"100","use-slot":!0},on:{end:function(e){arguments[0]=e=t.$handleEvent(e),t.sliderEnd.apply(void 0,arguments)}},model:{value:t.value,callback:function(e){t.value=e},expression:"value"}},[n("v-uni-view",{},[n("v-uni-view",{staticClass:"badge-button"},[t._v(t._s(t.value))])],1)],1)],1),n("v-uni-view",{staticClass:"b"},[n("v-uni-view",{staticClass:"item",class:0==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabItem(0)}}},[t._v("磨皮")]),n("v-uni-view",{staticClass:"item",class:1==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabItem(1)}}},[t._v("美白")]),n("v-uni-view",{staticClass:"item",class:2==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabItem(2)}}},[t._v("红润")]),n("v-uni-view",{staticClass:"item",class:3==t.tabIndex?"item-on":"",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.tabItem(3)}}},[t._v("锐化")])],1),n("v-uni-view",{staticClass:"c",on:{click:function(e){arguments[0]=e=t.$handleEvent(e),t.toSave.apply(void 0,arguments)}}},[t._v("保存")])],1)],1)},s=[]},9864: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")),s=i(n("2fdc")),r={data:function(){return{value:50,tabIndex:0}},onLoad:function(){this.getUserInfo()},methods:{toSave:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var n,i,s;return(0,a.default)().wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.editUser({id:uni.getStorageSync("userInfo").id,reserved5:t.userInfo.reserved5,reserved6:t.userInfo.reserved6,reserved7:t.userInfo.reserved7,reserved8:t.userInfo.reserved8});case 2:n=e.sent,i=n.code,n.data,s=n.msg,200==i?(uni.showToast({title:"保存成功"}),t.getUserInfo()):uni.showToast({icon:"none",position:"bottom",title:s});case 7:case"end":return e.stop()}}),e)})))()},sliderEnd:function(t){0==this.tabIndex?this.userInfo.reserved5=this.value:1==this.tabIndex?this.userInfo.reserved6=this.value:2==this.tabIndex?this.userInfo.reserved7=this.value:3==this.tabIndex&&(this.userInfo.reserved8=this.value)},getUserInfo:function(){var t=this;return(0,s.default)((0,a.default)().mark((function e(){var n,i,s,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,s=n.data,r=n.msg,200==i?(t.userInfo=s,t.value=s.reserved5,t.reserved5=s.reserved5,t.reserved6=s.reserved6,t.reserved7=s.reserved7,t.reserved8=s.reserved8):uni.showToast({title:r,position:"bottom",icon:"none"});case 7:case"end":return e.stop()}}),e)})))()},tabItem:function(t){this.tabIndex=t,0==t?this.value=this.userInfo.reserved5:1==t?this.value=this.userInfo.reserved6:2==t?this.value=this.userInfo.reserved7:3==t&&(this.value=this.userInfo.reserved8)}}};e.default=r},a702: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-slider[data-v-65afbb10]{position:relative;border-radius:999px;border-radius:999px;background-color:#ebedf0}.u-slider[data-v-65afbb10]:before{position:absolute;right:0;left:0;content:"";top:-8px;bottom:-8px;z-index:-1}.u-slider__gap[data-v-65afbb10]{position:relative;border-radius:inherit;transition:width .2s;transition:width .2s;background-color:#1989fa}.u-slider__button[data-v-65afbb10]{width:24px;height:24px;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.5);background-color:#fff;cursor:pointer}.u-slider__button-wrap[data-v-65afbb10]{position:absolute;top:50%;right:0;-webkit-transform:translate3d(50%,-50%,0);transform:translate3d(50%,-50%,0)}.u-slider--disabled[data-v-65afbb10]{opacity:.5}',""]),t.exports=e},c15b: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/* 文章场景相关 */.meiyan-hd[data-v-036b0bea]{display:flex;align-items:center;justify-content:center}.meiyan-hd uni-video[data-v-036b0bea]{width:%?400?%;height:%?400?%;margin-top:%?100?%;border-radius:50%}.meiyan-bd[data-v-036b0bea]{width:100%;background-color:#fff;padding:%?30?% %?25?%;box-sizing:border-box;position:absolute;left:0;bottom:0;z-index:2}.meiyan-bd .a[data-v-036b0bea]{padding:20px %?50?%}.meiyan-bd .a .badge-button[data-v-036b0bea]{padding:%?4?% %?6?%;background-color:#000;color:#fff;border-radius:%?10?%;font-size:%?22?%;line-height:1}.meiyan-bd .c[data-v-036b0bea]{width:100%;line-height:%?80?%;background:linear-gradient(0deg,#000,#3d3b38);box-shadow:0 %?4?% %?18?% 0 rgba(42,41,39,.34);border-radius:%?20?%;color:#fff;font-size:%?30?%;text-align:center;margin-top:%?50?%}.meiyan-bd .b[data-v-036b0bea]{padding:0 0 %?50?%;overflow:hidden;display:flex;justify-content:center}.meiyan-bd .b .item[data-v-036b0bea]{width:%?100?%;line-height:%?100?%;text-align:center;font-weight:500;font-size:%?26?%;color:#222;margin-right:%?30?%}.meiyan-bd .b .item-on[data-v-036b0bea]{color:#fff;background:linear-gradient(0deg,#000,#3d3b38);box-shadow:0 %?4?% %?18?% 0 rgba(42,41,39,.34);border-radius:%?20?%}',""]),t.exports=e},cd19:function(t,e,n){var i=n("a702");i.__esModule&&(i=i.default),"string"===typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals);var a=n("967d").default;a("c905ad02",i,!0,{sourceMap:!1,shadowMode:!1})},d550:function(t,e,n){"use strict";n("6a54"),Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,n("64aa");var i={name:"u-slider",emits:["update:modelValue","input","start","moving","end"],props:{value:{type:[Number,String],default:0},modelValue:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},blockWidth:{type:[Number,String],default:30},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},height:{type:[Number,String],default:6},activeColor:{type:String,default:"#2979ff"},inactiveColor:{type:String,default:"#c0c4cc"},blockColor:{type:String,default:"#ffffff"},blockStyle:{type:Object,default:function(){return{}}}},data:function(){return{startX:0,status:"end",newValue:0,distanceX:0,startValue:0,barStyle:{},sliderRect:{left:0,width:0}}},watch:{valueCom:function(t){"end"==this.status&&this.updateValue(this.valueCom,!1)}},created:function(){this.updateValue(this.valueCom,!1)},mounted:function(){var t=this;this.$uGetRect(".u-slider").then((function(e){t.sliderRect=e}))},computed:{valueCom:function(){return this.value}},methods:{onTouchStart:function(t){if(!this.disabled){this.startX=0;var e=t.touches[0];this.startX=e.clientX,this.startValue=this.format(this.valueCom),this.status="start"}},onTouchMove:function(t){if(!this.disabled){"start"==this.status&&this.$emit("start");var e=t.touches[0];this.distanceX=e.clientX-this.sliderRect.left,this.newValue=this.distanceX/this.sliderRect.width*100,this.status="moving",this.$emit("moving"),this.updateValue(this.newValue,!0)}},onTouchEnd:function(){this.disabled||("moving"===this.status&&(this.updateValue(this.newValue,!1),this.$emit("end")),this.status="end")},updateValue:function(t,e){var n=this.format(t);if(!(n>this.max||n>100)){var i={width:n+"%"};1==e?i.transition="none":delete i.transition,this.$emit("input",n),this.$emit("update:modelValue",n),this.barStyle=i}},format:function(t){return Math.round(Math.max(this.min,Math.min(t,this.max))/this.step)*this.step},onClick:function(t){if(!this.disabled){var e=(t.detail.x-this.sliderRect.left)/this.sliderRect.width*100;this.updateValue(e,!1)}}}};e.default=i},d997:function(t,e,n){"use strict";var i=n("cd19"),a=n.n(i);a.a},e7d2:function(t,e,n){"use strict";n.r(e);var i=n("14cb"),a=n("826d");for(var s in a)["default"].indexOf(s)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(s);n("d997");var r=n("828b"),o=Object(r["a"])(a["default"],i["b"],i["c"],!1,null,"65afbb10",null,!1,i["a"],void 0);e["default"]=o.exports},ffaf:function(t,e,n){"use strict";var i=n("3dac"),a=n.n(i);a.a}}]);